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

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

{
  wstring *pwVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  wstring *__s2;
  wstring *__s1;
  size_t __n;
  
  pwVar1 = *(wstring **)param_1;
  __s2 = param_1 + 8;
  __s1 = *(wstring **)this;
  __n = *(size_t *)(param_1 + 4);
  if (pwVar1 == __s2) {
    if (__n != 0) {
      if (__n == 1) {
        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);
      }
      else {
        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);
        __n = *(size_t *)(param_1 + 4);
        __s1 = *(wstring **)this;
        __s2 = *(wstring **)param_1;
      }
    }
    *(size_t *)(this + 4) = __n;
    *(undefined4 *)(__s1 + __n * 4) = 0;
  }
  else {
    uVar2 = *(undefined4 *)(param_1 + 8);
    if (__s1 == this + 8) {
      *(wstring **)this = pwVar1;
      *(size_t *)(this + 4) = __n;
      *(undefined4 *)(this + 8) = uVar2;
    }
    else {
      *(size_t *)(this + 4) = __n;
      uVar3 = *(undefined4 *)(this + 8);
      *(wstring **)this = pwVar1;
      *(undefined4 *)(this + 8) = uVar2;
      if (__s1 != (wstring *)0x0) {
        *(wstring **)param_1 = __s1;
        *(undefined4 *)(param_1 + 8) = uVar3;
        __s2 = __s1;
        goto LAB_001eba7e;
      }
    }
    *(wstring **)param_1 = __s2;
  }
LAB_001eba7e:
  *(undefined4 *)(param_1 + 4) = 0;
  *(wchar_t *)__s2 = L'\0';
  return this;
}



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

undefined4 * FUN_001eba30(undefined4 *param_1,undefined4 *param_2)

