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

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

{
  uint __n;
  wstring *__s1;
  uint uVar1;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x201239;
  if (this != param_1) {
    __s1 = *(wstring **)this;
    __n = *(uint *)(param_1 + 4);
    if (this + 8 == __s1) {
      uVar1 = 3;
    }
    else {
      uVar1 = *(uint *)(this + 8);
    }
    if (uVar1 < __n) {
      local_20[0] = __n;
      __s1 = (wstring *)_M_create(this,local_20,uVar1);
      if (this + 8 != *(wstring **)this) {
        operator_delete(*(wstring **)this);
      }
      *(wstring **)this = __s1;
      *(uint *)(this + 8) = local_20[0];
    }
    if (__n != 0) {
      if (__n == 1) {
        *(wchar_t *)__s1 = **(wchar_t **)param_1;
      }
      else {
        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);
        __s1 = *(wstring **)this;
      }
    }
    *(uint *)(this + 4) = __n;
    *(undefined4 *)(__s1 + __n * 4) = 0;
  }
  return;
}



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

void FUN_00201230(int *param_1,int *param_2)

{
  uint __n;
  wchar_t *__s1;
  uint uVar1;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x201239;
  if (param_1 != param_2) {
    __s1 = (wchar_t *)*param_1;
    __n = param_2[1];
    if (param_1 + 2 == __s1) {
      uVar1 = 3;
    }
    else {
      uVar1 = param_1[2];
    }
    if (uVar1 < __n) {
      local_20[0] = __n;
      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);
      if (param_1 + 2 != (wchar_t *)*param_1) {
        FUN_001fd020((wchar_t *)*param_1);
      }
      *param_1 = (int)__s1;
      param_1[2] = local_20[0];
    }
    if (__n != 0) {
      if (__n == 1) {
        *__s1 = *(wchar_t *)*param_2;
      }
      else {
        wmemcpy(__s1,(wchar_t *)*param_2,__n);
        __s1 = (wchar_t *)*param_1;
      }
    }
    param_1[1] = __n;
    __s1[__n] = L'\0';
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x1a8dc7
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x44]
CMP ESI,EDX
JZ 0x0020128f
MOV EBP,dword ptr [ESI]
LEA ECX,[ESI + 0x8]
MOV EDI,dword ptr [EDX + 0x4]
CMP ECX,EBP
JZ 0x002012f0
MOV EAX,dword ptr [ESI + 0x8]
CMP EAX,EDI
JC 0x002012a0
TEST EDI,EDI
JZ 0x00201284
MOV EAX,dword ptr [EDX]
CMP EDI,0x1
JZ 0x00201300
SUB ESP,0x4
PUSH EDI
PUSH EAX
PUSH EBP
CALL 0x0002a380
MOV EBP,dword ptr [ESI]
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EDI
MOV dword ptr [EBP + EDI*0x4],0x0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],ECX
MOV dword ptr [ESP + 0x20],EDI
PUSH EAX
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH ESI
CALL 0x00200d20
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x44]
MOV EBP,EAX
MOV EAX,dword ptr [ESI]
CMP ECX,EAX
JZ 0x002012de
SUB ESP,0xc
PUSH EAX
CALL 0x001fd020
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESI],EBP
MOV dword ptr [ESI + 0x8],EAX
TEST EDI,EDI
JZ 0x00201284
JMP 0x00201269
MOV EAX,0x3
JMP 0x00201261
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBP],EAX
JMP 0x00201284
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00201230(int *param_1,int *param_2)\n\n{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00201230(int *param_1,int *param_2)\n\n{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00201230(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x201239;" (assignment_expression "uStack_14 = 0x201239" identifier = number_literal) ;) (if_statement "if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" { (expression_statement "__s1 = (wchar_t *)*param_1;" (assignment_expression "__s1 = (wchar_t *)*param_1" identifier = (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }" if (parenthesized_expression "(param_1 + 2 == __s1)" ( (binary_expression "param_1 + 2 == __s1" (binary_expression "param_1 + 2" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar1 = 3;\n    }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = param_1[2];\n    }" else (compound_statement "{\n      uVar1 = param_1[2];\n    }" { (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }" if (parenthesized_expression "(uVar1 < __n)" ( (binary_expression "uVar1 < __n" identifier < identifier) )) (compound_statement "{\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }" { (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);" (assignment_expression "__s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1)" identifier = (cast_expression "(wchar_t *)FUN_00200d20(param_1,local_20,uVar1)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00200d20(param_1,local_20,uVar1)" identifier (argument_list "(param_1,local_20,uVar1)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }" if (parenthesized_expression "(param_1 + 2 != (wchar_t *)*param_1)" ( (binary_expression "param_1 + 2 != (wchar_t *)*param_1" (binary_expression "param_1 + 2" identifier + number_literal) != (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n        FUN_001fd020((wchar_t *)*param_1);\n      }" { (expression_statement "FUN_001fd020((wchar_t *)*param_1);" (call_expression "FUN_001fd020((wchar_t *)*param_1)" identifier (argument_list "((wchar_t *)*param_1)" ( (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "*param_1 = (int)__s1;" (assignment_expression "*param_1 = (int)__s1" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) })) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *__s1 = *(wchar_t *)*param_2;\n      }" { (expression_statement "*__s1 = *(wchar_t *)*param_2;" (assignment_expression "*__s1 = *(wchar_t *)*param_2" (pointer_expression "*__s1" * identifier) = (pointer_expression "*(wchar_t *)*param_2" * (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) ;) }) (else_clause "else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" else (compound_statement "{\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" { (expression_statement "wmemcpy(__s1,(wchar_t *)*param_2,__n);" (call_expression "wmemcpy(__s1,(wchar_t *)*param_2,__n)" identifier (argument_list "(__s1,(wchar_t *)*param_2,__n)" ( identifier , (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , identifier ))) ;) (expression_statement "__s1 = (wchar_t *)*param_1;" (assignment_expression "__s1 = (wchar_t *)*param_1" identifier = (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s1[__n] = L'\0';" (assignment_expression "__s1[__n] = L'\0'" (subscript_expression "__s1[__n]" identifier [ identifier ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::_M_assign(std::wstring const&) */\n\nvoid __thiscall std::wstring::_M_assign(wstring *this,wstring *param_1)\n\n{\n  uint __n;\n  wstring *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (this != param_1) {\n    __s1 = *(wstring **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::_M_assign(wstring *this,wstring *param_1)\n\n{\n  uint __n;\n  wstring *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (this != param_1) {\n    __s1 = *(wstring **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_M_assign(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  uint __n;\n  wstring *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (this != param_1) {\n    __s1 = *(wstring **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "wstring *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x201239;" (assignment_expression "uStack_14 = 0x201239" identifier = number_literal) ;) (if_statement "if (this != param_1) {\n    __s1 = *(wstring **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }" if (parenthesized_expression "(this != param_1)" ( (binary_expression "this != param_1" identifier != identifier) )) (compound_statement "{\n    __s1 = *(wstring **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }" { (expression_statement "__s1 = *(wstring **)this;" (assignment_expression "__s1 = *(wstring **)this" identifier = (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "__n = *(uint *)(param_1 + 4);" (assignment_expression "__n = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (this + 8 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }" if (parenthesized_expression "(this + 8 == __s1)" ( (binary_expression "this + 8 == __s1" (binary_expression "this + 8" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar1 = 3;\n    }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = *(uint *)(this + 8);\n    }" else (compound_statement "{\n      uVar1 = *(uint *)(this + 8);\n    }" { (expression_statement "uVar1 = *(uint *)(this + 8);" (assignment_expression "uVar1 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }" if (parenthesized_expression "(uVar1 < __n)" ( (binary_expression "uVar1 < __n" identifier < identifier) )) (compound_statement "{\n      local_20[0] = __n;\n      __s1 = (wstring *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }\n      *(wstring **)this = __s1;\n      *(uint *)(this + 8) = local_20[0];\n    }" { (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s1 = (wstring *)_M_create(this,local_20,uVar1);" (assignment_expression "__s1 = (wstring *)_M_create(this,local_20,uVar1)" identifier = (cast_expression "(wstring *)_M_create(this,local_20,uVar1)" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_M_create(this,local_20,uVar1)" identifier (argument_list "(this,local_20,uVar1)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (this + 8 != *(wstring **)this) {\n        operator_delete(*(wstring **)this);\n      }" if (parenthesized_expression "(this + 8 != *(wstring **)this)" ( (binary_expression "this + 8 != *(wstring **)this" (binary_expression "this + 8" identifier + number_literal) != (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n        operator_delete(*(wstring **)this);\n      }" { (expression_statement "operator_delete(*(wstring **)this);" (call_expression "operator_delete(*(wstring **)this)" identifier (argument_list "(*(wstring **)this)" ( (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (expression_statement "*(wstring **)this = __s1;" (assignment_expression "*(wstring **)this = __s1" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(uint *)(this + 8) = local_20[0];" (assignment_expression "*(uint *)(this + 8) = local_20[0]" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) })) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *(wchar_t *)__s1 = **(wchar_t **)param_1;\n      }" { (expression_statement "*(wchar_t *)__s1 = **(wchar_t **)param_1;" (assignment_expression "*(wchar_t *)__s1 = **(wchar_t **)param_1" (pointer_expression "*(wchar_t *)__s1" * (cast_expression "(wchar_t *)__s1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "**(wchar_t **)param_1" * (pointer_expression "*(wchar_t **)param_1" * (cast_expression "(wchar_t **)param_1" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) }) (else_clause "else {\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }" else (compound_statement "{\n        wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);\n        __s1 = *(wstring **)this;\n      }" { (expression_statement "wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n);" (call_expression "wmemcpy((wchar_t *)__s1,*(wchar_t **)param_1,__n)" identifier (argument_list "((wchar_t *)__s1,*(wchar_t **)param_1,__n)" ( (cast_expression "(wchar_t *)__s1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "*(wchar_t **)param_1" * (cast_expression "(wchar_t **)param_1" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) (expression_statement "__s1 = *(wstring **)this;" (assignment_expression "__s1 = *(wstring **)this" identifier = (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) })) (expression_statement "*(uint *)(this + 4) = __n;" (assignment_expression "*(uint *)(this + 4) = __n" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(__s1 + __n * 4) = 0;" (assignment_expression "*(undefined4 *)(__s1 + __n * 4) = 0" (pointer_expression "*(undefined4 *)(__s1 + __n * 4)" * (cast_expression "(undefined4 *)(__s1 + __n * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__s1 + __n * 4)" ( (binary_expression "__s1 + __n * 4" identifier + (binary_expression "__n * 4" identifier * number_literal)) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00201230(int *param_1,int *param_2)\n\n{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}\n\n" (function_definition "void FUN_00201230(int *param_1,int *param_2)\n\n{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00201230(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x201239;" (assignment_expression "uStack_14 = 0x201239" identifier = number_literal) ;) (if_statement "if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" { (expression_statement "__s1 = (wchar_t *)*param_1;" (assignment_expression "__s1 = (wchar_t *)*param_1" identifier = (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }" if (parenthesized_expression "(param_1 + 2 == __s1)" ( (binary_expression "param_1 + 2 == __s1" (binary_expression "param_1 + 2" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar1 = 3;\n    }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = param_1[2];\n    }" else (compound_statement "{\n      uVar1 = param_1[2];\n    }" { (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }" if (parenthesized_expression "(uVar1 < __n)" ( (binary_expression "uVar1 < __n" identifier < identifier) )) (compound_statement "{\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }" { (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);" (assignment_expression "__s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1)" identifier = (cast_expression "(wchar_t *)FUN_00200d20(param_1,local_20,uVar1)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00200d20(param_1,local_20,uVar1)" identifier (argument_list "(param_1,local_20,uVar1)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }" if (parenthesized_expression "(param_1 + 2 != (wchar_t *)*param_1)" ( (binary_expression "param_1 + 2 != (wchar_t *)*param_1" (binary_expression "param_1 + 2" identifier + number_literal) != (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n        FUN_001fd020((wchar_t *)*param_1);\n      }" { (expression_statement "FUN_001fd020((wchar_t *)*param_1);" (call_expression "FUN_001fd020((wchar_t *)*param_1)" identifier (argument_list "((wchar_t *)*param_1)" ( (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "*param_1 = (int)__s1;" (assignment_expression "*param_1 = (int)__s1" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) })) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *__s1 = *(wchar_t *)*param_2;\n      }" { (expression_statement "*__s1 = *(wchar_t *)*param_2;" (assignment_expression "*__s1 = *(wchar_t *)*param_2" (pointer_expression "*__s1" * identifier) = (pointer_expression "*(wchar_t *)*param_2" * (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) ;) }) (else_clause "else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" else (compound_statement "{\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" { (expression_statement "wmemcpy(__s1,(wchar_t *)*param_2,__n);" (call_expression "wmemcpy(__s1,(wchar_t *)*param_2,__n)" identifier (argument_list "(__s1,(wchar_t *)*param_2,__n)" ( identifier , (cast_expression "(wchar_t *)*param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , identifier ))) ;) (expression_statement "__s1 = (wchar_t *)*param_1;" (assignment_expression "__s1 = (wchar_t *)*param_1" identifier = (cast_expression "(wchar_t *)*param_1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s1[__n] = L'\0';" (assignment_expression "__s1[__n] = L'\0'" (subscript_expression "__s1[__n]" identifier [ identifier ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) })) (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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal L' escape_sequence ')) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00201230(int *param_1,int *param_2)\n\n{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00201230(int *param_1,int *param_2)" (identifier "FUN_00201230") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint __n;\n  wchar_t *__s1;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x201239;\n  if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  return;\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "wchar_t *__s1;" (type_identifier "wchar_t") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint local_20 [3];" (type_identifier "uint") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x201239;" (assignment_expression "uStack_14 = 0x201239" (identifier "uStack_14") (= "=") (number_literal "0x201239")) (; ";")) (if_statement "if (param_1 != param_2) {\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" (if "if") (parenthesized_expression "(param_1 != param_2)" (( "(") (binary_expression "param_1 != param_2" (identifier "param_1") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    __s1 = (wchar_t *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" ({ "{") (expression_statement "__s1 = (wchar_t *)*param_1;" (assignment_expression "__s1 = (wchar_t *)*param_1" (identifier "__s1") (= "=") (cast_expression "(wchar_t *)*param_1" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" (identifier "__n") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_1 + 2 == __s1) {\n      uVar1 = 3;\n    }\n    else {\n      uVar1 = param_1[2];\n    }" (if "if") (parenthesized_expression "(param_1 + 2 == __s1)" (( "(") (binary_expression "param_1 + 2 == __s1" (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (== "==") (identifier "__s1")) () ")")) (compound_statement "{\n      uVar1 = 3;\n    }" ({ "{") (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" (identifier "uVar1") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = param_1[2];\n    }" (else "else") (compound_statement "{\n      uVar1 = param_1[2];\n    }" ({ "{") (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar1 < __n) {\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }" (if "if") (parenthesized_expression "(uVar1 < __n)" (( "(") (binary_expression "uVar1 < __n" (identifier "uVar1") (< "<") (identifier "__n")) () ")")) (compound_statement "{\n      local_20[0] = __n;\n      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);\n      if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }\n      *param_1 = (int)__s1;\n      param_1[2] = local_20[0];\n    }" ({ "{") (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "__n")) (; ";")) (expression_statement "__s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);" (assignment_expression "__s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1)" (identifier "__s1") (= "=") (cast_expression "(wchar_t *)FUN_00200d20(param_1,local_20,uVar1)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00200d20(param_1,local_20,uVar1)" (identifier "FUN_00200d20") (argument_list "(param_1,local_20,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") (, ",") (identifier "uVar1") () ")"))))) (; ";")) (if_statement "if (param_1 + 2 != (wchar_t *)*param_1) {\n        FUN_001fd020((wchar_t *)*param_1);\n      }" (if "if") (parenthesized_expression "(param_1 + 2 != (wchar_t *)*param_1)" (( "(") (binary_expression "param_1 + 2 != (wchar_t *)*param_1" (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (!= "!=") (cast_expression "(wchar_t *)*param_1" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (compound_statement "{\n        FUN_001fd020((wchar_t *)*param_1);\n      }" ({ "{") (expression_statement "FUN_001fd020((wchar_t *)*param_1);" (call_expression "FUN_001fd020((wchar_t *)*param_1)" (identifier "FUN_001fd020") (argument_list "((wchar_t *)*param_1)" (( "(") (cast_expression "(wchar_t *)*param_1" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = (int)__s1;" (assignment_expression "*param_1 = (int)__s1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__s1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s1"))) (; ";")) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}"))) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }\n    }" ({ "{") (if_statement "if (__n == 1) {\n        *__s1 = *(wchar_t *)*param_2;\n      }\n      else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *__s1 = *(wchar_t *)*param_2;\n      }" ({ "{") (expression_statement "*__s1 = *(wchar_t *)*param_2;" (assignment_expression "*__s1 = *(wchar_t *)*param_2" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (= "=") (pointer_expression "*(wchar_t *)*param_2" (* "*") (cast_expression "(wchar_t *)*param_2" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))))) (; ";")) (} "}")) (else_clause "else {\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" (else "else") (compound_statement "{\n        wmemcpy(__s1,(wchar_t *)*param_2,__n);\n        __s1 = (wchar_t *)*param_1;\n      }" ({ "{") (expression_statement "wmemcpy(__s1,(wchar_t *)*param_2,__n);" (call_expression "wmemcpy(__s1,(wchar_t *)*param_2,__n)" (identifier "wmemcpy") (argument_list "(__s1,(wchar_t *)*param_2,__n)" (( "(") (identifier "__s1") (, ",") (cast_expression "(wchar_t *)*param_2" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "__s1 = (wchar_t *)*param_1;" (assignment_expression "__s1 = (wchar_t *)*param_1" (identifier "__s1") (= "=") (cast_expression "(wchar_t *)*param_1" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "__n")) (; ";")) (expression_statement "__s1[__n] = L'\0';" (assignment_expression "__s1[__n] = L'\0'" (subscript_expression "__s1[__n]" (identifier "__s1") ([ "[") (identifier "__n") (] "]")) (= "=") (char_literal "L'\0'" (L' "L'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_2 var_5;
  type_1 *var_3;
  type_2 var_4;
  type_2 local_20 [3];
  type_3 uStack_14;
  
  uStack_14 = 0x201239;
  if (var_1 != var_2) {
    var_3 = *(type_1 **)var_1;
    var_5 = *(type_2 *)(var_2 + 4);
    if (var_1 + 8 == var_3) {
      var_4 = 3;
    }
    else {
      var_4 = *(type_2 *)(var_1 + 8);
    }
    if (var_4 < var_5) {
      local_20[0] = var_5;
      var_3 = (type_1 *)var_6(var_1,local_20,var_4);
      if (var_1 + 8 != *(type_1 **)var_1) {
        var_7(*(type_1 **)var_1);
      }
      *(type_1 **)var_1 = var_3;
      *(type_2 *)(var_1 + 8) = local_20[0];
    }
    if (var_5 != 0) {
      if (var_5 == 1) {
        *(type_4 *)var_3 = **(type_4 **)var_2;
      }
      else {
        var_8((type_4 *)var_3,*(type_4 **)var_2,var_5);
        var_3 = *(type_1 **)var_1;
      }
    }
    *(type_2 *)(var_1 + 4) = var_5;
    *(type_3 *)(var_3 + var_5 * 4) = 0;
  }
  return;
}


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

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

void MASKED(int *param_1,int *param_2)

{
  uint __n;
  wchar_t *__s1;
  uint uVar1;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x201239;
  if (param_1 != param_2) {
    __s1 = (wchar_t *)*param_1;
    __n = param_2[1];
    if (param_1 + 2 == __s1) {
      uVar1 = 3;
    }
    else {
      uVar1 = param_1[2];
    }
    if (uVar1 < __n) {
      local_20[0] = __n;
      __s1 = (wchar_t *)FUN_00200d20(param_1,local_20,uVar1);
      if (param_1 + 2 != (wchar_t *)*param_1) {
        FUN_001fd020((wchar_t *)*param_1);
      }
      *param_1 = (int)__s1;
      param_1[2] = local_20[0];
    }
    if (__n != 0) {
      if (__n == 1) {
        *__s1 = *(wchar_t *)*param_2;
      }
      else {
        wmemcpy(__s1,(wchar_t *)*param_2,__n);
        __s1 = (wchar_t *)*param_1;
      }
    }
    param_1[1] = __n;
    __s1[__n] = L'\0';
  }
  return;
}

