
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::insert(__normal_iterator<char const*, std::string >, unsigned int, char) */

int * std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)

{
  int iVar1;
  
  iVar1 = *(int *)param_2;
  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);
  *param_1 = (param_3 - iVar1) + *(int *)param_2;
  return param_1;
}



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

int * FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)

{
  int iVar1;
  
  iVar1 = *param_2;
  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);
  *param_1 = (param_3 - iVar1) + *param_2;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x189f97
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x30]
MOVSX EAX,byte ptr [ESP + 0x3c]
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x2c]
SUB ESI,dword ptr [EBP]
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
PUSH 0x0
PUSH ESI
PUSH EBP
CALL 0x001b4cf0
ADD ESI,dword ptr [EBP]
MOV EAX,EDI
MOV dword ptr [EDI],ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" * (function_declarator "FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);" (call_expression "FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5)" identifier (argument_list "(param_2,param_3 - iVar1,0,param_4,(int)param_5)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , identifier , (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "*param_1 = (param_3 - iVar1) + *param_2;" (assignment_expression "*param_1 = (param_3 - iVar1) + *param_2" (pointer_expression "*param_1" * identifier) = (binary_expression "(param_3 - iVar1) + *param_2" (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )) + (pointer_expression "*param_2" * identifier))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::insert(__normal_iterator<char const*, std::string >, unsigned int, char) */\n\nint * std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = (param_3 - iVar1) + *(int *)param_2;\n  return param_1;\n}\n\n" comment comment (function_definition "int * std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = (param_3 - iVar1) + *(int *)param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" identifier (parameter_list "(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = (param_3 - iVar1) + *(int *)param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (call_expression "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5)" identifier (argument_list "(param_2,param_3 - iVar1,0,param_4,param_5)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , identifier , identifier ))) ;) (expression_statement "*param_1 = (param_3 - iVar1) + *(int *)param_2;" (assignment_expression "*param_1 = (param_3 - iVar1) + *(int *)param_2" (pointer_expression "*param_1" * identifier) = (binary_expression "(param_3 - iVar1) + *(int *)param_2" (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )) + (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}\n\n" (function_definition "int * FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" * (function_declarator "FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);" (call_expression "FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5)" identifier (argument_list "(param_2,param_3 - iVar1,0,param_4,(int)param_5)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , identifier , (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "*param_1 = (param_3 - iVar1) + *param_2;" (assignment_expression "*param_1 = (param_3 - iVar1) + *param_2" (pointer_expression "*param_1" * identifier) = (binary_expression "(param_3 - iVar1) + *param_2" (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )) + (pointer_expression "*param_2" * identifier))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , LIT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + (pointer_expression * IDENT))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" (* "*") (function_declarator "FUN_001b5060(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" (identifier "FUN_001b5060") (parameter_list "(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) () ")")))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);\n  *param_1 = (param_3 - iVar1) + *param_2;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);" (call_expression "FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5)" (identifier "FUN_001b4cf0") (argument_list "(param_2,param_3 - iVar1,0,param_4,(int)param_5)" (( "(") (identifier "param_2") (, ",") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) (, ",") (number_literal "0") (, ",") (identifier "param_4") (, ",") (cast_expression "(int)param_5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_5")) () ")"))) (; ";")) (expression_statement "*param_1 = (param_3 - iVar1) + *param_2;" (assignment_expression "*param_1 = (param_3 - iVar1) + *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "(param_3 - iVar1) + *param_2" (parenthesized_expression "(param_3 - iVar1)" (( "(") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) () ")")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::insert(__normal_iterator<char const*, std::string >, unsigned int, char) */

int * std::type_1::function_1(int *param_1,type_1 *param_2,int var_2,type_2 param_4,char param_5)

{
  int var_3;
  
  var_3 = *(int *)param_2;
  var_1(param_2,var_2 - var_3,0,param_4,param_5);
  *param_1 = (var_2 - var_3) + *(int *)param_2;
  return param_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (pointer_expression argument: (identifier))))) (return_statement (identifier)))))

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

int * MASKED(int *param_1,int *param_2,int param_3,undefined4 param_4,char param_5)

{
  int iVar1;
  
  iVar1 = *param_2;
  FUN_001b4cf0(param_2,param_3 - iVar1,0,param_4,(int)param_5);
  *param_1 = (param_3 - iVar1) + *param_2;
  return param_1;
}

