
/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */

void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)

{
  size_t sVar1;
  wchar_t *pwVar2;
  
  pwVar2 = (wchar_t *)0xfffffffffffffffc;
  *(wstring **)this = this + 0x10;
  if (param_1 != (wchar_t *)0x0) {
    sVar1 = wcslen(param_1);
    pwVar2 = param_1 + sVar1;
  }
  _M_construct<wchar_t_const*>(this,param_1,pwVar2);
  return;
}



void FUN_0033f230(long *param_1,wchar_t *param_2)

{
  size_t sVar1;
  wchar_t *pwVar2;
  
  pwVar2 = (wchar_t *)0xfffffffffffffffc;
  *param_1 = (long)(param_1 + 2);
  if (param_2 != (wchar_t *)0x0) {
    sVar1 = wcslen(param_2);
    pwVar2 = param_2 + sVar1;
  }
  FUN_0033f090(param_1,param_2,pwVar2);
  return;
}


PUSH RBP
LEA RAX,[RDI + 0x10]
MOV RBP,RDI
MOV RDX,-0x4
PUSH RBX
MOV RBX,RSI
SUB RSP,0x8
MOV qword ptr [RDI],RAX
TEST RSI,RSI
JZ 0x0033f25b
MOV RDI,RSI
CALL 0x00150150
LEA RDX,[RBX + RAX*0x4]
ADD RSP,0x8
MOV RSI,RBX
MOV RDI,RBP
POP RBX
POP RBP
JMP 0x0033f090
(translation_unit "void FUN_0033f230(long *param_1,wchar_t *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}\n\n" (function_definition "void FUN_0033f230(long *param_1,wchar_t *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}" primitive_type (function_declarator "FUN_0033f230(long *param_1,wchar_t *param_2)" identifier (parameter_list "(long *param_1,wchar_t *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (expression_statement "pwVar2 = (wchar_t *)0xfffffffffffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffffffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffffffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)(param_1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }" if (parenthesized_expression "(param_2 != (wchar_t *)0x0)" ( (binary_expression "param_2 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }" { (expression_statement "sVar1 = wcslen(param_2);" (assignment_expression "sVar1 = wcslen(param_2)" identifier = (call_expression "wcslen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pwVar2 = param_2 + sVar1;" (assignment_expression "pwVar2 = param_2 + sVar1" identifier = (binary_expression "param_2 + sVar1" identifier + identifier)) ;) })) (expression_statement "FUN_0033f090(param_1,param_2,pwVar2);" (call_expression "FUN_0033f090(param_1,param_2,pwVar2)" identifier (argument_list "(param_1,param_2,pwVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */\n\nvoid __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *(wstring **)this = this + 0x10;\n  if (param_1 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_1);\n    pwVar2 = param_1 + sVar1;\n  }\n  _M_construct<wchar_t_const*>(this,param_1,pwVar2);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *(wstring **)this = this + 0x10;\n  if (param_1 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_1);\n    pwVar2 = param_1 + sVar1;\n  }\n  _M_construct<wchar_t_const*>(this,param_1,pwVar2);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "wstring(wstring *this,wchar_t *param_1,allocator *param_2)" identifier (parameter_list "(wstring *this,wchar_t *param_1,allocator *param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "allocator *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *(wstring **)this = this + 0x10;\n  if (param_1 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_1);\n    pwVar2 = param_1 + sVar1;\n  }\n  _M_construct<wchar_t_const*>(this,param_1,pwVar2);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (expression_statement "pwVar2 = (wchar_t *)0xfffffffffffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffffffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffffffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(wstring **)this = this + 0x10;" (assignment_expression "*(wstring **)this = this + 0x10" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "this + 0x10" identifier + number_literal)) ;) (if_statement "if (param_1 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_1);\n    pwVar2 = param_1 + sVar1;\n  }" if (parenthesized_expression "(param_1 != (wchar_t *)0x0)" ( (binary_expression "param_1 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar1 = wcslen(param_1);\n    pwVar2 = param_1 + sVar1;\n  }" { (expression_statement "sVar1 = wcslen(param_1);" (assignment_expression "sVar1 = wcslen(param_1)" identifier = (call_expression "wcslen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pwVar2 = param_1 + sVar1;" (assignment_expression "pwVar2 = param_1 + sVar1" identifier = (binary_expression "param_1 + sVar1" identifier + identifier)) ;) })) (expression_statement "_M_construct<wchar_t_const*>(this,param_1,pwVar2);" (binary_expression "_M_construct<wchar_t_const*>(this,param_1,pwVar2)" (binary_expression "_M_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(this,param_1,pwVar2)" ( (comma_expression "this,param_1,pwVar2" identifier , (comma_expression "param_1,pwVar2" identifier , identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0033f230(long *param_1,wchar_t *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}\n\n" (function_definition "void FUN_0033f230(long *param_1,wchar_t *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}" primitive_type (function_declarator "FUN_0033f230(long *param_1,wchar_t *param_2)" identifier (parameter_list "(long *param_1,wchar_t *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (expression_statement "pwVar2 = (wchar_t *)0xfffffffffffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffffffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffffffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)(param_1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }" if (parenthesized_expression "(param_2 != (wchar_t *)0x0)" ( (binary_expression "param_2 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }" { (expression_statement "sVar1 = wcslen(param_2);" (assignment_expression "sVar1 = wcslen(param_2)" identifier = (call_expression "wcslen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pwVar2 = param_2 + sVar1;" (assignment_expression "pwVar2 = param_2 + sVar1" identifier = (binary_expression "param_2 + sVar1" identifier + identifier)) ;) })) (expression_statement "FUN_0033f090(param_1,param_2,pwVar2);" (call_expression "FUN_0033f090(param_1,param_2,pwVar2)" identifier (argument_list "(param_1,param_2,pwVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0033f230(long *param_1,wchar_t *param_2)\n\n{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0033f230(long *param_1,wchar_t *param_2)" (identifier "FUN_0033f230") (parameter_list "(long *param_1,wchar_t *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wchar_t *param_2" (type_identifier "wchar_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  wchar_t *pwVar2;\n  \n  pwVar2 = (wchar_t *)0xfffffffffffffffc;\n  *param_1 = (long)(param_1 + 2);\n  if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }\n  FUN_0033f090(param_1,param_2,pwVar2);\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "wchar_t *pwVar2;" (type_identifier "wchar_t") (pointer_declarator "*pwVar2" (* "*") (identifier "pwVar2")) (; ";")) (expression_statement "pwVar2 = (wchar_t *)0xfffffffffffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffffffffffc" (identifier "pwVar2") (= "=") (cast_expression "(wchar_t *)0xfffffffffffffffc" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xfffffffffffffffc"))) (; ";")) (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)(param_1 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (param_2 != (wchar_t *)0x0) {\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }" (if "if") (parenthesized_expression "(param_2 != (wchar_t *)0x0)" (( "(") (binary_expression "param_2 != (wchar_t *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar1 = wcslen(param_2);\n    pwVar2 = param_2 + sVar1;\n  }" ({ "{") (expression_statement "sVar1 = wcslen(param_2);" (assignment_expression "sVar1 = wcslen(param_2)" (identifier "sVar1") (= "=") (call_expression "wcslen(param_2)" (identifier "wcslen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pwVar2 = param_2 + sVar1;" (assignment_expression "pwVar2 = param_2 + sVar1" (identifier "pwVar2") (= "=") (binary_expression "param_2 + sVar1" (identifier "param_2") (+ "+") (identifier "sVar1"))) (; ";")) (} "}"))) (expression_statement "FUN_0033f090(param_1,param_2,pwVar2);" (call_expression "FUN_0033f090(param_1,param_2,pwVar2)" (identifier "FUN_0033f090") (argument_list "(param_1,param_2,pwVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "pwVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */

void __thiscall std::function_1::function_1(function_1 *var_1,type_1 *var_2,type_2 *param_2)

{
  size_t var_4;
  type_1 *pwVar2;
  
  pwVar2 = (type_1 *)0xfffffffffffffffc;
  *(function_1 **)var_1 = var_1 + 0x10;
  if (var_2 != (type_1 *)0x0) {
    var_4 = var_3(var_2);
    pwVar2 = var_2 + var_4;
  }
  var_5<var_6*>(var_1,var_2,pwVar2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

void MASKED(long *param_1,wchar_t *param_2)

{
  size_t sVar1;
  wchar_t *pwVar2;
  
  pwVar2 = (wchar_t *)0xfffffffffffffffc;
  *param_1 = (long)(param_1 + 2);
  if (param_2 != (wchar_t *)0x0) {
    sVar1 = wcslen(param_2);
    pwVar2 = param_2 + sVar1;
  }
  FUN_0033f090(param_1,param_2,pwVar2);
  return;
}

