
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wstring std::TEMPNAMEPLACEHOLDERVALUE(wchar_t const*, std::wstring const&) */

wchar_t * std::operator+(wchar_t *param_1,wstring *param_2)

{
  int iVar1;
  size_t sVar2;
  int unaff_EDI;
  undefined4 *in_stack_0000000c;
  
  __x86_get_pc_thunk_di();
  sVar2 = wcslen((wchar_t *)param_2);
  param_1[1] = L'\0';
  iVar1 = in_stack_0000000c[1];
  *param_1 = (wchar_t)(param_1 + 2);
  param_1[2] = L'\0';
                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */
  wstring::reserve((wstring *)param_1,sVar2 + iVar1);
  if (sVar2 <= (uint)(0x1fffffffU - param_1[1])) {
    wstring::_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);
    wstring::_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error((char *)(unaff_EDI + 0x9ed82));
}



int * FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)

{
  int iVar1;
  size_t sVar2;
  int unaff_EDI;
  
  FUN_00058c4a();
  sVar2 = wcslen(param_2);
  param_1[1] = 0;
  iVar1 = param_3[1];
  *param_1 = (int)(param_1 + 2);
  param_1[2] = 0;
                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */
  FUN_001b0d20(param_1,sVar2 + iVar1);
  if (sVar2 <= 0x1fffffffU - param_1[1]) {
    FUN_001b2330(param_1,param_2,sVar2);
    FUN_001b2330(param_1,*param_3,param_3[1]);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001f1e60(unaff_EDI + 0x9ed82);
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x00058c4a
ADD EDI,0x18bd17
PUSH ESI
PUSH EBX
SUB ESP,0x28
PUSH dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV EBX,EDI
CALL 0x00028280
MOV EBX,dword ptr [EBP + 0x10]
POP EDX
LEA EDX,[ESI + 0x8]
POP ECX
MOV dword ptr [EBP + -0x1c],EAX
MOV dword ptr [ESI + 0x4],0x0
ADD EAX,dword ptr [EBX + 0x4]
MOV EBX,EDI
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x8],0x0
PUSH EAX
PUSH ESI
MOV dword ptr [EBP + -0x20],EDX
CALL 0x001b0d20
MOV EAX,0x1fffffff
ADD ESP,0x10
SUB EAX,dword ptr [ESI + 0x4]
CMP dword ptr [EBP + -0x1c],EAX
JA 0x001b336a
SUB ESP,0x4
PUSH dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + 0xc]
PUSH ESI
CALL 0x001b2330
MOV EAX,dword ptr [EBP + 0x10]
ADD ESP,0xc
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
PUSH ESI
CALL 0x001b2330
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
SUB ESP,0xc
LEA EAX,[EDI + 0xfff1306b]
PUSH EAX
CALL 0x001f1e60
(translation_unit "int * FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */\n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}\n\n" (function_definition "int * FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */\n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}" primitive_type (pointer_declarator "* FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)" * (function_declarator "FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,wchar_t *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (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 (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */\n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar2 = wcslen(param_2);" (assignment_expression "sVar2 = wcslen(param_2)" identifier = (call_expression "wcslen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = param_3[1];" (assignment_expression "iVar1 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "FUN_001b0d20(param_1,sVar2 + iVar1);" (call_expression "FUN_001b0d20(param_1,sVar2 + iVar1)" identifier (argument_list "(param_1,sVar2 + iVar1)" ( identifier , (binary_expression "sVar2 + iVar1" identifier + identifier) ))) ;) (if_statement "if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" if (parenthesized_expression "(sVar2 <= 0x1fffffffU - param_1[1])" ( (binary_expression "sVar2 <= 0x1fffffffU - param_1[1]" identifier <= (binary_expression "0x1fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" { (expression_statement "FUN_001b2330(param_1,param_2,sVar2);" (call_expression "FUN_001b2330(param_1,param_2,sVar2)" identifier (argument_list "(param_1,param_2,sVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_001b2330(param_1,*param_3,param_3[1]);" (call_expression "FUN_001b2330(param_1,*param_3,param_3[1])" identifier (argument_list "(param_1,*param_3,param_3[1])" ( identifier , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_3[1]" identifier [ number_literal ]) ))) ;) (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_001f1e60(unaff_EDI + 0x9ed82);" (call_expression "FUN_001f1e60(unaff_EDI + 0x9ed82)" identifier (argument_list "(unaff_EDI + 0x9ed82)" ( (binary_expression "unaff_EDI + 0x9ed82" identifier + number_literal) ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::wstring std::TEMPNAMEPLACEHOLDERVALUE(wchar_t const*, std::wstring const&) */\n\nwchar_t * std::operator+(wchar_t *param_1,wstring *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  undefined4 *in_stack_0000000c;\n  \n  __x86_get_pc_thunk_di();\n  sVar2 = wcslen((wchar_t *)param_2);\n  param_1[1] = L'\0';\n  iVar1 = in_stack_0000000c[1];\n  *param_1 = (wchar_t)(param_1 + 2);\n  param_1[2] = L'\0';\n                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */\n  wstring::reserve((wstring *)param_1,sVar2 + iVar1);\n  if (sVar2 <= (uint)(0x1fffffffU - param_1[1])) {\n    wstring::_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);\n    wstring::_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error((char *)(unaff_EDI + 0x9ed82));\n}\n\n" comment comment (ERROR "wchar_t * std::operator+(wchar_t *param_1,wstring *param_2)" (binary_expression "wchar_t * std::operator+(wchar_t *param_1,wstring *param_2)" (binary_expression "wchar_t * std" identifier * identifier) (ERROR "::operator" : : identifier) + (parenthesized_expression "(wchar_t *param_1,wstring *param_2)" ( (comma_expression "wchar_t *param_1,wstring *param_2" (binary_expression "wchar_t *param_1" identifier * identifier) , (binary_expression "wstring *param_2" identifier * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  undefined4 *in_stack_0000000c;\n  \n  __x86_get_pc_thunk_di();\n  sVar2 = wcslen((wchar_t *)param_2);\n  param_1[1] = L'\0';\n  iVar1 = in_stack_0000000c[1];\n  *param_1 = (wchar_t)(param_1 + 2);\n  param_1[2] = L'\0';\n                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */\n  wstring::reserve((wstring *)param_1,sVar2 + iVar1);\n  if (sVar2 <= (uint)(0x1fffffffU - param_1[1])) {\n    wstring::_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);\n    wstring::_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error((char *)(unaff_EDI + 0x9ed82));\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *in_stack_0000000c;" type_identifier (pointer_declarator "*in_stack_0000000c" * identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar2 = wcslen((wchar_t *)param_2);" (assignment_expression "sVar2 = wcslen((wchar_t *)param_2)" identifier = (call_expression "wcslen((wchar_t *)param_2)" identifier (argument_list "((wchar_t *)param_2)" ( (cast_expression "(wchar_t *)param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "param_1[1] = L'\0';" (assignment_expression "param_1[1] = L'\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "iVar1 = in_stack_0000000c[1];" (assignment_expression "iVar1 = in_stack_0000000c[1]" identifier = (subscript_expression "in_stack_0000000c[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = (wchar_t)(param_1 + 2);" (assignment_expression "*param_1 = (wchar_t)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (call_expression "(wchar_t)(param_1 + 2)" (parenthesized_expression "(wchar_t)" ( identifier )) (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "param_1[2] = L'\0';" (assignment_expression "param_1[2] = L'\0'" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) comment (labeled_statement "wstring::reserve((wstring *)param_1,sVar2 + iVar1);" statement_identifier : (ERROR ":" :) (expression_statement "reserve((wstring *)param_1,sVar2 + iVar1);" (call_expression "reserve((wstring *)param_1,sVar2 + iVar1)" identifier (argument_list "((wstring *)param_1,sVar2 + iVar1)" ( (cast_expression "(wstring *)param_1" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "sVar2 + iVar1" identifier + identifier) ))) ;)) (if_statement "if (sVar2 <= (uint)(0x1fffffffU - param_1[1])) {\n    wstring::_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);\n    wstring::_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);\n    return param_1;\n  }" if (parenthesized_expression "(sVar2 <= (uint)(0x1fffffffU - param_1[1]))" ( (binary_expression "sVar2 <= (uint)(0x1fffffffU - param_1[1])" identifier <= (call_expression "(uint)(0x1fffffffU - param_1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x1fffffffU - param_1[1])" ( (binary_expression "0x1fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) )) (compound_statement "{\n    wstring::_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);\n    wstring::_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);\n    return param_1;\n  }" { (labeled_statement "wstring::_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2);" (call_expression "_M_append((wstring *)param_1,(wchar_t *)param_2,sVar2)" identifier (argument_list "((wstring *)param_1,(wchar_t *)param_2,sVar2)" ( (cast_expression "(wstring *)param_1" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wchar_t *)param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;)) (labeled_statement "wstring::_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1]);" (call_expression "_M_append((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1])" identifier (argument_list "((wstring *)param_1,(wchar_t *)*in_stack_0000000c,in_stack_0000000c[1])" ( (cast_expression "(wstring *)param_1" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wchar_t *)*in_stack_0000000c" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_stack_0000000c" * identifier)) , (subscript_expression "in_stack_0000000c[1]" identifier [ number_literal ]) ))) ;)) (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "__throw_length_error((char *)(unaff_EDI + 0x9ed82));" (call_expression "__throw_length_error((char *)(unaff_EDI + 0x9ed82))" identifier (argument_list "((char *)(unaff_EDI + 0x9ed82))" ( (cast_expression "(char *)(unaff_EDI + 0x9ed82)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x9ed82)" ( (binary_expression "unaff_EDI + 0x9ed82" identifier + number_literal) ))) ))) ;) }))
(translation_unit "int * FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    \n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}\n\n" (function_definition "int * FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    \n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}" primitive_type (pointer_declarator "* FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)" * (function_declarator "FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,wchar_t *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (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 (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    \n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar2 = wcslen(param_2);" (assignment_expression "sVar2 = wcslen(param_2)" identifier = (call_expression "wcslen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = param_3[1];" (assignment_expression "iVar1 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_001b0d20(param_1,sVar2 + iVar1);" (call_expression "FUN_001b0d20(param_1,sVar2 + iVar1)" identifier (argument_list "(param_1,sVar2 + iVar1)" ( identifier , (binary_expression "sVar2 + iVar1" identifier + identifier) ))) ;) (if_statement "if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" if (parenthesized_expression "(sVar2 <= 0x1fffffffU - param_1[1])" ( (binary_expression "sVar2 <= 0x1fffffffU - param_1[1]" identifier <= (binary_expression "0x1fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" { (expression_statement "FUN_001b2330(param_1,param_2,sVar2);" (call_expression "FUN_001b2330(param_1,param_2,sVar2)" identifier (argument_list "(param_1,param_2,sVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_001b2330(param_1,*param_3,param_3[1]);" (call_expression "FUN_001b2330(param_1,*param_3,param_3[1])" identifier (argument_list "(param_1,*param_3,param_3[1])" ( identifier , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_3[1]" identifier [ number_literal ]) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_001f1e60(unaff_EDI + 0x9ed82);" (call_expression "FUN_001f1e60(unaff_EDI + 0x9ed82)" identifier (argument_list "(unaff_EDI + 0x9ed82)" ( (binary_expression "unaff_EDI + 0x9ed82" identifier + number_literal) ))) ;) })))
(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 (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "int * FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    \n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}" (primitive_type "int") (pointer_declarator "* FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)" (* "*") (function_declarator "FUN_001b32e0(int *param_1,wchar_t *param_2,undefined4 *param_3)" (identifier "FUN_001b32e0") (parameter_list "(int *param_1,wchar_t *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (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") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int unaff_EDI;\n  \n  FUN_00058c4a();\n  sVar2 = wcslen(param_2);\n  param_1[1] = 0;\n  iVar1 = param_3[1];\n  *param_1 = (int)(param_1 + 2);\n  param_1[2] = 0;\n                    \n  FUN_001b0d20(param_1,sVar2 + iVar1);\n  if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_001f1e60(unaff_EDI + 0x9ed82);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" (identifier "FUN_00058c4a") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "sVar2 = wcslen(param_2);" (assignment_expression "sVar2 = wcslen(param_2)" (identifier "sVar2") (= "=") (call_expression "wcslen(param_2)" (identifier "wcslen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = param_3[1];" (assignment_expression "iVar1 = param_3[1]" (identifier "iVar1") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001b0d20(param_1,sVar2 + iVar1);" (call_expression "FUN_001b0d20(param_1,sVar2 + iVar1)" (identifier "FUN_001b0d20") (argument_list "(param_1,sVar2 + iVar1)" (( "(") (identifier "param_1") (, ",") (binary_expression "sVar2 + iVar1" (identifier "sVar2") (+ "+") (identifier "iVar1")) () ")"))) (; ";")) (if_statement "if (sVar2 <= 0x1fffffffU - param_1[1]) {\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(sVar2 <= 0x1fffffffU - param_1[1])" (( "(") (binary_expression "sVar2 <= 0x1fffffffU - param_1[1]" (identifier "sVar2") (<= "<=") (binary_expression "0x1fffffffU - param_1[1]" (number_literal "0x1fffffffU") (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    FUN_001b2330(param_1,param_2,sVar2);\n    FUN_001b2330(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" ({ "{") (expression_statement "FUN_001b2330(param_1,param_2,sVar2);" (call_expression "FUN_001b2330(param_1,param_2,sVar2)" (identifier "FUN_001b2330") (argument_list "(param_1,param_2,sVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "sVar2") () ")"))) (; ";")) (expression_statement "FUN_001b2330(param_1,*param_3,param_3[1]);" (call_expression "FUN_001b2330(param_1,*param_3,param_3[1])" (identifier "FUN_001b2330") (argument_list "(param_1,*param_3,param_3[1])" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_001f1e60(unaff_EDI + 0x9ed82);" (call_expression "FUN_001f1e60(unaff_EDI + 0x9ed82)" (identifier "FUN_001f1e60") (argument_list "(unaff_EDI + 0x9ed82)" (( "(") (binary_expression "unaff_EDI + 0x9ed82" (identifier "unaff_EDI") (+ "+") (number_literal "0x9ed82")) () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wstring std::TEMPNAMEPLACEHOLDERVALUE(wchar_t const*, std::wstring const&) */

type_2 * std::operator+(type_2 *var_3,type_3 *param_2)

{
  int var_6;
  size_t var_5;
  int var_9;
  type_1 *in_stack_0000000c;
  
  var_1();
  var_5 = var_2((type_2 *)param_2);
  var_3[1] = L'\0';
  var_6 = in_stack_0000000c[1];
  *var_3 = (type_2)(var_3 + 2);
  var_3[2] = L'\0';
                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */
  wstring::var_4((type_3 *)var_3,var_5 + var_6);
  if (var_5 <= (uint)(0x1fffffffU - var_3[1])) {
    wstring::var_7((type_3 *)var_3,(type_2 *)param_2,var_5);
    wstring::var_7((type_3 *)var_3,(type_2 *)*in_stack_0000000c,in_stack_0000000c[1]);
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_8((char *)(var_9 + 0x9ed82));
}


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

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

{
  int iVar1;
  size_t sVar2;
  int unaff_EDI;
  
  FUN_00058c4a();
  sVar2 = wcslen(param_2);
  param_1[1] = 0;
  iVar1 = param_3[1];
  *param_1 = (int)(param_1 + 2);
  param_1[2] = 0;
                    /* try { // try from 001b3326 to 001b3378 has its CatchHandler @ 001b3379 */
  FUN_001b0d20(param_1,sVar2 + iVar1);
  if (sVar2 <= 0x1fffffffU - param_1[1]) {
    FUN_001b2330(param_1,param_2,sVar2);
    FUN_001b2330(param_1,*param_3,param_3[1]);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001f1e60(unaff_EDI + 0x9ed82);
}

