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

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

{
  int iVar1;
  int iVar2;
  
  if (param_4 - param_3 == 0) {
    *param_1 = param_3;
    return param_1;
  }
  iVar1 = *(int *)param_2;
  _M_mutate(param_2,param_3 - iVar1,param_4 - param_3,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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)

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


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0x18]
CALL 0x00032730
ADD EBX,0x1494e4
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDI,dword ptr [ESP + 0x10]
SUB ECX,EDX
JNZ 0x001b8b40
MOV dword ptr [EDI],EDX
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET 0x4
MOV EAX,dword ptr [ESP + 0x14]
MOV ESI,EDX
SUB ESI,dword ptr [EAX]
PUSH 0x0
PUSH ECX
PUSH ESI
PUSH dword ptr [ESP + 0x20]
CALL 0x001b8580
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV EAX,EDI
MOV dword ptr [EDX + -0x4],0xffffffff
ADD EDX,ESI
MOV dword ptr [EDI],EDX
POP EBX
POP ESI
POP EDI
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_001b8b10(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)" * (function_declarator "FUN_001b8b10(int *param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int *param_2,int 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 "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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 ;) (if_statement "if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }" if (parenthesized_expression "(param_4 - param_3 == 0)" ( (binary_expression "param_4 - param_3 == 0" (binary_expression "param_4 - param_3" identifier - identifier) == number_literal) )) (compound_statement "{\n    *param_1 = param_3;\n    return param_1;\n  }" { (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return 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,param_4 - param_3,0);" (call_expression "FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,0)" identifier (argument_list "(param_2,param_3 - iVar1,param_4 - param_3,0)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , (binary_expression "param_4 - param_3" identifier - identifier) , 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 >, __normal_iterator<char*, std::string\n   >) */\n\nint * std::string::erase(int *param_1,string *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *(int *)param_2;\n  _M_mutate(param_2,param_3 - iVar1,param_4 - param_3,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,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *(int *)param_2;\n  _M_mutate(param_2,param_3 - iVar1,param_4 - param_3,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,int param_4)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "erase(int *param_1,string *param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,string *param_2,int 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 "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *(int *)param_2;\n  _M_mutate(param_2,param_3 - iVar1,param_4 - param_3,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 ;) (if_statement "if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }" if (parenthesized_expression "(param_4 - param_3 == 0)" ( (binary_expression "param_4 - param_3 == 0" (binary_expression "param_4 - param_3" identifier - identifier) == number_literal) )) (compound_statement "{\n    *param_1 = param_3;\n    return param_1;\n  }" { (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return 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,param_4 - param_3,0);" (call_expression "_M_mutate(param_2,param_3 - iVar1,param_4 - param_3,0)" identifier (argument_list "(param_2,param_3 - iVar1,param_4 - param_3,0)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , (binary_expression "param_4 - param_3" identifier - identifier) , 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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)" * (function_declarator "FUN_001b8b10(int *param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int *param_2,int 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 "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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 ;) (if_statement "if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }" if (parenthesized_expression "(param_4 - param_3 == 0)" ( (binary_expression "param_4 - param_3 == 0" (binary_expression "param_4 - param_3" identifier - identifier) == number_literal) )) (compound_statement "{\n    *param_1 = param_3;\n    return param_1;\n  }" { (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return 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,param_4 - param_3,0);" (call_expression "FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,0)" identifier (argument_list "(param_2,param_3 - iVar1,param_4 - param_3,0)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , (binary_expression "param_4 - param_3" identifier - identifier) , 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) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , (binary_expression IDENT - IDENT) , 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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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_001b8b10(int *param_1,int *param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_001b8b10(int *param_1,int *param_2,int param_3,int param_4)" (identifier "FUN_001b8b10") (parameter_list "(int *param_1,int *param_2,int 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 "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }\n  iVar1 = *param_2;\n  FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,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") (; ";")) (if_statement "if (param_4 - param_3 == 0) {\n    *param_1 = param_3;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_4 - param_3 == 0)" (( "(") (binary_expression "param_4 - param_3 == 0" (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_1 = param_3;\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_3")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (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,param_4 - param_3,0);" (call_expression "FUN_001b8580(param_2,param_3 - iVar1,param_4 - param_3,0)" (identifier "FUN_001b8580") (argument_list "(param_2,param_3 - iVar1,param_4 - param_3,0)" (( "(") (identifier "param_2") (, ",") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) (, ",") (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) (, ",") (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 >, __normal_iterator<char*, std::string
   >) */

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

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

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

