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

int __thiscall std::string::back(string *this)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)this;
  iVar1 = *(int *)(iVar2 + -0xc);
  if (-1 < *(int *)(iVar2 + -4)) {
    _M_leak_hard(this);
    iVar2 = *(int *)this;
  }
  return iVar2 + iVar1 + -1;
}



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

int FUN_001e46a0(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *param_1;
  iVar1 = *(int *)(iVar2 + -0xc);
  if (-1 < *(int *)(iVar2 + -4)) {
    FUN_001e4490(param_1);
    iVar2 = *param_1;
  }
  return iVar2 + iVar1 + -1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00035680
ADD EBX,0x15a954
MOV EAX,dword ptr [EDI]
MOV ECX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EAX + -0x4]
LEA ESI,[ECX + -0x1]
TEST EDX,EDX
JS 0x001e46cf
SUB ESP,0xc
PUSH EDI
CALL 0x001e4490
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
ADD EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_001e46a0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}\n\n" comment (function_definition "int FUN_001e46a0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}" primitive_type (function_declarator "FUN_001e46a0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar2 + -4))" ( (binary_expression "-1 < *(int *)(iVar2 + -4)" number_literal < (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }" { (expression_statement "FUN_001e4490(param_1);" (call_expression "FUN_001e4490(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return iVar2 + iVar1 + -1;" return (binary_expression "iVar2 + iVar1 + -1" (binary_expression "iVar2 + iVar1" identifier + identifier) + number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::back() */\n\nint __thiscall std::string::back(string *this)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)this;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    _M_leak_hard(this);\n    iVar2 = *(int *)this;\n  }\n  return iVar2 + iVar1 + -1;\n}\n\n" comment comment (function_definition "int __thiscall std::string::back(string *this)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)this;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    _M_leak_hard(this);\n    iVar2 = *(int *)this;\n  }\n  return iVar2 + iVar1 + -1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "back(string *this)" identifier (parameter_list "(string *this)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)this;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    _M_leak_hard(this);\n    iVar2 = *(int *)this;\n  }\n  return iVar2 + iVar1 + -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)this;" (assignment_expression "iVar2 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (-1 < *(int *)(iVar2 + -4)) {\n    _M_leak_hard(this);\n    iVar2 = *(int *)this;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar2 + -4))" ( (binary_expression "-1 < *(int *)(iVar2 + -4)" number_literal < (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    _M_leak_hard(this);\n    iVar2 = *(int *)this;\n  }" { (expression_statement "_M_leak_hard(this);" (call_expression "_M_leak_hard(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "iVar2 = *(int *)this;" (assignment_expression "iVar2 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (return_statement "return iVar2 + iVar1 + -1;" return (binary_expression "iVar2 + iVar1 + -1" (binary_expression "iVar2 + iVar1" identifier + identifier) + number_literal) ;) })))
(translation_unit "int FUN_001e46a0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}\n\n" (function_definition "int FUN_001e46a0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}" primitive_type (function_declarator "FUN_001e46a0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar2 + -4))" ( (binary_expression "-1 < *(int *)(iVar2 + -4)" number_literal < (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }" { (expression_statement "FUN_001e4490(param_1);" (call_expression "FUN_001e4490(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return iVar2 + iVar1 + -1;" return (binary_expression "iVar2 + iVar1 + -1" (binary_expression "iVar2 + iVar1" identifier + identifier) + number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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)) ;) })) (return_statement return (binary_expression (binary_expression IDENT + IDENT) + LIT) ;) })))
(function_definition "int FUN_001e46a0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}" (primitive_type "int") (function_declarator "FUN_001e46a0(int *param_1)" (identifier "FUN_001e46a0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  iVar1 = *(int *)(iVar2 + -0xc);\n  if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }\n  return iVar2 + iVar1 + -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + -0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (if_statement "if (-1 < *(int *)(iVar2 + -4)) {\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(iVar2 + -4))" (( "(") (binary_expression "-1 < *(int *)(iVar2 + -4)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")"))))) () ")")) (compound_statement "{\n    FUN_001e4490(param_1);\n    iVar2 = *param_1;\n  }" ({ "{") (expression_statement "FUN_001e4490(param_1);" (call_expression "FUN_001e4490(param_1)" (identifier "FUN_001e4490") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (return_statement "return iVar2 + iVar1 + -1;" (return "return") (binary_expression "iVar2 + iVar1 + -1" (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-1")) (; ";")) (} "}")))

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

int __thiscall std::type_1::function_1(type_1 *this)

{
  int var_3;
  int var_1;
  
  var_1 = *(int *)this;
  var_3 = *(int *)(var_1 + -0xc);
  if (-1 < *(int *)(var_1 + -4)) {
    var_2(this);
    var_1 = *(int *)this;
  }
  return var_1 + var_3 + -1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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 (assignment_expression left: (identifier) 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))))))) (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)))))) (return_statement (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))

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

int MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *param_1;
  iVar1 = *(int *)(iVar2 + -0xc);
  if (-1 < *(int *)(iVar2 + -4)) {
    FUN_001e4490(param_1);
    iVar2 = *param_1;
  }
  return iVar2 + iVar1 + -1;
}

