
/* 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,long param_2,long param_3,undefined8 *param_4)

{
  replace(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,
          *(ulong *)((wchar_t *)*param_4 + -6));
  return;
}



void FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)

{
  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,
               *(undefined8 *)(*param_4 + -0x18));
  return;
}


MOV RCX,qword ptr [RCX]
SUB RDX,RSI
SUB RSI,qword ptr [RDI]
SAR RDX,0x2
SAR RSI,0x2
MOV R8,qword ptr [RCX + -0x18]
JMP 0x003b5350
(translation_unit "void FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)\n\n{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}\n\n" (function_definition "void FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)\n\n{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}" primitive_type (function_declarator "FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)" identifier (parameter_list "(long *param_1,long param_2,long param_3,long *param_4)" ( (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) , (parameter_declaration "long *param_4" (sized_type_specifier "long" long) (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}" { (expression_statement "FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));" (call_expression "FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18))" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18))" ( 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 "*(undefined8 *)(*param_4 + -0x18)" * (cast_expression "(undefined8 *)(*param_4 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + -0x18)" ( (binary_expression "*param_4 + -0x18" (pointer_expression "*param_4" * 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 >, std::wstring const&) */\n\nvoid __thiscall std::wstring::replace(wstring *this,long param_2,long param_3,undefined8 *param_4)\n\n{\n  replace(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          *(ulong *)((wchar_t *)*param_4 + -6));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::replace(wstring *this,long param_2,long param_3,undefined8 *param_4)\n\n{\n  replace(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          *(ulong *)((wchar_t *)*param_4 + -6));\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,undefined8 *param_4)" identifier (parameter_list "(wstring *this,long param_2,long param_3,undefined8 *param_4)" ( (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 "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  replace(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          *(ulong *)((wchar_t *)*param_4 + -6));\n  return;\n}" { (expression_statement "replace(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          *(ulong *)((wchar_t *)*param_4 + -6));" (call_expression "replace(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          *(ulong *)((wchar_t *)*param_4 + -6))" identifier (argument_list "(this,param_2 - *(long *)this >> 2,param_3 - param_2 >> 2,(wchar_t *)*param_4,\n          *(ulong *)((wchar_t *)*param_4 + -6))" ( 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) , (cast_expression "(wchar_t *)*param_4" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) , (pointer_expression "*(ulong *)((wchar_t *)*param_4 + -6)" * (cast_expression "(ulong *)((wchar_t *)*param_4 + -6)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wchar_t *)*param_4 + -6)" ( (binary_expression "(wchar_t *)*param_4 + -6" (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_003b55f0(long *param_1,long param_2,long param_3,long *param_4)\n\n{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}\n\n" (function_definition "void FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)\n\n{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}" primitive_type (function_declarator "FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)" identifier (parameter_list "(long *param_1,long param_2,long param_3,long *param_4)" ( (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) , (parameter_declaration "long *param_4" (sized_type_specifier "long" long) (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}" { (expression_statement "FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));" (call_expression "FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18))" identifier (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18))" ( 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 "*(undefined8 *)(*param_4 + -0x18)" * (cast_expression "(undefined8 *)(*param_4 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + -0x18)" ( (binary_expression "*param_4 + -0x18" (pointer_expression "*param_4" * 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) , (parameter_declaration (sized_type_specifier long) (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_003b55f0(long *param_1,long param_2,long param_3,long *param_4)\n\n{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003b55f0(long *param_1,long param_2,long param_3,long *param_4)" (identifier "FUN_003b55f0") (parameter_list "(long *param_1,long param_2,long param_3,long *param_4)" (( "(") (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")) (, ",") (parameter_declaration "long *param_4" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));\n  return;\n}" ({ "{") (expression_statement "FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18));" (call_expression "FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18))" (identifier "FUN_003b5350") (argument_list "(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,\n               *(undefined8 *)(*param_4 + -0x18))" (( "(") (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 "*(undefined8 *)(*param_4 + -0x18)" (* "*") (cast_expression "(undefined8 *)(*param_4 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + -0x18)" (( "(") (binary_expression "*param_4 + -0x18" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "-0x18")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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,long var_1,long var_2,type_2 *param_4)

{
  function_1(this,var_1 - *(long *)this >> 2,var_2 - var_1 >> 2,(type_3 *)*param_4,
          *(type_4 *)((type_3 *)*param_4 + -6));
  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)) (parameter_declaration type: (sized_type_specifier) 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))))

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

{
  FUN_003b5350(param_1,param_2 - *param_1 >> 2,param_3 - param_2 >> 2,*param_4,
               *(undefined8 *)(*param_4 + -0x18));
  return;
}

