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

void __thiscall std::string::operator+=(string *this,char *param_1)

{
  size_t sVar1;
  
  sVar1 = strlen(param_1);
  if (sVar1 <= 0x7fffffffU - *(int *)(this + 4)) {
    _M_append(this,param_1,sVar1);
    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_0018a1b0(int param_1,char *param_2)

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


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00032730
ADD EBX,0x177e44
MOV ESI,dword ptr [ESP + 0x10]
SUB ESP,0xc
PUSH EDI
CALL 0x000265f0
MOV EDX,0x7fffffff
SUB EDX,dword ptr [ESI + 0x4]
ADD ESP,0x10
CMP EAX,EDX
JA 0x0018a1f0
SUB ESP,0x4
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x00189fb0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
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_0018a1b0(int param_1,char *param_2)\n\n{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190("basic_string::append");\n}\n\n" comment (function_definition "void FUN_0018a1b0(int param_1,char *param_2)\n\n{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190("basic_string::append");\n}" primitive_type (function_declarator "FUN_0018a1b0(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001c6190("basic_string::append");\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }" if (parenthesized_expression "(sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4))" ( (binary_expression "sVar1 <= 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,sVar1);\n    return;\n  }" { (expression_statement "FUN_00189fb0(param_1,param_2,sVar1);" (call_expression "FUN_00189fb0(param_1,param_2,sVar1)" identifier (argument_list "(param_1,param_2,sVar1)" ( 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::TEMPNAMEPLACEHOLDERVALUE(char const*) */\n\nvoid __thiscall std::string::operator+=(string *this,char *param_1)\n\n{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_1);\n  if (sVar1 <= 0x7fffffffU - *(int *)(this + 4)) {\n    _M_append(this,param_1,sVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}\n\n" comment comment (declaration "void __thiscall std::string::operator+=(string *this,char *param_1)\n\n{\n  size_t sVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::operator+=(string" identifier : : identifier : : identifier += ( identifier) (pointer_declarator "*this" * identifier) , (ERROR "char *param_1)\n\n{\n  size_t" identifier (pointer_declarator "*param_1" * identifier) ) { primitive_type) identifier ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (sVar1 <= 0x7fffffffU - *(int *)(this + 4)) {\n    _M_append(this,param_1,sVar1);\n    return;\n  }" if (parenthesized_expression "(sVar1 <= 0x7fffffffU - *(int *)(this + 4))" ( (binary_expression "sVar1 <= 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,sVar1);\n    return;\n  }" { (expression_statement "_M_append(this,param_1,sVar1);" (call_expression "_M_append(this,param_1,sVar1)" identifier (argument_list "(this,param_1,sVar1)" ( 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 ") ))) ;) (ERROR "}" }))
(translation_unit "void FUN_0018a1b0(int param_1,char *param_2)\n\n{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}\n\n" (function_definition "void FUN_0018a1b0(int param_1,char *param_2)\n\n{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" primitive_type (function_declarator "FUN_0018a1b0(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }" if (parenthesized_expression "(sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4))" ( (binary_expression "sVar1 <= 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,sVar1);\n    return;\n  }" { (expression_statement "FUN_00189fb0(param_1,param_2,sVar1);" (call_expression "FUN_00189fb0(param_1,param_2,sVar1)" identifier (argument_list "(param_1,param_2,sVar1)" ( 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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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_0018a1b0(int param_1,char *param_2)\n\n{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" (primitive_type "void") (function_declarator "FUN_0018a1b0(int param_1,char *param_2)" (identifier "FUN_0018a1b0") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = strlen(param_2);\n  if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }\n                    \n  FUN_001c6190("basic_string::append");\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)) {\n    FUN_00189fb0(param_1,param_2,sVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4))" (( "(") (binary_expression "sVar1 <= 0x7fffffffU - *(int *)(param_1 + 4)" (identifier "sVar1") (<= "<=") (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,sVar1);\n    return;\n  }" ({ "{") (expression_statement "FUN_00189fb0(param_1,param_2,sVar1);" (call_expression "FUN_00189fb0(param_1,param_2,sVar1)" (identifier "FUN_00189fb0") (argument_list "(param_1,param_2,sVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "sVar1") () ")"))) (; ";")) (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::TEMPNAMEPLACEHOLDERVALUE(char const*) */

void __thiscall std::string::operator+=(string *var_3,char *param_1)

{
  size_t var_2;
  
  var_2 = var_1(param_1);
  if (var_2 <= 0x7fffffffU - *(int *)(var_3 + 4)) {
    var_4(var_3,param_1,var_2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5("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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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,char *param_2)

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

