
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, std::wstring const&) */

void __thiscall std::wstring::replace(wstring *this,int param_2,int param_3,undefined4 *param_4)

{
  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,
          ((wchar_t *)*param_4)[-3]);
  return;
}



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

void FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)

{
  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,
               *(undefined4 *)(*param_4 + -0xc));
  return;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x12310a
SUB ESP,0x14
MOV EDX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EDX]
PUSH dword ptr [EDX + -0xc]
PUSH EDX
MOV EDX,dword ptr [ESP + 0x2c]
SUB EDX,EAX
SAR EDX,0x2
PUSH EDX
SUB EAX,dword ptr [ECX]
SAR EAX,0x2
PUSH EAX
PUSH ECX
CALL 0x0026bbc0
ADD ESP,0x28
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)\n\n{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}\n\n" comment (function_definition "void FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)\n\n{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}" primitive_type (function_declarator "FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}" { (expression_statement "FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));" (call_expression "FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc))" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc))" ( identifier , (binary_expression "param_2 - *param_1 >> 2" (binary_expression "param_2 - *param_1" identifier - (pointer_expression "*param_1" * identifier)) >> number_literal) , (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal) , (pointer_expression "*param_4" * identifier) , (pointer_expression "*(undefined4 *)(*param_4 + -0xc)" * (cast_expression "(undefined4 *)(*param_4 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + -0xc)" ( (binary_expression "*param_4 + -0xc" (pointer_expression "*param_4" * identifier) + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,\n   std::wstring >, std::wstring const&) */\n\nvoid __thiscall std::wstring::replace(wstring *this,int param_2,int param_3,undefined4 *param_4)\n\n{\n  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          ((wchar_t *)*param_4)[-3]);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::replace(wstring *this,int param_2,int param_3,undefined4 *param_4)\n\n{\n  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          ((wchar_t *)*param_4)[-3]);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "replace(wstring *this,int param_2,int param_3,undefined4 *param_4)" identifier (parameter_list "(wstring *this,int param_2,int param_3,undefined4 *param_4)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          ((wchar_t *)*param_4)[-3]);\n  return;\n}" { (expression_statement "replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          ((wchar_t *)*param_4)[-3]);" (call_expression "replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          ((wchar_t *)*param_4)[-3])" identifier (argument_list "(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          ((wchar_t *)*param_4)[-3])" ( identifier , (binary_expression "param_2 - *(int *)this >> 2" (binary_expression "param_2 - *(int *)this" identifier - (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) >> number_literal) , (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal) , (cast_expression "(wchar_t *)*param_4" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) , (subscript_expression "((wchar_t *)*param_4)[-3]" (parenthesized_expression "((wchar_t *)*param_4)" ( (cast_expression "(wchar_t *)*param_4" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) )) [ number_literal ]) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)\n\n{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}\n\n" (function_definition "void FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)\n\n{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}" primitive_type (function_declarator "FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}" { (expression_statement "FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));" (call_expression "FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc))" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc))" ( identifier , (binary_expression "param_2 - *param_1 >> 2" (binary_expression "param_2 - *param_1" identifier - (pointer_expression "*param_1" * identifier)) >> number_literal) , (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal) , (pointer_expression "*param_4" * identifier) , (pointer_expression "*(undefined4 *)(*param_4 + -0xc)" * (cast_expression "(undefined4 *)(*param_4 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + -0xc)" ( (binary_expression "*param_4 + -0xc" (pointer_expression "*param_4" * identifier) + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(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 (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT - (pointer_expression * IDENT)) >> LIT) , (binary_expression (binary_expression IDENT - IDENT) >> LIT) , (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)\n\n{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0026bef0(int *param_1,int param_2,int param_3,int *param_4)" (identifier "FUN_0026bef0") (parameter_list "(int *param_1,int param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));\n  return;\n}" ({ "{") (expression_statement "FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc));" (call_expression "FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc))" (identifier "FUN_0026bbc0") (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined4 *)(*param_4 + -0xc))" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 - *param_1 >> 2" (binary_expression "param_2 - *param_1" (identifier "param_2") (- "-") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (>> ">>") (number_literal "2")) (, ",") (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2")) (>> ">>") (number_literal "2")) (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (pointer_expression "*(undefined4 *)(*param_4 + -0xc)" (* "*") (cast_expression "(undefined4 *)(*param_4 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + -0xc)" (( "(") (binary_expression "*param_4 + -0xc" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "-0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, std::wstring const&) */

void __thiscall std::type_1::function_1(type_1 *this,int var_1,int var_2,type_2 *param_4)

{
  function_1(this,var_1 - *(int *)this >> 2,var_2 - var_1 >> 2,(type_3 *)*param_4,
          ((type_3 *)*param_4)[-3]);
  return;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (number_literal)) (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) (pointer_expression argument: (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)))))))) (return_statement))))

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

void MASKED(int *param_1,int param_2,int param_3,int *param_4)

{
  FUN_0026bbc0(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,
               *(undefined4 *)(*param_4 + -0xc));
  return;
}

