
/* std::wstring::push_back(wchar_t) */

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

{
  ulong uVar1;
  wstring *pwVar2;
  ulong uVar3;
  
  uVar1 = *(ulong *)(this + 8);
  pwVar2 = *(wstring **)this;
  if (pwVar2 == this + 0x10) {
    uVar3 = 3;
  }
  else {
    uVar3 = *(ulong *)(this + 0x10);
  }
  if (uVar3 < uVar1 + 1) {
    _M_mutate(this,uVar1,0,(wchar_t *)0x0,1);
    pwVar2 = *(wstring **)this;
  }
  *(wchar_t *)(pwVar2 + uVar1 * 4) = param_1;
  *(ulong *)(this + 8) = uVar1 + 1;
  *(undefined4 *)(pwVar2 + uVar1 * 4 + 4) = 0;
  return;
}



void FUN_002df210(long *param_1,undefined4 param_2)

{
  long lVar1;
  long *plVar2;
  ulong uVar3;
  
  lVar1 = param_1[1];
  plVar2 = (long *)*param_1;
  if (plVar2 == param_1 + 2) {
    uVar3 = 3;
  }
  else {
    uVar3 = param_1[2];
  }
  if (uVar3 < lVar1 + 1U) {
    FUN_002dea60(param_1,lVar1,0,0,1);
    plVar2 = (long *)*param_1;
  }
  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;
  param_1[1] = lVar1 + 1U;
  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;
  return;
}


