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

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

{
  uint __n;
  string *__dest;
  uint uVar1;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1ee9c9;
  if (this != param_1) {
    __dest = *(string **)this;
    __n = *(uint *)(param_1 + 4);
    if (this + 8 == __dest) {
      uVar1 = 0xf;
    }
    else {
      uVar1 = *(uint *)(this + 8);
    }
    if (uVar1 < __n) {
      local_20[0] = __n;
      __dest = (string *)_M_create(this,local_20,uVar1);
      if (this + 8 != *(string **)this) {
        operator_delete(*(string **)this);
      }
      *(string **)this = __dest;
      *(uint *)(this + 8) = local_20[0];
    }
    if (__n != 0) {
      if (__n == 1) {
        *__dest = **(string **)param_1;
        __dest = *(string **)this;
      }
      else {
        memcpy(__dest,*(string **)param_1,__n);
        __dest = *(string **)this;
      }
    }
    *(uint *)(this + 4) = __n;
    __dest[__n] = (string)0x0;
  }
  return;
}



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

void FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)

{
  uint __n;
  undefined4 *__dest;
  uint uVar1;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1ee9c9;
  if (param_1 != param_2) {
    __dest = (undefined4 *)*param_1;
    __n = param_2[1];
    if (param_1 + 2 == __dest) {
      uVar1 = 0xf;
    }
    else {
      uVar1 = param_1[2];
    }
    if (uVar1 < __n) {
      local_20[0] = __n;
      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);
      if (param_1 + 2 != (undefined4 *)*param_1) {
        FUN_001e6db0((undefined4 *)*param_1);
      }
      *param_1 = __dest;
      param_1[2] = local_20[0];
    }
    if (__n != 0) {
      if (__n == 1) {
        *(undefined1 *)__dest = *(undefined1 *)*param_2;
        __dest = (undefined4 *)*param_1;
      }
      else {
        memcpy(__dest,(undefined1 *)*param_2,__n);
        __dest = (undefined4 *)*param_1;
      }
    }
    param_1[1] = __n;
    *(undefined1 *)((int)__dest + __n) = 0;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1a0637
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x44]
CMP ESI,EDX
JZ 0x001eea1c
MOV EBP,dword ptr [ESI]
LEA ECX,[ESI + 0x8]
MOV EDI,dword ptr [EDX + 0x4]
CMP ECX,EBP
JZ 0x001eea78
MOV EAX,dword ptr [ESI + 0x8]
CMP EAX,EDI
JC 0x001eea28
TEST EDI,EDI
JZ 0x001eea14
MOV EAX,dword ptr [EDX]
CMP EDI,0x1
JZ 0x001eea88
SUB ESP,0x4
PUSH EDI
PUSH EAX
PUSH EBP
CALL 0x000295c0
MOV EBP,dword ptr [ESI]
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EDI
MOV byte ptr [EBP + EDI*0x1],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 0x001ee4c0
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 0x001eea66
SUB ESP,0xc
PUSH EAX
CALL 0x001e6db0
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 0x001eea14
JMP 0x001ee9f9
MOV EAX,0xf
JMP 0x001ee9f1
MOVZX EAX,byte ptr [EAX]
MOV byte ptr [EBP],AL
MOV EBP,dword ptr [ESI]
JMP 0x001eea14
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001ee9c0(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  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "undefined4 *__dest;" type_identifier (pointer_declarator "*__dest" * 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 = 0x1ee9c9;" (assignment_expression "uStack_14 = 0x1ee9c9" identifier = number_literal) ;) (if_statement "if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }" { (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" 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 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }" if (parenthesized_expression "(param_1 + 2 == __dest)" ( (binary_expression "param_1 + 2 == __dest" (binary_expression "param_1 + 2" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar1 = 0xf;\n    }" { (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" 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      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\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      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\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 "__dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);" (assignment_expression "__dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1)" identifier = (cast_expression "(undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ee4c0(param_1,local_20,uVar1)" identifier (argument_list "(param_1,local_20,uVar1)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }" if (parenthesized_expression "(param_1 + 2 != (undefined4 *)*param_1)" ( (binary_expression "param_1 + 2 != (undefined4 *)*param_1" (binary_expression "param_1 + 2" identifier + number_literal) != (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n        FUN_001e6db0((undefined4 *)*param_1);\n      }" { (expression_statement "FUN_001e6db0((undefined4 *)*param_1);" (call_expression "FUN_001e6db0((undefined4 *)*param_1)" identifier (argument_list "((undefined4 *)*param_1)" ( (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = 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        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }" { (expression_statement "*(undefined1 *)__dest = *(undefined1 *)*param_2;" (assignment_expression "*(undefined1 *)__dest = *(undefined1 *)*param_2" (pointer_expression "*(undefined1 *)__dest" * (cast_expression "(undefined1 *)__dest" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined1 *)*param_2" * (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) ;) (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" else (compound_statement "{\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" { (expression_statement "memcpy(__dest,(undefined1 *)*param_2,__n);" (call_expression "memcpy(__dest,(undefined1 *)*param_2,__n)" identifier (argument_list "(__dest,(undefined1 *)*param_2,__n)" ( identifier , (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , identifier ))) ;) (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" 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 "*(undefined1 *)((int)__dest + __n) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + __n) = 0" (pointer_expression "*(undefined1 *)((int)__dest + __n)" * (cast_expression "(undefined1 *)((int)__dest + __n)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + __n)" ( (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::_M_assign(std::string const&) */\n\nvoid __thiscall std::string::_M_assign(string *this,string *param_1)\n\n{\n  uint __n;\n  string *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (this != param_1) {\n    __dest = *(string **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    __dest[__n] = (string)0x0;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::string::_M_assign(string *this,string *param_1)\n\n{\n  uint __n;\n  string *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (this != param_1) {\n    __dest = *(string **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    __dest[__n] = (string)0x0;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_assign(string *this,string *param_1)" identifier (parameter_list "(string *this,string *param_1)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint __n;\n  string *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (this != param_1) {\n    __dest = *(string **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    __dest[__n] = (string)0x0;\n  }\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "string *__dest;" type_identifier (pointer_declarator "*__dest" * 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 = 0x1ee9c9;" (assignment_expression "uStack_14 = 0x1ee9c9" identifier = number_literal) ;) (if_statement "if (this != param_1) {\n    __dest = *(string **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    __dest[__n] = (string)0x0;\n  }" if (parenthesized_expression "(this != param_1)" ( (binary_expression "this != param_1" identifier != identifier) )) (compound_statement "{\n    __dest = *(string **)this;\n    __n = *(uint *)(param_1 + 4);\n    if (this + 8 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\n      *(uint *)(this + 8) = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }\n    *(uint *)(this + 4) = __n;\n    __dest[__n] = (string)0x0;\n  }" { (expression_statement "__dest = *(string **)this;" (assignment_expression "__dest = *(string **)this" identifier = (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" 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 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = *(uint *)(this + 8);\n    }" if (parenthesized_expression "(this + 8 == __dest)" ( (binary_expression "this + 8 == __dest" (binary_expression "this + 8" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar1 = 0xf;\n    }" { (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" 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      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\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      __dest = (string *)_M_create(this,local_20,uVar1);\n      if (this + 8 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }\n      *(string **)this = __dest;\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 "__dest = (string *)_M_create(this,local_20,uVar1);" (assignment_expression "__dest = (string *)_M_create(this,local_20,uVar1)" identifier = (cast_expression "(string *)_M_create(this,local_20,uVar1)" ( (type_descriptor "string *" 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 != *(string **)this) {\n        operator_delete(*(string **)this);\n      }" if (parenthesized_expression "(this + 8 != *(string **)this)" ( (binary_expression "this + 8 != *(string **)this" (binary_expression "this + 8" identifier + number_literal) != (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n        operator_delete(*(string **)this);\n      }" { (expression_statement "operator_delete(*(string **)this);" (call_expression "operator_delete(*(string **)this)" identifier (argument_list "(*(string **)this)" ( (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (expression_statement "*(string **)this = __dest;" (assignment_expression "*(string **)this = __dest" (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" 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        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }\n      else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *__dest = **(string **)param_1;\n        __dest = *(string **)this;\n      }" { (expression_statement "*__dest = **(string **)param_1;" (assignment_expression "*__dest = **(string **)param_1" (pointer_expression "*__dest" * identifier) = (pointer_expression "**(string **)param_1" * (pointer_expression "*(string **)param_1" * (cast_expression "(string **)param_1" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) (expression_statement "__dest = *(string **)this;" (assignment_expression "__dest = *(string **)this" identifier = (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }" else (compound_statement "{\n        memcpy(__dest,*(string **)param_1,__n);\n        __dest = *(string **)this;\n      }" { (expression_statement "memcpy(__dest,*(string **)param_1,__n);" (call_expression "memcpy(__dest,*(string **)param_1,__n)" identifier (argument_list "(__dest,*(string **)param_1,__n)" ( identifier , (pointer_expression "*(string **)param_1" * (cast_expression "(string **)param_1" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) (expression_statement "__dest = *(string **)this;" (assignment_expression "__dest = *(string **)this" identifier = (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" 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 "__dest[__n] = (string)0x0;" (assignment_expression "__dest[__n] = (string)0x0" (subscript_expression "__dest[__n]" identifier [ identifier ]) = (cast_expression "(string)0x0" ( (type_descriptor "string" type_identifier) ) number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001ee9c0(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  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "undefined4 *__dest;" type_identifier (pointer_declarator "*__dest" * 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 = 0x1ee9c9;" (assignment_expression "uStack_14 = 0x1ee9c9" identifier = number_literal) ;) (if_statement "if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }" { (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" 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 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }" if (parenthesized_expression "(param_1 + 2 == __dest)" ( (binary_expression "param_1 + 2 == __dest" (binary_expression "param_1 + 2" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar1 = 0xf;\n    }" { (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" 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      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\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      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\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 "__dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);" (assignment_expression "__dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1)" identifier = (cast_expression "(undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ee4c0(param_1,local_20,uVar1)" identifier (argument_list "(param_1,local_20,uVar1)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }" if (parenthesized_expression "(param_1 + 2 != (undefined4 *)*param_1)" ( (binary_expression "param_1 + 2 != (undefined4 *)*param_1" (binary_expression "param_1 + 2" identifier + number_literal) != (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n        FUN_001e6db0((undefined4 *)*param_1);\n      }" { (expression_statement "FUN_001e6db0((undefined4 *)*param_1);" (call_expression "FUN_001e6db0((undefined4 *)*param_1)" identifier (argument_list "((undefined4 *)*param_1)" ( (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = 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        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }" { (expression_statement "*(undefined1 *)__dest = *(undefined1 *)*param_2;" (assignment_expression "*(undefined1 *)__dest = *(undefined1 *)*param_2" (pointer_expression "*(undefined1 *)__dest" * (cast_expression "(undefined1 *)__dest" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined1 *)*param_2" * (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) ;) (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" else (compound_statement "{\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" { (expression_statement "memcpy(__dest,(undefined1 *)*param_2,__n);" (call_expression "memcpy(__dest,(undefined1 *)*param_2,__n)" identifier (argument_list "(__dest,(undefined1 *)*param_2,__n)" ( identifier , (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , identifier ))) ;) (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" 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 "*(undefined1 *)((int)__dest + __n) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + __n) = 0" (pointer_expression "*(undefined1 *)((int)__dest + __n)" * (cast_expression "(undefined1 *)((int)__dest + __n)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + __n)" ( (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE 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) = 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (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))) ;) }) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001ee9c0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_001ee9c0") (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  uint __n;\n  undefined4 *__dest;\n  uint uVar1;\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee9c9;\n  if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }\n  return;\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "undefined4 *__dest;" (type_identifier "undefined4") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (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 = 0x1ee9c9;" (assignment_expression "uStack_14 = 0x1ee9c9" (identifier "uStack_14") (= "=") (number_literal "0x1ee9c9")) (; ";")) (if_statement "if (param_1 != param_2) {\n    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 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    __dest = (undefined4 *)*param_1;\n    __n = param_2[1];\n    if (param_1 + 2 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }\n    if (uVar1 < __n) {\n      local_20[0] = __n;\n      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\n      param_1[2] = local_20[0];\n    }\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((int)__dest + __n) = 0;\n  }" ({ "{") (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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 == __dest) {\n      uVar1 = 0xf;\n    }\n    else {\n      uVar1 = param_1[2];\n    }" (if "if") (parenthesized_expression "(param_1 + 2 == __dest)" (( "(") (binary_expression "param_1 + 2 == __dest" (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (== "==") (identifier "__dest")) () ")")) (compound_statement "{\n      uVar1 = 0xf;\n    }" ({ "{") (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" (identifier "uVar1") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (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      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\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      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);\n      if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }\n      *param_1 = __dest;\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 "__dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);" (assignment_expression "__dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1)" (identifier "__dest") (= "=") (cast_expression "(undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001ee4c0(param_1,local_20,uVar1)" (identifier "FUN_001ee4c0") (argument_list "(param_1,local_20,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") (, ",") (identifier "uVar1") () ")"))))) (; ";")) (if_statement "if (param_1 + 2 != (undefined4 *)*param_1) {\n        FUN_001e6db0((undefined4 *)*param_1);\n      }" (if "if") (parenthesized_expression "(param_1 + 2 != (undefined4 *)*param_1)" (( "(") (binary_expression "param_1 + 2 != (undefined4 *)*param_1" (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (!= "!=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (compound_statement "{\n        FUN_001e6db0((undefined4 *)*param_1);\n      }" ({ "{") (expression_statement "FUN_001e6db0((undefined4 *)*param_1);" (call_expression "FUN_001e6db0((undefined4 *)*param_1)" (identifier "FUN_001e6db0") (argument_list "((undefined4 *)*param_1)" (( "(") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__dest")) (; ";")) (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        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*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        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }\n    }" ({ "{") (if_statement "if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }\n      else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined1 *)__dest = *(undefined1 *)*param_2;\n        __dest = (undefined4 *)*param_1;\n      }" ({ "{") (expression_statement "*(undefined1 *)__dest = *(undefined1 *)*param_2;" (assignment_expression "*(undefined1 *)__dest = *(undefined1 *)*param_2" (pointer_expression "*(undefined1 *)__dest" (* "*") (cast_expression "(undefined1 *)__dest" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__dest"))) (= "=") (pointer_expression "*(undefined1 *)*param_2" (* "*") (cast_expression "(undefined1 *)*param_2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))))) (; ";")) (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" (else "else") (compound_statement "{\n        memcpy(__dest,(undefined1 *)*param_2,__n);\n        __dest = (undefined4 *)*param_1;\n      }" ({ "{") (expression_statement "memcpy(__dest,(undefined1 *)*param_2,__n);" (call_expression "memcpy(__dest,(undefined1 *)*param_2,__n)" (identifier "memcpy") (argument_list "(__dest,(undefined1 *)*param_2,__n)" (( "(") (identifier "__dest") (, ",") (cast_expression "(undefined1 *)*param_2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "__dest = (undefined4 *)*param_1;" (assignment_expression "__dest = (undefined4 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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 "*(undefined1 *)((int)__dest + __n) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + __n) = 0" (pointer_expression "*(undefined1 *)((int)__dest + __n)" (* "*") (cast_expression "(undefined1 *)((int)__dest + __n)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + __n)" (( "(") (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_assign(std::string 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 = 0x1ee9c9;
  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 = 0xf;
    }
    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) {
        *var_3 = **(type_1 **)var_2;
        var_3 = *(type_1 **)var_1;
      }
      else {
        var_8(var_3,*(type_1 **)var_2,var_5);
        var_3 = *(type_1 **)var_1;
      }
    }
    *(type_2 *)(var_1 + 4) = var_5;
    var_3[var_5] = (type_1)0x0;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (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: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (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)))))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal))))) (return_statement))))

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

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  uint __n;
  undefined4 *__dest;
  uint uVar1;
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1ee9c9;
  if (param_1 != param_2) {
    __dest = (undefined4 *)*param_1;
    __n = param_2[1];
    if (param_1 + 2 == __dest) {
      uVar1 = 0xf;
    }
    else {
      uVar1 = param_1[2];
    }
    if (uVar1 < __n) {
      local_20[0] = __n;
      __dest = (undefined4 *)FUN_001ee4c0(param_1,local_20,uVar1);
      if (param_1 + 2 != (undefined4 *)*param_1) {
        FUN_001e6db0((undefined4 *)*param_1);
      }
      *param_1 = __dest;
      param_1[2] = local_20[0];
    }
    if (__n != 0) {
      if (__n == 1) {
        *(undefined1 *)__dest = *(undefined1 *)*param_2;
        __dest = (undefined4 *)*param_1;
      }
      else {
        memcpy(__dest,(undefined1 *)*param_2,__n);
        __dest = (undefined4 *)*param_1;
      }
    }
    param_1[1] = __n;
    *(undefined1 *)((int)__dest + __n) = 0;
  }
  return;
}

