
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::wstring(std::wstring&&) */

void __thiscall std::wstring::wstring(wstring *this,wstring *param_1)

{
  wstring *__s2;
  
  __s2 = param_1 + 8;
  *(wstring **)this = this + 8;
  if (__s2 == *(wstring **)param_1) {
    wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);
  }
  else {
    *(wstring **)this = *(wstring **)param_1;
    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);
  }
  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);
  *(wstring **)param_1 = __s2;
  *(undefined4 *)(param_1 + 4) = 0;
  *(undefined4 *)(param_1 + 8) = 0;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)

{
  wchar_t *__s2;
  
  __s2 = param_2 + 2;
  *param_1 = param_1 + 2;
  if (__s2 == (wchar_t *)*param_2) {
    wmemcpy(param_1 + 2,__s2,4);
  }
  else {
    *param_1 = (wchar_t *)*param_2;
    param_1[2] = param_2[2];
  }
  param_1[1] = param_2[1];
  *param_2 = __s2;
  param_2[1] = 0;
  param_2[2] = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1a3d17
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
LEA EDX,[EDI + 0x8]
LEA EBP,[ESI + 0x8]
MOV dword ptr [EDI],EDX
MOV EAX,dword ptr [ESI]
CMP EBP,EAX
JZ 0x001eb330
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EDI + 0x8],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [EDI + 0x4],EAX
MOV dword ptr [ESI],EBP
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x8],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x4
PUSH EBP
PUSH EDX
CALL 0x00029370
ADD ESP,0x10
JMP 0x001eb310
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}" { (declaration "wchar_t *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (expression_statement "__s2 = param_2 + 2;" (assignment_expression "__s2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = param_1 + 2;" (assignment_expression "*param_1 = param_1 + 2" (pointer_expression "*param_1" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" if (parenthesized_expression "(__s2 == (wchar_t *)*param_2)" ( (binary_expression "__s2 == (wchar_t *)*param_2" identifier == (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) )) (compound_statement "{\n    wmemcpy(param_1 + 2,__s2,4);\n  }" { (expression_statement "wmemcpy(param_1 + 2,__s2,4);" (call_expression "wmemcpy(param_1 + 2,__s2,4)" identifier (argument_list "(param_1 + 2,__s2,4)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) }) (else_clause "else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" else (compound_statement "{\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" { (expression_statement "*param_1 = (wchar_t *)*param_2;" (assignment_expression "*param_1 = (wchar_t *)*param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = __s2;" (assignment_expression "*param_2 = __s2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::wstring(std::wstring&&) */\n\nvoid __thiscall std::wstring::wstring(wstring *this,wstring *param_1)\n\n{\n  wstring *__s2;\n  \n  __s2 = param_1 + 8;\n  *(wstring **)this = this + 8;\n  if (__s2 == *(wstring **)param_1) {\n    wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);\n  }\n  else {\n    *(wstring **)this = *(wstring **)param_1;\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  }\n  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n  *(wstring **)param_1 = __s2;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::wstring(wstring *this,wstring *param_1)\n\n{\n  wstring *__s2;\n  \n  __s2 = param_1 + 8;\n  *(wstring **)this = this + 8;\n  if (__s2 == *(wstring **)param_1) {\n    wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);\n  }\n  else {\n    *(wstring **)this = *(wstring **)param_1;\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  }\n  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n  *(wstring **)param_1 = __s2;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "wstring(wstring *this,wstring *param_1)" identifier (parameter_list "(wstring *this,wstring *param_1)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wstring *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  wstring *__s2;\n  \n  __s2 = param_1 + 8;\n  *(wstring **)this = this + 8;\n  if (__s2 == *(wstring **)param_1) {\n    wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);\n  }\n  else {\n    *(wstring **)this = *(wstring **)param_1;\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  }\n  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n  *(wstring **)param_1 = __s2;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  return;\n}" { (declaration "wstring *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (expression_statement "__s2 = param_1 + 8;" (assignment_expression "__s2 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "*(wstring **)this = this + 8;" (assignment_expression "*(wstring **)this = this + 8" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "this + 8" identifier + number_literal)) ;) (if_statement "if (__s2 == *(wstring **)param_1) {\n    wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);\n  }\n  else {\n    *(wstring **)this = *(wstring **)param_1;\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  }" if (parenthesized_expression "(__s2 == *(wstring **)param_1)" ( (binary_expression "__s2 == *(wstring **)param_1" identifier == (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);\n  }" { (expression_statement "wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4);" (call_expression "wmemcpy((wchar_t *)(this + 8),(wchar_t *)__s2,4)" identifier (argument_list "((wchar_t *)(this + 8),(wchar_t *)__s2,4)" ( (cast_expression "(wchar_t *)(this + 8)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) , (cast_expression "(wchar_t *)__s2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;) }) (else_clause "else {\n    *(wstring **)this = *(wstring **)param_1;\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  }" else (compound_statement "{\n    *(wstring **)this = *(wstring **)param_1;\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  }" { (expression_statement "*(wstring **)this = *(wstring **)param_1;" (assignment_expression "*(wstring **)this = *(wstring **)param_1" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);" (assignment_expression "*(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4)" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(wstring **)param_1 = __s2;" (assignment_expression "*(wstring **)param_1 = __s2" (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}\n\n" (function_definition "void FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}" { (declaration "wchar_t *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (expression_statement "__s2 = param_2 + 2;" (assignment_expression "__s2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = param_1 + 2;" (assignment_expression "*param_1 = param_1 + 2" (pointer_expression "*param_1" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" if (parenthesized_expression "(__s2 == (wchar_t *)*param_2)" ( (binary_expression "__s2 == (wchar_t *)*param_2" identifier == (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) )) (compound_statement "{\n    wmemcpy(param_1 + 2,__s2,4);\n  }" { (expression_statement "wmemcpy(param_1 + 2,__s2,4);" (call_expression "wmemcpy(param_1 + 2,__s2,4)" identifier (argument_list "(param_1 + 2,__s2,4)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) }) (else_clause "else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" else (compound_statement "{\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" { (expression_statement "*param_1 = (wchar_t *)*param_2;" (assignment_expression "*param_1 = (wchar_t *)*param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = __s2;" (assignment_expression "*param_2 = __s2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001eb2e0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_001eb2e0") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  wchar_t *__s2;\n  \n  __s2 = param_2 + 2;\n  *param_1 = param_1 + 2;\n  if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }\n  param_1[1] = param_2[1];\n  *param_2 = __s2;\n  param_2[1] = 0;\n  param_2[2] = 0;\n  return;\n}" ({ "{") (declaration "wchar_t *__s2;" (type_identifier "wchar_t") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (expression_statement "__s2 = param_2 + 2;" (assignment_expression "__s2 = param_2 + 2" (identifier "__s2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*param_1 = param_1 + 2;" (assignment_expression "*param_1 = param_1 + 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (__s2 == (wchar_t *)*param_2) {\n    wmemcpy(param_1 + 2,__s2,4);\n  }\n  else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" (if "if") (parenthesized_expression "(__s2 == (wchar_t *)*param_2)" (( "(") (binary_expression "__s2 == (wchar_t *)*param_2" (identifier "__s2") (== "==") (cast_expression "(wchar_t *)*param_2" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) () ")")) (compound_statement "{\n    wmemcpy(param_1 + 2,__s2,4);\n  }" ({ "{") (expression_statement "wmemcpy(param_1 + 2,__s2,4);" (call_expression "wmemcpy(param_1 + 2,__s2,4)" (identifier "wmemcpy") (argument_list "(param_1 + 2,__s2,4)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "__s2") (, ",") (number_literal "4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" (else "else") (compound_statement "{\n    *param_1 = (wchar_t *)*param_2;\n    param_1[2] = param_2[2];\n  }" ({ "{") (expression_statement "*param_1 = (wchar_t *)*param_2;" (assignment_expression "*param_1 = (wchar_t *)*param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(wchar_t *)*param_2" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_2 = __s2;" (assignment_expression "*param_2 = __s2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "__s2")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::wstring(std::wstring&&) */

void __thiscall std::function_1::function_1(function_1 *var_2,function_1 *var_1)

{
  function_1 *var_3;
  
  var_3 = var_1 + 8;
  *(function_1 **)var_2 = var_2 + 8;
  if (var_3 == *(function_1 **)var_1) {
    var_4((type_1 *)(var_2 + 8),(type_1 *)var_3,4);
  }
  else {
    *(function_1 **)var_2 = *(function_1 **)var_1;
    *(type_2 *)(var_2 + 8) = *(type_2 *)(var_1 + 8);
  }
  *(type_2 *)(var_2 + 4) = *(type_2 *)(var_1 + 4);
  *(function_1 **)var_1 = var_3;
  *(type_2 *)(var_1 + 4) = 0;
  *(type_2 *)(var_1 + 8) = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (pointer_expression argument: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  wchar_t *__s2;
  
  __s2 = param_2 + 2;
  *param_1 = param_1 + 2;
  if (__s2 == (wchar_t *)*param_2) {
    wmemcpy(param_1 + 2,__s2,4);
  }
  else {
    *param_1 = (wchar_t *)*param_2;
    param_1[2] = param_2[2];
  }
  param_1[1] = param_2[1];
  *param_2 = __s2;
  param_2[1] = 0;
  param_2[2] = 0;
  return;
}

