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

int * std::string::erase(int *param_1,string *param_2,int param_3)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)param_2;
  _M_mutate(param_2,param_3 - iVar1,1,0);
  iVar2 = *(int *)param_2;
  *(undefined4 *)(iVar2 + -4) = 0xffffffff;
  *param_1 = iVar2 + (param_3 - iVar1);
  return param_1;
}



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

int * FUN_001b8ac0(int *param_1,int *param_2,int param_3)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_2;
  FUN_001b8580(param_2,param_3 - iVar1,1,0);
  iVar2 = *param_2;
  *(undefined4 *)(iVar2 + -4) = 0xffffffff;
  *param_1 = iVar2 + (param_3 - iVar1);
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x149537
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x20]
SUB EAX,dword ptr [EBP]
PUSH 0x0
PUSH 0x1
MOV EDI,EAX
PUSH EAX
PUSH EBP
CALL 0x001b8580
MOV EAX,dword ptr [EBP]
MOV dword ptr [EAX + -0x4],0xffffffff
ADD EAX,EDI
MOV dword ptr [ESI],EAX
ADD ESP,0x1c
MOV EAX,ESI
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_001b8ac0(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_001b8ac0(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001b8ac0(int *param_1,int *param_2,int param_3)" * (function_declarator "FUN_001b8ac0(int *param_1,int *param_2,int param_3)" identifier (parameter_list "(int *param_1,int *param_2,int param_3)" ( (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) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "FUN_001b8580(param_2,param_3 - iVar1,1,0);" (call_expression "FUN_001b8580(param_2,param_3 - iVar1,1,0)" identifier (argument_list "(param_2,param_3 - iVar1,1,0)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar2 + -4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = iVar2 + (param_3 - iVar1);" (assignment_expression "*param_1 = iVar2 + (param_3 - iVar1)" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + (param_3 - iVar1)" identifier + (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - 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::erase(__normal_iterator<char*, std::string >) */\n\nint * std::string::erase(int *param_1,string *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)param_2;\n  _M_mutate(param_2,param_3 - iVar1,1,0);\n  iVar2 = *(int *)param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}\n\n" comment comment (function_definition "int * std::string::erase(int *param_1,string *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)param_2;\n  _M_mutate(param_2,param_3 - iVar1,1,0);\n  iVar2 = *(int *)param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" primitive_type (pointer_declarator "* std::string::erase(int *param_1,string *param_2,int param_3)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "erase(int *param_1,string *param_2,int param_3)" identifier (parameter_list "(int *param_1,string *param_2,int param_3)" ( (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) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)param_2;\n  _M_mutate(param_2,param_3 - iVar1,1,0);\n  iVar2 = *(int *)param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" 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_mutate(param_2,param_3 - iVar1,1,0);" (call_expression "_M_mutate(param_2,param_3 - iVar1,1,0)" identifier (argument_list "(param_2,param_3 - iVar1,1,0)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar2 = *(int *)param_2;" (assignment_expression "iVar2 = *(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 "*(undefined4 *)(iVar2 + -4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = iVar2 + (param_3 - iVar1);" (assignment_expression "*param_1 = iVar2 + (param_3 - iVar1)" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + (param_3 - iVar1)" identifier + (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_001b8ac0(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}\n\n" (function_definition "int * FUN_001b8ac0(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001b8ac0(int *param_1,int *param_2,int param_3)" * (function_declarator "FUN_001b8ac0(int *param_1,int *param_2,int param_3)" identifier (parameter_list "(int *param_1,int *param_2,int param_3)" ( (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) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "FUN_001b8580(param_2,param_3 - iVar1,1,0);" (call_expression "FUN_001b8580(param_2,param_3 - iVar1,1,0)" identifier (argument_list "(param_2,param_3 - iVar1,1,0)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar2 + -4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = iVar2 + (param_3 - iVar1);" (assignment_expression "*param_1 = iVar2 + (param_3 - iVar1)" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + (param_3 - iVar1)" identifier + (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - 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) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_001b8ac0(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001b8ac0(int *param_1,int *param_2,int param_3)" (* "*") (function_declarator "FUN_001b8ac0(int *param_1,int *param_2,int param_3)" (identifier "FUN_001b8ac0") (parameter_list "(int *param_1,int *param_2,int param_3)" (( "(") (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")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,1,0);\n  iVar2 = *param_2;\n  *(undefined4 *)(iVar2 + -4) = 0xffffffff;\n  *param_1 = iVar2 + (param_3 - iVar1);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "FUN_001b8580(param_2,param_3 - iVar1,1,0);" (call_expression "FUN_001b8580(param_2,param_3 - iVar1,1,0)" (identifier "FUN_001b8580") (argument_list "(param_2,param_3 - iVar1,1,0)" (( "(") (identifier "param_2") (, ",") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + -4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar2 + -4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_1 = iVar2 + (param_3 - iVar1);" (assignment_expression "*param_1 = iVar2 + (param_3 - iVar1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar2 + (param_3 - iVar1)" (identifier "iVar2") (+ "+") (parenthesized_expression "(param_3 - iVar1)" (( "(") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) () ")")))) (; ";")) (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::erase(__normal_iterator<char*, std::string >) */

int * std::type_1::function_1(int *param_1,type_1 *param_2,int var_2)

{
  int var_3;
  int var_4;
  
  var_3 = *(int *)param_2;
  var_1(param_2,var_2 - var_3,1,0);
  var_4 = *(int *)param_2;
  *(type_2 *)(var_4 + -4) = 0xffffffff;
  *param_1 = var_4 + (var_2 - var_3);
  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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (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)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_2;
  FUN_001b8580(param_2,param_3 - iVar1,1,0);
  iVar2 = *param_2;
  *(undefined4 *)(iVar2 + -4) = 0xffffffff;
  *param_1 = iVar2 + (param_3 - iVar1);
  return param_1;
}

