
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* std::collate_byname<char>::collate_byname(std::string const&, unsigned int) */

void __thiscall
std::collate_byname<char>::collate_byname(collate_byname<char> *this,string *param_1,uint param_2)

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  pbVar1 = *(byte **)param_1;
  *(uint *)(this + 4) = (uint)(param_2 != 0);
  *(undefined ***)this = &PTR__collate_002ff384;
                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */
  uVar2 = locale::facet::_S_get_c_locale();
  iVar3 = 2;
  *(undefined4 *)(this + 8) = uVar2;
  bVar6 = false;
  bVar8 = false;
  *(undefined ***)this = &PTR__collate_byname_002ff3a0;
  pbVar4 = pbVar1;
  pbVar5 = (byte *)0x22f226;
  do {
    if (iVar3 == 0) break;
    iVar3 = iVar3 + -1;
    bVar6 = *pbVar4 < *pbVar5;
    bVar8 = *pbVar4 == *pbVar5;
    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (!bVar6) {
    iVar3 = 6;
    pbVar4 = pbVar1;
    pbVar5 = (byte *)"POSIX";
    do {
      if (iVar3 == 0) break;
      iVar3 = iVar3 + -1;
      bVar7 = *pbVar4 < *pbVar5;
      bVar6 = *pbVar4 == *pbVar5;
      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    } while (bVar6);
    if ((!bVar7 && !bVar6) != bVar7) {
                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */
      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));
      locale::facet::_S_create_c_locale
                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);
      return;
    }
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  pbVar1 = (byte *)*param_2;
  param_1[1] = (uint)(param_3 != 0);
  *param_1 = &PTR_FUN_002ff384;
                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */
  uVar2 = FUN_00182c80();
  iVar3 = 2;
  param_1[2] = uVar2;
  bVar6 = false;
  bVar8 = false;
  *param_1 = &PTR_FUN_002ff3a0;
  pbVar4 = pbVar1;
  pbVar5 = (byte *)0x22f226;
  do {
    if (iVar3 == 0) break;
    iVar3 = iVar3 + -1;
    bVar6 = *pbVar4 < *pbVar5;
    bVar8 = *pbVar4 == *pbVar5;
    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (!bVar6) {
    iVar3 = 6;
    pbVar4 = pbVar1;
    pbVar5 = (byte *)"POSIX";
    do {
      if (iVar3 == 0) break;
      iVar3 = iVar3 + -1;
      bVar7 = *pbVar4 < *pbVar5;
      bVar6 = *pbVar4 == *pbVar5;
      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    } while (bVar6);
    if ((!bVar7 && !bVar6) != bVar7) {
                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */
      FUN_001c8c60(param_1 + 2);
      FUN_001c8c20(param_1 + 2,pbVar1,0);
      return;
    }
  }
  return;
}


