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

int * std::string::rend(void)

{
  int iVar1;
  int *in_stack_00000004;
  string *in_stack_00000008;
  
  iVar1 = *(int *)in_stack_00000008;
  if (-1 < *(int *)(iVar1 + -4)) {
    _M_leak_hard(in_stack_00000008);
    iVar1 = *(int *)in_stack_00000008;
  }
  *in_stack_00000004 = iVar1;
  return in_stack_00000004;
}



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

int * FUN_0021ef30(int *param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = *param_2;
  if (-1 < *(int *)(iVar1 + -4)) {
    FUN_0021ede0(param_2);
    iVar1 = *param_2;
  }
  *param_1 = iVar1;
  return param_1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00035840
ADD EBX,0x1700c4
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EDI]
MOV EAX,dword ptr [EDX + -0x4]
TEST EAX,EAX
JS 0x0021ef5d
SUB ESP,0xc
PUSH EDI
CALL 0x0021ede0
MOV EDX,dword ptr [EDI]
ADD ESP,0x10
MOV dword ptr [ESI],EDX
MOV EAX,ESI
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_0021ef30(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_0021ef30(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0021ef30(int *param_1,int *param_2)" * (function_declarator "FUN_0021ef30(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\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)) ;) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" ( (binary_expression "-1 < *(int *)(iVar1 + -4)" number_literal < (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }" { (expression_statement "FUN_0021ede0(param_2);" (call_expression "FUN_0021ede0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * 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::rend() */\n\nint * std::string::rend(void)\n\n{\n  int iVar1;\n  int *in_stack_00000004;\n  string *in_stack_00000008;\n  \n  iVar1 = *(int *)in_stack_00000008;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_stack_00000008);\n    iVar1 = *(int *)in_stack_00000008;\n  }\n  *in_stack_00000004 = iVar1;\n  return in_stack_00000004;\n}\n\n" comment comment (function_definition "int * std::string::rend(void)\n\n{\n  int iVar1;\n  int *in_stack_00000004;\n  string *in_stack_00000008;\n  \n  iVar1 = *(int *)in_stack_00000008;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_stack_00000008);\n    iVar1 = *(int *)in_stack_00000008;\n  }\n  *in_stack_00000004 = iVar1;\n  return in_stack_00000004;\n}" primitive_type (pointer_declarator "* std::string::rend(void)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "rend(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  int *in_stack_00000004;\n  string *in_stack_00000008;\n  \n  iVar1 = *(int *)in_stack_00000008;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_stack_00000008);\n    iVar1 = *(int *)in_stack_00000008;\n  }\n  *in_stack_00000004 = iVar1;\n  return in_stack_00000004;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_stack_00000004;" primitive_type (pointer_declarator "*in_stack_00000004" * identifier) ;) (declaration "string *in_stack_00000008;" type_identifier (pointer_declarator "*in_stack_00000008" * identifier) ;) (expression_statement "iVar1 = *(int *)in_stack_00000008;" (assignment_expression "iVar1 = *(int *)in_stack_00000008" identifier = (pointer_expression "*(int *)in_stack_00000008" * (cast_expression "(int *)in_stack_00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_stack_00000008);\n    iVar1 = *(int *)in_stack_00000008;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" ( (binary_expression "-1 < *(int *)(iVar1 + -4)" number_literal < (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    _M_leak_hard(in_stack_00000008);\n    iVar1 = *(int *)in_stack_00000008;\n  }" { (expression_statement "_M_leak_hard(in_stack_00000008);" (call_expression "_M_leak_hard(in_stack_00000008)" identifier (argument_list "(in_stack_00000008)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)in_stack_00000008;" (assignment_expression "iVar1 = *(int *)in_stack_00000008" identifier = (pointer_expression "*(int *)in_stack_00000008" * (cast_expression "(int *)in_stack_00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "*in_stack_00000004 = iVar1;" (assignment_expression "*in_stack_00000004 = iVar1" (pointer_expression "*in_stack_00000004" * identifier) = identifier) ;) (return_statement "return in_stack_00000004;" return identifier ;) })))
(translation_unit "int * FUN_0021ef30(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0021ef30(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0021ef30(int *param_1,int *param_2)" * (function_declarator "FUN_0021ef30(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\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)) ;) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" ( (binary_expression "-1 < *(int *)(iVar1 + -4)" number_literal < (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }" { (expression_statement "FUN_0021ede0(param_2);" (call_expression "FUN_0021ede0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * 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)) )))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0021ef30(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0021ef30(int *param_1,int *param_2)" (* "*") (function_declarator "FUN_0021ef30(int *param_1,int *param_2)" (identifier "FUN_0021ef30") (parameter_list "(int *param_1,int *param_2)" (( "(") (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"))) () ")")))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }\n  *param_1 = iVar1;\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"))) (; ";")) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" (( "(") (binary_expression "-1 < *(int *)(iVar1 + -4)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) () ")")) (compound_statement "{\n    FUN_0021ede0(param_2);\n    iVar1 = *param_2;\n  }" ({ "{") (expression_statement "FUN_0021ede0(param_2);" (call_expression "FUN_0021ede0(param_2)" (identifier "FUN_0021ede0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (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::rend() */

int * std::type_1::function_1(void)

{
  int var_1;
  int *in_stack_00000004;
  type_1 *in_stack_00000008;
  
  var_1 = *(int *)in_stack_00000008;
  if (-1 < *(int *)(var_1 + -4)) {
    var_2(in_stack_00000008);
    var_1 = *(int *)in_stack_00000008;
  }
  *in_stack_00000004 = var_1;
  return in_stack_00000004;
}


(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)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (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 iVar1;
  
  iVar1 = *param_2;
  if (-1 < *(int *)(iVar1 + -4)) {
    FUN_0021ede0(param_2);
    iVar1 = *param_2;
  }
  *param_1 = iVar1;
  return param_1;
}

