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

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

{
  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {
    _M_append(this,param_1,param_2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error("basic_string::append");
}



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

void FUN_0018a110(int param_1,undefined4 param_2,uint param_3)

{
  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {
    FUN_00189fb0(param_1,param_2,param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001c6190("basic_string::append");
}


PUSH EBX
MOV EAX,0x7fffffff
CALL 0x00032730
ADD EBX,0x177ee5
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x18]
SUB EAX,dword ptr [EDX + 0x4]
CMP ECX,EAX
JA 0x0018a146
SUB ESP,0x4
PUSH ECX
PUSH dword ptr [ESP + 0x1c]
PUSH EDX
CALL 0x00189fb0
ADD ESP,0x18
POP EBX
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff1e542]
PUSH EAX
CALL 0x001c6190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0018a110(int param_1,undefined4 param_2,uint param_3)\n\n{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190("basic_string::append");\n}\n\n" comment (function_definition "void FUN_0018a110(int param_1,undefined4 param_2,uint param_3)\n\n{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190("basic_string::append");\n}" primitive_type (function_declarator "FUN_0018a110(int param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190("basic_string::append");\n}" { (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(param_1 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" 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    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }" { (expression_statement "FUN_00189fb0(param_1,param_2,param_3);" (call_expression "FUN_00189fb0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_001c6190("basic_string::append");" (call_expression "FUN_001c6190("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::append(char const*, unsigned int) */\n\nvoid __thiscall std::string::append(string *this,char *param_1,uint param_2)\n\n{\n  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}\n\n" comment comment (function_definition "void __thiscall std::string::append(string *this,char *param_1,uint param_2)\n\n{\n  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "append(string *this,char *param_1,uint param_2)" identifier (parameter_list "(string *this,char *param_1,uint param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}" { (if_statement "if (param_2 <= 0x7fffffffU - *(int *)(this + 4)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(param_2 <= 0x7fffffffU - *(int *)(this + 4))" ( (binary_expression "param_2 <= 0x7fffffffU - *(int *)(this + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(this + 4)" 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    _M_append(this,param_1,param_2);\n    return;\n  }" { (expression_statement "_M_append(this,param_1,param_2);" (call_expression "_M_append(this,param_1,param_2)" identifier (argument_list "(this,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0018a110(int param_1,undefined4 param_2,uint param_3)\n\n{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}\n\n" (function_definition "void FUN_0018a110(int param_1,undefined4 param_2,uint param_3)\n\n{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" primitive_type (function_declarator "FUN_0018a110(int param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" { (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }" if (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(param_1 + 4))" ( (binary_expression "param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)" identifier <= (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" 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    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }" { (expression_statement "FUN_00189fb0(param_1,param_2,param_3);" (call_expression "FUN_00189fb0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001c6190("basic_string::append");" (call_expression "FUN_001c6190("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (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 , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_0018a110(int param_1,undefined4 param_2,uint param_3)\n\n{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" (primitive_type "void") (function_declarator "FUN_0018a110(int param_1,undefined4 param_2,uint param_3)" (identifier "FUN_0018a110") (parameter_list "(int param_1,undefined4 param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" ({ "{") (if_statement "if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 <= 0x7fffffffU - *(int *)(param_1 + 4))" (( "(") (binary_expression "param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)" (identifier "param_3") (<= "<=") (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" (number_literal "0x7fffffffU") (- "-") (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    FUN_00189fb0(param_1,param_2,param_3);\n    return;\n  }" ({ "{") (expression_statement "FUN_00189fb0(param_1,param_2,param_3);" (call_expression "FUN_00189fb0(param_1,param_2,param_3)" (identifier "FUN_00189fb0") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001c6190("basic_string::append");" (call_expression "FUN_001c6190("basic_string::append")" (identifier "FUN_001c6190") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}")))

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

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

{
  if (var_1 <= 0x7fffffffU - *(int *)(var_2 + 4)) {
    var_3(var_2,param_1,var_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4("basic_string::append");
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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) (identifier) (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

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

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

{
  if (param_3 <= 0x7fffffffU - *(int *)(param_1 + 4)) {
    FUN_00189fb0(param_1,param_2,param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001c6190("basic_string::append");
}

