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

wchar_t * std::wstring::_S_construct<__normal_iterator<wchar_t*,std::wstring>>
                    (wchar_t *param_1,wchar_t *param_2,allocator *param_3)

{
  uint *puVar1;
  wchar_t *__s1;
  uint __n;
  
  if (param_2 == param_1) {
    __s1 = (wchar_t *)&DAT_00397f6c;
  }
  else {
    __n = (int)param_2 - (int)param_1 >> 2;
    puVar1 = (uint *)_Rep::_S_create(__n,0,param_3);
    __s1 = (wchar_t *)(puVar1 + 3);
    if (__n == 1) {
      puVar1[3] = *param_1;
    }
    else {
      wmemcpy(__s1,param_1,__n);
    }
    if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {
      puVar1[2] = 0;
      *puVar1 = __n;
      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;
    }
  }
  return __s1;
}



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

wchar_t * FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)

{
  size_t *psVar1;
  wchar_t *__s1;
  size_t __n;
  
  if (param_2 == param_1) {
    __s1 = (wchar_t *)&DAT_00397f6c;
  }
  else {
    __n = (int)param_2 - (int)param_1 >> 2;
    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);
    __s1 = (wchar_t *)(psVar1 + 3);
    if (__n == 1) {
      psVar1[3] = *param_1;
    }
    else {
      wmemcpy(__s1,param_1,__n);
    }
    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {
      psVar1[2] = 0;
      *psVar1 = __n;
      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;
    }
  }
  return __s1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1237a7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
