
/* 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 >, wchar_t const*) */

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

{
  size_t sVar1;
  
  sVar1 = wcslen(param_4);
  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1);
  return;
}



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

void FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)

{
  size_t sVar1;
  
  sVar1 = wcslen(param_4);
  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x10da07
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x30]
PUSH EBP
CALL 0x00028280
MOV dword ptr [ESP],EAX
PUSH EBP
MOV EAX,dword ptr [ESP + 0x3c]
SUB EAX,ESI
SAR EAX,0x2
PUSH EAX
SUB ESI,dword ptr [EDI]
SAR ESI,0x2
PUSH ESI
PUSH EDI
CALL 0x00231280
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" primitive_type (function_declarator "FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,wchar_t *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 "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = wcslen(param_4);" (assignment_expression "sVar1 = wcslen(param_4)" identifier = (call_expression "wcslen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);" (call_expression "FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1)" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1)" ( 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) , identifier , identifier ))) ;) (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 >, wchar_t const*) */\n\nvoid __thiscall std::wstring::replace(wstring *this,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::replace(wstring *this,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1);\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,wchar_t *param_4)" identifier (parameter_list "(wstring *this,int param_2,int param_3,wchar_t *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 "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = wcslen(param_4);" (assignment_expression "sVar1 = wcslen(param_4)" identifier = (call_expression "wcslen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1);" (call_expression "replace(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1)" identifier (argument_list "(this,param_2 - *(int *)this >> 2,param_3 - param_2 >> 2,param_4,sVar1)" ( 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) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}\n\n" (function_definition "void FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" primitive_type (function_declarator "FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,wchar_t *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 "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = wcslen(param_4);" (assignment_expression "sVar1 = wcslen(param_4)" identifier = (call_expression "wcslen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);" (call_expression "FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1)" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1)" ( 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) , identifier , identifier ))) ;) (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 { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT - (pointer_expression * IDENT)) >> LIT) , (binary_expression (binary_expression IDENT - IDENT) >> LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)\n\n{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002315f0(int *param_1,int param_2,int param_3,wchar_t *param_4)" (identifier "FUN_002315f0") (parameter_list "(int *param_1,int param_2,int param_3,wchar_t *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 "wchar_t *param_4" (type_identifier "wchar_t") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = wcslen(param_4);\n  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (expression_statement "sVar1 = wcslen(param_4);" (assignment_expression "sVar1 = wcslen(param_4)" (identifier "sVar1") (= "=") (call_expression "wcslen(param_4)" (identifier "wcslen") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);" (call_expression "FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1)" (identifier "FUN_00231280") (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1)" (( "(") (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")) (, ",") (identifier "param_4") (, ",") (identifier "sVar1") () ")"))) (; ";")) (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 >, wchar_t const*) */

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

{
  size_t sVar1;
  
  sVar1 = var_1(param_4);
  function_1(this,var_2 - *(int *)this >> 2,var_3 - var_2 >> 2,param_4,sVar1);
  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: (type_identifier) 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))))) (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)) (identifier) (identifier)))) (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,wchar_t *param_4)

{
  size_t sVar1;
  
  sVar1 = wcslen(param_4);
  FUN_00231280(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,param_4,sVar1);
  return;
}