CALL 0x00032865
ADD EDX,0x16c93b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,EDX
SUB ESP,0x1c
MOV EAX,dword ptr [EBP + 0xc]
MOV ECX,dword ptr [EBP + 0x10]
MOV dword ptr [EBP + -0x1c],EDX
MOV EBX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EAX]
XOR EAX,EAX
TEST ECX,ECX
SETNZ AL
MOV dword ptr [EBX + 0x4],EAX
LEA EAX,[EDX + 0xffffd37c]
MOV dword ptr [EBP + -0x20],ESI
MOV dword ptr [EBP + -0x24],EAX
ADD EAX,0x8
MOV dword ptr [EBX],EAX
MOV EBX,EDX
CALL 0x00182c80
MOV EBX,dword ptr [EBP + 0x8]
MOV ECX,0x2
MOV dword ptr [EBX + 0x8],EAX
LEA EAX,[EDI + 0xffffd398]
LEA EDI,[EDI + 0xfff2d226]
ADD EAX,0x8
MOV dword ptr [EBX],EAX
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00195749
MOV EAX,dword ptr [EBP + -0x1c]
MOV ESI,dword ptr [EBP + -0x20]
MOV ECX,0x6
LEA EDI,[EAX + 0xfff38a07]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00195758
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0xc
MOV EDI,dword ptr [EBP + -0x1c]
LEA ESI,[EAX + 0x8]
MOV EBX,EDI
PUSH ESI
CALL 0x001c8c60
ADD ESP,0xc
PUSH 0x0
PUSH dword ptr [EBP + -0x20]
PUSH ESI
CALL 0x001c8c20
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */\n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */\n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */\n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "pbVar1 = (byte *)*param_2;" (assignment_expression "pbVar1 = (byte *)*param_2" identifier = (cast_expression "(byte *)*param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "param_1[1] = (uint)(param_3 != 0);" (assignment_expression "param_1[1] = (uint)(param_3 != 0)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*param_1 = &PTR_FUN_002ff384;" (assignment_expression "*param_1 = &PTR_FUN_002ff384" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ff384" & identifier)) ;) comment (expression_statement "uVar2 = FUN_00182c80();" (assignment_expression "uVar2 = FUN_00182c80()" identifier = (call_expression "FUN_00182c80()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "*param_1 = &PTR_FUN_002ff3a0;" (assignment_expression "*param_1 = &PTR_FUN_002ff3a0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ff3a0" & identifier)) ;) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)0x22f226;" (assignment_expression "pbVar5 = (byte *)0x22f226" identifier = (cast_expression "(byte *)0x22f226" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }" { (expression_statement "iVar3 = 6;" (assignment_expression "iVar3 = 6" identifier = number_literal) ;) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)"POSIX";" (assignment_expression "pbVar5 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar4 < *pbVar5;" (assignment_expression "bVar7 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar6 = *pbVar4 == *pbVar5;" (assignment_expression "bVar6 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" ( (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }" { comment (expression_statement "FUN_001c8c60(param_1 + 2);" (call_expression "FUN_001c8c60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001c8c20(param_1 + 2,pbVar1,0);" (call_expression "FUN_001c8c20(param_1 + 2,pbVar1,0)" identifier (argument_list "(param_1 + 2,pbVar1,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* std::collate_byname<char>::collate_byname(std::string const&, unsigned int) */\n\nvoid __thiscall\nstd::collate_byname<char>::collate_byname(collate_byname<char> *this,string *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = *(byte **)param_1;\n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(undefined ***)this = &PTR__collate_002ff384;\n                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */\n  uVar2 = locale::facet::_S_get_c_locale();\n  iVar3 = 2;\n  *(undefined4 *)(this + 8) = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *(undefined ***)this = &PTR__collate_byname_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\nstd::collate_byname<char>::collate_byname(collate_byname<char> *this,string *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = *(byte **)param_1;\n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(undefined ***)this = &PTR__collate_002ff384;\n                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */\n  uVar2 = locale::facet::_S_get_c_locale();\n  iVar3 = 2;\n  *(undefined4 *)(this + 8) = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *(undefined ***)this = &PTR__collate_byname_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::collate_byname<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "collate_byname(collate_byname<char> *this,string *param_1,uint param_2)" identifier (parameter_list "(collate_byname<char> *this,string *param_1,uint param_2)" ( (parameter_declaration "collate_byname<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = *(byte **)param_1;\n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(undefined ***)this = &PTR__collate_002ff384;\n                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */\n  uVar2 = locale::facet::_S_get_c_locale();\n  iVar3 = 2;\n  *(undefined4 *)(this + 8) = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *(undefined ***)this = &PTR__collate_byname_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "pbVar1 = *(byte **)param_1;" (assignment_expression "pbVar1 = *(byte **)param_1" identifier = (pointer_expression "*(byte **)param_1" * (cast_expression "(byte **)param_1" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined ***)this = &PTR__collate_002ff384;" (assignment_expression "*(undefined ***)this = &PTR__collate_002ff384" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__collate_002ff384" & identifier)) ;) comment (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_get_c_locale();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_locale();" (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))) ;)) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "*(undefined ***)this = &PTR__collate_byname_002ff3a0;" (assignment_expression "*(undefined ***)this = &PTR__collate_byname_002ff3a0" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__collate_byname_002ff3a0" & identifier)) ;) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)0x22f226;" (assignment_expression "pbVar5 = (byte *)0x22f226" identifier = (cast_expression "(byte *)0x22f226" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }\n  }" { (expression_statement "iVar3 = 6;" (assignment_expression "iVar3 = 6" identifier = number_literal) ;) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)"POSIX";" (assignment_expression "pbVar5 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar4 < *pbVar5;" (assignment_expression "bVar7 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar6 = *pbVar4 == *pbVar5;" (assignment_expression "bVar6 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" ( (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);\n      return;\n    }" { comment (labeled_statement "locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "_S_destroy_c_locale((__locale_struct **)(this + 8));" (call_expression "_S_destroy_c_locale((__locale_struct **)(this + 8))" identifier (argument_list "((__locale_struct **)(this + 8))" ( (cast_expression "(__locale_struct **)(this + 8)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;))) (labeled_statement "locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0);" (call_expression "_S_create_c_locale\n                ((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0)" identifier (argument_list "((__locale_struct **)(this + 8),(char *)pbVar1,(__locale_struct *)0x0)" ( (cast_expression "(__locale_struct **)(this + 8)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) , (cast_expression "(char *)pbVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(__locale_struct *)0x0" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    \n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    \n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    \n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "pbVar1 = (byte *)*param_2;" (assignment_expression "pbVar1 = (byte *)*param_2" identifier = (cast_expression "(byte *)*param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "param_1[1] = (uint)(param_3 != 0);" (assignment_expression "param_1[1] = (uint)(param_3 != 0)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*param_1 = &PTR_FUN_002ff384;" (assignment_expression "*param_1 = &PTR_FUN_002ff384" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ff384" & identifier)) ;) (expression_statement "uVar2 = FUN_00182c80();" (assignment_expression "uVar2 = FUN_00182c80()" identifier = (call_expression "FUN_00182c80()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "*param_1 = &PTR_FUN_002ff3a0;" (assignment_expression "*param_1 = &PTR_FUN_002ff3a0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ff3a0" & identifier)) ;) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)0x22f226;" (assignment_expression "pbVar5 = (byte *)0x22f226" identifier = (cast_expression "(byte *)0x22f226" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }" { (expression_statement "iVar3 = 6;" (assignment_expression "iVar3 = 6" identifier = number_literal) ;) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)"POSIX";" (assignment_expression "pbVar5 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar4 < *pbVar5;" (assignment_expression "bVar7 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar6 = *pbVar4 == *pbVar5;" (assignment_expression "bVar6 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" ( (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }" { (expression_statement "FUN_001c8c60(param_1 + 2);" (call_expression "FUN_001c8c60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001c8c20(param_1 + 2,pbVar1,0);" (call_expression "FUN_001c8c20(param_1 + 2,pbVar1,0)" identifier (argument_list "(param_1 + 2,pbVar1,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    \n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001956c0(undefined4 *param_1,undefined4 *param_2,int param_3)" (identifier "FUN_001956c0") (parameter_list "(undefined4 *param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)*param_2;\n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_002ff384;\n                    \n  uVar2 = FUN_00182c80();\n  iVar3 = 2;\n  param_1[2] = uVar2;\n  bVar6 = false;\n  bVar8 = false;\n  *param_1 = &PTR_FUN_002ff3a0;\n  pbVar4 = pbVar1;\n  pbVar5 = (byte *)0x22f226;\n  do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar1 = (byte *)*param_2;" (assignment_expression "pbVar1 = (byte *)*param_2" (identifier "pbVar1") (= "=") (cast_expression "(byte *)*param_2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "param_1[1] = (uint)(param_3 != 0);" (assignment_expression "param_1[1] = (uint)(param_3 != 0)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_002ff384;" (assignment_expression "*param_1 = &PTR_FUN_002ff384" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_002ff384" (& "&") (identifier "PTR_FUN_002ff384"))) (; ";")) (expression_statement "uVar2 = FUN_00182c80();" (assignment_expression "uVar2 = FUN_00182c80()" (identifier "uVar2") (= "=") (call_expression "FUN_00182c80()" (identifier "FUN_00182c80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" (identifier "iVar3") (= "=") (number_literal "2")) (; ";")) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_002ff3a0;" (assignment_expression "*param_1 = &PTR_FUN_002ff3a0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_002ff3a0" (& "&") (identifier "PTR_FUN_002ff3a0"))) (; ";")) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" (identifier "pbVar4") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "pbVar5 = (byte *)0x22f226;" (assignment_expression "pbVar5 = (byte *)0x22f226" (identifier "pbVar5") (= "=") (cast_expression "(byte *)0x22f226" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x22f226"))) (; ";")) (do_statement "do {\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" (do "do") (compound_statement "{\n    if (iVar3 == 0) break;\n    iVar3 = iVar3 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" ({ "{") (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" (identifier "bVar6") (= "=") (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (< "<") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" (identifier "bVar8") (= "=") (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" (identifier "bVar6") (= "=") (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" (( "(") (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar8" (! "!") (identifier "bVar8"))) () ")")) (== "==") (identifier "bVar6"))) (; ";")) (if_statement "if (!bVar6) {\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar6)" (( "(") (unary_expression "!bVar6" (! "!") (identifier "bVar6")) () ")")) (compound_statement "{\n    iVar3 = 6;\n    pbVar4 = pbVar1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar3 = 6;" (assignment_expression "iVar3 = 6" (identifier "iVar3") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar4 = pbVar1;" (assignment_expression "pbVar4 = pbVar1" (identifier "pbVar4") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "pbVar5 = (byte *)"POSIX";" (assignment_expression "pbVar5 = (byte *)"POSIX"" (identifier "pbVar5") (= "=") (cast_expression "(byte *)"POSIX"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""POSIX"" (" """) (string_content "POSIX") (" """)))) (; ";")) (do_statement "do {\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" (do "do") (compound_statement "{\n      if (iVar3 == 0) break;\n      iVar3 = iVar3 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar7 = *pbVar4 < *pbVar5;" (assignment_expression "bVar7 = *pbVar4 < *pbVar5" (identifier "bVar7") (= "=") (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (< "<") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "bVar6 = *pbVar4 == *pbVar5;" (assignment_expression "bVar6 = *pbVar4 == *pbVar5" (identifier "bVar6") (= "=") (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" (( "(") (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" (( "(") (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" (! "!") (identifier "bVar7")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (!= "!=") (identifier "bVar7")) () ")")) (compound_statement "{\n                    \n      FUN_001c8c60(param_1 + 2);\n      FUN_001c8c20(param_1 + 2,pbVar1,0);\n      return;\n    }" ({ "{") (expression_statement "FUN_001c8c60(param_1 + 2);" (call_expression "FUN_001c8c60(param_1 + 2)" (identifier "FUN_001c8c60") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001c8c20(param_1 + 2,pbVar1,0);" (call_expression "FUN_001c8c20(param_1 + 2,pbVar1,0)" (identifier "FUN_001c8c20") (argument_list "(param_1 + 2,pbVar1,0)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "pbVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* std::collate_byname<char>::collate_byname(std::string const&, unsigned int) */

void __thiscall
std::function_1<char>::function_1(function_1<char> *var_1,type_1 *param_1,type_2 var_2)

{
  type_3 *pbVar1;
  type_4 uVar2;
  int var_4;
  type_3 *var_5;
  type_3 *var_6;
  bool var_7;
  bool var_8;
  bool bVar8;
  type_3 bVar9;
  
  bVar9 = 0;
  pbVar1 = *(type_3 **)param_1;
  *(type_2 *)(var_1 + 4) = (type_2)(var_2 != 0);
  *(type_5 ***)var_1 = &PTR__collate_002ff384;
                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */
  uVar2 = locale::facet::var_3();
  var_4 = 2;
  *(type_4 *)(var_1 + 8) = uVar2;
  var_7 = false;
  bVar8 = false;
  *(type_5 ***)var_1 = &PTR__collate_byname_002ff3a0;
  var_5 = pbVar1;
  var_6 = (type_3 *)0x22f226;
  do {
    if (var_4 == 0) break;
    var_4 = var_4 + -1;
    var_7 = *var_5 < *var_6;
    bVar8 = *var_5 == *var_6;
    var_5 = var_5 + (type_2)bVar9 * -2 + 1;
    var_6 = var_6 + (type_2)bVar9 * -2 + 1;
  } while (bVar8);
  var_8 = false;
  var_7 = (!var_7 && !bVar8) == var_7;
  if (!var_7) {
    var_4 = 6;
    var_5 = pbVar1;
    var_6 = (type_3 *)"POSIX";
    do {
      if (var_4 == 0) break;
      var_4 = var_4 + -1;
      var_8 = *var_5 < *var_6;
      var_7 = *var_5 == *var_6;
      var_5 = var_5 + (type_2)bVar9 * -2 + 1;
      var_6 = var_6 + (type_2)bVar9 * -2 + 1;
    } while (var_7);
    if ((!var_8 && !var_7) != var_8) {
                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */
      locale::facet::var_9((type_6 **)(var_1 + 8));
      locale::facet::var_10
                ((type_6 **)(var_1 + 8),(char *)pbVar1,(type_6 *)0x0);
      return;
    }
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

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

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  pbVar1 = (byte *)*param_2;
  param_1[1] = (uint)(param_3 != 0);
  *param_1 = &PTR_FUN_002ff384;
                    /* try { // try from 00195701 to 00195705 has its CatchHandler @ 00195789 */
  uVar2 = FUN_00182c80();
  iVar3 = 2;
  param_1[2] = uVar2;
  bVar6 = false;
  bVar8 = false;
  *param_1 = &PTR_FUN_002ff3a0;
  pbVar4 = pbVar1;
  pbVar5 = (byte *)0x22f226;
  do {
    if (iVar3 == 0) break;
    iVar3 = iVar3 + -1;
    bVar6 = *pbVar4 < *pbVar5;
    bVar8 = *pbVar4 == *pbVar5;
    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (!bVar6) {
    iVar3 = 6;
    pbVar4 = pbVar1;
    pbVar5 = (byte *)"POSIX";
    do {
      if (iVar3 == 0) break;
      iVar3 = iVar3 + -1;
      bVar7 = *pbVar4 < *pbVar5;
      bVar6 = *pbVar4 == *pbVar5;
      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    } while (bVar6);
    if ((!bVar7 && !bVar6) != bVar7) {
                    /* try { // try from 00195767 to 00195779 has its CatchHandler @ 00195785 */
      FUN_001c8c60(param_1 + 2);
      FUN_001c8c20(param_1 + 2,pbVar1,0);
      return;
    }
  }
  return;
}

