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

void __thiscall
std::codecvt_byname<wchar_t,char,__mbstate_t>::codecvt_byname
          (codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  codecvt<wchar_t,char,__mbstate_t>::codecvt((codecvt<wchar_t,char,__mbstate_t> *)this,param_2);
  iVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *(undefined ***)this = &PTR__codecvt_byname_0033de64;
  pbVar2 = (byte *)param_1;
  pbVar3 = (byte *)0x2612a6;
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    iVar1 = 6;
    pbVar2 = (byte *)param_1;
    pbVar3 = (byte *)"POSIX";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */
      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_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  FUN_001fdef0(param_1,param_3);
  iVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *param_1 = &PTR_FUN_0033de64;
  pbVar2 = param_2;
  pbVar3 = (byte *)0x2612a6;
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    iVar1 = 6;
    pbVar2 = param_2;
    pbVar3 = (byte *)"POSIX";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */
      FUN_001f4930(param_1 + 2);
      FUN_001f48f0(param_1 + 2,param_2,0);
      return;
    }
  }
  return;
}


CALL 0x000357b5
ADD EDX,0x13dc0b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,EDX
MOV EBX,EDX
LEA EDI,[ESI + 0xfff222a6]
SUB ESP,0x24
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],EDX
CALL 0x001fdef0
LEA EAX,[ESI + 0xffffee5c]
MOV EBX,dword ptr [EBP + 0x8]
MOV EDX,ESI
MOV ESI,dword ptr [EBP + 0xc]
MOV ECX,0x2
ADD EAX,0x8
MOV dword ptr [EBX],EAX
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
ADD ESP,0x10
TEST AL,AL
JZ 0x0020145b
MOV ESI,dword ptr [EBP + 0xc]
MOV ECX,0x6
LEA EDI,[EDX + 0xfff2d7e7]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00201468
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ESI,[EBX + 0x8]
SUB ESP,0xc
MOV EDI,dword ptr [EBP + -0x1c]
PUSH ESI
MOV EBX,EDI
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_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,byte *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_001fdef0(param_1,param_3);" (call_expression "FUN_001fdef0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "*param_1 = &PTR_FUN_0033de64;" (assignment_expression "*param_1 = &PTR_FUN_0033de64" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0033de64" & identifier)) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)0x2612a6;" (assignment_expression "pbVar3 = (byte *)0x2612a6" identifier = (cast_expression "(byte *)0x2612a6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }" { (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" identifier = number_literal) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }" { comment (expression_statement "FUN_001f4930(param_1 + 2);" (call_expression "FUN_001f4930(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001f48f0(param_1 + 2,param_2,0);" (call_expression "FUN_001f48f0(param_1 + 2,param_2,0)" identifier (argument_list "(param_1 + 2,param_2,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (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::codecvt_byname<wchar_t, char, __mbstate_t>::codecvt_byname(char const*, unsigned int) */\n\nvoid __thiscall\nstd::codecvt_byname<wchar_t,char,__mbstate_t>::codecvt_byname\n          (codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  codecvt<wchar_t,char,__mbstate_t>::codecvt((codecvt<wchar_t,char,__mbstate_t> *)this,param_2);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *(undefined ***)this = &PTR__codecvt_byname_0033de64;\n  pbVar2 = (byte *)param_1;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\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 (declaration "void __thiscall\nstd::codecvt_byname<wchar_t,char,__mbstate_t>::codecvt_byname\n          (codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)\n\n{\n  int iVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::codecvt_byname<" identifier : : identifier <) identifier , identifier , (ERROR "__mbstate_t>::codecvt_byname\n          (codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)\n\n{\n  int" identifier > : : (function_declarator "codecvt_byname\n          (codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)" identifier (parameter_list "(codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)" ( (parameter_declaration "codecvt_byname<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "char" primitive_type) , (parameter_declaration "__mbstate_t> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) { primitive_type) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (ERROR "codecvt<wchar_t,char,__mbstate_t>::codecvt((codecvt<wchar_t,char,__mbstate_t> *)this,param_2);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *(undefined ***)this = &PTR__codecvt_byname_0033de64;\n  pbVar2 = (byte *)param_1;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\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}" (binary_expression "codecvt<wchar_t" identifier < identifier) (ERROR ",char,__mbstate_t" , primitive_type , identifier) > (ERROR "::" : :) identifier ( (ERROR "(codecvt<wchar_t,char,__mbstate_t> *)this,param_2);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *(undefined ***)this = &PTR__codecvt_byname_0033de64;\n  pbVar2 = (byte *)param_1;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4)" (parenthesized_expression "(codecvt<wchar_t,char,__mbstate_t> *)this,param_2)" ( (comma_expression "codecvt<wchar_t,char,__mbstate_t> *)this,param_2" (binary_expression "codecvt<wchar_t" identifier < identifier) , (comma_expression "char,__mbstate_t> *)this,param_2" identifier , (comma_expression "__mbstate_t> *)this,param_2" (binary_expression "__mbstate_t> *)this" identifier > (pointer_expression "*)this" * (ERROR ")" )) identifier)) , identifier))) )) ; (assignment_expression "iVar1 = 2" identifier = number_literal) ; (assignment_expression "bVar4 = false" identifier = false) ; (binary_expression "bVar6 = false;\n  *(undefined ***)this = &PTR__codecvt_byname_0033de64" (assignment_expression "bVar6 = false" identifier = false) (ERROR ";" ;) * (cast_expression "(undefined ***)this = &PTR__codecvt_byname_0033de64" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (assignment_expression "this = &PTR__codecvt_byname_0033de64" identifier = (pointer_expression "&PTR__codecvt_byname_0033de64" & identifier)))) ; (assignment_expression "pbVar2 = (byte *)param_1" identifier = (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ; (assignment_expression "pbVar3 = (byte *)0x2612a6" identifier = (cast_expression "(byte *)0x2612a6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; do (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ; (assignment_expression "bVar5 = false" identifier = false) ; (call_expression "bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4)" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) (ERROR ";\n  if" ; if) (argument_list "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )))) (compound_statement "{\n    iVar1 = 6;\n    pbVar2 = (byte *)param_1;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\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 "iVar1 = 6;" (assignment_expression "iVar1 = 6" identifier = number_literal) ;) (expression_statement "pbVar2 = (byte *)param_1;" (assignment_expression "pbVar2 = (byte *)param_1" identifier = (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\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 "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */\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    }" { comment (labeled_statement "locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "_S_destroy_c_locale((__locale_struct **)(this + 8));" (call_expression "_S_destroy_c_locale((__locale_struct **)(this + 8))" identifier (argument_list "((__locale_struct **)(this + 8))" ( (cast_expression "(__locale_struct **)(this + 8)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;))) (labeled_statement "locale::facet::_S_create_c_locale\n                ((__locale_struct **)(this + 8),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 ; }))
(translation_unit "void FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,byte *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_001fdef0(param_1,param_3);" (call_expression "FUN_001fdef0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "*param_1 = &PTR_FUN_0033de64;" (assignment_expression "*param_1 = &PTR_FUN_0033de64" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0033de64" & identifier)) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)0x2612a6;" (assignment_expression "pbVar3 = (byte *)0x2612a6" identifier = (cast_expression "(byte *)0x2612a6" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }" { (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" identifier = number_literal) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }" { (expression_statement "FUN_001f4930(param_1 + 2);" (call_expression "FUN_001f4930(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001f48f0(param_1 + 2,param_2,0);" (call_expression "FUN_001f48f0(param_1 + 2,param_2,0)" identifier (argument_list "(param_1 + 2,param_2,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002013f0(undefined4 *param_1,byte *param_2,undefined4 param_3)" (identifier "FUN_002013f0") (parameter_list "(undefined4 *param_1,byte *param_2,undefined4 param_3)" (( "(") (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"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  FUN_001fdef0(param_1,param_3);\n  iVar1 = 2;\n  bVar4 = false;\n  bVar6 = false;\n  *param_1 = &PTR_FUN_0033de64;\n  pbVar2 = param_2;\n  pbVar3 = (byte *)0x2612a6;\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001fdef0(param_1,param_3);" (call_expression "FUN_001fdef0(param_1,param_3)" (identifier "FUN_001fdef0") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" (identifier "iVar1") (= "=") (number_literal "2")) (; ";")) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_0033de64;" (assignment_expression "*param_1 = &PTR_FUN_0033de64" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_0033de64" (& "&") (identifier "PTR_FUN_0033de64"))) (; ";")) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pbVar3 = (byte *)0x2612a6;" (assignment_expression "pbVar3 = (byte *)0x2612a6" (identifier "pbVar3") (= "=") (cast_expression "(byte *)0x2612a6" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2612a6"))) (; ";")) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);" (do "do") (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n  }" ({ "{") (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" (identifier "bVar4") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" (identifier "bVar6") (= "=") (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" (identifier "pbVar2") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" (identifier "bVar4") (= "=") (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" (( "(") (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" (! "!") (identifier "bVar4")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (== "==") (identifier "bVar4"))) (; ";")) (if_statement "if (!bVar4) {\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar4)" (( "(") (unary_expression "!bVar4" (! "!") (identifier "bVar4")) () ")")) (compound_statement "{\n    iVar1 = 6;\n    pbVar2 = param_2;\n    pbVar3 = (byte *)"POSIX";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" (identifier "iVar1") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" (identifier "pbVar3") (= "=") (cast_expression "(byte *)"POSIX"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""POSIX"" (" """) (string_content "POSIX") (" """)))) (; ";")) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    } while (bVar4);" (do "do") (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" (identifier "bVar5") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" (identifier "bVar4") (= "=") (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" (identifier "pbVar2") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (; ";")) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" (( "(") (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" (( "(") (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar4" (! "!") (identifier "bVar4"))) () ")")) (!= "!=") (identifier "bVar5")) () ")")) (compound_statement "{\n                    \n      FUN_001f4930(param_1 + 2);\n      FUN_001f48f0(param_1 + 2,param_2,0);\n      return;\n    }" ({ "{") (expression_statement "FUN_001f4930(param_1 + 2);" (call_expression "FUN_001f4930(param_1 + 2)" (identifier "FUN_001f4930") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001f48f0(param_1 + 2,param_2,0);" (call_expression "FUN_001f48f0(param_1 + 2,param_2,0)" (identifier "FUN_001f48f0") (argument_list "(param_1 + 2,param_2,0)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (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::codecvt_byname<wchar_t, char, __mbstate_t>::codecvt_byname(char const*, unsigned int) */

void __thiscall
std::codecvt_byname<wchar_t,char,__mbstate_t>::codecvt_byname
          (codecvt_byname<wchar_t,char,__mbstate_t> *this,char *param_1,uint param_2)

{
  int iVar1;
  type_1 *pbVar2;
  type_1 *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  type_1 bVar7;
  
  bVar7 = 0;
  codecvt<wchar_t,char,__mbstate_t>::codecvt((codecvt<wchar_t,char,__mbstate_t> *)this,param_2);
  iVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *(undefined ***)this = &PTR__codecvt_byname_0033de64;
  pbVar2 = (type_1 *)param_1;
  pbVar3 = (type_1 *)0x2612a6;
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    iVar1 = 6;
    pbVar2 = (type_1 *)param_1;
    pbVar3 = (type_1 *)"POSIX";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */
      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;
}


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

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  FUN_001fdef0(param_1,param_3);
  iVar1 = 2;
  bVar4 = false;
  bVar6 = false;
  *param_1 = &PTR_FUN_0033de64;
  pbVar2 = param_2;
  pbVar3 = (byte *)0x2612a6;
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    iVar1 = 6;
    pbVar2 = param_2;
    pbVar3 = (byte *)"POSIX";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
                    /* try { // try from 00201474 to 00201486 has its CatchHandler @ 00201492 */
      FUN_001f4930(param_1 + 2);
      FUN_001f48f0(param_1 + 2,param_2,0);
      return;
    }
  }
  return;
}