{
  wchar_t *pwVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  wchar_t *__s2;
  wchar_t *__s1;
  size_t __n;
  
  pwVar1 = (wchar_t *)*param_2;
  __s2 = param_2 + 2;
  __s1 = (wchar_t *)*param_1;
  __n = param_2[1];
  if (pwVar1 == __s2) {
    if (__n != 0) {
      if (__n == 1) {
        *__s1 = param_2[2];
      }
      else {
        wmemcpy(__s1,__s2,__n);
        __n = param_2[1];
        __s1 = (wchar_t *)*param_1;
        __s2 = (wchar_t *)*param_2;
      }
    }
    param_1[1] = __n;
    __s1[__n] = L'\0';
  }
  else {
    uVar2 = param_2[2];
    if (__s1 == param_1 + 2) {
      *param_1 = pwVar1;
      param_1[1] = __n;
      param_1[2] = uVar2;
    }
    else {
      param_1[1] = __n;
      uVar3 = param_1[2];
      *param_1 = pwVar1;
      param_1[2] = uVar2;
      if (__s1 != (wchar_t *)0x0) {
        *param_2 = __s1;
        param_2[2] = uVar3;
        __s2 = __s1;
        goto LAB_001eba7e;
      }
    }
    *param_2 = __s2;
  }
LAB_001eba7e:
  param_2[1] = 0;
  *__s2 = L'\0';
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1a35c7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESI]
LEA ECX,[ESI + 0x8]
MOV EAX,dword ptr [EDI]
MOV EDX,dword ptr [ESI + 0x4]
CMP EBP,ECX
JZ 0x001ebab0
MOV EBX,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0xc],EBX
LEA EBX,[EDI + 0x8]
CMP EAX,EBX
JZ 0x001eba98
MOV dword ptr [EDI + 0x4],EDX
MOV EDX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [EDI + 0x8]
MOV dword ptr [EDI],EBP
MOV dword ptr [EDI + 0x8],EDX
TEST EAX,EAX
JZ 0x001ebaa4
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x8],EBX
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [EAX],0x0
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI],EBP
MOV dword ptr [EDI + 0x4],EDX
MOV dword ptr [EDI + 0x8],EAX
MOV dword ptr [ESI],ECX
MOV EAX,ECX
JMP 0x001eba7e
TEST EDX,EDX
JZ 0x001ebace
CMP EDX,0x1
JZ 0x001ebae0
SUB ESP,0x4
PUSH EDX
PUSH ECX
PUSH EAX
CALL 0x00029370
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
MOV ECX,dword ptr [ESI]
MOV dword ptr [EDI + 0x4],EDX
MOV dword ptr [EAX + EDX*0x4],0x0
MOV EAX,ECX
JMP 0x001eba7e
MOV EBX,dword ptr [ESI + 0x8]
MOV dword ptr [EAX],EBX
JMP 0x001ebace
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_001eba30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}\n\n" comment (function_definition "undefined4 * FUN_001eba30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_001eba30(undefined4 *param_1,undefined4 *param_2)" * (function_declarator "FUN_001eba30(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 *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "wchar_t *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "pwVar1 = (wchar_t *)*param_2;" (assignment_expression "pwVar1 = (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))) ;) (expression_statement "__s2 = param_2 + 2;" (assignment_expression "__s2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (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 (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" if (parenthesized_expression "(pwVar1 == __s2)" ( (binary_expression "pwVar1 == __s2" identifier == identifier) )) (compound_statement "{\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" { (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *__s1 = param_2[2];\n      }" { (expression_statement "*__s1 = param_2[2];" (assignment_expression "*__s1 = param_2[2]" (pointer_expression "*__s1" * identifier) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" else (compound_statement "{\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" { (expression_statement "wmemcpy(__s1,__s2,__n);" (call_expression "wmemcpy(__s1,__s2,__n)" identifier (argument_list "(__s1,__s2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (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 "__s2 = (wchar_t *)*param_2;" (assignment_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))) ;) }))) })) (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 ')) ;) }) (else_clause "else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" else (compound_statement "{\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" { (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (if_statement "if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" if (parenthesized_expression "(__s1 == param_1 + 2)" ( (binary_expression "__s1 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }" { (expression_statement "*param_1 = pwVar1;" (assignment_expression "*param_1 = pwVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" else (compound_statement "{\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" { (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = pwVar1;" (assignment_expression "*param_1 = pwVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" if (parenthesized_expression "(__s1 != (wchar_t *)0x0)" ( (binary_expression "__s1 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" { (expression_statement "*param_2 = __s1;" (assignment_expression "*param_2 = __s1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar3;" (assignment_expression "param_2[2] = uVar3" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s2 = __s1;" (assignment_expression "__s2 = __s1" identifier = identifier) ;) (goto_statement "goto LAB_001eba7e;" goto statement_identifier ;) })) }))) (expression_statement "*param_2 = __s2;" (assignment_expression "*param_2 = __s2" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (labeled_statement "LAB_001eba7e:\n  param_2[1] = 0;" statement_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 "*__s2 = L'\0';" (assignment_expression "*__s2 = L'\0'" (pointer_expression "*__s2" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::assign(std::wstring&&) */\n\nwstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1)\n\n{\n  wstring *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wstring *__s2;\n  wstring *__s1;\n  size_t __n;\n  \n  pwVar1 = *(wstring **)param_1;\n  __s2 = param_1 + 8;\n  __s1 = *(wstring **)this;\n  __n = *(size_t *)(param_1 + 4);\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }\n    }\n    *(size_t *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }\n  else {\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    if (__s1 == this + 8) {\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }\n    else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *(wstring **)param_1 = __s2;\n  }\nLAB_001eba7e:\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(wchar_t *)__s2 = L'\0';\n  return this;\n}\n\n" comment comment (ERROR "wstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1)" (binary_expression "wstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1" (binary_expression "wstring * __thiscall std::wstring::assign(wstring *this" (binary_expression "wstring * __thiscall" identifier * identifier) (ERROR "std::wstring::assign(wstring" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",wstring" , identifier) * identifier) )) (compound_statement "{\n  wstring *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wstring *__s2;\n  wstring *__s1;\n  size_t __n;\n  \n  pwVar1 = *(wstring **)param_1;\n  __s2 = param_1 + 8;\n  __s1 = *(wstring **)this;\n  __n = *(size_t *)(param_1 + 4);\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }\n    }\n    *(size_t *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }\n  else {\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    if (__s1 == this + 8) {\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }\n    else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *(wstring **)param_1 = __s2;\n  }\nLAB_001eba7e:\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(wchar_t *)__s2 = L'\0';\n  return this;\n}" { (declaration "wstring *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "wstring *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "wstring *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "pwVar1 = *(wstring **)param_1;" (assignment_expression "pwVar1 = *(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))) ;) (expression_statement "__s2 = param_1 + 8;" (assignment_expression "__s2 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (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 = *(size_t *)(param_1 + 4);" (assignment_expression "__n = *(size_t *)(param_1 + 4)" identifier = (pointer_expression "*(size_t *)(param_1 + 4)" * (cast_expression "(size_t *)(param_1 + 4)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }\n    }\n    *(size_t *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }\n  else {\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    if (__s1 == this + 8) {\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }\n    else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *(wstring **)param_1 = __s2;\n  }" if (parenthesized_expression "(pwVar1 == __s2)" ( (binary_expression "pwVar1 == __s2" identifier == identifier) )) (compound_statement "{\n    if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }\n    }\n    *(size_t *)(this + 4) = __n;\n    *(undefined4 *)(__s1 + __n * 4) = 0;\n  }" { (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\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 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }\n      else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);\n      }" { (expression_statement "*(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8);" (assignment_expression "*(wchar_t *)__s1 = *(wchar_t *)(param_1 + 8)" (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 + 8)" * (cast_expression "(wchar_t *)(param_1 + 8)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }" else (compound_statement "{\n        wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);\n        __n = *(size_t *)(param_1 + 4);\n        __s1 = *(wstring **)this;\n        __s2 = *(wstring **)param_1;\n      }" { (expression_statement "wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n);" (call_expression "wmemcpy((wchar_t *)__s1,(wchar_t *)__s2,__n)" identifier (argument_list "((wchar_t *)__s1,(wchar_t *)__s2,__n)" ( (cast_expression "(wchar_t *)__s1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wchar_t *)__s2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "__n = *(size_t *)(param_1 + 4);" (assignment_expression "__n = *(size_t *)(param_1 + 4)" identifier = (pointer_expression "*(size_t *)(param_1 + 4)" * (cast_expression "(size_t *)(param_1 + 4)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (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 "__s2 = *(wstring **)param_1;" (assignment_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))) ;) }))) })) (expression_statement "*(size_t *)(this + 4) = __n;" (assignment_expression "*(size_t *)(this + 4) = __n" (pointer_expression "*(size_t *)(this + 4)" * (cast_expression "(size_t *)(this + 4)" ( (type_descriptor "size_t *" primitive_type (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) ;) }) (else_clause "else {\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    if (__s1 == this + 8) {\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }\n    else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *(wstring **)param_1 = __s2;\n  }" else (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 8);\n    if (__s1 == this + 8) {\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }\n    else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *(wstring **)param_1 = __s2;\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 8)" identifier = (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) ))))) ;) (if_statement "if (__s1 == this + 8) {\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }\n    else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" if (parenthesized_expression "(__s1 == this + 8)" ( (binary_expression "__s1 == this + 8" identifier == (binary_expression "this + 8" identifier + number_literal)) )) (compound_statement "{\n      *(wstring **)this = pwVar1;\n      *(size_t *)(this + 4) = __n;\n      *(undefined4 *)(this + 8) = uVar2;\n    }" { (expression_statement "*(wstring **)this = pwVar1;" (assignment_expression "*(wstring **)this = pwVar1" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(size_t *)(this + 4) = __n;" (assignment_expression "*(size_t *)(this + 4) = __n" (pointer_expression "*(size_t *)(this + 4)" * (cast_expression "(size_t *)(this + 4)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (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) )))) = identifier) ;) }) (else_clause "else {\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" else (compound_statement "{\n      *(size_t *)(this + 4) = __n;\n      uVar3 = *(undefined4 *)(this + 8);\n      *(wstring **)this = pwVar1;\n      *(undefined4 *)(this + 8) = uVar2;\n      if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" { (expression_statement "*(size_t *)(this + 4) = __n;" (assignment_expression "*(size_t *)(this + 4) = __n" (pointer_expression "*(size_t *)(this + 4)" * (cast_expression "(size_t *)(this + 4)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)(this + 8);" (assignment_expression "uVar3 = *(undefined4 *)(this + 8)" identifier = (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) ))))) ;) (expression_statement "*(wstring **)this = pwVar1;" (assignment_expression "*(wstring **)this = pwVar1" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (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) )))) = identifier) ;) (if_statement "if (__s1 != (wstring *)0x0) {\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" if (parenthesized_expression "(__s1 != (wstring *)0x0)" ( (binary_expression "__s1 != (wstring *)0x0" identifier != (cast_expression "(wstring *)0x0" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(wstring **)param_1 = __s1;\n        *(undefined4 *)(param_1 + 8) = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" { (expression_statement "*(wstring **)param_1 = __s1;" (assignment_expression "*(wstring **)param_1 = __s1" (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 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar3" (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) )))) = identifier) ;) (expression_statement "__s2 = __s1;" (assignment_expression "__s2 = __s1" identifier = identifier) ;) (goto_statement "goto LAB_001eba7e;" goto statement_identifier ;) })) }))) (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) ;) }))) (labeled_statement "LAB_001eba7e:\n  *(undefined4 *)(param_1 + 4) = 0;" statement_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 "*(wchar_t *)__s2 = L'\0';" (assignment_expression "*(wchar_t *)__s2 = L'\0'" (pointer_expression "*(wchar_t *)__s2" * (cast_expression "(wchar_t *)__s2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (char_literal "L'\0'" L' escape_sequence ')) ;) (return_statement "return this;" return identifier ;) }))
(translation_unit "undefined4 * FUN_001eba30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}\n\n" (function_definition "undefined4 * FUN_001eba30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_001eba30(undefined4 *param_1,undefined4 *param_2)" * (function_declarator "FUN_001eba30(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 *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "wchar_t *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "pwVar1 = (wchar_t *)*param_2;" (assignment_expression "pwVar1 = (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))) ;) (expression_statement "__s2 = param_2 + 2;" (assignment_expression "__s2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (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 (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" if (parenthesized_expression "(pwVar1 == __s2)" ( (binary_expression "pwVar1 == __s2" identifier == identifier) )) (compound_statement "{\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" { (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *__s1 = param_2[2];\n      }" { (expression_statement "*__s1 = param_2[2];" (assignment_expression "*__s1 = param_2[2]" (pointer_expression "*__s1" * identifier) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" else (compound_statement "{\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" { (expression_statement "wmemcpy(__s1,__s2,__n);" (call_expression "wmemcpy(__s1,__s2,__n)" identifier (argument_list "(__s1,__s2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (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 "__s2 = (wchar_t *)*param_2;" (assignment_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))) ;) }))) })) (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 ')) ;) }) (else_clause "else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" else (compound_statement "{\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" { (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (if_statement "if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" if (parenthesized_expression "(__s1 == param_1 + 2)" ( (binary_expression "__s1 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }" { (expression_statement "*param_1 = pwVar1;" (assignment_expression "*param_1 = pwVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" else (compound_statement "{\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" { (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = pwVar1;" (assignment_expression "*param_1 = pwVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" if (parenthesized_expression "(__s1 != (wchar_t *)0x0)" ( (binary_expression "__s1 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" { (expression_statement "*param_2 = __s1;" (assignment_expression "*param_2 = __s1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar3;" (assignment_expression "param_2[2] = uVar3" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s2 = __s1;" (assignment_expression "__s2 = __s1" identifier = identifier) ;) (goto_statement "goto LAB_001eba7e;" goto statement_identifier ;) })) }))) (expression_statement "*param_2 = __s2;" (assignment_expression "*param_2 = __s2" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (labeled_statement "LAB_001eba7e:\n  param_2[1] = 0;" statement_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 "*__s2 = L'\0';" (assignment_expression "*__s2 = L'\0'" (pointer_expression "*__s2" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 IDENT == IDENT) )) (compound_statement { (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) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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 ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal L' escape_sequence ')) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_001eba30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  wchar_t *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_001eba30(undefined4 *param_1,undefined4 *param_2)" (* "*") (function_declarator "FUN_001eba30(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_001eba30") (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 *pwVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  wchar_t *__s2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  pwVar1 = (wchar_t *)*param_2;\n  __s2 = param_2 + 2;\n  __s1 = (wchar_t *)*param_1;\n  __n = param_2[1];\n  if (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }\nLAB_001eba7e:\n  param_2[1] = 0;\n  *__s2 = L'\0';\n  return param_1;\n}" ({ "{") (declaration "wchar_t *pwVar1;" (type_identifier "wchar_t") (pointer_declarator "*pwVar1" (* "*") (identifier "pwVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "wchar_t *__s2;" (type_identifier "wchar_t") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "wchar_t *__s1;" (type_identifier "wchar_t") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "pwVar1 = (wchar_t *)*param_2;" (assignment_expression "pwVar1 = (wchar_t *)*param_2" (identifier "pwVar1") (= "=") (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 "__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 "__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 (pwVar1 == __s2) {\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }\n  else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" (if "if") (parenthesized_expression "(pwVar1 == __s2)" (( "(") (binary_expression "pwVar1 == __s2" (identifier "pwVar1") (== "==") (identifier "__s2")) () ")")) (compound_statement "{\n    if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }\n    param_1[1] = __n;\n    __s1[__n] = L'\0';\n  }" ({ "{") (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\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 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }\n    }" ({ "{") (if_statement "if (__n == 1) {\n        *__s1 = param_2[2];\n      }\n      else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *__s1 = param_2[2];\n      }" ({ "{") (expression_statement "*__s1 = param_2[2];" (assignment_expression "*__s1 = param_2[2]" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" (else "else") (compound_statement "{\n        wmemcpy(__s1,__s2,__n);\n        __n = param_2[1];\n        __s1 = (wchar_t *)*param_1;\n        __s2 = (wchar_t *)*param_2;\n      }" ({ "{") (expression_statement "wmemcpy(__s1,__s2,__n);" (call_expression "wmemcpy(__s1,__s2,__n)" (identifier "wmemcpy") (argument_list "(__s1,__s2,__n)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") (, ",") (identifier "__n") () ")"))) (; ";")) (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") (] "]"))) (; ";")) (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 "__s2 = (wchar_t *)*param_2;" (assignment_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")))) (; ";")) (} "}")))) (} "}"))) (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") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" (else "else") (compound_statement "{\n    uVar2 = param_2[2];\n    if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }\n    *param_2 = __s2;\n  }" ({ "{") (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" (identifier "uVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (__s1 == param_1 + 2) {\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }\n    else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" (if "if") (parenthesized_expression "(__s1 == param_1 + 2)" (( "(") (binary_expression "__s1 == param_1 + 2" (identifier "__s1") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n      *param_1 = pwVar1;\n      param_1[1] = __n;\n      param_1[2] = uVar2;\n    }" ({ "{") (expression_statement "*param_1 = pwVar1;" (assignment_expression "*param_1 = pwVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pwVar1")) (; ";")) (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 "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" (else "else") (compound_statement "{\n      param_1[1] = __n;\n      uVar3 = param_1[2];\n      *param_1 = pwVar1;\n      param_1[2] = uVar2;\n      if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }\n    }" ({ "{") (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 "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" (identifier "uVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*param_1 = pwVar1;" (assignment_expression "*param_1 = pwVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pwVar1")) (; ";")) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (__s1 != (wchar_t *)0x0) {\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" (if "if") (parenthesized_expression "(__s1 != (wchar_t *)0x0)" (( "(") (binary_expression "__s1 != (wchar_t *)0x0" (identifier "__s1") (!= "!=") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_2 = __s1;\n        param_2[2] = uVar3;\n        __s2 = __s1;\n        goto LAB_001eba7e;\n      }" ({ "{") (expression_statement "*param_2 = __s1;" (assignment_expression "*param_2 = __s1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "__s1")) (; ";")) (expression_statement "param_2[2] = uVar3;" (assignment_expression "param_2[2] = uVar3" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "__s2 = __s1;" (assignment_expression "__s2 = __s1" (identifier "__s2") (= "=") (identifier "__s1")) (; ";")) (goto_statement "goto LAB_001eba7e;" (goto "goto") (statement_identifier "LAB_001eba7e") (; ";")) (} "}"))) (} "}")))) (expression_statement "*param_2 = __s2;" (assignment_expression "*param_2 = __s2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "__s2")) (; ";")) (} "}")))) (labeled_statement "LAB_001eba7e:\n  param_2[1] = 0;" (statement_identifier "LAB_001eba7e") (: ":") (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 "*__s2 = L'\0';" (assignment_expression "*__s2 = L'\0'" (pointer_expression "*__s2" (* "*") (identifier "__s2")) (= "=") (char_literal "L'\0'" (L' "L'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

type_1 * __thiscall std::type_1::assign(type_1 *var_6,type_1 *var_1)

{
  type_1 *var_2;
  type_2 uVar2;
  type_2 uVar3;
  type_1 *var_3;
  type_1 *var_7;
  size_t var_4;
  
  var_2 = *(type_1 **)var_1;
  var_3 = var_1 + 8;
  var_7 = *(type_1 **)var_6;
  var_4 = *(size_t *)(var_1 + 4);
  if (var_2 == var_3) {
    if (var_4 != 0) {
      if (var_4 == 1) {
        *(type_3 *)var_7 = *(type_3 *)(var_1 + 8);
      }
      else {
        var_5((type_3 *)var_7,(type_3 *)var_3,var_4);
        var_4 = *(size_t *)(var_1 + 4);
        var_7 = *(type_1 **)var_6;
        var_3 = *(type_1 **)var_1;
      }
    }
    *(size_t *)(var_6 + 4) = var_4;
    *(type_2 *)(var_7 + var_4 * 4) = 0;
  }
  else {
    uVar2 = *(type_2 *)(var_1 + 8);
    if (var_7 == var_6 + 8) {
      *(type_1 **)var_6 = var_2;
      *(size_t *)(var_6 + 4) = var_4;
      *(type_2 *)(var_6 + 8) = uVar2;
    }
    else {
      *(size_t *)(var_6 + 4) = var_4;
      uVar3 = *(type_2 *)(var_6 + 8);
      *(type_1 **)var_6 = var_2;
      *(type_2 *)(var_6 + 8) = uVar2;
      if (var_7 != (type_1 *)0x0) {
        *(type_1 **)var_1 = var_7;
        *(type_2 *)(var_1 + 8) = uVar3;
        var_3 = var_7;
        goto LAB_001eba7e;
      }
    }
    *(type_1 **)var_1 = var_3;
  }
LAB_001eba7e:
  *(type_2 *)(var_1 + 4) = 0;
  *(type_3 *)var_3 = L'\0';
  return var_6;
}


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

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

undefined4 * MASKED(undefined4 *param_1,undefined4 *param_2)

{
  wchar_t *pwVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  wchar_t *__s2;
  wchar_t *__s1;
  size_t __n;
  
  pwVar1 = (wchar_t *)*param_2;
  __s2 = param_2 + 2;
  __s1 = (wchar_t *)*param_1;
  __n = param_2[1];
  if (pwVar1 == __s2) {
    if (__n != 0) {
      if (__n == 1) {
        *__s1 = param_2[2];
      }
      else {
        wmemcpy(__s1,__s2,__n);
        __n = param_2[1];
        __s1 = (wchar_t *)*param_1;
        __s2 = (wchar_t *)*param_2;
      }
    }
    param_1[1] = __n;
    __s1[__n] = L'\0';
  }
  else {
    uVar2 = param_2[2];
    if (__s1 == param_1 + 2) {
      *param_1 = pwVar1;
      param_1[1] = __n;
      param_1[2] = uVar2;
    }
    else {
      param_1[1] = __n;
      uVar3 = param_1[2];
      *param_1 = pwVar1;
      param_1[2] = uVar2;
      if (__s1 != (wchar_t *)0x0) {
        *param_2 = __s1;
        param_2[2] = uVar3;
        __s2 = __s1;
        goto LAB_001eba7e;
      }
    }
    *param_2 = __s2;
  }
LAB_001eba7e:
  param_2[1] = 0;
  *__s2 = L'\0';
  return param_1;
}

