
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::_M_replace_aux(unsigned int, unsigned int, unsigned int, wchar_t) */

void std::wstring::_M_replace_aux(uint param_1,uint param_2,uint param_3,wchar_t param_4)

{
}



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

int * FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)

{
  wchar_t *__s;
  
  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {
                    /* WARNING: Subroutine does not return */
    FUN_003f3a70("basic_string::_M_replace_aux");
  }
  FUN_004311b0(param_1,param_2,param_3,param_4);
  if (param_4 != 0) {
    __s = (wchar_t *)(*param_1 + param_2 * 4);
    if (param_4 == 1) {
      *__s = param_5;
      return param_1;
    }
    wmemset(__s,param_5,param_4);
  }
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x1b8857
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x2c]
MOV EBP,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [EDI]
LEA EAX,[EDX + 0xffffffe]
SUB EAX,dword ptr [ECX + -0xc]
CMP ESI,EAX
JA 0x00431820
PUSH ESI
PUSH EDX
PUSH EBP
PUSH EDI
CALL 0x004311b0
ADD ESP,0x10
TEST ESI,ESI
JZ 0x004317fc
MOV EAX,dword ptr [EDI]
LEA EAX,[EAX + EBP*0x4]
CMP ESI,0x1
JZ 0x00431810
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL 0x000391e0
ADD ESP,0x10
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],ECX
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffeb87c0]
PUSH EAX
CALL 0x003f3a70
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)\n\n{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)\n\n{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" * (function_declarator "FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" identifier (parameter_list "(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" ( (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 "uint param_4" type_identifier identifier) , (parameter_declaration "wchar_t param_5" type_identifier identifier) )))) (compound_statement "{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}" { (declaration "wchar_t *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (if_statement "if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }" if (parenthesized_expression "((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4)" ( (binary_expression "(uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4" (call_expression "(uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc))" ( (binary_expression "(param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)" (parenthesized_expression "(param_3 + 0xffffffe)" ( (binary_expression "param_3 + 0xffffffe" identifier + number_literal) )) - (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ))) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }" { comment (expression_statement "FUN_003f3a70("basic_string::_M_replace_aux");" (call_expression "FUN_003f3a70("basic_string::_M_replace_aux")" identifier (argument_list "("basic_string::_M_replace_aux")" ( (string_literal ""basic_string::_M_replace_aux"" " string_content ") ))) ;) })) (expression_statement "FUN_004311b0(param_1,param_2,param_3,param_4);" (call_expression "FUN_004311b0(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }" { (expression_statement "__s = (wchar_t *)(*param_1 + param_2 * 4);" (assignment_expression "__s = (wchar_t *)(*param_1 + param_2 * 4)" identifier = (cast_expression "(wchar_t *)(*param_1 + param_2 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_2 * 4)" ( (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (if_statement "if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }" if (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) (compound_statement "{\n      *__s = param_5;\n      return param_1;\n    }" { (expression_statement "*__s = param_5;" (assignment_expression "*__s = param_5" (pointer_expression "*__s" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "wmemset(__s,param_5,param_4);" (call_expression "wmemset(__s,param_5,param_4)" identifier (argument_list "(__s,param_5,param_4)" ( identifier , identifier , identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::_M_replace_aux(unsigned int, unsigned int, unsigned int, wchar_t) */\n\nvoid std::wstring::_M_replace_aux(uint param_1,uint param_2,uint param_3,wchar_t param_4)\n\n{\n}\n\n" comment comment (function_definition "void std::wstring::_M_replace_aux(uint param_1,uint param_2,uint param_3,wchar_t param_4)\n\n{\n}" primitive_type (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_M_replace_aux(uint param_1,uint param_2,uint param_3,wchar_t param_4)" identifier (parameter_list "(uint param_1,uint param_2,uint param_3,wchar_t param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "wchar_t param_4" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int * FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)\n\n{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}\n\n" (function_definition "int * FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)\n\n{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" * (function_declarator "FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" identifier (parameter_list "(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" ( (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 "uint param_4" type_identifier identifier) , (parameter_declaration "wchar_t param_5" type_identifier identifier) )))) (compound_statement "{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}" { (declaration "wchar_t *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (if_statement "if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }" if (parenthesized_expression "((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4)" ( (binary_expression "(uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4" (call_expression "(uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc))" ( (binary_expression "(param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)" (parenthesized_expression "(param_3 + 0xffffffe)" ( (binary_expression "param_3 + 0xffffffe" identifier + number_literal) )) - (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ))) < identifier) )) (compound_statement "{\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }" { (expression_statement "FUN_003f3a70("basic_string::_M_replace_aux");" (call_expression "FUN_003f3a70("basic_string::_M_replace_aux")" identifier (argument_list "("basic_string::_M_replace_aux")" ( (string_literal ""basic_string::_M_replace_aux"" " string_content ") ))) ;) })) (expression_statement "FUN_004311b0(param_1,param_2,param_3,param_4);" (call_expression "FUN_004311b0(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }" { (expression_statement "__s = (wchar_t *)(*param_1 + param_2 * 4);" (assignment_expression "__s = (wchar_t *)(*param_1 + param_2 * 4)" identifier = (cast_expression "(wchar_t *)(*param_1 + param_2 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_2 * 4)" ( (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (if_statement "if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }" if (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) (compound_statement "{\n      *__s = param_5;\n      return param_1;\n    }" { (expression_statement "*__s = param_5;" (assignment_expression "*__s = param_5" (pointer_expression "*__s" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "wmemset(__s,param_5,param_4);" (call_expression "wmemset(__s,param_5,param_4)" identifier (argument_list "(__s,param_5,param_4)" ( identifier , identifier , identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ))) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)\n\n{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" (* "*") (function_declarator "FUN_004317a0(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" (identifier "FUN_004317a0") (parameter_list "(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)" (( "(") (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 "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "wchar_t param_5" (type_identifier "wchar_t") (identifier "param_5")) () ")")))) (compound_statement "{\n  wchar_t *__s;\n  \n  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }\n  FUN_004311b0(param_1,param_2,param_3,param_4);\n  if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }\n  return param_1;\n}" ({ "{") (declaration "wchar_t *__s;" (type_identifier "wchar_t") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (if_statement "if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }" (if "if") (parenthesized_expression "((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4)" (( "(") (binary_expression "(uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4" (call_expression "(uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)" (parenthesized_expression "(param_3 + 0xffffffe)" (( "(") (binary_expression "param_3 + 0xffffffe" (identifier "param_3") (+ "+") (number_literal "0xffffffe")) () ")")) (- "-") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n                    \n    FUN_003f3a70("basic_string::_M_replace_aux");\n  }" ({ "{") (expression_statement "FUN_003f3a70("basic_string::_M_replace_aux");" (call_expression "FUN_003f3a70("basic_string::_M_replace_aux")" (identifier "FUN_003f3a70") (argument_list "("basic_string::_M_replace_aux")" (( "(") (string_literal ""basic_string::_M_replace_aux"" (" """) (string_content "basic_string::_M_replace_aux") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_004311b0(param_1,param_2,param_3,param_4);" (call_expression "FUN_004311b0(param_1,param_2,param_3,param_4)" (identifier "FUN_004311b0") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (if_statement "if (param_4 != 0) {\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    __s = (wchar_t *)(*param_1 + param_2 * 4);\n    if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }\n    wmemset(__s,param_5,param_4);\n  }" ({ "{") (expression_statement "__s = (wchar_t *)(*param_1 + param_2 * 4);" (assignment_expression "__s = (wchar_t *)(*param_1 + param_2 * 4)" (identifier "__s") (= "=") (cast_expression "(wchar_t *)(*param_1 + param_2 * 4)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + param_2 * 4)" (( "(") (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (param_4 == 1) {\n      *__s = param_5;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(param_4 == 1)" (( "(") (binary_expression "param_4 == 1" (identifier "param_4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *__s = param_5;\n      return param_1;\n    }" ({ "{") (expression_statement "*__s = param_5;" (assignment_expression "*__s = param_5" (pointer_expression "*__s" (* "*") (identifier "__s")) (= "=") (identifier "param_5")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "wmemset(__s,param_5,param_4);" (call_expression "wmemset(__s,param_5,param_4)" (identifier "wmemset") (argument_list "(__s,param_5,param_4)" (( "(") (identifier "__s") (, ",") (identifier "param_5") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::_M_replace_aux(unsigned int, unsigned int, unsigned int, wchar_t) */

void std::wstring::function_1(type_1 param_1,type_1 param_2,type_1 param_3,type_2 param_4)

{
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator 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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (return_statement (identifier)))))

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

int * MASKED(int *param_1,int param_2,int param_3,uint param_4,wchar_t param_5)

{
  wchar_t *__s;
  
  if ((uint)((param_3 + 0xffffffe) - *(int *)(*param_1 + -0xc)) < param_4) {
                    /* WARNING: Subroutine does not return */
    FUN_003f3a70("basic_string::_M_replace_aux");
  }
  FUN_004311b0(param_1,param_2,param_3,param_4);
  if (param_4 != 0) {
    __s = (wchar_t *)(*param_1 + param_2 * 4);
    if (param_4 == 1) {
      *__s = param_5;
      return param_1;
    }
    wmemset(__s,param_5,param_4);
  }
  return param_1;
}