CMP ESI,dword ptr [ESP + 0x30]
JZ 0x0026b8c8
SUB ESI,dword ptr [ESP + 0x30]
SUB ESP,0x4
MOV EDI,ESI
PUSH dword ptr [ESP + 0x3c]
SAR EDI,0x2
PUSH 0x0
PUSH EDI
CALL 0x00269ab0
ADD ESP,0x10
MOV EDX,EAX
LEA EBP,[EAX + 0xc]
CMP EDI,0x1
JZ 0x0026b8e0
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00029370
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
CMP EDX,dword ptr [EBX + 0xfffffd58]
JZ 0x0026b8d1
MOV dword ptr [EDX + 0x8],0x0
MOV dword ptr [EDX],EDI
MOV dword ptr [EDX + ESI*0x1 + 0xc],0x0
JMP 0x0026b8d1
LEA EAX,[EBX + 0x8f60]
LEA EBP,[EAX + 0xc]
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EDX + 0xc],EAX
JMP 0x0026b8aa
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nwchar_t * FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}\n\n" comment (function_definition "wchar_t * FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" type_identifier (pointer_declarator "* FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" * (function_declarator "FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" identifier (parameter_list "(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (if_statement "if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" if (parenthesized_expression "(param_2 == param_1)" ( (binary_expression "param_2 == param_1" identifier == identifier) )) (compound_statement "{\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }" { (expression_statement "__s1 = (wchar_t *)&DAT_00397f6c;" (assignment_expression "__s1 = (wchar_t *)&DAT_00397f6c" identifier = (cast_expression "(wchar_t *)&DAT_00397f6c" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00397f6c" & identifier))) ;) }) (else_clause "else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" else (compound_statement "{\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" { (expression_statement "__n = (int)param_2 - (int)param_1 >> 2;" (assignment_expression "__n = (int)param_2 - (int)param_1 >> 2" identifier = (binary_expression "(int)param_2 - (int)param_1 >> 2" (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);" (assignment_expression "psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3)" identifier = (cast_expression "(size_t *)FUN_00269ab0(__n,0,param_3)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00269ab0(__n,0,param_3)" identifier (argument_list "(__n,0,param_3)" ( identifier , number_literal , identifier ))))) ;) (expression_statement "__s1 = (wchar_t *)(psVar1 + 3);" (assignment_expression "__s1 = (wchar_t *)(psVar1 + 3)" identifier = (cast_expression "(wchar_t *)(psVar1 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) )))) ;) (if_statement "if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      psVar1[3] = *param_1;\n    }" { (expression_statement "psVar1[3] = *param_1;" (assignment_expression "psVar1[3] = *param_1" (subscript_expression "psVar1[3]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n      wmemcpy(__s1,param_1,__n);\n    }" else (compound_statement "{\n      wmemcpy(__s1,param_1,__n);\n    }" { (expression_statement "wmemcpy(__s1,param_1,__n);" (call_expression "wmemcpy(__s1,param_1,__n)" identifier (argument_list "(__s1,param_1,__n)" ( identifier , identifier , identifier ))) ;) }))) (if_statement "if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" if (parenthesized_expression "(psVar1 != (size_t *)PTR_DAT_0038ed58)" ( (binary_expression "psVar1 != (size_t *)PTR_DAT_0038ed58" identifier != (cast_expression "(size_t *)PTR_DAT_0038ed58" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" { (expression_statement "psVar1[2] = 0;" (assignment_expression "psVar1[2] = 0" (subscript_expression "psVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*psVar1 = __n;" (assignment_expression "*psVar1 = __n" (pointer_expression "*psVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" * (cast_expression "(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" ( (binary_expression "(int)psVar1 + ((int)param_2 - (int)param_1) + 0xc" (binary_expression "(int)psVar1 + ((int)param_2 - (int)param_1)" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)param_2 - (int)param_1)" ( (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return __s1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* wchar_t* std::wstring::_S_construct<__normal_iterator<wchar_t*, std::wstring >\n   >(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*, std::wstring >,\n   std::allocator<wchar_t> const&, std::forward_iterator_tag) */\n\nwchar_t * std::wstring::_S_construct<__normal_iterator<wchar_t*,std::wstring>>\n                    (wchar_t *param_1,wchar_t *param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  wchar_t *__s1;\n  uint __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    puVar1 = (uint *)_Rep::_S_create(__n,0,param_3);\n    __s1 = (wchar_t *)(puVar1 + 3);\n    if (__n == 1) {\n      puVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}\n\n" comment comment (ERROR "wchar_t * std::" (binary_expression "wchar_t * std" identifier * identifier) : :) (labeled_statement "wstring::_S_construct<__normal_iterator<wchar_t*,std::wstring>>\n                    (wchar_t *param_1,wchar_t *param_2,allocator *param_3)" statement_identifier (ERROR "::_S_construct<__normal_iterator<wchar_t*,std:" : : (comma_expression "_S_construct<__normal_iterator<wchar_t*,std" (binary_expression "_S_construct<__normal_iterator<wchar_t" (binary_expression "_S_construct<__normal_iterator" identifier < identifier) < identifier) (ERROR "*" *) , identifier) :) : (expression_statement "wstring>>\n                    (wchar_t *param_1,wchar_t *param_2,allocator *param_3)" (binary_expression "wstring>>\n                    (wchar_t *param_1,wchar_t *param_2,allocator *param_3)" identifier >> (parenthesized_expression "(wchar_t *param_1,wchar_t *param_2,allocator *param_3)" ( (comma_expression "wchar_t *param_1,wchar_t *param_2,allocator *param_3" (binary_expression "wchar_t *param_1" identifier * identifier) , (comma_expression "wchar_t *param_2,allocator *param_3" (binary_expression "wchar_t *param_2" identifier * identifier) , (binary_expression "allocator *param_3" identifier * identifier))) ))) ;)) (compound_statement "{\n  uint *puVar1;\n  wchar_t *__s1;\n  uint __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    puVar1 = (uint *)_Rep::_S_create(__n,0,param_3);\n    __s1 = (wchar_t *)(puVar1 + 3);\n    if (__n == 1) {\n      puVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (if_statement "if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    puVar1 = (uint *)_Rep::_S_create(__n,0,param_3);\n    __s1 = (wchar_t *)(puVar1 + 3);\n    if (__n == 1) {\n      puVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" if (parenthesized_expression "(param_2 == param_1)" ( (binary_expression "param_2 == param_1" identifier == identifier) )) (compound_statement "{\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }" { (expression_statement "__s1 = (wchar_t *)&DAT_00397f6c;" (assignment_expression "__s1 = (wchar_t *)&DAT_00397f6c" identifier = (cast_expression "(wchar_t *)&DAT_00397f6c" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00397f6c" & identifier))) ;) }) (else_clause "else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    puVar1 = (uint *)_Rep::_S_create(__n,0,param_3);\n    __s1 = (wchar_t *)(puVar1 + 3);\n    if (__n == 1) {\n      puVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" else (compound_statement "{\n    __n = (int)param_2 - (int)param_1 >> 2;\n    puVar1 = (uint *)_Rep::_S_create(__n,0,param_3);\n    __s1 = (wchar_t *)(puVar1 + 3);\n    if (__n == 1) {\n      puVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" { (expression_statement "__n = (int)param_2 - (int)param_1 >> 2;" (assignment_expression "__n = (int)param_2 - (int)param_1 >> 2" identifier = (binary_expression "(int)param_2 - (int)param_1 >> 2" (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (ERROR "puVar1 = (uint *)_Rep::" (assignment_expression "puVar1 = (uint *)_Rep" identifier = (cast_expression "(uint *)_Rep" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(__n,0,param_3);" (call_expression "_S_create(__n,0,param_3)" identifier (argument_list "(__n,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "__s1 = (wchar_t *)(puVar1 + 3);" (assignment_expression "__s1 = (wchar_t *)(puVar1 + 3)" identifier = (cast_expression "(wchar_t *)(puVar1 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) )))) ;) (if_statement "if (__n == 1) {\n      puVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      puVar1[3] = *param_1;\n    }" { (expression_statement "puVar1[3] = *param_1;" (assignment_expression "puVar1[3] = *param_1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n      wmemcpy(__s1,param_1,__n);\n    }" else (compound_statement "{\n      wmemcpy(__s1,param_1,__n);\n    }" { (expression_statement "wmemcpy(__s1,param_1,__n);" (call_expression "wmemcpy(__s1,param_1,__n)" identifier (argument_list "(__s1,param_1,__n)" ( identifier , identifier , identifier ))) ;) }))) (if_statement "if (puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58) {\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" if (parenthesized_expression "(puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58)" ( (binary_expression "puVar1 != (uint *)PTR__S_empty_rep_storage_0038ed58" identifier != (cast_expression "(uint *)PTR__S_empty_rep_storage_0038ed58" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      puVar1[2] = 0;\n      *puVar1 = __n;\n      *(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = __n;" (assignment_expression "*puVar1 = __n" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc)" * (cast_expression "(undefined4 *)((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + ((int)param_2 - (int)param_1) + 0xc)" ( (binary_expression "(int)puVar1 + ((int)param_2 - (int)param_1) + 0xc" (binary_expression "(int)puVar1 + ((int)param_2 - (int)param_1)" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)param_2 - (int)param_1)" ( (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return __s1;" return identifier ;) }))
(translation_unit "wchar_t * FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}\n\n" (function_definition "wchar_t * FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" type_identifier (pointer_declarator "* FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" * (function_declarator "FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" identifier (parameter_list "(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (if_statement "if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" if (parenthesized_expression "(param_2 == param_1)" ( (binary_expression "param_2 == param_1" identifier == identifier) )) (compound_statement "{\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }" { (expression_statement "__s1 = (wchar_t *)&DAT_00397f6c;" (assignment_expression "__s1 = (wchar_t *)&DAT_00397f6c" identifier = (cast_expression "(wchar_t *)&DAT_00397f6c" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00397f6c" & identifier))) ;) }) (else_clause "else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" else (compound_statement "{\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" { (expression_statement "__n = (int)param_2 - (int)param_1 >> 2;" (assignment_expression "__n = (int)param_2 - (int)param_1 >> 2" identifier = (binary_expression "(int)param_2 - (int)param_1 >> 2" (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);" (assignment_expression "psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3)" identifier = (cast_expression "(size_t *)FUN_00269ab0(__n,0,param_3)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00269ab0(__n,0,param_3)" identifier (argument_list "(__n,0,param_3)" ( identifier , number_literal , identifier ))))) ;) (expression_statement "__s1 = (wchar_t *)(psVar1 + 3);" (assignment_expression "__s1 = (wchar_t *)(psVar1 + 3)" identifier = (cast_expression "(wchar_t *)(psVar1 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) )))) ;) (if_statement "if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      psVar1[3] = *param_1;\n    }" { (expression_statement "psVar1[3] = *param_1;" (assignment_expression "psVar1[3] = *param_1" (subscript_expression "psVar1[3]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n      wmemcpy(__s1,param_1,__n);\n    }" else (compound_statement "{\n      wmemcpy(__s1,param_1,__n);\n    }" { (expression_statement "wmemcpy(__s1,param_1,__n);" (call_expression "wmemcpy(__s1,param_1,__n)" identifier (argument_list "(__s1,param_1,__n)" ( identifier , identifier , identifier ))) ;) }))) (if_statement "if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" if (parenthesized_expression "(psVar1 != (size_t *)PTR_DAT_0038ed58)" ( (binary_expression "psVar1 != (size_t *)PTR_DAT_0038ed58" identifier != (cast_expression "(size_t *)PTR_DAT_0038ed58" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" { (expression_statement "psVar1[2] = 0;" (assignment_expression "psVar1[2] = 0" (subscript_expression "psVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*psVar1 = __n;" (assignment_expression "*psVar1 = __n" (pointer_expression "*psVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" * (cast_expression "(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" ( (binary_expression "(int)psVar1 + ((int)param_2 - (int)param_1) + 0xc" (binary_expression "(int)psVar1 + ((int)param_2 - (int)param_1)" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)param_2 - (int)param_1)" ( (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return __s1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) + LIT) )))) = LIT) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "wchar_t * FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" (type_identifier "wchar_t") (pointer_declarator "* FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" (* "*") (function_declarator "FUN_0026b850(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" (identifier "FUN_0026b850") (parameter_list "(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)" (( "(") (parameter_declaration "wchar_t *param_1" (type_identifier "wchar_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wchar_t *param_2" (type_identifier "wchar_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")")))) (compound_statement "{\n  size_t *psVar1;\n  wchar_t *__s1;\n  size_t __n;\n  \n  if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }\n  return __s1;\n}" ({ "{") (declaration "size_t *psVar1;" (primitive_type "size_t") (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "wchar_t *__s1;" (type_identifier "wchar_t") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (if_statement "if (param_2 == param_1) {\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }\n  else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == param_1)" (( "(") (binary_expression "param_2 == param_1" (identifier "param_2") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n    __s1 = (wchar_t *)&DAT_00397f6c;\n  }" ({ "{") (expression_statement "__s1 = (wchar_t *)&DAT_00397f6c;" (assignment_expression "__s1 = (wchar_t *)&DAT_00397f6c" (identifier "__s1") (= "=") (cast_expression "(wchar_t *)&DAT_00397f6c" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00397f6c" (& "&") (identifier "DAT_00397f6c")))) (; ";")) (} "}")) (else_clause "else {\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" (else "else") (compound_statement "{\n    __n = (int)param_2 - (int)param_1 >> 2;\n    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);\n    __s1 = (wchar_t *)(psVar1 + 3);\n    if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }\n    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }\n  }" ({ "{") (expression_statement "__n = (int)param_2 - (int)param_1 >> 2;" (assignment_expression "__n = (int)param_2 - (int)param_1 >> 2" (identifier "__n") (= "=") (binary_expression "(int)param_2 - (int)param_1 >> 2" (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);" (assignment_expression "psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3)" (identifier "psVar1") (= "=") (cast_expression "(size_t *)FUN_00269ab0(__n,0,param_3)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00269ab0(__n,0,param_3)" (identifier "FUN_00269ab0") (argument_list "(__n,0,param_3)" (( "(") (identifier "__n") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))))) (; ";")) (expression_statement "__s1 = (wchar_t *)(psVar1 + 3);" (assignment_expression "__s1 = (wchar_t *)(psVar1 + 3)" (identifier "__s1") (= "=") (cast_expression "(wchar_t *)(psVar1 + 3)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar1 + 3)" (( "(") (binary_expression "psVar1 + 3" (identifier "psVar1") (+ "+") (number_literal "3")) () ")")))) (; ";")) (if_statement "if (__n == 1) {\n      psVar1[3] = *param_1;\n    }\n    else {\n      wmemcpy(__s1,param_1,__n);\n    }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      psVar1[3] = *param_1;\n    }" ({ "{") (expression_statement "psVar1[3] = *param_1;" (assignment_expression "psVar1[3] = *param_1" (subscript_expression "psVar1[3]" (identifier "psVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (else_clause "else {\n      wmemcpy(__s1,param_1,__n);\n    }" (else "else") (compound_statement "{\n      wmemcpy(__s1,param_1,__n);\n    }" ({ "{") (expression_statement "wmemcpy(__s1,param_1,__n);" (call_expression "wmemcpy(__s1,param_1,__n)" (identifier "wmemcpy") (argument_list "(__s1,param_1,__n)" (( "(") (identifier "__s1") (, ",") (identifier "param_1") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}")))) (if_statement "if (psVar1 != (size_t *)PTR_DAT_0038ed58) {\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" (if "if") (parenthesized_expression "(psVar1 != (size_t *)PTR_DAT_0038ed58)" (( "(") (binary_expression "psVar1 != (size_t *)PTR_DAT_0038ed58" (identifier "psVar1") (!= "!=") (cast_expression "(size_t *)PTR_DAT_0038ed58" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0038ed58"))) () ")")) (compound_statement "{\n      psVar1[2] = 0;\n      *psVar1 = __n;\n      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;\n    }" ({ "{") (expression_statement "psVar1[2] = 0;" (assignment_expression "psVar1[2] = 0" (subscript_expression "psVar1[2]" (identifier "psVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*psVar1 = __n;" (assignment_expression "*psVar1 = __n" (pointer_expression "*psVar1" (* "*") (identifier "psVar1")) (= "=") (identifier "__n")) (; ";")) (expression_statement "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc)" (( "(") (binary_expression "(int)psVar1 + ((int)param_2 - (int)param_1) + 0xc" (binary_expression "(int)psVar1 + ((int)param_2 - (int)param_1)" (cast_expression "(int)psVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar1")) (+ "+") (parenthesized_expression "((int)param_2 - (int)param_1)" (( "(") (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (return_statement "return __s1;" (return "return") (identifier "__s1") (; ";")) (} "}")))

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

var_2 * std::wstring::_S_construct<__normal_iterator<var_2*,std::var_1>>
                    (var_2 *var_3,var_2 *var_4,var_5 *var_6)

{
  type_1 *var_8;
  var_2 *__s1;
  type_1 var_9;
  
  if (var_4 == var_3) {
    __s1 = (var_2 *)&DAT_00397f6c;
  }
  else {
    var_9 = (int)var_4 - (int)var_3 >> 2;
    var_8 = (type_1 *)_Rep::var_7(var_9,0,var_6);
    __s1 = (var_2 *)(var_8 + 3);
    if (var_9 == 1) {
      var_8[3] = *var_3;
    }
    else {
      var_10(__s1,var_3,var_9);
    }
    if (var_8 != (type_1 *)PTR__S_empty_rep_storage_0038ed58) {
      var_8[2] = 0;
      *var_8 = var_9;
      *(type_2 *)((int)var_8 + ((int)var_4 - (int)var_3) + 0xc) = 0;
    }
  }
  return __s1;
}


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

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

wchar_t * MASKED(wchar_t *param_1,wchar_t *param_2,undefined4 param_3)

{
  size_t *psVar1;
  wchar_t *__s1;
  size_t __n;
  
  if (param_2 == param_1) {
    __s1 = (wchar_t *)&DAT_00397f6c;
  }
  else {
    __n = (int)param_2 - (int)param_1 >> 2;
    psVar1 = (size_t *)FUN_00269ab0(__n,0,param_3);
    __s1 = (wchar_t *)(psVar1 + 3);
    if (__n == 1) {
      psVar1[3] = *param_1;
    }
    else {
      wmemcpy(__s1,param_1,__n);
    }
    if (psVar1 != (size_t *)PTR_DAT_0038ed58) {
      psVar1[2] = 0;
      *psVar1 = __n;
      *(undefined4 *)((int)psVar1 + ((int)param_2 - (int)param_1) + 0xc) = 0;
    }
  }
  return __s1;
}

