
/* WARNING: Restarted to delay deadcode elimination for space: register */
/* std::collate<wchar_t>::do_transform(wchar_t const*, wchar_t const*) const */

wchar_t * std::collate<wchar_t>::do_transform(wchar_t *param_1,wchar_t *param_2)

{
  wchar_t wVar1;
  wchar_t wVar2;
  wchar_t *pwVar3;
  uint uVar4;
  size_t sVar5;
  wchar_t *__s;
  int unaff_EDI;
  int in_stack_0000000c;
  int in_stack_00000010;
  wchar_t *local_34;
  uint local_30;
  
  __x86_get_pc_thunk_di();
  *param_1 = unaff_EDI + L'\x0015e823';
                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */
  pwVar3 = std::wstring::_S_construct<wchar_t_const*>();
  wVar1 = pwVar3[-3];
  local_30 = in_stack_00000010 - in_stack_0000000c >> 1;
  if (0x1fffffff < local_30) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */
    __cxa_throw_bad_array_new_length();
  }
                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */
  local_34 = (wchar_t *)operator_new__(local_30 << 2);
  __s = pwVar3;
  do {
    uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);
    if (local_30 <= uVar4) {
      local_30 = uVar4 + 1;
      operator_delete__(local_34);
      if (0x1fffffff < local_30) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */
        __cxa_throw_bad_array_new_length();
      }
                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */
      local_34 = (wchar_t *)operator_new__(local_30 * 4);
      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);
    }
                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */
    std::wstring::append((wstring *)param_1,local_34,uVar4);
    sVar5 = wcslen(__s);
    if (pwVar3 + wVar1 == __s + sVar5) {
      operator_delete__(local_34);
      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {
        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));
      }
      return param_1;
    }
    __s = __s + sVar5 + 1;
    wVar2 = *param_1;
    uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1;
    if (*(uint *)(wVar2 + L'\xfffffff8') < uVar4) {
LAB_0023985e:
      std::wstring::reserve((wstring *)param_1,uVar4);
    }
    else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;
    wVar2 = *param_1;
    *(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0;
    if ((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)) {
      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;
      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;
      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;
    }
  } while( true );
}



int * FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)

