
/* std::collate<wchar_t>::do_compare(wchar_t const*, wchar_t const*, wchar_t const*, wchar_t const*)
   const */

int __thiscall
std::collate<wchar_t>::do_compare
          (collate<wchar_t> *this,wchar_t *param_1,wchar_t *param_2,wchar_t *param_3,
          wchar_t *param_4)

{
  wchar_t *pwVar1;
  wchar_t *pwVar2;
  size_t sVar3;
  int iVar4;
  wchar_t *pwVar5;
  wchar_t *pwVar6;
  wchar_t *local_4c;
  int local_48;
  wchar_t local_44 [4];
  wchar_t *local_34;
  int local_30;
  wchar_t local_2c [7];
  
  __x86_get_pc_thunk_di();
  local_4c = local_44;
  std::wstring::_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);
  local_34 = local_2c;
                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */
  std::wstring::_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);
  pwVar1 = local_4c + local_48;
  pwVar2 = local_34 + local_30;
  pwVar5 = local_4c;
  pwVar6 = local_34;
  do {
    iVar4 = _M_compare(this,pwVar5,pwVar6);
    if (iVar4 != 0) {
LAB_0024bbe8:
      if (local_34 != local_2c) {
        operator_delete(local_34);
      }
      if (local_4c != local_44) {
        operator_delete(local_4c);
      }
      return iVar4;
    }
    sVar3 = wcslen(pwVar5);
    pwVar5 = pwVar5 + sVar3;
    sVar3 = wcslen(pwVar6);
    pwVar6 = pwVar6 + sVar3;
    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;
    if (pwVar1 == pwVar5) {
      iVar4 = -1;
      goto LAB_0024bbe8;
    }
    if (pwVar2 == pwVar6) {
      iVar4 = 1;
      goto LAB_0024bbe8;
    }
    pwVar5 = pwVar5 + 1;
    pwVar6 = pwVar6 + 1;
  } while( true );
}



int FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5)

