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

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

{
  char *pcVar1;
  char *__s2;
  int iVar2;
  size_t sVar3;
  void *__dest;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  messages<char>::messages((messages<char> *)this,param_2);
  pcVar1 = *(char **)(this + 0xc);
  *(undefined ***)this = &PTR__messages_byname_0033c694;
  __s2 = (char *)locale::facet::_S_get_c_name();
  bVar6 = pcVar1 < __s2;
  bVar8 = pcVar1 == __s2;
  if (!bVar8) {
    if (pcVar1 != (char *)0x0) {
      operator_delete__(pcVar1);
    }
    iVar2 = strcmp(param_1,__s2);
    bVar6 = false;
    bVar8 = iVar2 == 0;
    if (bVar8) {
      *(char **)(this + 0xc) = __s2;
    }
    else {
      sVar3 = strlen(param_1);
                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */
      __dest = operator_new__(sVar3 + 1);
      memcpy(__dest,param_1,sVar3 + 1);
      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;
      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;
      *(void **)(this + 0xc) = __dest;
    }
  }
  iVar2 = 2;
  pbVar4 = (byte *)param_1;
  pbVar5 = (byte *)0x2612a6;
  do {
    if (iVar2 == 0) break;
    iVar2 = iVar2 + -1;
    bVar6 = *pbVar4 < *pbVar5;
    bVar8 = *pbVar4 == *pbVar5;
    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (!bVar6) {
    iVar2 = 6;
    pbVar4 = (byte *)param_1;
    pbVar5 = (byte *)"POSIX";
    do {
      if (iVar2 == 0) break;
      iVar2 = iVar2 + -1;
      bVar7 = *pbVar4 < *pbVar5;
      bVar6 = *pbVar4 == *pbVar5;
      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    } while (bVar6);
    if ((!bVar7 && !bVar6) != bVar7) {
      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));
      locale::facet::_S_create_c_locale
                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);
      return;
    }
  }
  return;
}



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

void FUN_001c0e60(undefined4 *param_1,byte *param_2)

