
/* std::ctype_byname<char>::ctype_byname(char const*, unsigned long) */

void __thiscall
std::ctype_byname<char>::ctype_byname(ctype_byname<char> *this,char *param_1,ulong param_2)

{
  long lVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  ctype<char>::ctype((ctype<char> *)this,(ushort *)0x0,false,param_2);
  lVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *(undefined ***)this = &PTR__ctype_byname_00457fa0;
  pbVar2 = (byte *)param_1;
  pbVar3 = (byte *)0x39f4d6;
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    lVar1 = 6;
    pbVar2 = (byte *)param_1;
    pbVar3 = (byte *)"POSIX";
    do {
      if (lVar1 == 0) break;
      lVar1 = lVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */
      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));
      locale::facet::_S_create_c_locale
                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);
      lVar1 = *(long *)(this + 0x10);
      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);
      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);
      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);
      return;
    }
  }
  return;
}



void FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)

{
  long lVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  FUN_003272f0(param_1,0,0,param_3);
  lVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *param_1 = &PTR_FUN_00457fa0;
  pbVar2 = param_2;
  pbVar3 = (byte *)0x39f4d6;
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    lVar1 = 6;
    pbVar2 = param_2;
    pbVar3 = (byte *)"POSIX";
    do {
      if (lVar1 == 0) break;
      lVar1 = lVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */
      FUN_00332d60(param_1 + 2);
      FUN_00332d30(param_1 + 2,param_2,0);
      lVar1 = param_1[2];
      param_1[4] = *(undefined8 *)(lVar1 + 0x78);
      param_1[5] = *(undefined8 *)(lVar1 + 0x70);
      param_1[6] = *(undefined8 *)(lVar1 + 0x68);
      return;
    }
  }
  return;
}


