
/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, unsigned long, wchar_t) */

void __thiscall
std::wstring::replace(wstring *this,long param_2,long param_3,ulong param_4,wchar_t param_5)

{
  _M_replace_aux(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5);
  return;
}



void FUN_003b4220(long *param_1,long param_2,long param_3)

{
  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);
  return;
}


SUB RDX,RSI
SUB RSI,qword ptr [RDI]
SAR RDX,0x2
SAR RSI,0x2
JMP 0x003b4090
(translation_unit "void FUN_003b4220(long *param_1,long param_2,long param_3)\n\n{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}\n\n" (function_definition "void FUN_003b4220(long *param_1,long param_2,long param_3)\n\n{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}" primitive_type (function_declarator "FUN_003b4220(long *param_1,long param_2,long param_3)" identifier (parameter_list "(long *param_1,long param_2,long param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}" { (expression_statement "FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);" (call_expression "FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2)" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2)" ( 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) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,\n   std::wstring >, unsigned long, wchar_t) */\n\nvoid __thiscall\nstd::wstring::replace(wstring *this,long param_2,long param_3,ulong param_4,wchar_t param_5)\n\n{\n  _M_replace_aux(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5);\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::wstring::replace(wstring *this,long param_2,long param_3,ulong param_4,wchar_t param_5)\n\n{\n  _M_replace_aux(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "replace(wstring *this,long param_2,long param_3,ulong param_4,wchar_t param_5)" identifier (parameter_list "(wstring *this,long param_2,long param_3,ulong param_4,wchar_t param_5)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) , (parameter_declaration "wchar_t param_5" type_identifier identifier) ))) (compound_statement "{\n  _M_replace_aux(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5);\n  return;\n}" { (expression_statement "_M_replace_aux(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5);" (call_expression "_M_replace_aux(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5)" identifier (argument_list "(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,param_4,param_5)" ( identifier , (binary_expression "param_2 - *(long *)this >> 2" (binary_expression "param_2 - *(long *)this" identifier - (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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_003b4220(long *param_1,long param_2,long param_3)\n\n{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}\n\n" (function_definition "void FUN_003b4220(long *param_1,long param_2,long param_3)\n\n{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}" primitive_type (function_declarator "FUN_003b4220(long *param_1,long param_2,long param_3)" identifier (parameter_list "(long *param_1,long param_2,long param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}" { (expression_statement "FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);" (call_expression "FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2)" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2)" ( 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) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) 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) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_003b4220(long *param_1,long param_2,long param_3)\n\n{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003b4220(long *param_1,long param_2,long param_3)" (identifier "FUN_003b4220") (parameter_list "(long *param_1,long param_2,long param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);\n  return;\n}" ({ "{") (expression_statement "FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);" (call_expression "FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2)" (identifier "FUN_003b4090") (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2)" (( "(") (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")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, unsigned long, wchar_t) */

void __thiscall
std::type_1::function_1(type_1 *this,long var_2,long var_3,type_2 param_4,type_3 param_5)

{
  var_1(this,var_2 - *(long *)this >> 2,var_3 - var_2 >> 2,param_4,param_5);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) 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))))) (return_statement))))

void MASKED(long *param_1,long param_2,long param_3)

{
  FUN_003b4090(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2);
  return;
}

