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

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

{
  uint uVar1;
  
  uVar1 = (int)param_3 - *(int *)param_2;
  if (param_4 == *(int *)param_2 + *(int *)(param_2 + 4)) {
    *(uint *)(param_2 + 4) = uVar1;
    *param_3 = 0;
  }
  else {
    _M_erase(param_2,uVar1,param_4 - (int)param_3);
  }
  *param_1 = uVar1 + *(int *)param_2;
  return param_1;
}



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

int * FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)

{
  int iVar1;
  
  iVar1 = (int)param_3 - *param_2;
  if (param_4 == *param_2 + param_2[1]) {
    param_2[1] = iVar1;
    *param_3 = 0;
  }
  else {
    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);
  }
  *param_1 = iVar1 + *param_2;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x19fa57
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x2c]
MOV EBP,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [EDI]
MOV ESI,ECX
SUB ESI,EDX
ADD EDX,dword ptr [EDI + 0x4]
CMP EAX,EDX
JZ 0x001ef5f0
SUB ESP,0x4
SUB EAX,ECX
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x001eebf0
ADD ESP,0x10
ADD ESI,dword ptr [EDI]
MOV EAX,EBP
MOV dword ptr [EBP],ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV dword ptr [EDI + 0x4],ESI
MOV byte ptr [ECX],0x0
JMP 0x001ef5df
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)" * (function_declarator "FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined1 *param_3,int param_4)" ( (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 "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (int)param_3 - *param_2;" (assignment_expression "iVar1 = (int)param_3 - *param_2" identifier = (binary_expression "(int)param_3 - *param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" if (parenthesized_expression "(param_4 == *param_2 + param_2[1])" ( (binary_expression "param_4 == *param_2 + param_2[1]" identifier == (binary_expression "*param_2 + param_2[1]" (pointer_expression "*param_2" * identifier) + (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }" { (expression_statement "param_2[1] = iVar1;" (assignment_expression "param_2[1] = iVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" else (compound_statement "{\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" { (expression_statement "FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);" (call_expression "FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3)" identifier (argument_list "(param_2,iVar1,param_4 - (int)param_3)" ( identifier , identifier , (binary_expression "param_4 - (int)param_3" identifier - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) }))) (expression_statement "*param_1 = iVar1 + *param_2;" (assignment_expression "*param_1 = iVar1 + *param_2" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar1 + *param_2" 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::erase(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,\n   std::string >) */\n\nint * std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 == *(int *)param_2 + *(int *)(param_2 + 4)) {\n    *(uint *)(param_2 + 4) = uVar1;\n    *param_3 = 0;\n  }\n  else {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n  }\n  *param_1 = uVar1 + *(int *)param_2;\n  return param_1;\n}\n\n" comment comment (function_definition "int * std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 == *(int *)param_2 + *(int *)(param_2 + 4)) {\n    *(uint *)(param_2 + 4) = uVar1;\n    *param_3 = 0;\n  }\n  else {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n  }\n  *param_1 = uVar1 + *(int *)param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)" identifier (parameter_list "(int *param_1,string *param_2,undefined1 *param_3,int param_4)" ( (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 "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 == *(int *)param_2 + *(int *)(param_2 + 4)) {\n    *(uint *)(param_2 + 4) = uVar1;\n    *param_3 = 0;\n  }\n  else {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n  }\n  *param_1 = uVar1 + *(int *)param_2;\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (int)param_3 - *(int *)param_2;" (assignment_expression "uVar1 = (int)param_3 - *(int *)param_2" identifier = (binary_expression "(int)param_3 - *(int *)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (param_4 == *(int *)param_2 + *(int *)(param_2 + 4)) {\n    *(uint *)(param_2 + 4) = uVar1;\n    *param_3 = 0;\n  }\n  else {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n  }" if (parenthesized_expression "(param_4 == *(int *)param_2 + *(int *)(param_2 + 4))" ( (binary_expression "param_4 == *(int *)param_2 + *(int *)(param_2 + 4)" identifier == (binary_expression "*(int *)param_2 + *(int *)(param_2 + 4)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    *(uint *)(param_2 + 4) = uVar1;\n    *param_3 = 0;\n  }" { (expression_statement "*(uint *)(param_2 + 4) = uVar1;" (assignment_expression "*(uint *)(param_2 + 4) = uVar1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n  }" else (compound_statement "{\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n  }" { (expression_statement "_M_erase(param_2,uVar1,param_4 - (int)param_3);" (call_expression "_M_erase(param_2,uVar1,param_4 - (int)param_3)" identifier (argument_list "(param_2,uVar1,param_4 - (int)param_3)" ( identifier , identifier , (binary_expression "param_4 - (int)param_3" identifier - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) }))) (expression_statement "*param_1 = uVar1 + *(int *)param_2;" (assignment_expression "*param_1 = uVar1 + *(int *)param_2" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar1 + *(int *)param_2" 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_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}\n\n" (function_definition "int * FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)" * (function_declarator "FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined1 *param_3,int param_4)" ( (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 "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (int)param_3 - *param_2;" (assignment_expression "iVar1 = (int)param_3 - *param_2" identifier = (binary_expression "(int)param_3 - *param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" if (parenthesized_expression "(param_4 == *param_2 + param_2[1])" ( (binary_expression "param_4 == *param_2 + param_2[1]" identifier == (binary_expression "*param_2 + param_2[1]" (pointer_expression "*param_2" * identifier) + (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }" { (expression_statement "param_2[1] = iVar1;" (assignment_expression "param_2[1] = iVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" else (compound_statement "{\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" { (expression_statement "FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);" (call_expression "FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3)" identifier (argument_list "(param_2,iVar1,param_4 - (int)param_3)" ( identifier , identifier , (binary_expression "param_4 - (int)param_3" identifier - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) }))) (expression_statement "*param_1 = iVar1 + *param_2;" (assignment_expression "*param_1 = iVar1 + *param_2" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar1 + *param_2" 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)" (* "*") (function_declarator "FUN_001ef5a0(int *param_1,int *param_2,undefined1 *param_3,int param_4)" (identifier "FUN_001ef5a0") (parameter_list "(int *param_1,int *param_2,undefined1 *param_3,int param_4)" (( "(") (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 "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (int)param_3 - *param_2;\n  if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }\n  *param_1 = iVar1 + *param_2;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (int)param_3 - *param_2;" (assignment_expression "iVar1 = (int)param_3 - *param_2" (identifier "iVar1") (= "=") (binary_expression "(int)param_3 - *param_2" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (param_4 == *param_2 + param_2[1]) {\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }\n  else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" (if "if") (parenthesized_expression "(param_4 == *param_2 + param_2[1])" (( "(") (binary_expression "param_4 == *param_2 + param_2[1]" (identifier "param_4") (== "==") (binary_expression "*param_2 + param_2[1]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    param_2[1] = iVar1;\n    *param_3 = 0;\n  }" ({ "{") (expression_statement "param_2[1] = iVar1;" (assignment_expression "param_2[1] = iVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" (else "else") (compound_statement "{\n    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);\n  }" ({ "{") (expression_statement "FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);" (call_expression "FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3)" (identifier "FUN_001eebf0") (argument_list "(param_2,iVar1,param_4 - (int)param_3)" (( "(") (identifier "param_2") (, ",") (identifier "iVar1") (, ",") (binary_expression "param_4 - (int)param_3" (identifier "param_4") (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")"))) (; ";")) (} "}")))) (expression_statement "*param_1 = iVar1 + *param_2;" (assignment_expression "*param_1 = iVar1 + *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar1 + *param_2" (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::erase(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,
   std::string >) */

int * std::type_1::function_1(int *param_1,type_1 *var_2,type_2 *param_3,int var_1)

{
  type_3 var_4;
  
  var_4 = (int)param_3 - *(int *)var_2;
  if (var_1 == *(int *)var_2 + *(int *)(var_2 + 4)) {
    *(type_3 *)(var_2 + 4) = var_4;
    *param_3 = 0;
  }
  else {
    var_3(var_2,var_4,var_1 - (int)param_3);
  }
  *param_1 = var_4 + *(int *)var_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: (type_identifier) declarator: (pointer_declarator 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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (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,undefined1 *param_3,int param_4)

{
  int iVar1;
  
  iVar1 = (int)param_3 - *param_2;
  if (param_4 == *param_2 + param_2[1]) {
    param_2[1] = iVar1;
    *param_3 = 0;
  }
  else {
    FUN_001eebf0(param_2,iVar1,param_4 - (int)param_3);
  }
  *param_1 = iVar1 + *param_2;
  return param_1;
}

