
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::push_back(char) */

void __thiscall std::string::push_back(string *this,char param_1)

{
  uint uVar1;
  string *psVar2;
  uint uVar3;
  
  uVar1 = *(uint *)(this + 4);
  psVar2 = *(string **)this;
  if (psVar2 == this + 8) {
    uVar3 = 0xf;
  }
  else {
    uVar3 = *(uint *)(this + 8);
  }
  if (uVar3 < uVar1 + 1) {
    _M_mutate(this,uVar1,0,(char *)0x0,1);
    psVar2 = *(string **)this;
  }
  psVar2[uVar1] = (string)param_1;
  *(uint *)(this + 4) = uVar1 + 1;
  *(undefined1 *)(*(int *)this + 1 + uVar1) = 0;
  return;
}



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

void FUN_001b4a20(int *param_1,undefined1 param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  
  iVar1 = param_1[1];
  piVar2 = (int *)*param_1;
  if (piVar2 == param_1 + 2) {
    uVar3 = 0xf;
  }
  else {
    uVar3 = param_1[2];
  }
  if (uVar3 < iVar1 + 1U) {
    FUN_001b4160(param_1,iVar1,0,0,1);
    piVar2 = (int *)*param_1;
  }
  *(undefined1 *)((int)piVar2 + iVar1) = param_2;
  param_1[1] = iVar1 + 1U;
  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x18a5d7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [ESI]
LEA ECX,[ESI + 0x8]
LEA EBP,[EDI + 0x1]
CMP EAX,ECX
JZ 0x001b4a90
MOV ECX,dword ptr [ESI + 0x8]
CMP EBP,ECX
JA 0x001b4a68
MOV byte ptr [EAX + EDI*0x1],DL
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESI + 0x4],EBP
MOV byte ptr [EAX + EDI*0x1 + 0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH EDI
PUSH ESI
CALL 0x001b4160
ADD ESP,0x20
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x001b4a50
MOV ECX,0xf
JMP 0x001b4a4c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001b4a20(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_001b4a20(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001b4a20(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }" if (parenthesized_expression "(piVar2 == param_1 + 2)" ( (binary_expression "piVar2 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    uVar3 = 0xf;\n  }" { (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" 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 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }" if (parenthesized_expression "(uVar3 < iVar1 + 1U)" ( (binary_expression "uVar3 < iVar1 + 1U" identifier < (binary_expression "iVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }" { (expression_statement "FUN_001b4160(param_1,iVar1,0,0,1);" (call_expression "FUN_001b4160(param_1,iVar1,0,0,1)" identifier (argument_list "(param_1,iVar1,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((int)piVar2 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)((int)piVar2 + iVar1) = param_2" (pointer_expression "*(undefined1 *)((int)piVar2 + iVar1)" * (cast_expression "(undefined1 *)((int)piVar2 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + iVar1)" ( (binary_expression "(int)piVar2 + iVar1" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "param_1[1] = iVar1 + 1U;" (assignment_expression "param_1[1] = iVar1 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + iVar1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + 1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + iVar1)" ( (binary_expression "*param_1 + 1 + iVar1" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + 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::push_back(char) */\n\nvoid __thiscall std::string::push_back(string *this,char param_1)\n\n{\n  uint uVar1;\n  string *psVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(this + 4);\n  psVar2 = *(string **)this;\n  if (psVar2 == this + 8) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = *(uint *)(this + 8);\n  }\n  if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(char *)0x0,1);\n    psVar2 = *(string **)this;\n  }\n  psVar2[uVar1] = (string)param_1;\n  *(uint *)(this + 4) = uVar1 + 1;\n  *(undefined1 *)(*(int *)this + 1 + uVar1) = 0;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::string::push_back(string *this,char param_1)\n\n{\n  uint uVar1;\n  string *psVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(this + 4);\n  psVar2 = *(string **)this;\n  if (psVar2 == this + 8) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = *(uint *)(this + 8);\n  }\n  if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(char *)0x0,1);\n    psVar2 = *(string **)this;\n  }\n  psVar2[uVar1] = (string)param_1;\n  *(uint *)(this + 4) = uVar1 + 1;\n  *(undefined1 *)(*(int *)this + 1 + uVar1) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "push_back(string *this,char param_1)" identifier (parameter_list "(string *this,char param_1)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  string *psVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(this + 4);\n  psVar2 = *(string **)this;\n  if (psVar2 == this + 8) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = *(uint *)(this + 8);\n  }\n  if (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(char *)0x0,1);\n    psVar2 = *(string **)this;\n  }\n  psVar2[uVar1] = (string)param_1;\n  *(uint *)(this + 4) = uVar1 + 1;\n  *(undefined1 *)(*(int *)this + 1 + uVar1) = 0;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "string *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(this + 4);" (assignment_expression "uVar1 = *(uint *)(this + 4)" identifier = (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) ))))) ;) (expression_statement "psVar2 = *(string **)this;" (assignment_expression "psVar2 = *(string **)this" identifier = (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (psVar2 == this + 8) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = *(uint *)(this + 8);\n  }" if (parenthesized_expression "(psVar2 == this + 8)" ( (binary_expression "psVar2 == this + 8" identifier == (binary_expression "this + 8" identifier + number_literal)) )) (compound_statement "{\n    uVar3 = 0xf;\n  }" { (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *(uint *)(this + 8);\n  }" else (compound_statement "{\n    uVar3 = *(uint *)(this + 8);\n  }" { (expression_statement "uVar3 = *(uint *)(this + 8);" (assignment_expression "uVar3 = *(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 (uVar3 < uVar1 + 1) {\n    _M_mutate(this,uVar1,0,(char *)0x0,1);\n    psVar2 = *(string **)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,(char *)0x0,1);\n    psVar2 = *(string **)this;\n  }" { (expression_statement "_M_mutate(this,uVar1,0,(char *)0x0,1);" (call_expression "_M_mutate(this,uVar1,0,(char *)0x0,1)" identifier (argument_list "(this,uVar1,0,(char *)0x0,1)" ( identifier , identifier , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;) (expression_statement "psVar2 = *(string **)this;" (assignment_expression "psVar2 = *(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 "psVar2[uVar1] = (string)param_1;" (assignment_expression "psVar2[uVar1] = (string)param_1" (subscript_expression "psVar2[uVar1]" identifier [ identifier ]) = (cast_expression "(string)param_1" ( (type_descriptor "string" type_identifier) ) identifier)) ;) (expression_statement "*(uint *)(this + 4) = uVar1 + 1;" (assignment_expression "*(uint *)(this + 4) = uVar1 + 1" (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) )))) = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)this + 1 + uVar1) = 0;" (assignment_expression "*(undefined1 *)(*(int *)this + 1 + uVar1) = 0" (pointer_expression "*(undefined1 *)(*(int *)this + 1 + uVar1)" * (cast_expression "(undefined1 *)(*(int *)this + 1 + uVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + 1 + uVar1)" ( (binary_expression "*(int *)this + 1 + uVar1" (binary_expression "*(int *)this + 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001b4a20(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}\n\n" (function_definition "void FUN_001b4a20(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001b4a20(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }" if (parenthesized_expression "(piVar2 == param_1 + 2)" ( (binary_expression "piVar2 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    uVar3 = 0xf;\n  }" { (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" 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 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }" if (parenthesized_expression "(uVar3 < iVar1 + 1U)" ( (binary_expression "uVar3 < iVar1 + 1U" identifier < (binary_expression "iVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }" { (expression_statement "FUN_001b4160(param_1,iVar1,0,0,1);" (call_expression "FUN_001b4160(param_1,iVar1,0,0,1)" identifier (argument_list "(param_1,iVar1,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((int)piVar2 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)((int)piVar2 + iVar1) = param_2" (pointer_expression "*(undefined1 *)((int)piVar2 + iVar1)" * (cast_expression "(undefined1 *)((int)piVar2 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + iVar1)" ( (binary_expression "(int)piVar2 + iVar1" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "param_1[1] = iVar1 + 1U;" (assignment_expression "param_1[1] = iVar1 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + iVar1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + 1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + iVar1)" ( (binary_expression "*param_1 + 1 + iVar1" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + 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 IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 TYPE (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 TYPE) ) IDENT) + IDENT) )))) = 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 (pointer_expression * IDENT) + LIT) + IDENT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001b4a20(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b4a20(int *param_1,undefined1 param_2)" (identifier "FUN_001b4a20") (parameter_list "(int *param_1,undefined1 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[1];\n  piVar2 = (int *)*param_1;\n  if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }\n  if (uVar3 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }\n  *(undefined1 *)((int)piVar2 + iVar1) = param_2;\n  param_1[1] = iVar1 + 1U;\n  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" (identifier "piVar2") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar2 == param_1 + 2) {\n    uVar3 = 0xf;\n  }\n  else {\n    uVar3 = param_1[2];\n  }" (if "if") (parenthesized_expression "(piVar2 == param_1 + 2)" (( "(") (binary_expression "piVar2 == param_1 + 2" (identifier "piVar2") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    uVar3 = 0xf;\n  }" ({ "{") (expression_statement "uVar3 = 0xf;" (assignment_expression "uVar3 = 0xf" (identifier "uVar3") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (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 < iVar1 + 1U) {\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }" (if "if") (parenthesized_expression "(uVar3 < iVar1 + 1U)" (( "(") (binary_expression "uVar3 < iVar1 + 1U" (identifier "uVar3") (< "<") (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n    FUN_001b4160(param_1,iVar1,0,0,1);\n    piVar2 = (int *)*param_1;\n  }" ({ "{") (expression_statement "FUN_001b4160(param_1,iVar1,0,0,1);" (call_expression "FUN_001b4160(param_1,iVar1,0,0,1)" (identifier "FUN_001b4160") (argument_list "(param_1,iVar1,0,0,1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" (identifier "piVar2") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)piVar2 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)((int)piVar2 + iVar1) = param_2" (pointer_expression "*(undefined1 *)((int)piVar2 + iVar1)" (* "*") (cast_expression "(undefined1 *)((int)piVar2 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + iVar1)" (( "(") (binary_expression "(int)piVar2 + iVar1" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[1] = iVar1 + 1U;" (assignment_expression "param_1[1] = iVar1 + 1U" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + 1 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + iVar1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + iVar1)" (* "*") (cast_expression "(undefined1 *)(*param_1 + 1 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 1 + iVar1)" (( "(") (binary_expression "*param_1 + 1 + iVar1" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::push_back(char) */

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

{
  type_2 var_4;
  type_1 *var_2;
  type_2 var_3;
  
  var_4 = *(type_2 *)(var_1 + 4);
  var_2 = *(type_1 **)var_1;
  if (var_2 == var_1 + 8) {
    var_3 = 0xf;
  }
  else {
    var_3 = *(type_2 *)(var_1 + 8);
  }
  if (var_3 < var_4 + 1) {
    var_5(var_1,var_4,0,(char *)0x0,1);
    var_2 = *(type_1 **)var_1;
  }
  var_2[var_4] = (type_1)param_1;
  *(type_2 *)(var_1 + 4) = var_4 + 1;
  *(type_3 *)(*(int *)var_1 + 1 + var_4) = 0;
  return;
}


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

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

void MASKED(int *param_1,undefined1 param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  
  iVar1 = param_1[1];
  piVar2 = (int *)*param_1;
  if (piVar2 == param_1 + 2) {
    uVar3 = 0xf;
  }
  else {
    uVar3 = param_1[2];
  }
  if (uVar3 < iVar1 + 1U) {
    FUN_001b4160(param_1,iVar1,0,0,1);
    piVar2 = (int *)*param_1;
  }
  *(undefined1 *)((int)piVar2 + iVar1) = param_2;
  param_1[1] = iVar1 + 1U;
  *(undefined1 *)(*param_1 + 1 + iVar1) = 0;
  return;
}

