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

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

{
  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {
    _M_replace_aux(this,param_1,0,param_2,param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1
             ,*(uint *)(*(int *)this + -0xc));
}



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

void FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)

{
  if (param_2 <= *(uint *)(*param_1 + -0xc)) {
    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",
               param_2,*(uint *)(*param_1 + -0xc));
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x149379
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x14]
MOVSX ESI,byte ptr [ESP + 0x1c]
MOV ECX,dword ptr [EDX]
MOV ECX,dword ptr [ECX + -0xc]
CMP EAX,ECX
JA 0x001b8cbd
SUB ESP,0xc
PUSH ESI
PUSH dword ptr [ESP + 0x28]
PUSH 0x0
PUSH EAX
PUSH EDX
CALL 0x001b8b80
ADD ESP,0x24
POP EBX
POP ESI
RET
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xfff3889d]
PUSH EAX
LEA EAX,[EBX + 0xfff21910]
PUSH EAX
CALL 0x001c6230
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)\n\n{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}\n\n" comment (function_definition "void FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)\n\n{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}" primitive_type (function_declarator "FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)" identifier (parameter_list "(int *param_1,uint param_2,undefined4 param_3,char param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}" { (if_statement "if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(uint *)(*param_1 + -0xc))" ( (binary_expression "param_2 <= *(uint *)(*param_1 + -0xc)" identifier <= (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (compound_statement "{\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }" { (expression_statement "FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);" (call_expression "FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4)" identifier (argument_list "(param_1,param_2,0,param_3,(int)param_4)" ( identifier , identifier , number_literal , identifier , (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));" (call_expression "FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc))" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc))" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::insert"" " string_content ") , identifier , (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::insert(unsigned int, unsigned int, char) */\n\nvoid __thiscall std::string::insert(string *this,uint param_1,uint param_2,char param_3)\n\n{\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_replace_aux(this,param_1,0,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1\n             ,*(uint *)(*(int *)this + -0xc));\n}\n\n" comment comment (function_definition "void __thiscall std::string::insert(string *this,uint param_1,uint param_2,char param_3)\n\n{\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_replace_aux(this,param_1,0,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1\n             ,*(uint *)(*(int *)this + -0xc));\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "insert(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 identifier) ))) (compound_statement "{\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_replace_aux(this,param_1,0,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1\n             ,*(uint *)(*(int *)this + -0xc));\n}" { (if_statement "if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_replace_aux(this,param_1,0,param_2,param_3);\n    return;\n  }" if (parenthesized_expression "(param_1 <= *(uint *)(*(int *)this + -0xc))" ( (binary_expression "param_1 <= *(uint *)(*(int *)this + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    _M_replace_aux(this,param_1,0,param_2,param_3);\n    return;\n  }" { (expression_statement "_M_replace_aux(this,param_1,0,param_2,param_3);" (call_expression "_M_replace_aux(this,param_1,0,param_2,param_3)" identifier (argument_list "(this,param_1,0,param_2,param_3)" ( identifier , identifier , number_literal , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1\n             ,*(uint *)(*(int *)this + -0xc));" (call_expression "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1\n             ,*(uint *)(*(int *)this + -0xc))" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",param_1\n             ,*(uint *)(*(int *)this + -0xc))" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::insert"" " string_content ") , identifier , (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) })))
(translation_unit "void FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)\n\n{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    \n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}\n\n" (function_definition "void FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)\n\n{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    \n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}" primitive_type (function_declarator "FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)" identifier (parameter_list "(int *param_1,uint param_2,undefined4 param_3,char param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    \n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}" { (if_statement "if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(uint *)(*param_1 + -0xc))" ( (binary_expression "param_2 <= *(uint *)(*param_1 + -0xc)" identifier <= (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (compound_statement "{\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }" { (expression_statement "FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);" (call_expression "FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4)" identifier (argument_list "(param_1,param_2,0,param_3,(int)param_4)" ( identifier , identifier , number_literal , identifier , (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));" (call_expression "FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc))" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc))" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::insert"" " string_content ") , identifier , (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) })))
(function_definition "void FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)\n\n{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    \n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}" (primitive_type "void") (function_declarator "FUN_001b8c80(int *param_1,uint param_2,undefined4 param_3,char param_4)" (identifier "FUN_001b8c80") (parameter_list "(int *param_1,uint param_2,undefined4 param_3,char param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }\n                    \n  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));\n}" ({ "{") (if_statement "if (param_2 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= *(uint *)(*param_1 + -0xc))" (( "(") (binary_expression "param_2 <= *(uint *)(*param_1 + -0xc)" (identifier "param_2") (<= "<=") (pointer_expression "*(uint *)(*param_1 + -0xc)" (* "*") (cast_expression "(uint *)(*param_1 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")) (compound_statement "{\n    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);\n    return;\n  }" ({ "{") (expression_statement "FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);" (call_expression "FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4)" (identifier "FUN_001b8b80") (argument_list "(param_1,param_2,0,param_3,(int)param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc));" (call_expression "FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc))" (identifier "FUN_001c6230") (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",\n               param_2,*(uint *)(*param_1 + -0xc))" (( "(") (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" (" """) (string_content "%s: __pos (which is %zu) > this->size() (which is %zu)") (" """)) (, ",") (string_literal ""basic_string::insert"" (" """) (string_content "basic_string::insert") (" """)) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(uint *)(*param_1 + -0xc)" (* "*") (cast_expression "(uint *)(*param_1 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) () ")"))) (; ";")) (} "}")))

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

void __thiscall std::type_1::function_1(type_1 *this,type_2 var_1,type_2 param_2,char param_3)

{
  if (var_1 <= *(type_2 *)(*(int *)this + -0xc)) {
    var_2(this,var_1,0,param_2,param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",var_1
             ,*(type_2 *)(*(int *)this + -0xc));
}


(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))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))))

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

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

{
  if (param_2 <= *(uint *)(*param_1 + -0xc)) {
    FUN_001b8b80(param_1,param_2,0,param_3,(int)param_4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001c6230("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::insert",
               param_2,*(uint *)(*param_1 + -0xc));
}