{
  wchar_t wVar1;
  int iVar2;
  wchar_t *pwVar3;
  uint uVar4;
  size_t sVar5;
  wchar_t *__s;
  int unaff_EDI;
  undefined4 local_34;
  uint local_30;
  undefined1 local_1d [13];
  
  FUN_000559ee();
  *param_1 = unaff_EDI + 0x15e823;
                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */
  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);
  wVar1 = pwVar3[-3];
  local_30 = param_4 - param_3 >> 1;
  if (0x1fffffff < local_30) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */
    FUN_001e6740();
  }
                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */
  local_34 = FUN_001e5180(local_30 << 2);
  __s = pwVar3;
  while( true ) {
    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);
    if (local_30 <= uVar4) {
      local_30 = uVar4 + 1;
      FUN_001e6d50(local_34);
      if (0x1fffffff < local_30) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */
        FUN_001e6740();
      }
                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */
      local_34 = FUN_001e5180(local_30 * 4);
      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);
    }
                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */
    FUN_0026b0d0(param_1,local_34,uVar4);
    sVar5 = wcslen(__s);
    if (pwVar3 + wVar1 == __s + sVar5) break;
    __s = __s + sVar5 + 1;
    iVar2 = *param_1;
    uVar4 = *(int *)(iVar2 + -0xc) + 1;
    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {
      FUN_0026adc0(param_1,uVar4);
    }
    iVar2 = *param_1;
    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;
    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {
      *(undefined4 *)(iVar2 + -4) = 0;
      *(uint *)(iVar2 + -0xc) = uVar4;
      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;
    }
  }
  FUN_001e6d50(local_34);
  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {
    FUN_002395a0();
  }
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x1558b7
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV EBX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x14]
LEA EAX,[EDI + 0x8f60]
MOV dword ptr [EBP + -0x38],EAX
ADD EAX,0xc
MOV dword ptr [EBX],EAX
LEA EAX,[EBP + -0x19]
MOV EBX,EDI
PUSH 0x0
PUSH EAX
PUSH ESI
PUSH dword ptr [EBP + 0x10]
MOV dword ptr [EBP + -0x44],EAX
CALL 0x0026bb30
MOV EBX,EAX
MOV EAX,dword ptr [EAX + -0xc]
SUB ESI,dword ptr [EBP + 0x10]
ADD ESP,0x10
MOV dword ptr [EBP + -0x40],EBX
LEA EAX,[EBX + EAX*0x4]
MOV dword ptr [EBP + -0x3c],EAX
MOV EAX,ESI
SAR EAX,0x1
MOV dword ptr [EBP + -0x2c],EAX
CMP EAX,0x1fffffff
JA 0x00239941
SUB ESP,0xc
SHL EAX,0x2
MOV EBX,EDI
PUSH EAX
CALL 0x001e5180
MOV dword ptr [EBP + -0x30],EAX
MOV ESI,dword ptr [EBP + -0x40]
ADD ESP,0x10
LEA ESI,[ESI]
PUSH dword ptr [EBP + -0x2c]
MOV EBX,EDI
PUSH ESI
PUSH dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + 0xc]
CALL 0x00235590
ADD ESP,0x10
CMP dword ptr [EBP + -0x2c],EAX
JA 0x0023981d
SUB ESP,0xc
PUSH dword ptr [EBP + -0x30]
ADD EAX,0x1
MOV dword ptr [EBP + -0x2c],EAX
CALL 0x001e6d50
MOV EAX,dword ptr [EBP + -0x2c]
ADD ESP,0x10
CMP EAX,0x1fffffff
JA 0x0023993c
SUB ESP,0xc
SHL EAX,0x2
PUSH EAX
CALL 0x001e5180
ADD ESP,0x10
PUSH dword ptr [EBP + -0x2c]
PUSH ESI
PUSH EAX
PUSH dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x30],EAX
CALL 0x00235590
ADD ESP,0x10
SUB ESP,0x4
MOV EBX,EDI
PUSH EAX
PUSH dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + 0x8]
CALL 0x0026b0d0
MOV dword ptr [ESP],ESI
CALL 0x00029270
ADD ESP,0x10
LEA ESI,[ESI + EAX*0x4]
CMP dword ptr [EBP + -0x3c],ESI
JZ 0x002398a8
MOV EAX,dword ptr [EBP + 0x8]
ADD ESI,0x4
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + -0xc]
LEA ECX,[EDX + 0x1]
MOV dword ptr [EBP + -0x34],ECX
CMP ECX,dword ptr [EAX + -0x8]
JA 0x0023985e
MOV EAX,dword ptr [EAX + -0x4]
TEST EAX,EAX
JLE 0x00239871
SUB ESP,0x8
PUSH dword ptr [EBP + -0x34]
MOV EBX,EDI
PUSH dword ptr [EBP + 0x8]
CALL 0x0026adc0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + -0xc]
MOV dword ptr [EAX + EDX*0x4],0x0
LEA EDX,[EAX + -0xc]
CMP EDX,dword ptr [EBP + -0x38]
JZ 0x002397c0
MOV EDX,dword ptr [EBP + -0x34]
MOV dword ptr [EAX + -0x4],0x0
MOV dword ptr [EAX + -0xc],EDX
MOV dword ptr [EAX + EDX*0x4],0x0
JMP 0x002397c0
SUB ESP,0xc
PUSH dword ptr [EBP + -0x30]
CALL 0x001e6d50
MOV EAX,dword ptr [EBP + -0x40]
ADD ESP,0x10
SUB EAX,0xc
CMP EAX,dword ptr [EBP + -0x38]
JNZ 0x002398ce
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV EDX,dword ptr [EBP + -0x44]
CALL 0x002395a0
JMP 0x002398c1
CALL 0x001e6740
MOV EBX,EDI
CALL 0x001e6740
(translation_unit "int * FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */\n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    FUN_001e6740();\n  }\n                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */\n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}\n\n" (function_definition "int * FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */\n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    FUN_001e6740();\n  }\n                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */\n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)" * (function_declarator "FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */\n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    FUN_001e6740();\n  }\n                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */\n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "wchar_t *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_1 = unaff_EDI + 0x15e823;" (assignment_expression "*param_1 = unaff_EDI + 0x15e823" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x15e823" identifier + number_literal)) ;) comment (expression_statement "pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);" (assignment_expression "pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0)" identifier = (cast_expression "(wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0026bb30(param_3,param_4,local_1d,0)" identifier (argument_list "(param_3,param_4,local_1d,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "wVar1 = pwVar3[-3];" (assignment_expression "wVar1 = pwVar3[-3]" identifier = (subscript_expression "pwVar3[-3]" identifier [ number_literal ])) ;) (expression_statement "local_30 = param_4 - param_3 >> 1;" (assignment_expression "local_30 = param_4 - param_3 >> 1" identifier = (binary_expression "param_4 - param_3 >> 1" (binary_expression "param_4 - param_3" identifier - identifier) >> number_literal)) ;) (if_statement "if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    FUN_001e6740();\n  }" if (parenthesized_expression "(0x1fffffff < local_30)" ( (binary_expression "0x1fffffff < local_30" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    FUN_001e6740();\n  }" { comment comment (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "local_34 = FUN_001e5180(local_30 << 2);" (assignment_expression "local_34 = FUN_001e5180(local_30 << 2)" identifier = (call_expression "FUN_001e5180(local_30 << 2)" identifier (argument_list "(local_30 << 2)" ( (binary_expression "local_30 << 2" identifier << number_literal) )))) ;) (expression_statement "__s = pwVar3;" (assignment_expression "__s = pwVar3" identifier = identifier) ;) (while_statement "while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }" { (expression_statement "uVar4 = FUN_00235590(param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = FUN_00235590(param_2,local_34,__s,local_30)" identifier = (call_expression "FUN_00235590(param_2,local_34,__s,local_30)" identifier (argument_list "(param_2,local_34,__s,local_30)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }" if (parenthesized_expression "(local_30 <= uVar4)" ( (binary_expression "local_30 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }" { (expression_statement "local_30 = uVar4 + 1;" (assignment_expression "local_30 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "FUN_001e6d50(local_34);" (call_expression "FUN_001e6d50(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (if_statement "if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }" if (parenthesized_expression "(0x1fffffff < local_30)" ( (binary_expression "0x1fffffff < local_30" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        FUN_001e6740();\n      }" { comment comment (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "local_34 = FUN_001e5180(local_30 * 4);" (assignment_expression "local_34 = FUN_001e5180(local_30 * 4)" identifier = (call_expression "FUN_001e5180(local_30 * 4)" identifier (argument_list "(local_30 * 4)" ( (binary_expression "local_30 * 4" identifier * number_literal) )))) ;) (expression_statement "uVar4 = FUN_00235590(param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = FUN_00235590(param_2,local_34,__s,local_30)" identifier = (call_expression "FUN_00235590(param_2,local_34,__s,local_30)" identifier (argument_list "(param_2,local_34,__s,local_30)" ( identifier , identifier , identifier , identifier )))) ;) })) comment (expression_statement "FUN_0026b0d0(param_1,local_34,uVar4);" (call_expression "FUN_0026b0d0(param_1,local_34,uVar4)" identifier (argument_list "(param_1,local_34,uVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "sVar5 = wcslen(__s);" (assignment_expression "sVar5 = wcslen(__s)" identifier = (call_expression "wcslen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (pwVar3 + wVar1 == __s + sVar5) break;" if (parenthesized_expression "(pwVar3 + wVar1 == __s + sVar5)" ( (binary_expression "pwVar3 + wVar1 == __s + sVar5" (binary_expression "pwVar3 + wVar1" identifier + identifier) == (binary_expression "__s + sVar5" identifier + identifier)) )) (break_statement "break;" break ;)) (expression_statement "__s = __s + sVar5 + 1;" (assignment_expression "__s = __s + sVar5 + 1" identifier = (binary_expression "__s + sVar5 + 1" (binary_expression "__s + sVar5" identifier + identifier) + number_literal)) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = *(int *)(iVar2 + -0xc) + 1;" (assignment_expression "uVar4 = *(int *)(iVar2 + -0xc) + 1" identifier = (binary_expression "*(int *)(iVar2 + -0xc) + 1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }" if (parenthesized_expression "((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4)))" ( (binary_expression "(*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))" (parenthesized_expression "(*(uint *)(iVar2 + -8) < uVar4)" ( (binary_expression "*(uint *)(iVar2 + -8) < uVar4" (pointer_expression "*(uint *)(iVar2 + -8)" * (cast_expression "(uint *)(iVar2 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -8)" ( (binary_expression "iVar2 + -8" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(0 < *(int *)(iVar2 + -4))" ( (binary_expression "0 < *(int *)(iVar2 + -4)" number_literal < (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      FUN_0026adc0(param_1,uVar4);\n    }" { (expression_statement "FUN_0026adc0(param_1,uVar4);" (call_expression "FUN_0026adc0(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4)" * (cast_expression "(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + *(int *)(iVar2 + -0xc) * 4)" ( (binary_expression "iVar2 + *(int *)(iVar2 + -0xc) * 4" identifier + (binary_expression "*(int *)(iVar2 + -0xc) * 4" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) * number_literal)) )))) = number_literal) ;) (if_statement "if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }" if (parenthesized_expression "((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817))" ( (binary_expression "(wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)" (cast_expression "(wchar_t *)(iVar2 + -0xc)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) != (cast_expression "(wchar_t *)(unaff_EDI + 0x15e817)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x15e817)" ( (binary_expression "unaff_EDI + 0x15e817" identifier + number_literal) )))) )) (compound_statement "{\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }" { (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(iVar2 + -0xc) = uVar4;" (assignment_expression "*(uint *)(iVar2 + -0xc) = uVar4" (pointer_expression "*(uint *)(iVar2 + -0xc)" * (cast_expression "(uint *)(iVar2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + uVar4 * 4)" * (cast_expression "(undefined4 *)(iVar2 + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + uVar4 * 4)" ( (binary_expression "iVar2 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) })) })) (expression_statement "FUN_001e6d50(local_34);" (call_expression "FUN_001e6d50(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (if_statement "if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }" if (parenthesized_expression "(pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817))" ( (binary_expression "pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)" (binary_expression "pwVar3 + -3" identifier + number_literal) != (cast_expression "(wchar_t *)(unaff_EDI + 0x15e817)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x15e817)" ( (binary_expression "unaff_EDI + 0x15e817" identifier + number_literal) )))) )) (compound_statement "{\n    FUN_002395a0();\n  }" { (expression_statement "FUN_002395a0();" (call_expression "FUN_002395a0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Restarted to delay deadcode elimination for space: register */\n/* std::collate<wchar_t>::do_transform(wchar_t const*, wchar_t const*) const */\n\nwchar_t * std::collate<wchar_t>::do_transform(wchar_t *param_1,wchar_t *param_2)\n\n{\n  wchar_t wVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  int in_stack_0000000c;\n  int in_stack_00000010;\n  wchar_t *local_34;\n  uint local_30;\n  \n  __x86_get_pc_thunk_di();\n  *param_1 = unaff_EDI + L'\x0015e823';\n                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */\n  pwVar3 = std::wstring::_S_construct<wchar_t_const*>();\n  wVar1 = pwVar3[-3];\n  local_30 = in_stack_00000010 - in_stack_0000000c >> 1;\n  if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    __cxa_throw_bad_array_new_length();\n  }\n                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */\n  local_34 = (wchar_t *)operator_new__(local_30 << 2);\n  __s = pwVar3;\n  do {\n    uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      operator_delete__(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = (wchar_t *)operator_new__(local_30 * 4);\n      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    std::wstring::append((wstring *)param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) {\n      operator_delete__(local_34);\n      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }\n      return param_1;\n    }\n    __s = __s + sVar5 + 1;\n    wVar2 = *param_1;\n    uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1;\n    if (*(uint *)(wVar2 + L'\xfffffff8') < uVar4) {\nLAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);\n    }\n    else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;\n    wVar2 = *param_1;\n    *(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0;\n    if ((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;\n      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;\n      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;\n    }\n  } while( true );\n}\n\n" comment comment (ERROR "wchar_t * std::collate<wchar_t>::do_transform(wchar_t *param_1,wchar_t *param_2)" (binary_expression "wchar_t * std::collate<wchar_t>::do_transform(wchar_t *param_1,wchar_t *param_2)" (binary_expression "wchar_t * std::collate<wchar_t" (binary_expression "wchar_t * std" identifier * identifier) (ERROR "::collate" : : identifier) < identifier) > (ERROR "::" : :) (call_expression "do_transform(wchar_t *param_1,wchar_t *param_2)" identifier (argument_list "(wchar_t *param_1,wchar_t *param_2)" ( (binary_expression "wchar_t *param_1" identifier * identifier) , (binary_expression "wchar_t *param_2" identifier * identifier) ))))) (compound_statement "{\n  wchar_t wVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  int in_stack_0000000c;\n  int in_stack_00000010;\n  wchar_t *local_34;\n  uint local_30;\n  \n  __x86_get_pc_thunk_di();\n  *param_1 = unaff_EDI + L'\x0015e823';\n                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */\n  pwVar3 = std::wstring::_S_construct<wchar_t_const*>();\n  wVar1 = pwVar3[-3];\n  local_30 = in_stack_00000010 - in_stack_0000000c >> 1;\n  if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    __cxa_throw_bad_array_new_length();\n  }\n                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */\n  local_34 = (wchar_t *)operator_new__(local_30 << 2);\n  __s = pwVar3;\n  do {\n    uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      operator_delete__(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = (wchar_t *)operator_new__(local_30 * 4);\n      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    std::wstring::append((wstring *)param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) {\n      operator_delete__(local_34);\n      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }\n      return param_1;\n    }\n    __s = __s + sVar5 + 1;\n    wVar2 = *param_1;\n    uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1;\n    if (*(uint *)(wVar2 + L'\xfffffff8') < uVar4) {\nLAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);\n    }\n    else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;\n    wVar2 = *param_1;\n    *(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0;\n    if ((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;\n      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;\n      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;\n    }\n  } while( true );\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "wchar_t wVar2;" type_identifier identifier ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "wchar_t *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_stack_0000000c;" primitive_type identifier ;) (declaration "int in_stack_00000010;" primitive_type identifier ;) (declaration "wchar_t *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_1 = unaff_EDI + L'\x0015e823';" (assignment_expression "*param_1 = unaff_EDI + L'\x0015e823'" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + L'\x0015e823'" identifier + (char_literal "L'\x0015e823'" L' escape_sequence character character character character '))) ;) comment (ERROR "pwVar3 = std::" (assignment_expression "pwVar3 = std" identifier = identifier) : :) (labeled_statement "wstring::_S_construct<wchar_t_const*>();" statement_identifier : (ERROR ":" :) (expression_statement "_S_construct<wchar_t_const*>();" (binary_expression "_S_construct<wchar_t_const" identifier < identifier) (ERROR "*>()" * > ( )) ;)) (expression_statement "wVar1 = pwVar3[-3];" (assignment_expression "wVar1 = pwVar3[-3]" identifier = (subscript_expression "pwVar3[-3]" identifier [ number_literal ])) ;) (expression_statement "local_30 = in_stack_00000010 - in_stack_0000000c >> 1;" (assignment_expression "local_30 = in_stack_00000010 - in_stack_0000000c >> 1" identifier = (binary_expression "in_stack_00000010 - in_stack_0000000c >> 1" (binary_expression "in_stack_00000010 - in_stack_0000000c" identifier - identifier) >> number_literal)) ;) (if_statement "if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    __cxa_throw_bad_array_new_length();\n  }" if (parenthesized_expression "(0x1fffffff < local_30)" ( (binary_expression "0x1fffffff < local_30" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */\n    __cxa_throw_bad_array_new_length();\n  }" { comment comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "local_34 = (wchar_t *)operator_new__(local_30 << 2);" (assignment_expression "local_34 = (wchar_t *)operator_new__(local_30 << 2)" identifier = (cast_expression "(wchar_t *)operator_new__(local_30 << 2)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(local_30 << 2)" identifier (argument_list "(local_30 << 2)" ( (binary_expression "local_30 << 2" identifier << number_literal) ))))) ;) (expression_statement "__s = pwVar3;" (assignment_expression "__s = pwVar3" identifier = identifier) ;) (do_statement "do {\n    uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      operator_delete__(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = (wchar_t *)operator_new__(local_30 * 4);\n      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    std::wstring::append((wstring *)param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) {\n      operator_delete__(local_34);\n      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }\n      return param_1;\n    }\n    __s = __s + sVar5 + 1;\n    wVar2 = *param_1;\n    uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1;\n    if (*(uint *)(wVar2 + L'\xfffffff8') < uVar4) {\nLAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);\n    }\n    else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;\n    wVar2 = *param_1;\n    *(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0;\n    if ((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;\n      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;\n      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;\n    }\n  } while( true );" do (compound_statement "{\n    uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      operator_delete__(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = (wchar_t *)operator_new__(local_30 * 4);\n      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    }\n                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */\n    std::wstring::append((wstring *)param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) {\n      operator_delete__(local_34);\n      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }\n      return param_1;\n    }\n    __s = __s + sVar5 + 1;\n    wVar2 = *param_1;\n    uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1;\n    if (*(uint *)(wVar2 + L'\xfffffff8') < uVar4) {\nLAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);\n    }\n    else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;\n    wVar2 = *param_1;\n    *(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0;\n    if ((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;\n      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;\n      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;\n    }\n  }" { (expression_statement "uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30)" identifier = (call_expression "_M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30)" identifier (argument_list "((collate<wchar_t> *)param_2,local_34,__s,local_30)" ( (parenthesized_expression "(collate<wchar_t> *)param_2,local_34,__s,local_30)" ( (comma_expression "collate<wchar_t> *)param_2,local_34,__s,local_30" (binary_expression "collate<wchar_t> *)param_2" (binary_expression "collate<wchar_t" identifier < identifier) > (pointer_expression "*)param_2" * (ERROR ")" )) identifier)) , (comma_expression "local_34,__s,local_30" identifier , (comma_expression "__s,local_30" identifier , identifier))) )) )))) ;) (if_statement "if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      operator_delete__(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = (wchar_t *)operator_new__(local_30 * 4);\n      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    }" if (parenthesized_expression "(local_30 <= uVar4)" ( (binary_expression "local_30 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      local_30 = uVar4 + 1;\n      operator_delete__(local_34);\n      if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }\n                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */\n      local_34 = (wchar_t *)operator_new__(local_30 * 4);\n      uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);\n    }" { (expression_statement "local_30 = uVar4 + 1;" (assignment_expression "local_30 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "operator_delete__(local_34);" (call_expression "operator_delete__(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (if_statement "if (0x1fffffff < local_30) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }" if (parenthesized_expression "(0x1fffffff < local_30)" ( (binary_expression "0x1fffffff < local_30" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */\n        __cxa_throw_bad_array_new_length();\n      }" { comment comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "local_34 = (wchar_t *)operator_new__(local_30 * 4);" (assignment_expression "local_34 = (wchar_t *)operator_new__(local_30 * 4)" identifier = (cast_expression "(wchar_t *)operator_new__(local_30 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(local_30 * 4)" identifier (argument_list "(local_30 * 4)" ( (binary_expression "local_30 * 4" identifier * number_literal) ))))) ;) (expression_statement "uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = _M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30)" identifier = (call_expression "_M_transform((collate<wchar_t> *)param_2,local_34,__s,local_30)" identifier (argument_list "((collate<wchar_t> *)param_2,local_34,__s,local_30)" ( (parenthesized_expression "(collate<wchar_t> *)param_2,local_34,__s,local_30)" ( (comma_expression "collate<wchar_t> *)param_2,local_34,__s,local_30" (binary_expression "collate<wchar_t> *)param_2" (binary_expression "collate<wchar_t" identifier < identifier) > (pointer_expression "*)param_2" * (ERROR ")" )) identifier)) , (comma_expression "local_34,__s,local_30" identifier , (comma_expression "__s,local_30" identifier , identifier))) )) )))) ;) })) comment (labeled_statement "std::wstring::append((wstring *)param_1,local_34,uVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::append((wstring *)param_1,local_34,uVar4);" statement_identifier : (ERROR ":" :) (expression_statement "append((wstring *)param_1,local_34,uVar4);" (call_expression "append((wstring *)param_1,local_34,uVar4)" identifier (argument_list "((wstring *)param_1,local_34,uVar4)" ( (cast_expression "(wstring *)param_1" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;))) (expression_statement "sVar5 = wcslen(__s);" (assignment_expression "sVar5 = wcslen(__s)" identifier = (call_expression "wcslen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (pwVar3 + wVar1 == __s + sVar5) {\n      operator_delete__(local_34);\n      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }\n      return param_1;\n    }" if (parenthesized_expression "(pwVar3 + wVar1 == __s + sVar5)" ( (binary_expression "pwVar3 + wVar1 == __s + sVar5" (binary_expression "pwVar3 + wVar1" identifier + identifier) == (binary_expression "__s + sVar5" identifier + identifier)) )) (compound_statement "{\n      operator_delete__(local_34);\n      if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }\n      return param_1;\n    }" { (expression_statement "operator_delete__(local_34);" (call_expression "operator_delete__(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (if_statement "if ((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)) {\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }" if (parenthesized_expression "((allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817))" ( (binary_expression "(allocator *)(pwVar3 + -3) != (allocator *)(unaff_EDI + 0x15e817)" (cast_expression "(allocator *)(pwVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + -3)" ( (binary_expression "pwVar3 + -3" identifier + number_literal) ))) != (cast_expression "(allocator *)(unaff_EDI + 0x15e817)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x15e817)" ( (binary_expression "unaff_EDI + 0x15e817" identifier + number_literal) )))) )) (compound_statement "{\n        std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));\n      }" { (labeled_statement "std::wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_Rep::_M_dispose((allocator *)(pwVar3 + -3));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_dispose((allocator *)(pwVar3 + -3));" statement_identifier : (ERROR ":" :) (expression_statement "_M_dispose((allocator *)(pwVar3 + -3));" (call_expression "_M_dispose((allocator *)(pwVar3 + -3))" identifier (argument_list "((allocator *)(pwVar3 + -3))" ( (cast_expression "(allocator *)(pwVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + -3)" ( (binary_expression "pwVar3 + -3" identifier + number_literal) ))) ))) ;)))) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "__s = __s + sVar5 + 1;" (assignment_expression "__s = __s + sVar5 + 1" identifier = (binary_expression "__s + sVar5 + 1" (binary_expression "__s + sVar5" identifier + identifier) + number_literal)) ;) (expression_statement "wVar2 = *param_1;" (assignment_expression "wVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1;" (assignment_expression "uVar4 = *(int *)(wVar2 + L'\xfffffff4') + 1" identifier = (binary_expression "*(int *)(wVar2 + L'\xfffffff4') + 1" (pointer_expression "*(int *)(wVar2 + L'\xfffffff4')" * (cast_expression "(int *)(wVar2 + L'\xfffffff4')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffff4')" ( (binary_expression "wVar2 + L'\xfffffff4'" identifier + (char_literal "L'\xfffffff4'" L' escape_sequence character character character character ')) )))) + number_literal)) ;) (if_statement "if (*(uint *)(wVar2 + L'\xfffffff8') < uVar4) {\nLAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);\n    }\n    else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;" if (parenthesized_expression "(*(uint *)(wVar2 + L'\xfffffff8') < uVar4)" ( (binary_expression "*(uint *)(wVar2 + L'\xfffffff8') < uVar4" (pointer_expression "*(uint *)(wVar2 + L'\xfffffff8')" * (cast_expression "(uint *)(wVar2 + L'\xfffffff8')" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffff8')" ( (binary_expression "wVar2 + L'\xfffffff8'" identifier + (char_literal "L'\xfffffff8'" L' escape_sequence character character character character ')) )))) < identifier) )) (compound_statement "{\nLAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);\n    }" { (labeled_statement "LAB_0023985e:\n      std::wstring::reserve((wstring *)param_1,uVar4);" statement_identifier : (labeled_statement "std::wstring::reserve((wstring *)param_1,uVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::reserve((wstring *)param_1,uVar4);" statement_identifier : (ERROR ":" :) (expression_statement "reserve((wstring *)param_1,uVar4);" (call_expression "reserve((wstring *)param_1,uVar4)" identifier (argument_list "((wstring *)param_1,uVar4)" ( (cast_expression "(wstring *)param_1" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;)))) }) (else_clause "else if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;" else (if_statement "if (0 < *(int *)(wVar2 + L'\xfffffffc')) goto LAB_0023985e;" if (parenthesized_expression "(0 < *(int *)(wVar2 + L'\xfffffffc'))" ( (binary_expression "0 < *(int *)(wVar2 + L'\xfffffffc')" number_literal < (pointer_expression "*(int *)(wVar2 + L'\xfffffffc')" * (cast_expression "(int *)(wVar2 + L'\xfffffffc')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffffc')" ( (binary_expression "wVar2 + L'\xfffffffc'" identifier + (char_literal "L'\xfffffffc'" L' escape_sequence character character character character ')) ))))) )) (goto_statement "goto LAB_0023985e;" goto statement_identifier ;)))) (expression_statement "wVar2 = *param_1;" (assignment_expression "wVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0;" (assignment_expression "*(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4) = 0" (pointer_expression "*(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4)" * (cast_expression "(undefined4 *)(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4)" ( (binary_expression "wVar2 + *(int *)(wVar2 + L'\xfffffff4') * 4" identifier + (binary_expression "*(int *)(wVar2 + L'\xfffffff4') * 4" (pointer_expression "*(int *)(wVar2 + L'\xfffffff4')" * (cast_expression "(int *)(wVar2 + L'\xfffffff4')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffff4')" ( (binary_expression "wVar2 + L'\xfffffff4'" identifier + (char_literal "L'\xfffffff4'" L' escape_sequence character character character character ')) )))) * number_literal)) )))) = number_literal) ;) (if_statement "if ((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;\n      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;\n      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;\n    }" if (parenthesized_expression "((allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817))" ( (binary_expression "(allocator *)(wVar2 + L'\xfffffff4') != (allocator *)(unaff_EDI + 0x15e817)" (cast_expression "(allocator *)(wVar2 + L'\xfffffff4')" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffff4')" ( (binary_expression "wVar2 + L'\xfffffff4'" identifier + (char_literal "L'\xfffffff4'" L' escape_sequence character character character character ')) ))) != (cast_expression "(allocator *)(unaff_EDI + 0x15e817)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x15e817)" ( (binary_expression "unaff_EDI + 0x15e817" identifier + number_literal) )))) )) (compound_statement "{\n      *(undefined4 *)(wVar2 + L'\xfffffffc') = 0;\n      *(uint *)(wVar2 + L'\xfffffff4') = uVar4;\n      *(undefined4 *)(wVar2 + uVar4 * 4) = 0;\n    }" { (expression_statement "*(undefined4 *)(wVar2 + L'\xfffffffc') = 0;" (assignment_expression "*(undefined4 *)(wVar2 + L'\xfffffffc') = 0" (pointer_expression "*(undefined4 *)(wVar2 + L'\xfffffffc')" * (cast_expression "(undefined4 *)(wVar2 + L'\xfffffffc')" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffffc')" ( (binary_expression "wVar2 + L'\xfffffffc'" identifier + (char_literal "L'\xfffffffc'" L' escape_sequence character character character character ')) )))) = number_literal) ;) (expression_statement "*(uint *)(wVar2 + L'\xfffffff4') = uVar4;" (assignment_expression "*(uint *)(wVar2 + L'\xfffffff4') = uVar4" (pointer_expression "*(uint *)(wVar2 + L'\xfffffff4')" * (cast_expression "(uint *)(wVar2 + L'\xfffffff4')" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + L'\xfffffff4')" ( (binary_expression "wVar2 + L'\xfffffff4'" identifier + (char_literal "L'\xfffffff4'" L' escape_sequence character character character character ')) )))) = identifier) ;) (expression_statement "*(undefined4 *)(wVar2 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(wVar2 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(wVar2 + uVar4 * 4)" * (cast_expression "(undefined4 *)(wVar2 + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wVar2 + uVar4 * 4)" ( (binary_expression "wVar2 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) }))
(translation_unit "int * FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    \n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }\n                    \n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}\n\n" (function_definition "int * FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    \n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }\n                    \n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)" * (function_declarator "FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    \n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }\n                    \n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "wchar_t *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_1 = unaff_EDI + 0x15e823;" (assignment_expression "*param_1 = unaff_EDI + 0x15e823" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x15e823" identifier + number_literal)) ;) (expression_statement "pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);" (assignment_expression "pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0)" identifier = (cast_expression "(wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0026bb30(param_3,param_4,local_1d,0)" identifier (argument_list "(param_3,param_4,local_1d,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "wVar1 = pwVar3[-3];" (assignment_expression "wVar1 = pwVar3[-3]" identifier = (subscript_expression "pwVar3[-3]" identifier [ number_literal ])) ;) (expression_statement "local_30 = param_4 - param_3 >> 1;" (assignment_expression "local_30 = param_4 - param_3 >> 1" identifier = (binary_expression "param_4 - param_3 >> 1" (binary_expression "param_4 - param_3" identifier - identifier) >> number_literal)) ;) (if_statement "if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }" if (parenthesized_expression "(0x1fffffff < local_30)" ( (binary_expression "0x1fffffff < local_30" number_literal < identifier) )) (compound_statement "{\n                    \n                    \n    FUN_001e6740();\n  }" { (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_34 = FUN_001e5180(local_30 << 2);" (assignment_expression "local_34 = FUN_001e5180(local_30 << 2)" identifier = (call_expression "FUN_001e5180(local_30 << 2)" identifier (argument_list "(local_30 << 2)" ( (binary_expression "local_30 << 2" identifier << number_literal) )))) ;) (expression_statement "__s = pwVar3;" (assignment_expression "__s = pwVar3" identifier = identifier) ;) (while_statement "while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }" { (expression_statement "uVar4 = FUN_00235590(param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = FUN_00235590(param_2,local_34,__s,local_30)" identifier = (call_expression "FUN_00235590(param_2,local_34,__s,local_30)" identifier (argument_list "(param_2,local_34,__s,local_30)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }" if (parenthesized_expression "(local_30 <= uVar4)" ( (binary_expression "local_30 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }" { (expression_statement "local_30 = uVar4 + 1;" (assignment_expression "local_30 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "FUN_001e6d50(local_34);" (call_expression "FUN_001e6d50(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (if_statement "if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }" if (parenthesized_expression "(0x1fffffff < local_30)" ( (binary_expression "0x1fffffff < local_30" number_literal < identifier) )) (compound_statement "{\n                    \n                    \n        FUN_001e6740();\n      }" { (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_34 = FUN_001e5180(local_30 * 4);" (assignment_expression "local_34 = FUN_001e5180(local_30 * 4)" identifier = (call_expression "FUN_001e5180(local_30 * 4)" identifier (argument_list "(local_30 * 4)" ( (binary_expression "local_30 * 4" identifier * number_literal) )))) ;) (expression_statement "uVar4 = FUN_00235590(param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = FUN_00235590(param_2,local_34,__s,local_30)" identifier = (call_expression "FUN_00235590(param_2,local_34,__s,local_30)" identifier (argument_list "(param_2,local_34,__s,local_30)" ( identifier , identifier , identifier , identifier )))) ;) })) (expression_statement "FUN_0026b0d0(param_1,local_34,uVar4);" (call_expression "FUN_0026b0d0(param_1,local_34,uVar4)" identifier (argument_list "(param_1,local_34,uVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "sVar5 = wcslen(__s);" (assignment_expression "sVar5 = wcslen(__s)" identifier = (call_expression "wcslen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (pwVar3 + wVar1 == __s + sVar5) break;" if (parenthesized_expression "(pwVar3 + wVar1 == __s + sVar5)" ( (binary_expression "pwVar3 + wVar1 == __s + sVar5" (binary_expression "pwVar3 + wVar1" identifier + identifier) == (binary_expression "__s + sVar5" identifier + identifier)) )) (break_statement "break;" break ;)) (expression_statement "__s = __s + sVar5 + 1;" (assignment_expression "__s = __s + sVar5 + 1" identifier = (binary_expression "__s + sVar5 + 1" (binary_expression "__s + sVar5" identifier + identifier) + number_literal)) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = *(int *)(iVar2 + -0xc) + 1;" (assignment_expression "uVar4 = *(int *)(iVar2 + -0xc) + 1" identifier = (binary_expression "*(int *)(iVar2 + -0xc) + 1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }" if (parenthesized_expression "((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4)))" ( (binary_expression "(*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))" (parenthesized_expression "(*(uint *)(iVar2 + -8) < uVar4)" ( (binary_expression "*(uint *)(iVar2 + -8) < uVar4" (pointer_expression "*(uint *)(iVar2 + -8)" * (cast_expression "(uint *)(iVar2 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -8)" ( (binary_expression "iVar2 + -8" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(0 < *(int *)(iVar2 + -4))" ( (binary_expression "0 < *(int *)(iVar2 + -4)" number_literal < (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      FUN_0026adc0(param_1,uVar4);\n    }" { (expression_statement "FUN_0026adc0(param_1,uVar4);" (call_expression "FUN_0026adc0(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4)" * (cast_expression "(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + *(int *)(iVar2 + -0xc) * 4)" ( (binary_expression "iVar2 + *(int *)(iVar2 + -0xc) * 4" identifier + (binary_expression "*(int *)(iVar2 + -0xc) * 4" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) * number_literal)) )))) = number_literal) ;) (if_statement "if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }" if (parenthesized_expression "((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817))" ( (binary_expression "(wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)" (cast_expression "(wchar_t *)(iVar2 + -0xc)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) != (cast_expression "(wchar_t *)(unaff_EDI + 0x15e817)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x15e817)" ( (binary_expression "unaff_EDI + 0x15e817" identifier + number_literal) )))) )) (compound_statement "{\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }" { (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(iVar2 + -0xc) = uVar4;" (assignment_expression "*(uint *)(iVar2 + -0xc) = uVar4" (pointer_expression "*(uint *)(iVar2 + -0xc)" * (cast_expression "(uint *)(iVar2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + uVar4 * 4)" * (cast_expression "(undefined4 *)(iVar2 + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + uVar4 * 4)" ( (binary_expression "iVar2 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) })) })) (expression_statement "FUN_001e6d50(local_34);" (call_expression "FUN_001e6d50(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (if_statement "if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }" if (parenthesized_expression "(pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817))" ( (binary_expression "pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)" (binary_expression "pwVar3 + -3" identifier + number_literal) != (cast_expression "(wchar_t *)(unaff_EDI + 0x15e817)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x15e817)" ( (binary_expression "unaff_EDI + 0x15e817" identifier + number_literal) )))) )) (compound_statement "{\n    FUN_002395a0();\n  }" { (expression_statement "FUN_002395a0();" (call_expression "FUN_002395a0()" identifier (argument_list "()" ( ))) ;) })) (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) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) == (binary_expression IDENT + IDENT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) || (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    \n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }\n                    \n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_00239740(int *param_1,undefined4 param_2,int param_3,int param_4)" (identifier "FUN_00239740") (parameter_list "(int *param_1,undefined4 param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  wchar_t wVar1;\n  int iVar2;\n  wchar_t *pwVar3;\n  uint uVar4;\n  size_t sVar5;\n  wchar_t *__s;\n  int unaff_EDI;\n  undefined4 local_34;\n  uint local_30;\n  undefined1 local_1d [13];\n  \n  FUN_000559ee();\n  *param_1 = unaff_EDI + 0x15e823;\n                    \n  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);\n  wVar1 = pwVar3[-3];\n  local_30 = param_4 - param_3 >> 1;\n  if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }\n                    \n  local_34 = FUN_001e5180(local_30 << 2);\n  __s = pwVar3;\n  while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }\n  FUN_001e6d50(local_34);\n  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }\n  return param_1;\n}" ({ "{") (declaration "wchar_t wVar1;" (type_identifier "wchar_t") (identifier "wVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "wchar_t *pwVar3;" (type_identifier "wchar_t") (pointer_declarator "*pwVar3" (* "*") (identifier "pwVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "wchar_t *__s;" (type_identifier "wchar_t") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "undefined1 local_1d [13];" (type_identifier "undefined1") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*param_1 = unaff_EDI + 0x15e823;" (assignment_expression "*param_1 = unaff_EDI + 0x15e823" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "unaff_EDI + 0x15e823" (identifier "unaff_EDI") (+ "+") (number_literal "0x15e823"))) (; ";")) (expression_statement "pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);" (assignment_expression "pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0)" (identifier "pwVar3") (= "=") (cast_expression "(wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0026bb30(param_3,param_4,local_1d,0)" (identifier "FUN_0026bb30") (argument_list "(param_3,param_4,local_1d,0)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "local_1d") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "wVar1 = pwVar3[-3];" (assignment_expression "wVar1 = pwVar3[-3]" (identifier "wVar1") (= "=") (subscript_expression "pwVar3[-3]" (identifier "pwVar3") ([ "[") (number_literal "-3") (] "]"))) (; ";")) (expression_statement "local_30 = param_4 - param_3 >> 1;" (assignment_expression "local_30 = param_4 - param_3 >> 1" (identifier "local_30") (= "=") (binary_expression "param_4 - param_3 >> 1" (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (0x1fffffff < local_30) {\n                    \n                    \n    FUN_001e6740();\n  }" (if "if") (parenthesized_expression "(0x1fffffff < local_30)" (( "(") (binary_expression "0x1fffffff < local_30" (number_literal "0x1fffffff") (< "<") (identifier "local_30")) () ")")) (compound_statement "{\n                    \n                    \n    FUN_001e6740();\n  }" ({ "{") (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" (identifier "FUN_001e6740") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_34 = FUN_001e5180(local_30 << 2);" (assignment_expression "local_34 = FUN_001e5180(local_30 << 2)" (identifier "local_34") (= "=") (call_expression "FUN_001e5180(local_30 << 2)" (identifier "FUN_001e5180") (argument_list "(local_30 << 2)" (( "(") (binary_expression "local_30 << 2" (identifier "local_30") (<< "<<") (number_literal "2")) () ")")))) (; ";")) (expression_statement "__s = pwVar3;" (assignment_expression "__s = pwVar3" (identifier "__s") (= "=") (identifier "pwVar3")) (; ";")) (while_statement "while( true ) {\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }\n                    \n    FUN_0026b0d0(param_1,local_34,uVar4);\n    sVar5 = wcslen(__s);\n    if (pwVar3 + wVar1 == __s + sVar5) break;\n    __s = __s + sVar5 + 1;\n    iVar2 = *param_1;\n    uVar4 = *(int *)(iVar2 + -0xc) + 1;\n    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }\n    iVar2 = *param_1;\n    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;\n    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }\n  }" ({ "{") (expression_statement "uVar4 = FUN_00235590(param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = FUN_00235590(param_2,local_34,__s,local_30)" (identifier "uVar4") (= "=") (call_expression "FUN_00235590(param_2,local_34,__s,local_30)" (identifier "FUN_00235590") (argument_list "(param_2,local_34,__s,local_30)" (( "(") (identifier "param_2") (, ",") (identifier "local_34") (, ",") (identifier "__s") (, ",") (identifier "local_30") () ")")))) (; ";")) (if_statement "if (local_30 <= uVar4) {\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }" (if "if") (parenthesized_expression "(local_30 <= uVar4)" (( "(") (binary_expression "local_30 <= uVar4" (identifier "local_30") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n      local_30 = uVar4 + 1;\n      FUN_001e6d50(local_34);\n      if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }\n                    \n      local_34 = FUN_001e5180(local_30 * 4);\n      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);\n    }" ({ "{") (expression_statement "local_30 = uVar4 + 1;" (assignment_expression "local_30 = uVar4 + 1" (identifier "local_30") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_001e6d50(local_34);" (call_expression "FUN_001e6d50(local_34)" (identifier "FUN_001e6d50") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (if_statement "if (0x1fffffff < local_30) {\n                    \n                    \n        FUN_001e6740();\n      }" (if "if") (parenthesized_expression "(0x1fffffff < local_30)" (( "(") (binary_expression "0x1fffffff < local_30" (number_literal "0x1fffffff") (< "<") (identifier "local_30")) () ")")) (compound_statement "{\n                    \n                    \n        FUN_001e6740();\n      }" ({ "{") (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" (identifier "FUN_001e6740") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_34 = FUN_001e5180(local_30 * 4);" (assignment_expression "local_34 = FUN_001e5180(local_30 * 4)" (identifier "local_34") (= "=") (call_expression "FUN_001e5180(local_30 * 4)" (identifier "FUN_001e5180") (argument_list "(local_30 * 4)" (( "(") (binary_expression "local_30 * 4" (identifier "local_30") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "uVar4 = FUN_00235590(param_2,local_34,__s,local_30);" (assignment_expression "uVar4 = FUN_00235590(param_2,local_34,__s,local_30)" (identifier "uVar4") (= "=") (call_expression "FUN_00235590(param_2,local_34,__s,local_30)" (identifier "FUN_00235590") (argument_list "(param_2,local_34,__s,local_30)" (( "(") (identifier "param_2") (, ",") (identifier "local_34") (, ",") (identifier "__s") (, ",") (identifier "local_30") () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0026b0d0(param_1,local_34,uVar4);" (call_expression "FUN_0026b0d0(param_1,local_34,uVar4)" (identifier "FUN_0026b0d0") (argument_list "(param_1,local_34,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "local_34") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "sVar5 = wcslen(__s);" (assignment_expression "sVar5 = wcslen(__s)" (identifier "sVar5") (= "=") (call_expression "wcslen(__s)" (identifier "wcslen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (if_statement "if (pwVar3 + wVar1 == __s + sVar5) break;" (if "if") (parenthesized_expression "(pwVar3 + wVar1 == __s + sVar5)" (( "(") (binary_expression "pwVar3 + wVar1 == __s + sVar5" (binary_expression "pwVar3 + wVar1" (identifier "pwVar3") (+ "+") (identifier "wVar1")) (== "==") (binary_expression "__s + sVar5" (identifier "__s") (+ "+") (identifier "sVar5"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "__s = __s + sVar5 + 1;" (assignment_expression "__s = __s + sVar5 + 1" (identifier "__s") (= "=") (binary_expression "__s + sVar5 + 1" (binary_expression "__s + sVar5" (identifier "__s") (+ "+") (identifier "sVar5")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = *(int *)(iVar2 + -0xc) + 1;" (assignment_expression "uVar4 = *(int *)(iVar2 + -0xc) + 1" (identifier "uVar4") (= "=") (binary_expression "*(int *)(iVar2 + -0xc) + 1" (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {\n      FUN_0026adc0(param_1,uVar4);\n    }" (if "if") (parenthesized_expression "((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4)))" (( "(") (binary_expression "(*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))" (parenthesized_expression "(*(uint *)(iVar2 + -8) < uVar4)" (( "(") (binary_expression "*(uint *)(iVar2 + -8) < uVar4" (pointer_expression "*(uint *)(iVar2 + -8)" (* "*") (cast_expression "(uint *)(iVar2 + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -8)" (( "(") (binary_expression "iVar2 + -8" (identifier "iVar2") (+ "+") (number_literal "-8")) () ")")))) (< "<") (identifier "uVar4")) () ")")) (|| "||") (parenthesized_expression "(0 < *(int *)(iVar2 + -4))" (( "(") (binary_expression "0 < *(int *)(iVar2 + -4)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      FUN_0026adc0(param_1,uVar4);\n    }" ({ "{") (expression_statement "FUN_0026adc0(param_1,uVar4);" (call_expression "FUN_0026adc0(param_1,uVar4)" (identifier "FUN_0026adc0") (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + *(int *)(iVar2 + -0xc) * 4)" (( "(") (binary_expression "iVar2 + *(int *)(iVar2 + -0xc) * 4" (identifier "iVar2") (+ "+") (binary_expression "*(int *)(iVar2 + -0xc) * 4" (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))) (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }" (if "if") (parenthesized_expression "((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817))" (( "(") (binary_expression "(wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)" (cast_expression "(wchar_t *)(iVar2 + -0xc)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (cast_expression "(wchar_t *)(unaff_EDI + 0x15e817)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x15e817)" (( "(") (binary_expression "unaff_EDI + 0x15e817" (identifier "unaff_EDI") (+ "+") (number_literal "0x15e817")) () ")")))) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar2 + -4) = 0;\n      *(uint *)(iVar2 + -0xc) = uVar4;\n      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(iVar2 + -0xc) = uVar4;" (assignment_expression "*(uint *)(iVar2 + -0xc) = uVar4" (pointer_expression "*(uint *)(iVar2 + -0xc)" (* "*") (cast_expression "(uint *)(iVar2 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + uVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + uVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + uVar4 * 4)" (( "(") (binary_expression "iVar2 + uVar4 * 4" (identifier "iVar2") (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_001e6d50(local_34);" (call_expression "FUN_001e6d50(local_34)" (identifier "FUN_001e6d50") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (if_statement "if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {\n    FUN_002395a0();\n  }" (if "if") (parenthesized_expression "(pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817))" (( "(") (binary_expression "pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)" (binary_expression "pwVar3 + -3" (identifier "pwVar3") (+ "+") (number_literal "-3")) (!= "!=") (cast_expression "(wchar_t *)(unaff_EDI + 0x15e817)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x15e817)" (( "(") (binary_expression "unaff_EDI + 0x15e817" (identifier "unaff_EDI") (+ "+") (number_literal "0x15e817")) () ")")))) () ")")) (compound_statement "{\n    FUN_002395a0();\n  }" ({ "{") (expression_statement "FUN_002395a0();" (call_expression "FUN_002395a0()" (identifier "FUN_002395a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Restarted to delay deadcode elimination for space: register */
/* std::collate<wchar_t>::do_transform(wchar_t const*, wchar_t const*) const */

type_1 * std::var_11<type_1>::do_transform(type_1 *param_1,type_1 *param_2)

{
  type_1 var_17;
  type_1 var_21;
  type_1 *var_16;
  type_2 var_12;
  size_t var_19;
  type_1 *var_18;
  int var_2;
  int var_6;
  int var_5;
  type_1 *local_34;
  type_2 var_7;
  
  var_1();
  *param_1 = var_2 + L'\x0015e823';
                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */
  var_16 = std::wstring::var_3<var_4*>();
  var_17 = var_16[-3];
  var_7 = var_5 - var_6 >> 1;
  if (0x1fffffff < var_7) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */
    var_8();
  }
                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */
  local_34 = (type_1 *)var_9(var_7 << 2);
  var_18 = var_16;
  do {
    var_12 = var_10((var_11<type_1> *)param_2,local_34,var_18,var_7);
    if (var_7 <= var_12) {
      var_7 = var_12 + 1;
      var_13(local_34);
      if (0x1fffffff < var_7) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */
        var_8();
      }
                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */
      local_34 = (type_1 *)var_9(var_7 * 4);
      var_12 = var_10((var_11<type_1> *)param_2,local_34,var_18,var_7);
    }
                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */
    std::wstring::var_14((type_3 *)param_1,local_34,var_12);
    var_19 = var_15(var_18);
    if (var_16 + var_17 == var_18 + var_19) {
      var_13(local_34);
      if ((type_4 *)(var_16 + -3) != (type_4 *)(var_2 + 0x15e817)) {
        std::wstring::_Rep::var_20((type_4 *)(var_16 + -3));
      }
      return param_1;
    }
    var_18 = var_18 + var_19 + 1;
    var_21 = *param_1;
    var_12 = *(int *)(var_21 + L'\xfffffff4') + 1;
    if (*(type_2 *)(var_21 + L'\xfffffff8') < var_12) {
LAB_0023985e:
      std::wstring::var_22((type_3 *)param_1,var_12);
    }
    else if (0 < *(int *)(var_21 + L'\xfffffffc')) goto LAB_0023985e;
    var_21 = *param_1;
    *(type_5 *)(var_21 + *(int *)(var_21 + L'\xfffffff4') * 4) = 0;
    if ((type_4 *)(var_21 + L'\xfffffff4') != (type_4 *)(var_2 + 0x15e817)) {
      *(type_5 *)(var_21 + L'\xfffffffc') = 0;
      *(type_2 *)(var_21 + L'\xfffffff4') = var_12;
      *(type_5 *)(var_21 + var_12 * 4) = 0;
    }
  } while( true );
}


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

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

{
  wchar_t wVar1;
  int iVar2;
  wchar_t *pwVar3;
  uint uVar4;
  size_t sVar5;
  wchar_t *__s;
  int unaff_EDI;
  undefined4 local_34;
  uint local_30;
  undefined1 local_1d [13];
  
  FUN_000559ee();
  *param_1 = unaff_EDI + 0x15e823;
                    /* try { // try from 00239777 to 0023977b has its CatchHandler @ 002398d8 */
  pwVar3 = (wchar_t *)FUN_0026bb30(param_3,param_4,local_1d,0);
  wVar1 = pwVar3[-3];
  local_30 = param_4 - param_3 >> 1;
  if (0x1fffffff < local_30) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00239943 to 00239947 has its CatchHandler @ 00239938 */
    FUN_001e6740();
  }
                    /* try { // try from 002397ab to 002397af has its CatchHandler @ 00239938 */
  local_34 = FUN_001e5180(local_30 << 2);
  __s = pwVar3;
  while( true ) {
    uVar4 = FUN_00235590(param_2,local_34,__s,local_30);
    if (local_30 <= uVar4) {
      local_30 = uVar4 + 1;
      FUN_001e6d50(local_34);
      if (0x1fffffff < local_30) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023993c to 00239940 has its CatchHandler @ 00239936 */
        FUN_001e6740();
      }
                    /* try { // try from 00239802 to 00239806 has its CatchHandler @ 00239936 */
      local_34 = FUN_001e5180(local_30 * 4);
      uVar4 = FUN_00235590(param_2,local_34,__s,local_30);
    }
                    /* try { // try from 00239829 to 0023986d has its CatchHandler @ 002398dc */
    FUN_0026b0d0(param_1,local_34,uVar4);
    sVar5 = wcslen(__s);
    if (pwVar3 + wVar1 == __s + sVar5) break;
    __s = __s + sVar5 + 1;
    iVar2 = *param_1;
    uVar4 = *(int *)(iVar2 + -0xc) + 1;
    if ((*(uint *)(iVar2 + -8) < uVar4) || (0 < *(int *)(iVar2 + -4))) {
      FUN_0026adc0(param_1,uVar4);
    }
    iVar2 = *param_1;
    *(undefined4 *)(iVar2 + *(int *)(iVar2 + -0xc) * 4) = 0;
    if ((wchar_t *)(iVar2 + -0xc) != (wchar_t *)(unaff_EDI + 0x15e817)) {
      *(undefined4 *)(iVar2 + -4) = 0;
      *(uint *)(iVar2 + -0xc) = uVar4;
      *(undefined4 *)(iVar2 + uVar4 * 4) = 0;
    }
  }
  FUN_001e6d50(local_34);
  if (pwVar3 + -3 != (wchar_t *)(unaff_EDI + 0x15e817)) {
    FUN_002395a0();
  }
  return param_1;
}