{
  wchar_t *pwVar1;
  wchar_t *pwVar2;
  size_t sVar3;
  int iVar4;
  wchar_t *pwVar5;
  wchar_t *pwVar6;
  wchar_t *local_4c;
  int local_48;
  wchar_t local_44 [4];
  wchar_t *local_34;
  int local_30;
  wchar_t local_2c [7];
  
  FUN_000559ee();
  local_4c = local_44;
  FUN_001ee0d0(&local_4c,param_2,param_3,0);
  local_34 = local_2c;
                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */
  FUN_001ee0d0(&local_34,param_4,param_5,0);
  pwVar1 = local_4c + local_48;
  pwVar2 = local_34 + local_30;
  pwVar5 = local_4c;
  pwVar6 = local_34;
  do {
    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);
    if (iVar4 != 0) {
LAB_0024bbe8:
      if (local_34 != local_2c) {
        FUN_001e6db0(local_34);
      }
      if (local_4c != local_44) {
        FUN_001e6db0(local_4c);
      }
      return iVar4;
    }
    sVar3 = wcslen(pwVar5);
    pwVar5 = pwVar5 + sVar3;
    sVar3 = wcslen(pwVar6);
    pwVar6 = pwVar6 + sVar3;
    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;
    if (pwVar1 == pwVar5) {
      iVar4 = -1;
      goto LAB_0024bbe8;
    }
    if (pwVar2 == pwVar6) {
      iVar4 = 1;
      goto LAB_0024bbe8;
    }
    pwVar5 = pwVar5 + 1;
    pwVar6 = pwVar6 + 1;
  } while( true );
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x1434d7
PUSH ESI
LEA EAX,[EBP + -0x48]
LEA ECX,[EBP + -0x40]
PUSH EBX
SUB ESP,0x5c
MOV dword ptr [EBP + -0x5c],ECX
PUSH 0x0
PUSH dword ptr [EBP + 0x10]
MOV EBX,EDI
PUSH dword ptr [EBP + 0xc]
PUSH EAX
MOV dword ptr [EBP + -0x48],ECX
MOV dword ptr [EBP + -0x4c],EDI
CALL 0x001ee0d0
ADD ESP,0x10
LEA EAX,[EBP + -0x30]
LEA ECX,[EBP + -0x28]
PUSH 0x0
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
PUSH EAX
MOV dword ptr [EBP + -0x60],ECX
MOV dword ptr [EBP + -0x30],ECX
CALL 0x001ee0d0
MOV ESI,dword ptr [EBP + -0x48]
MOV EAX,dword ptr [EBP + -0x44]
ADD ESP,0x10
MOV EDI,dword ptr [EBP + -0x30]
LEA EAX,[ESI + EAX*0x4]
MOV dword ptr [EBP + -0x50],EAX
MOV EAX,dword ptr [EBP + -0x2c]
LEA EAX,[EDI + EAX*0x4]
MOV dword ptr [EBP + -0x54],EAX
JMP 0x0024bbcd
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x4c]
MOV dword ptr [EBP + -0x58],EAX
PUSH ESI
CALL 0x00029270
MOV dword ptr [ESP],EDI
LEA ESI,[ESI + EAX*0x4]
CALL 0x00029270
ADD ESP,0x10
LEA EDI,[EDI + EAX*0x4]
CMP dword ptr [EBP + -0x50],ESI
JNZ 0x0024bbbd
CMP dword ptr [EBP + -0x54],EDI
MOV EDX,dword ptr [EBP + -0x58]
JZ 0x0024bbe6
CMP dword ptr [EBP + -0x50],ESI
JZ 0x0024bc20
CMP dword ptr [EBP + -0x54],EDI
JZ 0x0024bc30
ADD ESI,0x4
ADD EDI,0x4
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x4c]
PUSH EDI
PUSH ESI
PUSH dword ptr [EBP + 0x8]
CALL 0x0027aef0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x0024bb90
MOV ESI,EDX
MOV EAX,dword ptr [EBP + -0x30]
CMP EAX,dword ptr [EBP + -0x60]
JZ 0x0024bbff
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x4c]
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x48]
CMP EAX,dword ptr [EBP + -0x5c]
JZ 0x0024bc16
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x4c]
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0xffffffff
JMP 0x0024bbe8
MOV ESI,0x1
JMP 0x0024bbe8
(translation_unit "int FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */\n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}\n\n" (function_definition "int FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */\n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */\n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "wchar_t *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "wchar_t *pwVar6;" type_identifier (pointer_declarator "*pwVar6" * identifier) ;) (declaration "wchar_t *local_4c;" type_identifier (pointer_declarator "*local_4c" * identifier) ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "wchar_t local_44 [4];" type_identifier (array_declarator "local_44 [4]" identifier [ number_literal ]) ;) (declaration "wchar_t *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "wchar_t local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_4c = local_44;" (assignment_expression "local_4c = local_44" identifier = identifier) ;) (expression_statement "FUN_001ee0d0(&local_4c,param_2,param_3,0);" (call_expression "FUN_001ee0d0(&local_4c,param_2,param_3,0)" identifier (argument_list "(&local_4c,param_2,param_3,0)" ( (pointer_expression "&local_4c" & identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) comment (expression_statement "FUN_001ee0d0(&local_34,param_4,param_5,0);" (call_expression "FUN_001ee0d0(&local_34,param_4,param_5,0)" identifier (argument_list "(&local_34,param_4,param_5,0)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "pwVar1 = local_4c + local_48;" (assignment_expression "pwVar1 = local_4c + local_48" identifier = (binary_expression "local_4c + local_48" identifier + identifier)) ;) (expression_statement "pwVar2 = local_34 + local_30;" (assignment_expression "pwVar2 = local_34 + local_30" identifier = (binary_expression "local_34 + local_30" identifier + identifier)) ;) (expression_statement "pwVar5 = local_4c;" (assignment_expression "pwVar5 = local_4c" identifier = identifier) ;) (expression_statement "pwVar6 = local_34;" (assignment_expression "pwVar6 = local_34" identifier = identifier) ;) (do_statement "do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );" do (compound_statement "{\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  }" { (expression_statement "iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);" (assignment_expression "iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6)" identifier = (call_expression "FUN_0027aef0(param_1,pwVar5,pwVar6)" identifier (argument_list "(param_1,pwVar5,pwVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }" { (labeled_statement "LAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" statement_identifier : (if_statement "if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n        FUN_001e6db0(local_34);\n      }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }))) (if_statement "if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }" if (parenthesized_expression "(local_4c != local_44)" ( (binary_expression "local_4c != local_44" identifier != identifier) )) (compound_statement "{\n        FUN_001e6db0(local_4c);\n      }" { (expression_statement "FUN_001e6db0(local_4c);" (call_expression "FUN_001e6db0(local_4c)" identifier (argument_list "(local_4c)" ( identifier ))) ;) })) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "sVar3 = wcslen(pwVar5);" (assignment_expression "sVar3 = wcslen(pwVar5)" identifier = (call_expression "wcslen(pwVar5)" identifier (argument_list "(pwVar5)" ( identifier )))) ;) (expression_statement "pwVar5 = pwVar5 + sVar3;" (assignment_expression "pwVar5 = pwVar5 + sVar3" identifier = (binary_expression "pwVar5 + sVar3" identifier + identifier)) ;) (expression_statement "sVar3 = wcslen(pwVar6);" (assignment_expression "sVar3 = wcslen(pwVar6)" identifier = (call_expression "wcslen(pwVar6)" identifier (argument_list "(pwVar6)" ( identifier )))) ;) (expression_statement "pwVar6 = pwVar6 + sVar3;" (assignment_expression "pwVar6 = pwVar6 + sVar3" identifier = (binary_expression "pwVar6 + sVar3" identifier + identifier)) ;) (if_statement "if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;" if (parenthesized_expression "((pwVar1 == pwVar5) && (pwVar2 == pwVar6))" ( (binary_expression "(pwVar1 == pwVar5) && (pwVar2 == pwVar6)" (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) && (parenthesized_expression "(pwVar2 == pwVar6)" ( (binary_expression "pwVar2 == pwVar6" identifier == identifier) ))) )) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;)) (if_statement "if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" if (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) (compound_statement "{\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;) })) (if_statement "if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" if (parenthesized_expression "(pwVar2 == pwVar6)" ( (binary_expression "pwVar2 == pwVar6" identifier == identifier) )) (compound_statement "{\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;) })) (expression_statement "pwVar5 = pwVar5 + 1;" (assignment_expression "pwVar5 = pwVar5 + 1" identifier = (binary_expression "pwVar5 + 1" identifier + number_literal)) ;) (expression_statement "pwVar6 = pwVar6 + 1;" (assignment_expression "pwVar6 = pwVar6 + 1" identifier = (binary_expression "pwVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* std::collate<wchar_t>::do_compare(wchar_t const*, wchar_t const*, wchar_t const*, wchar_t const*)\n   const */\n\nint __thiscall\nstd::collate<wchar_t>::do_compare\n          (collate<wchar_t> *this,wchar_t *param_1,wchar_t *param_2,wchar_t *param_3,\n          wchar_t *param_4)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  __x86_get_pc_thunk_di();\n  local_4c = local_44;\n  std::wstring::_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);\n  local_34 = local_2c;\n                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */\n  std::wstring::_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = _M_compare(this,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}\n\n" comment (function_definition "int __thiscall\nstd::collate<wchar_t>::do_compare\n          (collate<wchar_t> *this,wchar_t *param_1,wchar_t *param_2,wchar_t *param_3,\n          wchar_t *param_4)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  __x86_get_pc_thunk_di();\n  local_4c = local_44;\n  std::wstring::_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);\n  local_34 = local_2c;\n                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */\n  std::wstring::_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = _M_compare(this,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::collate<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_compare\n          (collate<wchar_t> *this,wchar_t *param_1,wchar_t *param_2,wchar_t *param_3,\n          wchar_t *param_4)" identifier (parameter_list "(collate<wchar_t> *this,wchar_t *param_1,wchar_t *param_2,wchar_t *param_3,\n          wchar_t *param_4)" ( (parameter_declaration "collate<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  __x86_get_pc_thunk_di();\n  local_4c = local_44;\n  std::wstring::_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);\n  local_34 = local_2c;\n                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */\n  std::wstring::_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = _M_compare(this,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "wchar_t *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "wchar_t *pwVar6;" type_identifier (pointer_declarator "*pwVar6" * identifier) ;) (declaration "wchar_t *local_4c;" type_identifier (pointer_declarator "*local_4c" * identifier) ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "wchar_t local_44 [4];" type_identifier (array_declarator "local_44 [4]" identifier [ number_literal ]) ;) (declaration "wchar_t *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "wchar_t local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_4c = local_44;" (assignment_expression "local_4c = local_44" identifier = identifier) ;) (labeled_statement "std::wstring::_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);" statement_identifier : (ERROR ":" :) (expression_statement "_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0);" (binary_expression "_M_construct<wchar_t_const*>(&local_4c,param_1,param_2,0)" (binary_expression "_M_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_4c,param_1,param_2,0)" ( (comma_expression "&local_4c,param_1,param_2,0" (pointer_expression "&local_4c" & identifier) , (comma_expression "param_1,param_2,0" identifier , (comma_expression "param_2,0" identifier , number_literal))) ))) ;))) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) comment (labeled_statement "std::wstring::_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);" statement_identifier : (ERROR ":" :) (expression_statement "_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0);" (binary_expression "_M_construct<wchar_t_const*>(&local_34,param_3,param_4,0)" (binary_expression "_M_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_34,param_3,param_4,0)" ( (comma_expression "&local_34,param_3,param_4,0" (pointer_expression "&local_34" & identifier) , (comma_expression "param_3,param_4,0" identifier , (comma_expression "param_4,0" identifier , number_literal))) ))) ;))) (expression_statement "pwVar1 = local_4c + local_48;" (assignment_expression "pwVar1 = local_4c + local_48" identifier = (binary_expression "local_4c + local_48" identifier + identifier)) ;) (expression_statement "pwVar2 = local_34 + local_30;" (assignment_expression "pwVar2 = local_34 + local_30" identifier = (binary_expression "local_34 + local_30" identifier + identifier)) ;) (expression_statement "pwVar5 = local_4c;" (assignment_expression "pwVar5 = local_4c" identifier = identifier) ;) (expression_statement "pwVar6 = local_34;" (assignment_expression "pwVar6 = local_34" identifier = identifier) ;) (do_statement "do {\n    iVar4 = _M_compare(this,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );" do (compound_statement "{\n    iVar4 = _M_compare(this,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  }" { (expression_statement "iVar4 = _M_compare(this,pwVar5,pwVar6);" (assignment_expression "iVar4 = _M_compare(this,pwVar5,pwVar6)" identifier = (call_expression "_M_compare(this,pwVar5,pwVar6)" identifier (argument_list "(this,pwVar5,pwVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }\n      if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }\n      return iVar4;\n    }" { (labeled_statement "LAB_0024bbe8:\n      if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }" statement_identifier : (if_statement "if (local_34 != local_2c) {\n        operator_delete(local_34);\n      }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n        operator_delete(local_34);\n      }" { (expression_statement "operator_delete(local_34);" (call_expression "operator_delete(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }))) (if_statement "if (local_4c != local_44) {\n        operator_delete(local_4c);\n      }" if (parenthesized_expression "(local_4c != local_44)" ( (binary_expression "local_4c != local_44" identifier != identifier) )) (compound_statement "{\n        operator_delete(local_4c);\n      }" { (expression_statement "operator_delete(local_4c);" (call_expression "operator_delete(local_4c)" identifier (argument_list "(local_4c)" ( identifier ))) ;) })) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "sVar3 = wcslen(pwVar5);" (assignment_expression "sVar3 = wcslen(pwVar5)" identifier = (call_expression "wcslen(pwVar5)" identifier (argument_list "(pwVar5)" ( identifier )))) ;) (expression_statement "pwVar5 = pwVar5 + sVar3;" (assignment_expression "pwVar5 = pwVar5 + sVar3" identifier = (binary_expression "pwVar5 + sVar3" identifier + identifier)) ;) (expression_statement "sVar3 = wcslen(pwVar6);" (assignment_expression "sVar3 = wcslen(pwVar6)" identifier = (call_expression "wcslen(pwVar6)" identifier (argument_list "(pwVar6)" ( identifier )))) ;) (expression_statement "pwVar6 = pwVar6 + sVar3;" (assignment_expression "pwVar6 = pwVar6 + sVar3" identifier = (binary_expression "pwVar6 + sVar3" identifier + identifier)) ;) (if_statement "if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;" if (parenthesized_expression "((pwVar1 == pwVar5) && (pwVar2 == pwVar6))" ( (binary_expression "(pwVar1 == pwVar5) && (pwVar2 == pwVar6)" (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) && (parenthesized_expression "(pwVar2 == pwVar6)" ( (binary_expression "pwVar2 == pwVar6" identifier == identifier) ))) )) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;)) (if_statement "if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" if (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) (compound_statement "{\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;) })) (if_statement "if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" if (parenthesized_expression "(pwVar2 == pwVar6)" ( (binary_expression "pwVar2 == pwVar6" identifier == identifier) )) (compound_statement "{\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;) })) (expression_statement "pwVar5 = pwVar5 + 1;" (assignment_expression "pwVar5 = pwVar5 + 1" identifier = (binary_expression "pwVar5 + 1" identifier + number_literal)) ;) (expression_statement "pwVar6 = pwVar6 + 1;" (assignment_expression "pwVar6 = pwVar6 + 1" identifier = (binary_expression "pwVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    \n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}\n\n" (function_definition "int FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    \n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    \n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "wchar_t *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "wchar_t *pwVar6;" type_identifier (pointer_declarator "*pwVar6" * identifier) ;) (declaration "wchar_t *local_4c;" type_identifier (pointer_declarator "*local_4c" * identifier) ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "wchar_t local_44 [4];" type_identifier (array_declarator "local_44 [4]" identifier [ number_literal ]) ;) (declaration "wchar_t *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "wchar_t local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_4c = local_44;" (assignment_expression "local_4c = local_44" identifier = identifier) ;) (expression_statement "FUN_001ee0d0(&local_4c,param_2,param_3,0);" (call_expression "FUN_001ee0d0(&local_4c,param_2,param_3,0)" identifier (argument_list "(&local_4c,param_2,param_3,0)" ( (pointer_expression "&local_4c" & identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "FUN_001ee0d0(&local_34,param_4,param_5,0);" (call_expression "FUN_001ee0d0(&local_34,param_4,param_5,0)" identifier (argument_list "(&local_34,param_4,param_5,0)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "pwVar1 = local_4c + local_48;" (assignment_expression "pwVar1 = local_4c + local_48" identifier = (binary_expression "local_4c + local_48" identifier + identifier)) ;) (expression_statement "pwVar2 = local_34 + local_30;" (assignment_expression "pwVar2 = local_34 + local_30" identifier = (binary_expression "local_34 + local_30" identifier + identifier)) ;) (expression_statement "pwVar5 = local_4c;" (assignment_expression "pwVar5 = local_4c" identifier = identifier) ;) (expression_statement "pwVar6 = local_34;" (assignment_expression "pwVar6 = local_34" identifier = identifier) ;) (do_statement "do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );" do (compound_statement "{\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  }" { (expression_statement "iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);" (assignment_expression "iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6)" identifier = (call_expression "FUN_0027aef0(param_1,pwVar5,pwVar6)" identifier (argument_list "(param_1,pwVar5,pwVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }" { (labeled_statement "LAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" statement_identifier : (if_statement "if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n        FUN_001e6db0(local_34);\n      }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }))) (if_statement "if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }" if (parenthesized_expression "(local_4c != local_44)" ( (binary_expression "local_4c != local_44" identifier != identifier) )) (compound_statement "{\n        FUN_001e6db0(local_4c);\n      }" { (expression_statement "FUN_001e6db0(local_4c);" (call_expression "FUN_001e6db0(local_4c)" identifier (argument_list "(local_4c)" ( identifier ))) ;) })) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "sVar3 = wcslen(pwVar5);" (assignment_expression "sVar3 = wcslen(pwVar5)" identifier = (call_expression "wcslen(pwVar5)" identifier (argument_list "(pwVar5)" ( identifier )))) ;) (expression_statement "pwVar5 = pwVar5 + sVar3;" (assignment_expression "pwVar5 = pwVar5 + sVar3" identifier = (binary_expression "pwVar5 + sVar3" identifier + identifier)) ;) (expression_statement "sVar3 = wcslen(pwVar6);" (assignment_expression "sVar3 = wcslen(pwVar6)" identifier = (call_expression "wcslen(pwVar6)" identifier (argument_list "(pwVar6)" ( identifier )))) ;) (expression_statement "pwVar6 = pwVar6 + sVar3;" (assignment_expression "pwVar6 = pwVar6 + sVar3" identifier = (binary_expression "pwVar6 + sVar3" identifier + identifier)) ;) (if_statement "if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;" if (parenthesized_expression "((pwVar1 == pwVar5) && (pwVar2 == pwVar6))" ( (binary_expression "(pwVar1 == pwVar5) && (pwVar2 == pwVar6)" (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) && (parenthesized_expression "(pwVar2 == pwVar6)" ( (binary_expression "pwVar2 == pwVar6" identifier == identifier) ))) )) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;)) (if_statement "if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" if (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) (compound_statement "{\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;) })) (if_statement "if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" if (parenthesized_expression "(pwVar2 == pwVar6)" ( (binary_expression "pwVar2 == pwVar6" identifier == identifier) )) (compound_statement "{\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0024bbe8;" goto statement_identifier ;) })) (expression_statement "pwVar5 = pwVar5 + 1;" (assignment_expression "pwVar5 = pwVar5 + 1" identifier = (binary_expression "pwVar5 + 1" identifier + number_literal)) ;) (expression_statement "pwVar6 = pwVar6 + 1;" (assignment_expression "pwVar6 = pwVar6 + 1" identifier = (binary_expression "pwVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    \n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_0024bb20(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" (identifier "FUN_0024bb20") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  size_t sVar3;\n  int iVar4;\n  wchar_t *pwVar5;\n  wchar_t *pwVar6;\n  wchar_t *local_4c;\n  int local_48;\n  wchar_t local_44 [4];\n  wchar_t *local_34;\n  int local_30;\n  wchar_t local_2c [7];\n  \n  FUN_000559ee();\n  local_4c = local_44;\n  FUN_001ee0d0(&local_4c,param_2,param_3,0);\n  local_34 = local_2c;\n                    \n  FUN_001ee0d0(&local_34,param_4,param_5,0);\n  pwVar1 = local_4c + local_48;\n  pwVar2 = local_34 + local_30;\n  pwVar5 = local_4c;\n  pwVar6 = local_34;\n  do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );\n}" ({ "{") (declaration "wchar_t *pwVar1;" (type_identifier "wchar_t") (pointer_declarator "*pwVar1" (* "*") (identifier "pwVar1")) (; ";")) (declaration "wchar_t *pwVar2;" (type_identifier "wchar_t") (pointer_declarator "*pwVar2" (* "*") (identifier "pwVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "wchar_t *pwVar5;" (type_identifier "wchar_t") (pointer_declarator "*pwVar5" (* "*") (identifier "pwVar5")) (; ";")) (declaration "wchar_t *pwVar6;" (type_identifier "wchar_t") (pointer_declarator "*pwVar6" (* "*") (identifier "pwVar6")) (; ";")) (declaration "wchar_t *local_4c;" (type_identifier "wchar_t") (pointer_declarator "*local_4c" (* "*") (identifier "local_4c")) (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "wchar_t local_44 [4];" (type_identifier "wchar_t") (array_declarator "local_44 [4]" (identifier "local_44") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "wchar_t *local_34;" (type_identifier "wchar_t") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "wchar_t local_2c [7];" (type_identifier "wchar_t") (array_declarator "local_2c [7]" (identifier "local_2c") ([ "[") (number_literal "7") (] "]")) (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_4c = local_44;" (assignment_expression "local_4c = local_44" (identifier "local_4c") (= "=") (identifier "local_44")) (; ";")) (expression_statement "FUN_001ee0d0(&local_4c,param_2,param_3,0);" (call_expression "FUN_001ee0d0(&local_4c,param_2,param_3,0)" (identifier "FUN_001ee0d0") (argument_list "(&local_4c,param_2,param_3,0)" (( "(") (pointer_expression "&local_4c" (& "&") (identifier "local_4c")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_001ee0d0(&local_34,param_4,param_5,0);" (call_expression "FUN_001ee0d0(&local_34,param_4,param_5,0)" (identifier "FUN_001ee0d0") (argument_list "(&local_34,param_4,param_5,0)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "pwVar1 = local_4c + local_48;" (assignment_expression "pwVar1 = local_4c + local_48" (identifier "pwVar1") (= "=") (binary_expression "local_4c + local_48" (identifier "local_4c") (+ "+") (identifier "local_48"))) (; ";")) (expression_statement "pwVar2 = local_34 + local_30;" (assignment_expression "pwVar2 = local_34 + local_30" (identifier "pwVar2") (= "=") (binary_expression "local_34 + local_30" (identifier "local_34") (+ "+") (identifier "local_30"))) (; ";")) (expression_statement "pwVar5 = local_4c;" (assignment_expression "pwVar5 = local_4c" (identifier "pwVar5") (= "=") (identifier "local_4c")) (; ";")) (expression_statement "pwVar6 = local_34;" (assignment_expression "pwVar6 = local_34" (identifier "pwVar6") (= "=") (identifier "local_34")) (; ";")) (do_statement "do {\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);\n    if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }\n    sVar3 = wcslen(pwVar5);\n    pwVar5 = pwVar5 + sVar3;\n    sVar3 = wcslen(pwVar6);\n    pwVar6 = pwVar6 + sVar3;\n    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;\n    if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }\n    if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }\n    pwVar5 = pwVar5 + 1;\n    pwVar6 = pwVar6 + 1;\n  }" ({ "{") (expression_statement "iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);" (assignment_expression "iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6)" (identifier "iVar4") (= "=") (call_expression "FUN_0027aef0(param_1,pwVar5,pwVar6)" (identifier "FUN_0027aef0") (argument_list "(param_1,pwVar5,pwVar6)" (( "(") (identifier "param_1") (, ",") (identifier "pwVar5") (, ",") (identifier "pwVar6") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }\n      return iVar4;\n    }" ({ "{") (labeled_statement "LAB_0024bbe8:\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" (statement_identifier "LAB_0024bbe8") (: ":") (if_statement "if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" (if "if") (parenthesized_expression "(local_34 != local_2c)" (( "(") (binary_expression "local_34 != local_2c" (identifier "local_34") (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n        FUN_001e6db0(local_34);\n      }" ({ "{") (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" (identifier "FUN_001e6db0") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_4c != local_44) {\n        FUN_001e6db0(local_4c);\n      }" (if "if") (parenthesized_expression "(local_4c != local_44)" (( "(") (binary_expression "local_4c != local_44" (identifier "local_4c") (!= "!=") (identifier "local_44")) () ")")) (compound_statement "{\n        FUN_001e6db0(local_4c);\n      }" ({ "{") (expression_statement "FUN_001e6db0(local_4c);" (call_expression "FUN_001e6db0(local_4c)" (identifier "FUN_001e6db0") (argument_list "(local_4c)" (( "(") (identifier "local_4c") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "sVar3 = wcslen(pwVar5);" (assignment_expression "sVar3 = wcslen(pwVar5)" (identifier "sVar3") (= "=") (call_expression "wcslen(pwVar5)" (identifier "wcslen") (argument_list "(pwVar5)" (( "(") (identifier "pwVar5") () ")")))) (; ";")) (expression_statement "pwVar5 = pwVar5 + sVar3;" (assignment_expression "pwVar5 = pwVar5 + sVar3" (identifier "pwVar5") (= "=") (binary_expression "pwVar5 + sVar3" (identifier "pwVar5") (+ "+") (identifier "sVar3"))) (; ";")) (expression_statement "sVar3 = wcslen(pwVar6);" (assignment_expression "sVar3 = wcslen(pwVar6)" (identifier "sVar3") (= "=") (call_expression "wcslen(pwVar6)" (identifier "wcslen") (argument_list "(pwVar6)" (( "(") (identifier "pwVar6") () ")")))) (; ";")) (expression_statement "pwVar6 = pwVar6 + sVar3;" (assignment_expression "pwVar6 = pwVar6 + sVar3" (identifier "pwVar6") (= "=") (binary_expression "pwVar6 + sVar3" (identifier "pwVar6") (+ "+") (identifier "sVar3"))) (; ";")) (if_statement "if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;" (if "if") (parenthesized_expression "((pwVar1 == pwVar5) && (pwVar2 == pwVar6))" (( "(") (binary_expression "(pwVar1 == pwVar5) && (pwVar2 == pwVar6)" (parenthesized_expression "(pwVar1 == pwVar5)" (( "(") (binary_expression "pwVar1 == pwVar5" (identifier "pwVar1") (== "==") (identifier "pwVar5")) () ")")) (&& "&&") (parenthesized_expression "(pwVar2 == pwVar6)" (( "(") (binary_expression "pwVar2 == pwVar6" (identifier "pwVar2") (== "==") (identifier "pwVar6")) () ")"))) () ")")) (goto_statement "goto LAB_0024bbe8;" (goto "goto") (statement_identifier "LAB_0024bbe8") (; ";"))) (if_statement "if (pwVar1 == pwVar5) {\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" (if "if") (parenthesized_expression "(pwVar1 == pwVar5)" (( "(") (binary_expression "pwVar1 == pwVar5" (identifier "pwVar1") (== "==") (identifier "pwVar5")) () ")")) (compound_statement "{\n      iVar4 = -1;\n      goto LAB_0024bbe8;\n    }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_0024bbe8;" (goto "goto") (statement_identifier "LAB_0024bbe8") (; ";")) (} "}"))) (if_statement "if (pwVar2 == pwVar6) {\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" (if "if") (parenthesized_expression "(pwVar2 == pwVar6)" (( "(") (binary_expression "pwVar2 == pwVar6" (identifier "pwVar2") (== "==") (identifier "pwVar6")) () ")")) (compound_statement "{\n      iVar4 = 1;\n      goto LAB_0024bbe8;\n    }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0024bbe8;" (goto "goto") (statement_identifier "LAB_0024bbe8") (; ";")) (} "}"))) (expression_statement "pwVar5 = pwVar5 + 1;" (assignment_expression "pwVar5 = pwVar5 + 1" (identifier "pwVar5") (= "=") (binary_expression "pwVar5 + 1" (identifier "pwVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pwVar6 = pwVar6 + 1;" (assignment_expression "pwVar6 = pwVar6 + 1" (identifier "pwVar6") (= "=") (binary_expression "pwVar6 + 1" (identifier "pwVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* std::collate<wchar_t>::do_compare(wchar_t const*, wchar_t const*, wchar_t const*, wchar_t const*)
   const */

int __thiscall
std::type_1<type_2>::function_1
          (type_1<type_2> *this,type_2 *param_1,type_2 *param_2,type_2 *param_3,
          type_2 *param_4)

{
  type_2 *var_17;
  type_2 *var_18;
  size_t var_15;
  int var_9;
  type_2 *var_14;
  type_2 *var_16;
  type_2 *var_4;
  int var_5;
  type_2 var_12 [4];
  type_2 *var_6;
  int var_7;
  type_2 var_10 [7];
  
  var_1();
  var_4 = var_12;
  std::wstring::var_2<var_3*>(&var_4,param_1,param_2,0);
  var_6 = var_10;
                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */
  std::wstring::var_2<var_3*>(&var_6,param_3,param_4,0);
  var_17 = var_4 + var_5;
  var_18 = var_6 + var_7;
  var_14 = var_4;
  var_16 = var_6;
  do {
    var_9 = var_8(this,var_14,var_16);
    if (var_9 != 0) {
LAB_0024bbe8:
      if (var_6 != var_10) {
        var_11(var_6);
      }
      if (var_4 != var_12) {
        var_11(var_4);
      }
      return var_9;
    }
    var_15 = var_13(var_14);
    var_14 = var_14 + var_15;
    var_15 = var_13(var_16);
    var_16 = var_16 + var_15;
    if ((var_17 == var_14) && (var_18 == var_16)) goto LAB_0024bbe8;
    if (var_17 == var_14) {
      var_9 = -1;
      goto LAB_0024bbe8;
    }
    if (var_18 == var_16) {
      var_9 = 1;
      goto LAB_0024bbe8;
    }
    var_14 = var_14 + 1;
    var_16 = var_16 + 1;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

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

{
  wchar_t *pwVar1;
  wchar_t *pwVar2;
  size_t sVar3;
  int iVar4;
  wchar_t *pwVar5;
  wchar_t *pwVar6;
  wchar_t *local_4c;
  int local_48;
  wchar_t local_44 [4];
  wchar_t *local_34;
  int local_30;
  wchar_t local_2c [7];
  
  FUN_000559ee();
  local_4c = local_44;
  FUN_001ee0d0(&local_4c,param_2,param_3,0);
  local_34 = local_2c;
                    /* try { // try from 0024bb6b to 0024bb6f has its CatchHandler @ 0024bc37 */
  FUN_001ee0d0(&local_34,param_4,param_5,0);
  pwVar1 = local_4c + local_48;
  pwVar2 = local_34 + local_30;
  pwVar5 = local_4c;
  pwVar6 = local_34;
  do {
    iVar4 = FUN_0027aef0(param_1,pwVar5,pwVar6);
    if (iVar4 != 0) {
LAB_0024bbe8:
      if (local_34 != local_2c) {
        FUN_001e6db0(local_34);
      }
      if (local_4c != local_44) {
        FUN_001e6db0(local_4c);
      }
      return iVar4;
    }
    sVar3 = wcslen(pwVar5);
    pwVar5 = pwVar5 + sVar3;
    sVar3 = wcslen(pwVar6);
    pwVar6 = pwVar6 + sVar3;
    if ((pwVar1 == pwVar5) && (pwVar2 == pwVar6)) goto LAB_0024bbe8;
    if (pwVar1 == pwVar5) {
      iVar4 = -1;
      goto LAB_0024bbe8;
    }
    if (pwVar2 == pwVar6) {
      iVar4 = 1;
      goto LAB_0024bbe8;
    }
    pwVar5 = pwVar5 + 1;
    pwVar6 = pwVar6 + 1;
  } while( true );
}

