
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_check_length(unsigned int, unsigned int, char const*) const */

void __thiscall std::string::_M_check_length(string *this,uint param_1,uint param_2,char *param_3)

{
  if (param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error(param_3);
}



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

void FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)

{
  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001c6190(param_4);
}


PUSH EBX
CALL 0x00032730
ADD EBX,0x179f5a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x10]
ADD EAX,0x7fffffff
SUB EAX,dword ptr [EDX + 0x4]
CMP EAX,dword ptr [ESP + 0x18]
JC 0x001880ca
ADD ESP,0x8
POP EBX
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
CALL 0x001c6190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190(param_4);\n}\n\n" comment (function_definition "void FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190(param_4);\n}" primitive_type (function_declarator "FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190(param_4);\n}" { (if_statement "if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }" if (parenthesized_expression "(param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4)))" ( (binary_expression "param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" identifier <= (call_expression "(uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" ( (binary_expression "(param_2 + 0x7fffffff) - *(int *)(param_1 + 4)" (parenthesized_expression "(param_2 + 0x7fffffff)" ( (binary_expression "param_2 + 0x7fffffff" identifier + number_literal) )) - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_001c6190(param_4);" (call_expression "FUN_001c6190(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::_M_check_length(unsigned int, unsigned int, char const*) const */\n\nvoid __thiscall std::string::_M_check_length(string *this,uint param_1,uint param_2,char *param_3)\n\n{\n  if (param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error(param_3);\n}\n\n" comment comment (function_definition "void __thiscall std::string::_M_check_length(string *this,uint param_1,uint param_2,char *param_3)\n\n{\n  if (param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error(param_3);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_check_length(string *this,uint param_1,uint param_2,char *param_3)" identifier (parameter_list "(string *this,uint param_1,uint param_2,char *param_3)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  if (param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error(param_3);\n}" { (if_statement "if (param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4))" ( (binary_expression "param_2 <= (param_1 + 0x7fffffff) - *(int *)(this + 4)" identifier <= (binary_expression "(param_1 + 0x7fffffff) - *(int *)(this + 4)" (parenthesized_expression "(param_1 + 0x7fffffff)" ( (binary_expression "param_1 + 0x7fffffff" identifier + number_literal) )) - (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__throw_length_error(param_3);" (call_expression "__throw_length_error(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) })))
(translation_unit "void FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    \n  FUN_001c6190(param_4);\n}\n\n" (function_definition "void FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    \n  FUN_001c6190(param_4);\n}" primitive_type (function_declarator "FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    \n  FUN_001c6190(param_4);\n}" { (if_statement "if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }" if (parenthesized_expression "(param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4)))" ( (binary_expression "param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" identifier <= (call_expression "(uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" ( (binary_expression "(param_2 + 0x7fffffff) - *(int *)(param_1 + 4)" (parenthesized_expression "(param_2 + 0x7fffffff)" ( (binary_expression "param_2 + 0x7fffffff" identifier + number_literal) )) - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_001c6190(param_4);" (call_expression "FUN_001c6190(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))
(function_definition "void FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    \n  FUN_001c6190(param_4);\n}" (primitive_type "void") (function_declarator "FUN_001880a0(int param_1,int param_2,uint param_3,undefined4 param_4)" (identifier "FUN_001880a0") (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }\n                    \n  FUN_001c6190(param_4);\n}" ({ "{") (if_statement "if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4)))" (( "(") (binary_expression "param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" (identifier "param_3") (<= "<=") (call_expression "(uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))" (( "(") (binary_expression "(param_2 + 0x7fffffff) - *(int *)(param_1 + 4)" (parenthesized_expression "(param_2 + 0x7fffffff)" (( "(") (binary_expression "param_2 + 0x7fffffff" (identifier "param_2") (+ "+") (number_literal "0x7fffffff")) () ")")) (- "-") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001c6190(param_4);" (call_expression "FUN_001c6190(param_4)" (identifier "FUN_001c6190") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_check_length(unsigned int, unsigned int, char const*) const */

void __thiscall std::type_1::function_1(type_1 *var_3,type_2 var_2,type_2 var_1,char *param_3)

{
  if (var_1 <= (var_2 + 0x7fffffff) - *(int *)(var_3 + 4)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4(param_3);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (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 (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))

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

void MASKED(int param_1,int param_2,uint param_3,undefined4 param_4)

{
  if (param_3 <= (uint)((param_2 + 0x7fffffff) - *(int *)(param_1 + 4))) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001c6190(param_4);
}