PUSH R12
MOV RCX,RDX
XOR EDX,EDX
PUSH RBP
MOV RBP,RSI
XOR ESI,ESI
PUSH RBX
MOV RBX,RDI
CALL 0x003272f0
LEA RAX,[0x457f90]
MOV ECX,0x2
MOV RSI,RBP
LEA RDI,[0x39f4d6]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00326ad8
MOV ECX,0x6
LEA RDI,[0x3ab9c7]
MOV RSI,RBP
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00326ae0
POP RBX
POP RBP
POP R12
RET
LEA R12,[RBX + 0x10]
MOV RDI,R12
CALL 0x00332d60
XOR EDX,EDX
MOV RSI,RBP
MOV RDI,R12
CALL 0x00332d30
MOV RAX,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RAX + 0x78]
MOV qword ptr [RBX + 0x20],RDX
MOV RDX,qword ptr [RAX + 0x70]
MOV qword ptr [RBX + 0x28],RDX
MOV RAX,qword ptr [RAX + 0x68]
MOV qword ptr [RBX + 0x30],RAX
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,byte *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_003272f0(param_1,0,0,param_3);" (call_expression "FUN_003272f0(param_1,0,0,param_3)" identifier (argument_list "(param_1,0,0,param_3)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "lVar1 = 2;" (assignment_expression "lVar1 = 2" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "*param_1 = &PTR_FUN_00457fa0;" (assignment_expression "*param_1 = &PTR_FUN_00457fa0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00457fa0" & identifier)) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)0x39f4d6;" (assignment_expression "pbVar3 = (byte *)0x39f4d6" identifier = (cast_expression "(byte *)0x39f4d6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" { (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" identifier = number_literal) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (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 (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" { comment (expression_statement "FUN_00332d60(param_1 + 2);" (call_expression "FUN_00332d60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_00332d30(param_1 + 2,param_2,0);" (call_expression "FUN_00332d30(param_1 + 2,param_2,0)" identifier (argument_list "(param_1 + 2,param_2,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "lVar1 = param_1[2];" (assignment_expression "lVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[4] = *(undefined8 *)(lVar1 + 0x78);" (assignment_expression "param_1[4] = *(undefined8 *)(lVar1 + 0x78)" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" * (cast_expression "(undefined8 *)(lVar1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x78)" ( (binary_expression "lVar1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "param_1[5] = *(undefined8 *)(lVar1 + 0x70);" (assignment_expression "param_1[5] = *(undefined8 *)(lVar1 + 0x70)" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" * (cast_expression "(undefined8 *)(lVar1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x70)" ( (binary_expression "lVar1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "param_1[6] = *(undefined8 *)(lVar1 + 0x68);" (assignment_expression "param_1[6] = *(undefined8 *)(lVar1 + 0x68)" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(lVar1 + 0x68)" * (cast_expression "(undefined8 *)(lVar1 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x68)" ( (binary_expression "lVar1 + 0x68" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::ctype_byname<char>::ctype_byname(char const*, unsigned long) */\n\nvoid __thiscall\nstd::ctype_byname<char>::ctype_byname(ctype_byname<char> *this,char *param_1,ulong param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  ctype<char>::ctype((ctype<char> *)this,(ushort *)0x0,false,param_2);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *(undefined ***)this = &PTR__ctype_byname_00457fa0;\n  pbVar2 = (byte *)param_1;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::ctype_byname<char>::ctype_byname(ctype_byname<char> *this,char *param_1,ulong param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  ctype<char>::ctype((ctype<char> *)this,(ushort *)0x0,false,param_2);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *(undefined ***)this = &PTR__ctype_byname_00457fa0;\n  pbVar2 = (byte *)param_1;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype_byname<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "ctype_byname(ctype_byname<char> *this,char *param_1,ulong param_2)" identifier (parameter_list "(ctype_byname<char> *this,char *param_1,ulong param_2)" ( (parameter_declaration "ctype_byname<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  ctype<char>::ctype((ctype<char> *)this,(ushort *)0x0,false,param_2);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *(undefined ***)this = &PTR__ctype_byname_00457fa0;\n  pbVar2 = (byte *)param_1;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "ctype<char>::ctype((ctype<char> *)this,(ushort *)0x0,false,param_2);" (binary_expression "ctype<char>::ctype((ctype<char> *)this,(ushort *)0x0,false,param_2)" (binary_expression "ctype<char" identifier < identifier) > (ERROR "::" : :) (call_expression "ctype((ctype<char> *)this,(ushort *)0x0,false,param_2)" identifier (argument_list "((ctype<char> *)this,(ushort *)0x0,false,param_2)" ( (parenthesized_expression "(ctype<char> *)this,(ushort *)0x0,false,param_2)" ( (comma_expression "ctype<char> *)this,(ushort *)0x0,false,param_2" (binary_expression "ctype<char> *)this" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)this" * (ERROR ")" )) identifier)) , (comma_expression "(ushort *)0x0,false,param_2" (cast_expression "(ushort *)0x0" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (comma_expression "false,param_2" false , identifier))) )) )))) ;) (expression_statement "lVar1 = 2;" (assignment_expression "lVar1 = 2" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "*(undefined ***)this = &PTR__ctype_byname_00457fa0;" (assignment_expression "*(undefined ***)this = &PTR__ctype_byname_00457fa0" (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__ctype_byname_00457fa0" & identifier)) ;) (expression_statement "pbVar2 = (byte *)param_1;" (assignment_expression "pbVar2 = (byte *)param_1" identifier = (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar3 = (byte *)0x39f4d6;" (assignment_expression "pbVar3 = (byte *)0x39f4d6" identifier = (cast_expression "(byte *)0x39f4d6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    lVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" { (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" identifier = number_literal) ;) (expression_statement "pbVar2 = (byte *)param_1;" (assignment_expression "pbVar2 = (byte *)param_1" identifier = (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (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 (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);\n      lVar1 = *(long *)(this + 0x10);\n      *(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);\n      *(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);\n      *(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" { comment (labeled_statement "locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_destroy_c_locale((__locale_struct **)(this + 0x10));" statement_identifier : (ERROR ":" :) (expression_statement "_S_destroy_c_locale((__locale_struct **)(this + 0x10));" (call_expression "_S_destroy_c_locale((__locale_struct **)(this + 0x10))" identifier (argument_list "((__locale_struct **)(this + 0x10))" ( (cast_expression "(__locale_struct **)(this + 0x10)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))) ))) ;))) (labeled_statement "locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0);" (call_expression "_S_create_c_locale\n                ((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0)" identifier (argument_list "((__locale_struct **)(this + 0x10),param_1,(__locale_struct *)0x0)" ( (cast_expression "(__locale_struct **)(this + 0x10)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))) , identifier , (cast_expression "(__locale_struct *)0x0" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "lVar1 = *(long *)(this + 0x10);" (assignment_expression "lVar1 = *(long *)(this + 0x10)" identifier = (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78);" (assignment_expression "*(undefined8 *)(this + 0x20) = *(undefined8 *)(lVar1 + 0x78)" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" * (cast_expression "(undefined8 *)(lVar1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x78)" ( (binary_expression "lVar1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70);" (assignment_expression "*(undefined8 *)(this + 0x28) = *(undefined8 *)(lVar1 + 0x70)" (pointer_expression "*(undefined8 *)(this + 0x28)" * (cast_expression "(undefined8 *)(this + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" * (cast_expression "(undefined8 *)(lVar1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x70)" ( (binary_expression "lVar1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68);" (assignment_expression "*(undefined8 *)(this + 0x30) = *(undefined8 *)(lVar1 + 0x68)" (pointer_expression "*(undefined8 *)(this + 0x30)" * (cast_expression "(undefined8 *)(this + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(lVar1 + 0x68)" * (cast_expression "(undefined8 *)(lVar1 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x68)" ( (binary_expression "lVar1 + 0x68" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,byte *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_003272f0(param_1,0,0,param_3);" (call_expression "FUN_003272f0(param_1,0,0,param_3)" identifier (argument_list "(param_1,0,0,param_3)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "lVar1 = 2;" (assignment_expression "lVar1 = 2" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "*param_1 = &PTR_FUN_00457fa0;" (assignment_expression "*param_1 = &PTR_FUN_00457fa0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00457fa0" & identifier)) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)0x39f4d6;" (assignment_expression "pbVar3 = (byte *)0x39f4d6" identifier = (cast_expression "(byte *)0x39f4d6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" { (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" identifier = number_literal) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (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 (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" identifier + (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" { (expression_statement "FUN_00332d60(param_1 + 2);" (call_expression "FUN_00332d60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_00332d30(param_1 + 2,param_2,0);" (call_expression "FUN_00332d30(param_1 + 2,param_2,0)" identifier (argument_list "(param_1 + 2,param_2,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "lVar1 = param_1[2];" (assignment_expression "lVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[4] = *(undefined8 *)(lVar1 + 0x78);" (assignment_expression "param_1[4] = *(undefined8 *)(lVar1 + 0x78)" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" * (cast_expression "(undefined8 *)(lVar1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x78)" ( (binary_expression "lVar1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "param_1[5] = *(undefined8 *)(lVar1 + 0x70);" (assignment_expression "param_1[5] = *(undefined8 *)(lVar1 + 0x70)" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" * (cast_expression "(undefined8 *)(lVar1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x70)" ( (binary_expression "lVar1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "param_1[6] = *(undefined8 *)(lVar1 + 0x68);" (assignment_expression "param_1[6] = *(undefined8 *)(lVar1 + 0x68)" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(lVar1 + 0x68)" * (cast_expression "(undefined8 *)(lVar1 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x68)" ( (binary_expression "lVar1 + 0x68" 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 (sized_type_specifier long) 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 (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00326a80(undefined8 *param_1,byte *param_2,undefined8 param_3)" (identifier "FUN_00326a80") (parameter_list "(undefined8 *param_1,byte *param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_003272f0(param_1,0,0,param_3);\n  lVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_00457fa0;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x39f4d6;\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_003272f0(param_1,0,0,param_3);" (call_expression "FUN_003272f0(param_1,0,0,param_3)" (identifier "FUN_003272f0") (argument_list "(param_1,0,0,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "lVar1 = 2;" (assignment_expression "lVar1 = 2" (identifier "lVar1") (= "=") (number_literal "2")) (; ";")) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_00457fa0;" (assignment_expression "*param_1 = &PTR_FUN_00457fa0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00457fa0" (& "&") (identifier "PTR_FUN_00457fa0"))) (; ";")) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pbVar3 = (byte *)0x39f4d6;" (assignment_expression "pbVar3 = (byte *)0x39f4d6" (identifier "pbVar3") (= "=") (cast_expression "(byte *)0x39f4d6" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x39f4d6"))) (; ";")) (do_statement "do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  } while (bVar6);" (do "do") (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n  }" ({ "{") (if_statement "if (lVar1 == 0) break;" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + -1" (identifier "lVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" (identifier "bVar4") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" (identifier "bVar6") (= "=") (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" (identifier "pbVar2") (+ "+") (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" (identifier "bVar4") (= "=") (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" (( "(") (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" (! "!") (identifier "bVar4")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (== "==") (identifier "bVar4"))) (; ";")) (if_statement "if (!bVar4) {\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar4)" (( "(") (unary_expression "!bVar4" (! "!") (identifier "bVar4")) () ")")) (compound_statement "{\n    lVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }\n  }" ({ "{") (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" (identifier "lVar1") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" (identifier "pbVar3") (= "=") (cast_expression "(byte *)"POSIX"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""POSIX"" (" """) (string_content "POSIX") (" """)))) (; ";")) (do_statement "do {\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    } while (bVar4);" (do "do") (compound_statement "{\n      if (lVar1 == 0) break;\n      lVar1 = lVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;\n    }" ({ "{") (if_statement "if (lVar1 == 0) break;" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + -1" (identifier "lVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" (identifier "bVar5") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" (identifier "bVar4") (= "=") (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar2 + (ulong)bVar7 * -2" (identifier "pbVar2") (+ "+") (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (ulong)bVar7 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar7 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(ulong)bVar7 * -2" (cast_expression "(ulong)bVar7" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (; ";")) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" (( "(") (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" (( "(") (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar4" (! "!") (identifier "bVar4"))) () ")")) (!= "!=") (identifier "bVar5")) () ")")) (compound_statement "{\n                    \n      FUN_00332d60(param_1 + 2);\n      FUN_00332d30(param_1 + 2,param_2,0);\n      lVar1 = param_1[2];\n      param_1[4] = *(undefined8 *)(lVar1 + 0x78);\n      param_1[5] = *(undefined8 *)(lVar1 + 0x70);\n      param_1[6] = *(undefined8 *)(lVar1 + 0x68);\n      return;\n    }" ({ "{") (expression_statement "FUN_00332d60(param_1 + 2);" (call_expression "FUN_00332d60(param_1 + 2)" (identifier "FUN_00332d60") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_00332d30(param_1 + 2,param_2,0);" (call_expression "FUN_00332d30(param_1 + 2,param_2,0)" (identifier "FUN_00332d30") (argument_list "(param_1 + 2,param_2,0)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "lVar1 = param_1[2];" (assignment_expression "lVar1 = param_1[2]" (identifier "lVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[4] = *(undefined8 *)(lVar1 + 0x78);" (assignment_expression "param_1[4] = *(undefined8 *)(lVar1 + 0x78)" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x78)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x78)" (( "(") (binary_expression "lVar1 + 0x78" (identifier "lVar1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "param_1[5] = *(undefined8 *)(lVar1 + 0x70);" (assignment_expression "param_1[5] = *(undefined8 *)(lVar1 + 0x70)" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x70)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x70)" (( "(") (binary_expression "lVar1 + 0x70" (identifier "lVar1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "param_1[6] = *(undefined8 *)(lVar1 + 0x68);" (assignment_expression "param_1[6] = *(undefined8 *)(lVar1 + 0x68)" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(lVar1 + 0x68)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x68)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x68)" (( "(") (binary_expression "lVar1 + 0x68" (identifier "lVar1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ctype_byname<char>::ctype_byname(char const*, unsigned long) */

void __thiscall
std::function_1<char>::function_1(function_1<char> *var_9,char *param_1,type_1 param_2)

{
  long var_3;
  type_2 *var_4;
  type_2 *var_5;
  bool var_6;
  bool var_7;
  bool bVar6;
  type_2 bVar7;
  
  bVar7 = 0;
  var_1<var_2>::var_1((var_1<var_2> *)var_9,(type_3 *)0x0,false,param_2);
  var_3 = 2;
  var_6 = false;
  bVar6 = false;
  *(type_4 ***)var_9 = &PTR__ctype_byname_00457fa0;
  var_4 = (type_2 *)param_1;
  var_5 = (type_2 *)0x39f4d6;
  do {
    if (var_3 == 0) break;
    var_3 = var_3 + -1;
    var_6 = *var_4 < *var_5;
    bVar6 = *var_4 == *var_5;
    var_4 = var_4 + (type_1)bVar7 * -2 + 1;
    var_5 = var_5 + (type_1)bVar7 * -2 + 1;
  } while (bVar6);
  var_7 = false;
  var_6 = (!var_6 && !bVar6) == var_6;
  if (!var_6) {
    var_3 = 6;
    var_4 = (type_2 *)param_1;
    var_5 = (type_2 *)"POSIX";
    do {
      if (var_3 == 0) break;
      var_3 = var_3 + -1;
      var_7 = *var_4 < *var_5;
      var_6 = *var_4 == *var_5;
      var_4 = var_4 + (type_1)bVar7 * -2 + 1;
      var_5 = var_5 + (type_1)bVar7 * -2 + 1;
    } while (var_6);
    if ((!var_7 && !var_6) != var_7) {
                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */
      locale::facet::var_8((type_5 **)(var_9 + 0x10));
      locale::facet::var_10
                ((type_5 **)(var_9 + 0x10),param_1,(type_5 *)0x0);
      var_3 = *(long *)(var_9 + 0x10);
      *(type_6 *)(var_9 + 0x20) = *(type_6 *)(var_3 + 0x78);
      *(type_6 *)(var_9 + 0x28) = *(type_6 *)(var_3 + 0x70);
      *(type_6 *)(var_9 + 0x30) = *(type_6 *)(var_3 + 0x68);
      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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) 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 (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))) (return_statement))))

void MASKED(undefined8 *param_1,byte *param_2,undefined8 param_3)

{
  long lVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  FUN_003272f0(param_1,0,0,param_3);
  lVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *param_1 = &PTR_FUN_00457fa0;
  pbVar2 = param_2;
  pbVar3 = (byte *)0x39f4d6;
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    lVar1 = 6;
    pbVar2 = param_2;
    pbVar3 = (byte *)"POSIX";
    do {
      if (lVar1 == 0) break;
      lVar1 = lVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (ulong)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (ulong)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00326ae7 to 00326af8 has its CatchHandler @ 00326b1a */
      FUN_00332d60(param_1 + 2);
      FUN_00332d30(param_1 + 2,param_2,0);
      lVar1 = param_1[2];
      param_1[4] = *(undefined8 *)(lVar1 + 0x78);
      param_1[5] = *(undefined8 *)(lVar1 + 0x70);
      param_1[6] = *(undefined8 *)(lVar1 + 0x68);
      return;
    }
  }
  return;
}