PUSH R13
LEA RDX,[RDI + 0x10]
MOV R13D,ESI
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RBP,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RDI]
LEA R12,[RBP + 0x1]
CMP RAX,RDX
JZ 0x002df280
MOV RDX,qword ptr [RDI + 0x10]
CMP R12,RDX
JA 0x002df260
MOV dword ptr [RAX + RBP*0x4],R13D
MOV qword ptr [RBX + 0x8],R12
MOV dword ptr [RAX + RBP*0x4 + 0x4],0x0
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV R8D,0x1
XOR ECX,ECX
XOR EDX,EDX
MOV RSI,RBP
MOV RDI,RBX
CALL 0x002dea60
MOV RAX,qword ptr [RBX]
JMP 0x002df23d
MOV EDX,0x3
JMP 0x002df238
(translation_unit "void FUN_002df210(long *param_1,undefined4 param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002df210(long *param_1,undefined4 param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002df210(long *param_1,undefined4 param_2)" identifier (parameter_list "(long *param_1,undefined4 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "plVar2 = (long *)*param_1;" (assignment_expression "plVar2 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }" if (parenthesized_expression "(plVar2 == param_1 + 2)" ( (binary_expression "plVar2 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    uVar3 = 3;\n  }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = param_1[2];\n  }" else (compound_statement "{\n    uVar3 = param_1[2];\n  }" { (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }" if (parenthesized_expression "(uVar3 < lVar1 + 1U)" ( (binary_expression "uVar3 < lVar1 + 1U" identifier < (binary_expression "lVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }" { (expression_statement "FUN_002dea60(param_1,lVar1,0,0,1);" (call_expression "FUN_002dea60(param_1,lVar1,0,0,1)" identifier (argument_list "(param_1,lVar1,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "plVar2 = (long *)*param_1;" (assignment_expression "plVar2 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)((long)plVar2 + lVar1 * 4)" * (cast_expression "(undefined4 *)((long)plVar2 + lVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + lVar1 * 4)" ( (binary_expression "(long)plVar2 + lVar1 * 4" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "param_1[1] = lVar1 + 1U;" (assignment_expression "param_1[1] = lVar1 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar1 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4)" * (cast_expression "(undefined4 *)((long)plVar2 + 4 + lVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 4 + lVar1 * 4)" ( (binary_expression "(long)plVar2 + 4 + lVar1 * 4" (binary_expression "(long)plVar2 + 4" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) + (binary_expression "lVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::push_back(wchar_t) */\n\nvoid __thiscall std::wstring::push_back(wstring *this,wchar_t param_1)\n\n{\n  ulong uVar1;\n  wstring *pwVar2;\n  ulong uVar3;\n  \n  uVar1 = *(ulong *)(this + 8);\n  pwVar2 = *(wstring **)this;\n  if (pwVar2 == this + 0x10) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = *(ulong *)(this + 0x10);\n  }\n  if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(wchar_t *)0x0,1);\n    pwVar2 = *(wstring **)this;\n  }\n  *(wchar_t *)(pwVar2 + uVar1 * 4) = param_1;\n  *(ulong *)(this + 8) = uVar1 + 1;\n  *(undefined4 *)(pwVar2 + uVar1 * 4 + 4) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::push_back(wstring *this,wchar_t param_1)\n\n{\n  ulong uVar1;\n  wstring *pwVar2;\n  ulong uVar3;\n  \n  uVar1 = *(ulong *)(this + 8);\n  pwVar2 = *(wstring **)this;\n  if (pwVar2 == this + 0x10) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = *(ulong *)(this + 0x10);\n  }\n  if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(wchar_t *)0x0,1);\n    pwVar2 = *(wstring **)this;\n  }\n  *(wchar_t *)(pwVar2 + uVar1 * 4) = param_1;\n  *(ulong *)(this + 8) = uVar1 + 1;\n  *(undefined4 *)(pwVar2 + uVar1 * 4 + 4) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "push_back(wstring *this,wchar_t param_1)" identifier (parameter_list "(wstring *this,wchar_t param_1)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t param_1" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  wstring *pwVar2;\n  ulong uVar3;\n  \n  uVar1 = *(ulong *)(this + 8);\n  pwVar2 = *(wstring **)this;\n  if (pwVar2 == this + 0x10) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = *(ulong *)(this + 0x10);\n  }\n  if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(wchar_t *)0x0,1);\n    pwVar2 = *(wstring **)this;\n  }\n  *(wchar_t *)(pwVar2 + uVar1 * 4) = param_1;\n  *(ulong *)(this + 8) = uVar1 + 1;\n  *(undefined4 *)(pwVar2 + uVar1 * 4 + 4) = 0;\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "wstring *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(ulong *)(this + 8);" (assignment_expression "uVar1 = *(ulong *)(this + 8)" identifier = (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "pwVar2 = *(wstring **)this;" (assignment_expression "pwVar2 = *(wstring **)this" identifier = (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (pwVar2 == this + 0x10) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = *(ulong *)(this + 0x10);\n  }" if (parenthesized_expression "(pwVar2 == this + 0x10)" ( (binary_expression "pwVar2 == this + 0x10" identifier == (binary_expression "this + 0x10" identifier + number_literal)) )) (compound_statement "{\n    uVar3 = 3;\n  }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *(ulong *)(this + 0x10);\n  }" else (compound_statement "{\n    uVar3 = *(ulong *)(this + 0x10);\n  }" { (expression_statement "uVar3 = *(ulong *)(this + 0x10);" (assignment_expression "uVar3 = *(ulong *)(this + 0x10)" identifier = (pointer_expression "*(ulong *)(this + 0x10)" * (cast_expression "(ulong *)(this + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(wchar_t *)0x0,1);\n    pwVar2 = *(wstring **)this;\n  }" if (parenthesized_expression "(uVar3 < uVar1 + 1)" ( (binary_expression "uVar3 < uVar1 + 1" identifier < (binary_expression "uVar1 + 1" identifier + number_literal)) )) (compound_statement "{\n    _M_mutate(this,uVar1,0,(wchar_t *)0x0,1);\n    pwVar2 = *(wstring **)this;\n  }" { (expression_statement "_M_mutate(this,uVar1,0,(wchar_t *)0x0,1);" (call_expression "_M_mutate(this,uVar1,0,(wchar_t *)0x0,1)" identifier (argument_list "(this,uVar1,0,(wchar_t *)0x0,1)" ( identifier , identifier , number_literal , (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;) (expression_statement "pwVar2 = *(wstring **)this;" (assignment_expression "pwVar2 = *(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 "*(wchar_t *)(pwVar2 + uVar1 * 4) = param_1;" (assignment_expression "*(wchar_t *)(pwVar2 + uVar1 * 4) = param_1" (pointer_expression "*(wchar_t *)(pwVar2 + uVar1 * 4)" * (cast_expression "(wchar_t *)(pwVar2 + uVar1 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar2 + uVar1 * 4)" ( (binary_expression "pwVar2 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(ulong *)(this + 8) = uVar1 + 1;" (assignment_expression "*(ulong *)(this + 8) = uVar1 + 1" (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(pwVar2 + uVar1 * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)(pwVar2 + uVar1 * 4 + 4) = 0" (pointer_expression "*(undefined4 *)(pwVar2 + uVar1 * 4 + 4)" * (cast_expression "(undefined4 *)(pwVar2 + uVar1 * 4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar2 + uVar1 * 4 + 4)" ( (binary_expression "pwVar2 + uVar1 * 4 + 4" (binary_expression "pwVar2 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002df210(long *param_1,undefined4 param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002df210(long *param_1,undefined4 param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002df210(long *param_1,undefined4 param_2)" identifier (parameter_list "(long *param_1,undefined4 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "plVar2 = (long *)*param_1;" (assignment_expression "plVar2 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }" if (parenthesized_expression "(plVar2 == param_1 + 2)" ( (binary_expression "plVar2 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    uVar3 = 3;\n  }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = param_1[2];\n  }" else (compound_statement "{\n    uVar3 = param_1[2];\n  }" { (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }" if (parenthesized_expression "(uVar3 < lVar1 + 1U)" ( (binary_expression "uVar3 < lVar1 + 1U" identifier < (binary_expression "lVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }" { (expression_statement "FUN_002dea60(param_1,lVar1,0,0,1);" (call_expression "FUN_002dea60(param_1,lVar1,0,0,1)" identifier (argument_list "(param_1,lVar1,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "plVar2 = (long *)*param_1;" (assignment_expression "plVar2 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)((long)plVar2 + lVar1 * 4)" * (cast_expression "(undefined4 *)((long)plVar2 + lVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + lVar1 * 4)" ( (binary_expression "(long)plVar2 + lVar1 * 4" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "param_1[1] = lVar1 + 1U;" (assignment_expression "param_1[1] = lVar1 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar1 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4)" * (cast_expression "(undefined4 *)((long)plVar2 + 4 + lVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 4 + lVar1 * 4)" ( (binary_expression "(long)plVar2 + 4 + lVar1 * 4" (binary_expression "(long)plVar2 + 4" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) + (binary_expression "lVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (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 < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_002df210(long *param_1,undefined4 param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002df210(long *param_1,undefined4 param_2)" (identifier "FUN_002df210") (parameter_list "(long *param_1,undefined4 param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  ulong uVar3;\n  \n  lVar1 = param_1[1];\n  plVar2 = (long *)*param_1;\n  if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }\n  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;\n  param_1[1] = lVar1 + 1U;\n  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" (identifier "lVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar2 = (long *)*param_1;" (assignment_expression "plVar2 = (long *)*param_1" (identifier "plVar2") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (plVar2 == param_1 + 2) {\n    uVar3 = 3;\n  }\n  else {\n    uVar3 = param_1[2];\n  }" (if "if") (parenthesized_expression "(plVar2 == param_1 + 2)" (( "(") (binary_expression "plVar2 == param_1 + 2" (identifier "plVar2") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    uVar3 = 3;\n  }" ({ "{") (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" (identifier "uVar3") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = param_1[2];\n  }" (else "else") (compound_statement "{\n    uVar3 = param_1[2];\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") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar3 < lVar1 + 1U) {\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }" (if "if") (parenthesized_expression "(uVar3 < lVar1 + 1U)" (( "(") (binary_expression "uVar3 < lVar1 + 1U" (identifier "uVar3") (< "<") (binary_expression "lVar1 + 1U" (identifier "lVar1") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n    FUN_002dea60(param_1,lVar1,0,0,1);\n    plVar2 = (long *)*param_1;\n  }" ({ "{") (expression_statement "FUN_002dea60(param_1,lVar1,0,0,1);" (call_expression "FUN_002dea60(param_1,lVar1,0,0,1)" (identifier "FUN_002dea60") (argument_list "(param_1,lVar1,0,0,1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "plVar2 = (long *)*param_1;" (assignment_expression "plVar2 = (long *)*param_1" (identifier "plVar2") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)((long)plVar2 + lVar1 * 4)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + lVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + lVar1 * 4)" (( "(") (binary_expression "(long)plVar2 + lVar1 * 4" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (binary_expression "lVar1 * 4" (identifier "lVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[1] = lVar1 + 1U;" (assignment_expression "param_1[1] = lVar1 + 1U" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "lVar1 + 1U" (identifier "lVar1") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 4 + lVar1 * 4)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + 4 + lVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 4 + lVar1 * 4)" (( "(") (binary_expression "(long)plVar2 + 4 + lVar1 * 4" (binary_expression "(long)plVar2 + 4" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "4")) (+ "+") (binary_expression "lVar1 * 4" (identifier "lVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::push_back(wchar_t) */

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

{
  type_3 var_4;
  type_1 *var_2;
  type_3 var_3;
  
  var_4 = *(type_3 *)(var_1 + 8);
  var_2 = *(type_1 **)var_1;
  if (var_2 == var_1 + 0x10) {
    var_3 = 3;
  }
  else {
    var_3 = *(type_3 *)(var_1 + 0x10);
  }
  if (var_3 < var_4 + 1) {
    var_5(var_1,var_4,0,(type_2 *)0x0,1);
    var_2 = *(type_1 **)var_1;
  }
  *(type_2 *)(var_2 + var_4 * 4) = param_1;
  *(type_3 *)(var_1 + 8) = var_4 + 1;
  *(type_4 *)(var_2 + var_4 * 4 + 4) = 0;
  return;
}


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

void MASKED(long *param_1,undefined4 param_2)

{
  long lVar1;
  long *plVar2;
  ulong uVar3;
  
  lVar1 = param_1[1];
  plVar2 = (long *)*param_1;
  if (plVar2 == param_1 + 2) {
    uVar3 = 3;
  }
  else {
    uVar3 = param_1[2];
  }
  if (uVar3 < lVar1 + 1U) {
    FUN_002dea60(param_1,lVar1,0,0,1);
    plVar2 = (long *)*param_1;
  }
  *(undefined4 *)((long)plVar2 + lVar1 * 4) = param_2;
  param_1[1] = lVar1 + 1U;
  *(undefined4 *)((long)plVar2 + 4 + lVar1 * 4) = 0;
  return;
}