{
  char *pcVar1;
  char *__s2;
  int iVar2;
  size_t sVar3;
  void *__dest;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  FUN_001c0c60();
  pcVar1 = (char *)param_1[3];
  *param_1 = &PTR_FUN_0033c694;
  __s2 = (char *)FUN_001ae9b0();
  bVar6 = pcVar1 < __s2;
  bVar8 = pcVar1 == __s2;
  if (!bVar8) {
    if (pcVar1 != (char *)0x0) {
      FUN_001ac410();
    }
    iVar2 = strcmp((char *)param_2,__s2);
    bVar6 = false;
    bVar8 = iVar2 == 0;
    if (bVar8) {
      param_1[3] = __s2;
    }
    else {
      sVar3 = strlen((char *)param_2);
                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */
      __dest = (void *)FUN_001aa840();
      memcpy(__dest,param_2,sVar3 + 1);
      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;
      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;
      param_1[3] = __dest;
    }
  }
  iVar2 = 2;
  pbVar4 = param_2;
  pbVar5 = (byte *)0x2612a6;
  do {
    if (iVar2 == 0) break;
    iVar2 = iVar2 + -1;
    bVar6 = *pbVar4 < *pbVar5;
    bVar8 = *pbVar4 == *pbVar5;
    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (!bVar6) {
    iVar2 = 6;
    pbVar4 = (byte *)"POSIX";
    do {
      if (iVar2 == 0) break;
      iVar2 = iVar2 + -1;
      bVar7 = *param_2 < *pbVar4;
      bVar6 = *param_2 == *pbVar4;
      param_2 = param_2 + (uint)bVar9 * -2 + 1;
      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    } while (bVar6);
    if ((!bVar7 && !bVar6) != bVar7) {
      FUN_001f4930();
      FUN_001f48f0();
      return;
    }
  }
  return;
}


CALL 0x000357b5
ADD EDX,0x17e19b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,EDX
MOV EBX,EDX
SUB ESP,0x24
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],EDX
CALL 0x001c0c60
LEA EAX,[ESI + 0xffffd68c]
MOV ECX,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],ESI
ADD EAX,0x8
MOV EDI,dword ptr [ECX + 0xc]
MOV dword ptr [ECX],EAX
CALL 0x001ae9b0
ADD ESP,0x10
CMP EDI,EAX
JZ 0x001c0ed4
MOV ESI,EAX
TEST EDI,EDI
JZ 0x001c0eb8
SUB ESP,0xc
PUSH EDI
CALL 0x001ac410
ADD ESP,0x10
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x1c]
PUSH ESI
PUSH dword ptr [EBP + 0xc]
CALL 0x00028b10
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001c0f18
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EAX + 0xc],ESI
MOV EBX,dword ptr [EBP + -0x1c]
MOV ESI,dword ptr [EBP + 0xc]
MOV ECX,0x2
LEA EDI,[EBX + 0xfff222a6]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x001c0f09
MOV ESI,dword ptr [EBP + 0xc]
MOV ECX,0x6
LEA EDI,[EBX + 0xfff2d7e7]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x001c0f50
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [EBP + 0xc]
CALL 0x000285f0
LEA ESI,[EAX + 0x1]
MOV dword ptr [ESP],ESI
CALL 0x001aa840
ADD ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
MOV EDI,EAX
PUSH ESI
PUSH dword ptr [EBP + 0xc]
PUSH EAX
CALL 0x000285c0
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV dword ptr [EAX + 0xc],EDI
JMP 0x001c0ed4
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0xc
LEA ESI,[EAX + 0x8]
PUSH ESI
CALL 0x001f4930
ADD ESP,0xc
PUSH 0x0
PUSH dword ptr [EBP + 0xc]
PUSH ESI
CALL 0x001f48f0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_001c0e60(undefined4 *param_1,byte *param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001c0e60(undefined4 *param_1,byte *param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001c0e60(undefined4 *param_1,byte *param_2)" identifier (parameter_list "(undefined4 *param_1,byte *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "FUN_001c0c60();" (call_expression "FUN_001c0c60()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar1 = (char *)param_1[3];" (assignment_expression "pcVar1 = (char *)param_1[3]" identifier = (cast_expression "(char *)param_1[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = &PTR_FUN_0033c694;" (assignment_expression "*param_1 = &PTR_FUN_0033c694" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0033c694" & identifier)) ;) (expression_statement "__s2 = (char *)FUN_001ae9b0();" (assignment_expression "__s2 = (char *)FUN_001ae9b0()" identifier = (cast_expression "(char *)FUN_001ae9b0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ae9b0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar6 = pcVar1 < __s2;" (assignment_expression "bVar6 = pcVar1 < __s2" identifier = (binary_expression "pcVar1 < __s2" identifier < identifier)) ;) (expression_statement "bVar8 = pcVar1 == __s2;" (assignment_expression "bVar8 = pcVar1 == __s2" identifier = (binary_expression "pcVar1 == __s2" identifier == identifier)) ;) (if_statement "if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }" { (if_statement "if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_001ac410();\n    }" { (expression_statement "FUN_001ac410();" (call_expression "FUN_001ac410()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = strcmp((char *)param_2,__s2);" (assignment_expression "iVar2 = strcmp((char *)param_2,__s2)" identifier = (call_expression "strcmp((char *)param_2,__s2)" identifier (argument_list "((char *)param_2,__s2)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar8 = iVar2 == 0;" (assignment_expression "bVar8 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n      param_1[3] = __s2;\n    }" { (expression_statement "param_1[3] = __s2;" (assignment_expression "param_1[3] = __s2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" else (compound_statement "{\n      sVar3 = strlen((char *)param_2);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" { (expression_statement "sVar3 = strlen((char *)param_2);" (assignment_expression "sVar3 = strlen((char *)param_2)" identifier = (call_expression "strlen((char *)param_2)" identifier (argument_list "((char *)param_2)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) comment (expression_statement "__dest = (void *)FUN_001aa840();" (assignment_expression "__dest = (void *)FUN_001aa840()" identifier = (cast_expression "(void *)FUN_001aa840()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa840()" identifier (argument_list "()" ( ))))) ;) (expression_statement "memcpy(__dest,param_2,sVar3 + 1);" (call_expression "memcpy(__dest,param_2,sVar3 + 1)" identifier (argument_list "(__dest,param_2,sVar3 + 1)" ( identifier , identifier , (binary_expression "sVar3 + 1" identifier + number_literal) ))) ;) (expression_statement "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;" (assignment_expression "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4" identifier = (binary_expression "(undefined1 *)0xffffffef < &stack0xffffffc4" (cast_expression "(undefined1 *)0xffffffef" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < (pointer_expression "&stack0xffffffc4" & identifier))) ;) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x2c;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x2c" identifier = (binary_expression "&stack0x00000000 == (undefined1 *)0x2c" (pointer_expression "&stack0x00000000" & identifier) == (cast_expression "(undefined1 *)0x2c" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "param_1[3] = __dest;" (assignment_expression "param_1[3] = __dest" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }))) })) (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "pbVar4 = param_2;" (assignment_expression "pbVar4 = param_2" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)0x2612a6;" (assignment_expression "pbVar5 = (byte *)0x2612a6" identifier = (cast_expression "(byte *)0x2612a6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }" { (expression_statement "iVar2 = 6;" (assignment_expression "iVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)"POSIX";" (assignment_expression "pbVar4 = (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 (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *param_2 < *pbVar4;" (assignment_expression "bVar7 = *param_2 < *pbVar4" identifier = (binary_expression "*param_2 < *pbVar4" (pointer_expression "*param_2" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *param_2 == *pbVar4;" (assignment_expression "bVar6 = *param_2 == *pbVar4" identifier = (binary_expression "*param_2 == *pbVar4" (pointer_expression "*param_2" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "param_2 = param_2 + (uint)bVar9 * -2 + 1;" (assignment_expression "param_2 = param_2 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "param_2 + (uint)bVar9 * -2 + 1" (binary_expression "param_2 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" ( (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }" { (expression_statement "FUN_001f4930();" (call_expression "FUN_001f4930()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_001f48f0();" (call_expression "FUN_001f48f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* std::messages_byname<char>::messages_byname(char const*, unsigned int) */\n\nvoid __thiscall\nstd::messages_byname<char>::messages_byname(messages_byname<char> *this,char *param_1,uint param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  messages<char>::messages((messages<char> *)this,param_2);\n  pcVar1 = *(char **)(this + 0xc);\n  *(undefined ***)this = &PTR__messages_byname_0033c694;\n  __s2 = (char *)locale::facet::_S_get_c_name();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      operator_delete__(pcVar1);\n    }\n    iVar2 = strcmp(param_1,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      *(char **)(this + 0xc) = __s2;\n    }\n    else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = (byte *)param_1;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)param_1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\nstd::messages_byname<char>::messages_byname(messages_byname<char> *this,char *param_1,uint param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  messages<char>::messages((messages<char> *)this,param_2);\n  pcVar1 = *(char **)(this + 0xc);\n  *(undefined ***)this = &PTR__messages_byname_0033c694;\n  __s2 = (char *)locale::facet::_S_get_c_name();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      operator_delete__(pcVar1);\n    }\n    iVar2 = strcmp(param_1,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      *(char **)(this + 0xc) = __s2;\n    }\n    else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = (byte *)param_1;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)param_1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages_byname<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "messages_byname(messages_byname<char> *this,char *param_1,uint param_2)" identifier (parameter_list "(messages_byname<char> *this,char *param_1,uint param_2)" ( (parameter_declaration "messages_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 "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  messages<char>::messages((messages<char> *)this,param_2);\n  pcVar1 = *(char **)(this + 0xc);\n  *(undefined ***)this = &PTR__messages_byname_0033c694;\n  __s2 = (char *)locale::facet::_S_get_c_name();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      operator_delete__(pcVar1);\n    }\n    iVar2 = strcmp(param_1,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      *(char **)(this + 0xc) = __s2;\n    }\n    else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = (byte *)param_1;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)param_1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "messages<char>::messages((messages<char> *)this,param_2);" (binary_expression "messages<char>::messages((messages<char> *)this,param_2)" (binary_expression "messages<char" identifier < identifier) > (ERROR "::" : :) (call_expression "messages((messages<char> *)this,param_2)" identifier (argument_list "((messages<char> *)this,param_2)" ( (parenthesized_expression "(messages<char> *)this,param_2)" ( (comma_expression "messages<char> *)this,param_2" (binary_expression "messages<char> *)this" (binary_expression "messages<char" identifier < identifier) > (pointer_expression "*)this" * (ERROR ")" )) identifier)) , identifier) )) )))) ;) (expression_statement "pcVar1 = *(char **)(this + 0xc);" (assignment_expression "pcVar1 = *(char **)(this + 0xc)" identifier = (pointer_expression "*(char **)(this + 0xc)" * (cast_expression "(char **)(this + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined ***)this = &PTR__messages_byname_0033c694;" (assignment_expression "*(undefined ***)this = &PTR__messages_byname_0033c694" (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__messages_byname_0033c694" & identifier)) ;) (ERROR "__s2 = (char *)locale::" (assignment_expression "__s2 = (char *)locale" identifier = (cast_expression "(char *)locale" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "facet::_S_get_c_name();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_name();" (call_expression "_S_get_c_name()" identifier (argument_list "()" ( ))) ;)) (expression_statement "bVar6 = pcVar1 < __s2;" (assignment_expression "bVar6 = pcVar1 < __s2" identifier = (binary_expression "pcVar1 < __s2" identifier < identifier)) ;) (expression_statement "bVar8 = pcVar1 == __s2;" (assignment_expression "bVar8 = pcVar1 == __s2" identifier = (binary_expression "pcVar1 == __s2" identifier == identifier)) ;) (if_statement "if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      operator_delete__(pcVar1);\n    }\n    iVar2 = strcmp(param_1,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      *(char **)(this + 0xc) = __s2;\n    }\n    else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }\n  }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n    if (pcVar1 != (char *)0x0) {\n      operator_delete__(pcVar1);\n    }\n    iVar2 = strcmp(param_1,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      *(char **)(this + 0xc) = __s2;\n    }\n    else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }\n  }" { (if_statement "if (pcVar1 != (char *)0x0) {\n      operator_delete__(pcVar1);\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(pcVar1);\n    }" { (expression_statement "operator_delete__(pcVar1);" (call_expression "operator_delete__(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) })) (expression_statement "iVar2 = strcmp(param_1,__s2);" (assignment_expression "iVar2 = strcmp(param_1,__s2)" identifier = (call_expression "strcmp(param_1,__s2)" identifier (argument_list "(param_1,__s2)" ( identifier , identifier )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar8 = iVar2 == 0;" (assignment_expression "bVar8 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar8) {\n      *(char **)(this + 0xc) = __s2;\n    }\n    else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n      *(char **)(this + 0xc) = __s2;\n    }" { (expression_statement "*(char **)(this + 0xc) = __s2;" (assignment_expression "*(char **)(this + 0xc) = __s2" (pointer_expression "*(char **)(this + 0xc)" * (cast_expression "(char **)(this + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }" else (compound_statement "{\n      sVar3 = strlen(param_1);\n                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */\n      __dest = operator_new__(sVar3 + 1);\n      memcpy(__dest,param_1,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      *(void **)(this + 0xc) = __dest;\n    }" { (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) comment (expression_statement "__dest = operator_new__(sVar3 + 1);" (assignment_expression "__dest = operator_new__(sVar3 + 1)" identifier = (call_expression "operator_new__(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "memcpy(__dest,param_1,sVar3 + 1);" (call_expression "memcpy(__dest,param_1,sVar3 + 1)" identifier (argument_list "(__dest,param_1,sVar3 + 1)" ( identifier , identifier , (binary_expression "sVar3 + 1" identifier + number_literal) ))) ;) (expression_statement "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;" (assignment_expression "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4" identifier = (binary_expression "(undefined1 *)0xffffffef < &stack0xffffffc4" (cast_expression "(undefined1 *)0xffffffef" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < (pointer_expression "&stack0xffffffc4" & identifier))) ;) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x2c;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x2c" identifier = (binary_expression "&stack0x00000000 == (undefined1 *)0x2c" (pointer_expression "&stack0x00000000" & identifier) == (cast_expression "(undefined1 *)0x2c" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*(void **)(this + 0xc) = __dest;" (assignment_expression "*(void **)(this + 0xc) = __dest" (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) }))) })) (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)param_1;" (assignment_expression "pbVar4 = (byte *)param_1" identifier = (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar5 = (byte *)0x2612a6;" (assignment_expression "pbVar5 = (byte *)0x2612a6" identifier = (cast_expression "(byte *)0x2612a6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)param_1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n    iVar2 = 6;\n    pbVar4 = (byte *)param_1;\n    pbVar5 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }\n  }" { (expression_statement "iVar2 = 6;" (assignment_expression "iVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)param_1;" (assignment_expression "pbVar4 = (byte *)param_1" identifier = (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar5 = (byte *)"POSIX";" (assignment_expression "pbVar5 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *pbVar4 < *pbVar5;\n      bVar6 = *pbVar4 == *pbVar5;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar4 < *pbVar5;" (assignment_expression "bVar7 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar6 = *pbVar4 == *pbVar5;" (assignment_expression "bVar6 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" ( (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n      locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n      locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);\n      return;\n    }" { (labeled_statement "locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "_S_destroy_c_locale((__locale_struct **)(this + 8));" (call_expression "_S_destroy_c_locale((__locale_struct **)(this + 8))" identifier (argument_list "((__locale_struct **)(this + 8))" ( (cast_expression "(__locale_struct **)(this + 8)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;))) (labeled_statement "locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0);" (call_expression "_S_create_c_locale\n                ((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0)" identifier (argument_list "((__locale_struct **)(this + 8),param_1,(__locale_struct *)0x0)" ( (cast_expression "(__locale_struct **)(this + 8)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) , identifier , (cast_expression "(__locale_struct *)0x0" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001c0e60(undefined4 *param_1,byte *param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_001c0e60(undefined4 *param_1,byte *param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001c0e60(undefined4 *param_1,byte *param_2)" identifier (parameter_list "(undefined4 *param_1,byte *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "FUN_001c0c60();" (call_expression "FUN_001c0c60()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar1 = (char *)param_1[3];" (assignment_expression "pcVar1 = (char *)param_1[3]" identifier = (cast_expression "(char *)param_1[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = &PTR_FUN_0033c694;" (assignment_expression "*param_1 = &PTR_FUN_0033c694" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0033c694" & identifier)) ;) (expression_statement "__s2 = (char *)FUN_001ae9b0();" (assignment_expression "__s2 = (char *)FUN_001ae9b0()" identifier = (cast_expression "(char *)FUN_001ae9b0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ae9b0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar6 = pcVar1 < __s2;" (assignment_expression "bVar6 = pcVar1 < __s2" identifier = (binary_expression "pcVar1 < __s2" identifier < identifier)) ;) (expression_statement "bVar8 = pcVar1 == __s2;" (assignment_expression "bVar8 = pcVar1 == __s2" identifier = (binary_expression "pcVar1 == __s2" identifier == identifier)) ;) (if_statement "if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }" { (if_statement "if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_001ac410();\n    }" { (expression_statement "FUN_001ac410();" (call_expression "FUN_001ac410()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = strcmp((char *)param_2,__s2);" (assignment_expression "iVar2 = strcmp((char *)param_2,__s2)" identifier = (call_expression "strcmp((char *)param_2,__s2)" identifier (argument_list "((char *)param_2,__s2)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar8 = iVar2 == 0;" (assignment_expression "bVar8 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n      param_1[3] = __s2;\n    }" { (expression_statement "param_1[3] = __s2;" (assignment_expression "param_1[3] = __s2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" else (compound_statement "{\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" { (expression_statement "sVar3 = strlen((char *)param_2);" (assignment_expression "sVar3 = strlen((char *)param_2)" identifier = (call_expression "strlen((char *)param_2)" identifier (argument_list "((char *)param_2)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "__dest = (void *)FUN_001aa840();" (assignment_expression "__dest = (void *)FUN_001aa840()" identifier = (cast_expression "(void *)FUN_001aa840()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa840()" identifier (argument_list "()" ( ))))) ;) (expression_statement "memcpy(__dest,param_2,sVar3 + 1);" (call_expression "memcpy(__dest,param_2,sVar3 + 1)" identifier (argument_list "(__dest,param_2,sVar3 + 1)" ( identifier , identifier , (binary_expression "sVar3 + 1" identifier + number_literal) ))) ;) (expression_statement "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;" (assignment_expression "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4" identifier = (binary_expression "(undefined1 *)0xffffffef < &stack0xffffffc4" (cast_expression "(undefined1 *)0xffffffef" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < (pointer_expression "&stack0xffffffc4" & identifier))) ;) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x2c;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x2c" identifier = (binary_expression "&stack0x00000000 == (undefined1 *)0x2c" (pointer_expression "&stack0x00000000" & identifier) == (cast_expression "(undefined1 *)0x2c" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "param_1[3] = __dest;" (assignment_expression "param_1[3] = __dest" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }))) })) (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "pbVar4 = param_2;" (assignment_expression "pbVar4 = param_2" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)0x2612a6;" (assignment_expression "pbVar5 = (byte *)0x2612a6" identifier = (cast_expression "(byte *)0x2612a6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }" { (expression_statement "iVar2 = 6;" (assignment_expression "iVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)"POSIX";" (assignment_expression "pbVar4 = (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 (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *param_2 < *pbVar4;" (assignment_expression "bVar7 = *param_2 < *pbVar4" identifier = (binary_expression "*param_2 < *pbVar4" (pointer_expression "*param_2" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *param_2 == *pbVar4;" (assignment_expression "bVar6 = *param_2 == *pbVar4" identifier = (binary_expression "*param_2 == *pbVar4" (pointer_expression "*param_2" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "param_2 = param_2 + (uint)bVar9 * -2 + 1;" (assignment_expression "param_2 = param_2 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "param_2 + (uint)bVar9 * -2 + 1" (binary_expression "param_2 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" ( (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }" { (expression_statement "FUN_001f4930();" (call_expression "FUN_001f4930()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_001f48f0();" (call_expression "FUN_001f48f0()" identifier (argument_list "()" ( ))) ;) (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)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) < (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression & IDENT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) })) (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 *)) ) 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 = (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 ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_001c0e60(undefined4 *param_1,byte *param_2)\n\n{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001c0e60(undefined4 *param_1,byte *param_2)" (identifier "FUN_001c0e60") (parameter_list "(undefined4 *param_1,byte *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char *__s2;\n  int iVar2;\n  size_t sVar3;\n  void *__dest;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  FUN_001c0c60();\n  pcVar1 = (char *)param_1[3];\n  *param_1 = &PTR_FUN_0033c694;\n  __s2 = (char *)FUN_001ae9b0();\n  bVar6 = pcVar1 < __s2;\n  bVar8 = pcVar1 == __s2;\n  if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }\n  iVar2 = 2;\n  pbVar4 = param_2;\n  pbVar5 = (byte *)0x2612a6;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001c0c60();" (call_expression "FUN_001c0c60()" (identifier "FUN_001c0c60") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar1 = (char *)param_1[3];" (assignment_expression "pcVar1 = (char *)param_1[3]" (identifier "pcVar1") (= "=") (cast_expression "(char *)param_1[3]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_0033c694;" (assignment_expression "*param_1 = &PTR_FUN_0033c694" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_0033c694" (& "&") (identifier "PTR_FUN_0033c694"))) (; ";")) (expression_statement "__s2 = (char *)FUN_001ae9b0();" (assignment_expression "__s2 = (char *)FUN_001ae9b0()" (identifier "__s2") (= "=") (cast_expression "(char *)FUN_001ae9b0()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001ae9b0()" (identifier "FUN_001ae9b0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "bVar6 = pcVar1 < __s2;" (assignment_expression "bVar6 = pcVar1 < __s2" (identifier "bVar6") (= "=") (binary_expression "pcVar1 < __s2" (identifier "pcVar1") (< "<") (identifier "__s2"))) (; ";")) (expression_statement "bVar8 = pcVar1 == __s2;" (assignment_expression "bVar8 = pcVar1 == __s2" (identifier "bVar8") (= "=") (binary_expression "pcVar1 == __s2" (identifier "pcVar1") (== "==") (identifier "__s2"))) (; ";")) (if_statement "if (!bVar8) {\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar8)" (( "(") (unary_expression "!bVar8" (! "!") (identifier "bVar8")) () ")")) (compound_statement "{\n    if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }\n    iVar2 = strcmp((char *)param_2,__s2);\n    bVar6 = false;\n    bVar8 = iVar2 == 0;\n    if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }\n  }" ({ "{") (if_statement "if (pcVar1 != (char *)0x0) {\n      FUN_001ac410();\n    }" (if "if") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_001ac410();\n    }" ({ "{") (expression_statement "FUN_001ac410();" (call_expression "FUN_001ac410()" (identifier "FUN_001ac410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = strcmp((char *)param_2,__s2);" (assignment_expression "iVar2 = strcmp((char *)param_2,__s2)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)param_2,__s2)" (identifier "strcmp") (argument_list "((char *)param_2,__s2)" (( "(") (cast_expression "(char *)param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")) (, ",") (identifier "__s2") () ")")))) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "bVar8 = iVar2 == 0;" (assignment_expression "bVar8 = iVar2 == 0" (identifier "bVar8") (= "=") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar8) {\n      param_1[3] = __s2;\n    }\n    else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n      param_1[3] = __s2;\n    }" ({ "{") (expression_statement "param_1[3] = __s2;" (assignment_expression "param_1[3] = __s2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "__s2")) (; ";")) (} "}")) (else_clause "else {\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" (else "else") (compound_statement "{\n      sVar3 = strlen((char *)param_2);\n                    \n      __dest = (void *)FUN_001aa840();\n      memcpy(__dest,param_2,sVar3 + 1);\n      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;\n      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;\n      param_1[3] = __dest;\n    }" ({ "{") (expression_statement "sVar3 = strlen((char *)param_2);" (assignment_expression "sVar3 = strlen((char *)param_2)" (identifier "sVar3") (= "=") (call_expression "strlen((char *)param_2)" (identifier "strlen") (argument_list "((char *)param_2)" (( "(") (cast_expression "(char *)param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "__dest = (void *)FUN_001aa840();" (assignment_expression "__dest = (void *)FUN_001aa840()" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_001aa840()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001aa840()" (identifier "FUN_001aa840") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "memcpy(__dest,param_2,sVar3 + 1);" (call_expression "memcpy(__dest,param_2,sVar3 + 1)" (identifier "memcpy") (argument_list "(__dest,param_2,sVar3 + 1)" (( "(") (identifier "__dest") (, ",") (identifier "param_2") (, ",") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;" (assignment_expression "bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4" (identifier "bVar6") (= "=") (binary_expression "(undefined1 *)0xffffffef < &stack0xffffffc4" (cast_expression "(undefined1 *)0xffffffef" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffef")) (< "<") (pointer_expression "&stack0xffffffc4" (& "&") (identifier "stack0xffffffc4")))) (; ";")) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x2c;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x2c" (identifier "bVar8") (= "=") (binary_expression "&stack0x00000000 == (undefined1 *)0x2c" (pointer_expression "&stack0x00000000" (& "&") (identifier "stack0x00000000")) (== "==") (cast_expression "(undefined1 *)0x2c" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2c")))) (; ";")) (expression_statement "param_1[3] = __dest;" (assignment_expression "param_1[3] = __dest" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "__dest")) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" (identifier "iVar2") (= "=") (number_literal "2")) (; ";")) (expression_statement "pbVar4 = param_2;" (assignment_expression "pbVar4 = param_2" (identifier "pbVar4") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pbVar5 = (byte *)0x2612a6;" (assignment_expression "pbVar5 = (byte *)0x2612a6" (identifier "pbVar5") (= "=") (cast_expression "(byte *)0x2612a6" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2612a6"))) (; ";")) (do_statement "do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" (do "do") (compound_statement "{\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar6 = *pbVar4 < *pbVar5;\n    bVar8 = *pbVar4 == *pbVar5;\n    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n  }" ({ "{") (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" (identifier "bVar6") (= "=") (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (< "<") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "bVar8 = *pbVar4 == *pbVar5;" (assignment_expression "bVar8 = *pbVar4 == *pbVar5" (identifier "bVar8") (= "=") (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" (identifier "bVar6") (= "=") (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" (( "(") (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar8" (! "!") (identifier "bVar8"))) () ")")) (== "==") (identifier "bVar6"))) (; ";")) (if_statement "if (!bVar6) {\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar6)" (( "(") (unary_expression "!bVar6" (! "!") (identifier "bVar6")) () ")")) (compound_statement "{\n    iVar2 = 6;\n    pbVar4 = (byte *)"POSIX";\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);\n    if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = 6;" (assignment_expression "iVar2 = 6" (identifier "iVar2") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar4 = (byte *)"POSIX";" (assignment_expression "pbVar4 = (byte *)"POSIX"" (identifier "pbVar4") (= "=") (cast_expression "(byte *)"POSIX"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""POSIX"" (" """) (string_content "POSIX") (" """)))) (; ";")) (do_statement "do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    } while (bVar6);" (do "do") (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar7 = *param_2 < *pbVar4;\n      bVar6 = *param_2 == *pbVar4;\n      param_2 = param_2 + (uint)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar7 = *param_2 < *pbVar4;" (assignment_expression "bVar7 = *param_2 < *pbVar4" (identifier "bVar7") (= "=") (binary_expression "*param_2 < *pbVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (< "<") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "bVar6 = *param_2 == *pbVar4;" (assignment_expression "bVar6 = *param_2 == *pbVar4" (identifier "bVar6") (= "=") (binary_expression "*param_2 == *pbVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "param_2 = param_2 + (uint)bVar9 * -2 + 1;" (assignment_expression "param_2 = param_2 + (uint)bVar9 * -2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + (uint)bVar9 * -2 + 1" (binary_expression "param_2 + (uint)bVar9 * -2" (identifier "param_2") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar9 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (if_statement "if ((!bVar7 && !bVar6) != bVar7) {\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar7 && !bVar6) != bVar7)" (( "(") (binary_expression "(!bVar7 && !bVar6) != bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" (( "(") (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" (! "!") (identifier "bVar7")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (!= "!=") (identifier "bVar7")) () ")")) (compound_statement "{\n      FUN_001f4930();\n      FUN_001f48f0();\n      return;\n    }" ({ "{") (expression_statement "FUN_001f4930();" (call_expression "FUN_001f4930()" (identifier "FUN_001f4930") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_001f48f0();" (call_expression "FUN_001f48f0()" (identifier "FUN_001f48f0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  char *var_5;
  char *var_6;
  int var_9;
  size_t var_12;
  void *__dest;
  type_2 *var_14;
  type_2 *var_15;
  bool var_16;
  bool var_17;
  bool bVar8;
  type_2 bVar9;
  
  bVar9 = 0;
  var_1<var_2>::var_1((var_1<var_2> *)var_3,param_2);
  var_5 = *(char **)(var_3 + 0xc);
  *(type_3 ***)var_3 = &PTR__messages_byname_0033c694;
  var_6 = (char *)locale::facet::var_4();
  var_16 = var_5 < var_6;
  bVar8 = var_5 == var_6;
  if (!bVar8) {
    if (var_5 != (char *)0x0) {
      var_7(var_5);
    }
    var_9 = var_8(param_1,var_6);
    var_16 = false;
    bVar8 = var_9 == 0;
    if (bVar8) {
      *(char **)(var_3 + 0xc) = var_6;
    }
    else {
      var_12 = var_10(param_1);
                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */
      __dest = var_11(var_12 + 1);
      var_13(__dest,param_1,var_12 + 1);
      var_16 = (type_4 *)0xffffffef < &stack0xffffffc4;
      bVar8 = &stack0x00000000 == (type_4 *)0x2c;
      *(void **)(var_3 + 0xc) = __dest;
    }
  }
  var_9 = 2;
  var_14 = (type_2 *)param_1;
  var_15 = (type_2 *)0x2612a6;
  do {
    if (var_9 == 0) break;
    var_9 = var_9 + -1;
    var_16 = *var_14 < *var_15;
    bVar8 = *var_14 == *var_15;
    var_14 = var_14 + (type_1)bVar9 * -2 + 1;
    var_15 = var_15 + (type_1)bVar9 * -2 + 1;
  } while (bVar8);
  var_17 = false;
  var_16 = (!var_16 && !bVar8) == var_16;
  if (!var_16) {
    var_9 = 6;
    var_14 = (type_2 *)param_1;
    var_15 = (type_2 *)"POSIX";
    do {
      if (var_9 == 0) break;
      var_9 = var_9 + -1;
      var_17 = *var_14 < *var_15;
      var_16 = *var_14 == *var_15;
      var_14 = var_14 + (type_1)bVar9 * -2 + 1;
      var_15 = var_15 + (type_1)bVar9 * -2 + 1;
    } while (var_16);
    if ((!var_17 && !var_16) != var_17) {
      locale::facet::var_18((type_5 **)(var_3 + 8));
      locale::facet::var_19
                ((type_5 **)(var_3 + 8),param_1,(type_5 *)0x0);
      return;
    }
  }
  return;
}


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

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

void MASKED(undefined4 *param_1,byte *param_2)

{
  char *pcVar1;
  char *__s2;
  int iVar2;
  size_t sVar3;
  void *__dest;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  FUN_001c0c60();
  pcVar1 = (char *)param_1[3];
  *param_1 = &PTR_FUN_0033c694;
  __s2 = (char *)FUN_001ae9b0();
  bVar6 = pcVar1 < __s2;
  bVar8 = pcVar1 == __s2;
  if (!bVar8) {
    if (pcVar1 != (char *)0x0) {
      FUN_001ac410();
    }
    iVar2 = strcmp((char *)param_2,__s2);
    bVar6 = false;
    bVar8 = iVar2 == 0;
    if (bVar8) {
      param_1[3] = __s2;
    }
    else {
      sVar3 = strlen((char *)param_2);
                    /* try { // try from 001c0f29 to 001c0f6c has its CatchHandler @ 001c0f78 */
      __dest = (void *)FUN_001aa840();
      memcpy(__dest,param_2,sVar3 + 1);
      bVar6 = (undefined1 *)0xffffffef < &stack0xffffffc4;
      bVar8 = &stack0x00000000 == (undefined1 *)0x2c;
      param_1[3] = __dest;
    }
  }
  iVar2 = 2;
  pbVar4 = param_2;
  pbVar5 = (byte *)0x2612a6;
  do {
    if (iVar2 == 0) break;
    iVar2 = iVar2 + -1;
    bVar6 = *pbVar4 < *pbVar5;
    bVar8 = *pbVar4 == *pbVar5;
    pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (!bVar6) {
    iVar2 = 6;
    pbVar4 = (byte *)"POSIX";
    do {
      if (iVar2 == 0) break;
      iVar2 = iVar2 + -1;
      bVar7 = *param_2 < *pbVar4;
      bVar6 = *param_2 == *pbVar4;
      param_2 = param_2 + (uint)bVar9 * -2 + 1;
      pbVar4 = pbVar4 + (uint)bVar9 * -2 + 1;
    } while (bVar6);
    if ((!bVar7 && !bVar6) != bVar7) {
      FUN_001f4930();
      FUN_001f48f0();
      return;
    }
  }
  return;
}

