
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

int charset_from_localenc(char *name)

{
  byte bVar1;
  __int32_t **pp_Var2;
  byte *pbVar3;
  byte *pbVar4;
  int local_28;
  anon_struct_12_3_6242d03b *local_24;
  int local_20;
  
  local_20 = charset_from_mimeenc(name);
  if (local_20 == 0) {
    local_20 = charset_from_xenc(name);
    if (local_20 == 0) {
      local_24 = localencs;
      local_28 = 0;
      while( true ) {
        pbVar4 = (byte *)local_24->name;
        pbVar3 = (byte *)name;
        while( true ) {
          bVar1 = *pbVar3;
          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;
          pp_Var2 = __ctype_tolower_loc();
          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;
          pbVar3 = pbVar3 + 1;
          pbVar4 = pbVar4 + 1;
        }
        if (bVar1 == 0 && *pbVar4 == 0) break;
        local_28 = local_28 + 1;
        local_24 = local_24 + 1;
        if (local_28 == 0x38) {
          return 0;
        }
      }
LAB_0001ce50:
      return localencs[local_28].charset;
    }
  }
  return local_20;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int FUN_0001cd80(byte *param_1)

{
  byte bVar1;
  __int32_t **pp_Var2;
  byte *pbVar3;
  byte *pbVar4;
  int local_28;
  undefined **local_24;
  int local_20;
  
  local_20 = FUN_0001d000(param_1);
  if (local_20 == 0) {
    local_20 = FUN_0001d7d0(param_1);
    if (local_20 == 0) {
      local_24 = &PTR_s_<UNKNOWN>_00137c60;
      local_28 = 0;
      while( true ) {
        pbVar4 = *local_24;
        pbVar3 = param_1;
        while( true ) {
          bVar1 = *pbVar3;
          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;
          pp_Var2 = __ctype_tolower_loc();
          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;
          pbVar3 = pbVar3 + 1;
          pbVar4 = pbVar4 + 1;
        }
        if (bVar1 == 0 && *pbVar4 == 0) break;
        local_28 = local_28 + 1;
        local_24 = local_24 + 3;
        if (local_28 == 0x38) {
          return 0;
        }
      }
LAB_0001ce50:
      return (&DAT_00137c64)[local_28 * 3];
    }
  }
  return local_20;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x0001ced5
ADD ESI,0x11d9c8
PUSH EBX
SUB ESP,0x28
MOV dword ptr [ESP + 0xc],ESI
MOV EBX,ESI
PUSH dword ptr [ESP + 0x3c]
CALL 0x0001d000
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001cdb8
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x3c]
CALL 0x0001d7d0
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001cdac
LEA EAX,[ESI + 0xffffd510]
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0x8],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [EAX]
JMP 0x0001cdfe
ADD EBP,0x1
ADD ESI,0x1
MOVZX EDI,byte ptr [EBP]
MOV EAX,EDI
TEST AL,AL
JNZ 0x0001ce0d
CMP byte ptr [ESI],0x0
JZ 0x0001ce50
MOV EBX,dword ptr [ESP]
CALL 0x0001a1e0
MOVZX EBX,byte ptr [ESI]
MOV EDX,dword ptr [EAX]
MOV EAX,EDI
MOVZX EAX,AL
MOV ECX,EBX
MOV EBX,dword ptr [EDX + EBX*0x4]
CMP dword ptr [EDX + EAX*0x4],EBX
JZ 0x0001cdf8
MOV EAX,EDI
OR AL,CL
JZ 0x0001ce50
ADD dword ptr [ESP + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x4]
ADD dword ptr [ESP + 0x8],0xc
CMP EAX,0x38
JNZ 0x0001cde8
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP]
LEA EAX,[EAX + EAX*0x2]
MOV EAX,dword ptr [ECX + EAX*0x4 + 0xffffd514]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint FUN_0001cd80(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}\n\n" comment (function_definition "int FUN_0001cd80(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}" primitive_type (function_declarator "FUN_0001cd80(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "__int32_t **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined **local_24;" type_identifier (pointer_declarator "**local_24" * (pointer_declarator "*local_24" * identifier)) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = FUN_0001d000(param_1);" (assignment_expression "local_20 = FUN_0001d000(param_1)" identifier = (call_expression "FUN_0001d000(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }" { (expression_statement "local_20 = FUN_0001d7d0(param_1);" (assignment_expression "local_20 = FUN_0001d7d0(param_1)" identifier = (call_expression "FUN_0001d7d0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }" { (expression_statement "local_24 = &PTR_s_<UNKNOWN>_00137c60;" (assignment_expression "local_24 = &PTR_s_<UNKNOWN>_00137c60" identifier = (binary_expression "&PTR_s_<UNKNOWN>_00137c60" (binary_expression "&PTR_s_<UNKNOWN" (pointer_expression "&PTR_s_" & identifier) < identifier) > identifier)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" { (expression_statement "pbVar4 = *local_24;" (assignment_expression "pbVar4 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" { (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) (if_statement "if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;" if (parenthesized_expression "((bVar1 == 0) && (*pbVar4 == 0))" ( (binary_expression "(bVar1 == 0) && (*pbVar4 == 0)" (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*pbVar4 == 0)" ( (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal) ))) )) (goto_statement "goto LAB_0001ce50;" goto statement_identifier ;)) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" identifier = (call_expression "__ctype_tolower_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;" if (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4])" ( (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ identifier ]) != (subscript_expression "(*pp_Var2)[*pbVar4]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ (pointer_expression "*pbVar4" * identifier) ])) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) })) (if_statement "if (bVar1 == 0 && *pbVar4 == 0) break;" if (parenthesized_expression "(bVar1 == 0 && *pbVar4 == 0)" ( (binary_expression "bVar1 == 0 && *pbVar4 == 0" (binary_expression "bVar1 == 0" identifier == number_literal) && (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal)) )) (break_statement "break;" break ;)) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "local_24 = local_24 + 3;" (assignment_expression "local_24 = local_24 + 3" identifier = (binary_expression "local_24 + 3" identifier + number_literal)) ;) (if_statement "if (local_28 == 0x38) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 == 0x38)" ( (binary_expression "local_28 == 0x38" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (labeled_statement "LAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];" statement_identifier : (return_statement "return (&DAT_00137c64)[local_28 * 3];" return (subscript_expression "(&DAT_00137c64)[local_28 * 3]" (parenthesized_expression "(&DAT_00137c64)" ( (pointer_expression "&DAT_00137c64" & identifier) )) [ (binary_expression "local_28 * 3" identifier * number_literal) ]) ;)) })) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention */\n\nint charset_from_localenc(char *name)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  anon_struct_12_3_6242d03b *local_24;\n  int local_20;\n  \n  local_20 = charset_from_mimeenc(name);\n  if (local_20 == 0) {\n    local_20 = charset_from_xenc(name);\n    if (local_20 == 0) {\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }\n  }\n  return local_20;\n}\n\n" comment comment (function_definition "int charset_from_localenc(char *name)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  anon_struct_12_3_6242d03b *local_24;\n  int local_20;\n  \n  local_20 = charset_from_mimeenc(name);\n  if (local_20 == 0) {\n    local_20 = charset_from_xenc(name);\n    if (local_20 == 0) {\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }\n  }\n  return local_20;\n}" primitive_type (function_declarator "charset_from_localenc(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  anon_struct_12_3_6242d03b *local_24;\n  int local_20;\n  \n  local_20 = charset_from_mimeenc(name);\n  if (local_20 == 0) {\n    local_20 = charset_from_xenc(name);\n    if (local_20 == 0) {\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }\n  }\n  return local_20;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "__int32_t **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "anon_struct_12_3_6242d03b *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = charset_from_mimeenc(name);" (assignment_expression "local_20 = charset_from_mimeenc(name)" identifier = (call_expression "charset_from_mimeenc(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if (local_20 == 0) {\n    local_20 = charset_from_xenc(name);\n    if (local_20 == 0) {\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = charset_from_xenc(name);\n    if (local_20 == 0) {\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }\n  }" { (expression_statement "local_20 = charset_from_xenc(name);" (assignment_expression "local_20 = charset_from_xenc(name)" identifier = (call_expression "charset_from_xenc(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if (local_20 == 0) {\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n      local_24 = localencs;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return localencs[local_28].charset;\n    }" { (expression_statement "local_24 = localencs;" (assignment_expression "local_24 = localencs" identifier = identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pbVar4 = (byte *)local_24->name;\n        pbVar3 = (byte *)name;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 1;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" { (expression_statement "pbVar4 = (byte *)local_24->name;" (assignment_expression "pbVar4 = (byte *)local_24->name" identifier = (cast_expression "(byte *)local_24->name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_24->name" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)name;" (assignment_expression "pbVar3 = (byte *)name" identifier = (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" { (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) (if_statement "if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;" if (parenthesized_expression "((bVar1 == 0) && (*pbVar4 == 0))" ( (binary_expression "(bVar1 == 0) && (*pbVar4 == 0)" (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*pbVar4 == 0)" ( (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal) ))) )) (goto_statement "goto LAB_0001ce50;" goto statement_identifier ;)) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" identifier = (call_expression "__ctype_tolower_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;" if (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4])" ( (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ identifier ]) != (subscript_expression "(*pp_Var2)[*pbVar4]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ (pointer_expression "*pbVar4" * identifier) ])) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) })) (if_statement "if (bVar1 == 0 && *pbVar4 == 0) break;" if (parenthesized_expression "(bVar1 == 0 && *pbVar4 == 0)" ( (binary_expression "bVar1 == 0 && *pbVar4 == 0" (binary_expression "bVar1 == 0" identifier == number_literal) && (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal)) )) (break_statement "break;" break ;)) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "local_24 = local_24 + 1;" (assignment_expression "local_24 = local_24 + 1" identifier = (binary_expression "local_24 + 1" identifier + number_literal)) ;) (if_statement "if (local_28 == 0x38) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 == 0x38)" ( (binary_expression "local_28 == 0x38" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (labeled_statement "LAB_0001ce50:\n      return localencs[local_28].charset;" statement_identifier : (return_statement "return localencs[local_28].charset;" return (field_expression "localencs[local_28].charset" (subscript_expression "localencs[local_28]" identifier [ identifier ]) . field_identifier) ;)) })) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "int FUN_0001cd80(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}\n\n" (function_definition "int FUN_0001cd80(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}" primitive_type (function_declarator "FUN_0001cd80(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "__int32_t **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined **local_24;" type_identifier (pointer_declarator "**local_24" * (pointer_declarator "*local_24" * identifier)) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = FUN_0001d000(param_1);" (assignment_expression "local_20 = FUN_0001d000(param_1)" identifier = (call_expression "FUN_0001d000(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }" { (expression_statement "local_20 = FUN_0001d7d0(param_1);" (assignment_expression "local_20 = FUN_0001d7d0(param_1)" identifier = (call_expression "FUN_0001d7d0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }" { (expression_statement "local_24 = &PTR_s_<UNKNOWN>_00137c60;" (assignment_expression "local_24 = &PTR_s_<UNKNOWN>_00137c60" identifier = (binary_expression "&PTR_s_<UNKNOWN>_00137c60" (binary_expression "&PTR_s_<UNKNOWN" (pointer_expression "&PTR_s_" & identifier) < identifier) > identifier)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" { (expression_statement "pbVar4 = *local_24;" (assignment_expression "pbVar4 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" { (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) (if_statement "if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;" if (parenthesized_expression "((bVar1 == 0) && (*pbVar4 == 0))" ( (binary_expression "(bVar1 == 0) && (*pbVar4 == 0)" (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*pbVar4 == 0)" ( (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal) ))) )) (goto_statement "goto LAB_0001ce50;" goto statement_identifier ;)) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" identifier = (call_expression "__ctype_tolower_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;" if (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4])" ( (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ identifier ]) != (subscript_expression "(*pp_Var2)[*pbVar4]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ (pointer_expression "*pbVar4" * identifier) ])) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) })) (if_statement "if (bVar1 == 0 && *pbVar4 == 0) break;" if (parenthesized_expression "(bVar1 == 0 && *pbVar4 == 0)" ( (binary_expression "bVar1 == 0 && *pbVar4 == 0" (binary_expression "bVar1 == 0" identifier == number_literal) && (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal)) )) (break_statement "break;" break ;)) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "local_24 = local_24 + 3;" (assignment_expression "local_24 = local_24 + 3" identifier = (binary_expression "local_24 + 3" identifier + number_literal)) ;) (if_statement "if (local_28 == 0x38) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 == 0x38)" ( (binary_expression "local_28 == 0x38" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (labeled_statement "LAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];" statement_identifier : (return_statement "return (&DAT_00137c64)[local_28 * 3];" return (subscript_expression "(&DAT_00137c64)[local_28 * 3]" (parenthesized_expression "(&DAT_00137c64)" ( (pointer_expression "&DAT_00137c64" & identifier) )) [ (binary_expression "local_28 * 3" identifier * number_literal) ]) ;)) })) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression & IDENT) < IDENT) > IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ IDENT ]) != (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ (pointer_expression * IDENT) ])) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (pointer_expression * IDENT) == LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (labeled_statement statement_identifier : (return_statement return (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]) ;)) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001cd80(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}" (primitive_type "int") (function_declarator "FUN_0001cd80(byte *param_1)" (identifier "FUN_0001cd80") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int local_28;\n  undefined **local_24;\n  int local_20;\n  \n  local_20 = FUN_0001d000(param_1);\n  if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }\n  return local_20;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "__int32_t **pp_Var2;" (type_identifier "__int32_t") (pointer_declarator "**pp_Var2" (* "*") (pointer_declarator "*pp_Var2" (* "*") (identifier "pp_Var2"))) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "undefined **local_24;" (type_identifier "undefined") (pointer_declarator "**local_24" (* "*") (pointer_declarator "*local_24" (* "*") (identifier "local_24"))) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = FUN_0001d000(param_1);" (assignment_expression "local_20 = FUN_0001d000(param_1)" (identifier "local_20") (= "=") (call_expression "FUN_0001d000(param_1)" (identifier "FUN_0001d000") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (local_20 == 0) {\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }" (if "if") (parenthesized_expression "(local_20 == 0)" (( "(") (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_20 = FUN_0001d7d0(param_1);\n    if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }\n  }" ({ "{") (expression_statement "local_20 = FUN_0001d7d0(param_1);" (assignment_expression "local_20 = FUN_0001d7d0(param_1)" (identifier "local_20") (= "=") (call_expression "FUN_0001d7d0(param_1)" (identifier "FUN_0001d7d0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (local_20 == 0) {\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }" (if "if") (parenthesized_expression "(local_20 == 0)" (( "(") (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_24 = &PTR_s_<UNKNOWN>_00137c60;\n      local_28 = 0;\n      while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }\nLAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];\n    }" ({ "{") (expression_statement "local_24 = &PTR_s_<UNKNOWN>_00137c60;" (assignment_expression "local_24 = &PTR_s_<UNKNOWN>_00137c60" (identifier "local_24") (= "=") (binary_expression "&PTR_s_<UNKNOWN>_00137c60" (binary_expression "&PTR_s_<UNKNOWN" (pointer_expression "&PTR_s_" (& "&") (identifier "PTR_s_")) (< "<") (identifier "UNKNOWN")) (> ">") (identifier "_00137c60"))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        pbVar4 = *local_24;\n        pbVar3 = param_1;\n        while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }\n        if (bVar1 == 0 && *pbVar4 == 0) break;\n        local_28 = local_28 + 1;\n        local_24 = local_24 + 3;\n        if (local_28 == 0x38) {\n          return 0;\n        }\n      }" ({ "{") (expression_statement "pbVar4 = *local_24;" (assignment_expression "pbVar4 = *local_24" (identifier "pbVar4") (= "=") (pointer_expression "*local_24" (* "*") (identifier "local_24"))) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          bVar1 = *pbVar3;\n          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;\n          pp_Var2 = __ctype_tolower_loc();\n          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;\n          pbVar3 = pbVar3 + 1;\n          pbVar4 = pbVar4 + 1;\n        }" ({ "{") (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" (identifier "bVar1") (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (if_statement "if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;" (if "if") (parenthesized_expression "((bVar1 == 0) && (*pbVar4 == 0))" (( "(") (binary_expression "(bVar1 == 0) && (*pbVar4 == 0)" (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*pbVar4 == 0)" (( "(") (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0001ce50;" (goto "goto") (statement_identifier "LAB_0001ce50") (; ";"))) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" (identifier "pp_Var2") (= "=") (call_expression "__ctype_tolower_loc()" (identifier "__ctype_tolower_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;" (if "if") (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4])" (( "(") (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" (( "(") (pointer_expression "*pp_Var2" (* "*") (identifier "pp_Var2")) () ")")) ([ "[") (identifier "bVar1") (] "]")) (!= "!=") (subscript_expression "(*pp_Var2)[*pbVar4]" (parenthesized_expression "(*pp_Var2)" (( "(") (pointer_expression "*pp_Var2" (* "*") (identifier "pp_Var2")) () ")")) ([ "[") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (] "]"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (bVar1 == 0 && *pbVar4 == 0) break;" (if "if") (parenthesized_expression "(bVar1 == 0 && *pbVar4 == 0)" (( "(") (binary_expression "bVar1 == 0 && *pbVar4 == 0" (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (number_literal "0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_24 = local_24 + 3;" (assignment_expression "local_24 = local_24 + 3" (identifier "local_24") (= "=") (binary_expression "local_24 + 3" (identifier "local_24") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (local_28 == 0x38) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(local_28 == 0x38)" (( "(") (binary_expression "local_28 == 0x38" (identifier "local_28") (== "==") (number_literal "0x38")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0001ce50:\n      return (&DAT_00137c64)[local_28 * 3];" (statement_identifier "LAB_0001ce50") (: ":") (return_statement "return (&DAT_00137c64)[local_28 * 3];" (return "return") (subscript_expression "(&DAT_00137c64)[local_28 * 3]" (parenthesized_expression "(&DAT_00137c64)" (( "(") (pointer_expression "&DAT_00137c64" (& "&") (identifier "DAT_00137c64")) () ")")) ([ "[") (binary_expression "local_28 * 3" (identifier "local_28") (* "*") (number_literal "3")) (] "]")) (; ";"))) (} "}"))) (} "}"))) (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

int function_1(char *name)

{
  type_1 var_4;
  type_2 **pp_Var2;
  type_1 *var_6;
  type_1 *var_7;
  int var_8;
  type_3 *var_9;
  int var_2;
  
  var_2 = var_1(name);
  if (var_2 == 0) {
    var_2 = var_3(name);
    if (var_2 == 0) {
      var_9 = localencs;
      var_8 = 0;
      while( true ) {
        var_7 = (type_1 *)var_9->name;
        var_6 = (type_1 *)name;
        while( true ) {
          var_4 = *var_6;
          if ((var_4 == 0) && (*var_7 == 0)) goto LAB_0001ce50;
          pp_Var2 = var_5();
          if ((*pp_Var2)[var_4] != (*pp_Var2)[*var_7]) break;
          var_6 = var_6 + 1;
          var_7 = var_7 + 1;
        }
        if (var_4 == 0 && *var_7 == 0) break;
        var_8 = var_8 + 1;
        var_9 = var_9 + 1;
        if (var_8 == 0x38) {
          return 0;
        }
      }
LAB_0001ce50:
      return localencs[var_8].charset;
    }
  }
  return var_2;
}


(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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (pointer_expression argument: (identifier))))) 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: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (pointer_expression argument: (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: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))))) (labeled_statement label: (statement_identifier) (return_statement (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int MASKED(byte *param_1)

{
  byte bVar1;
  __int32_t **pp_Var2;
  byte *pbVar3;
  byte *pbVar4;
  int local_28;
  undefined **local_24;
  int local_20;
  
  local_20 = FUN_0001d000(param_1);
  if (local_20 == 0) {
    local_20 = FUN_0001d7d0(param_1);
    if (local_20 == 0) {
      local_24 = &PTR_s_<UNKNOWN>_00137c60;
      local_28 = 0;
      while( true ) {
        pbVar4 = *local_24;
        pbVar3 = param_1;
        while( true ) {
          bVar1 = *pbVar3;
          if ((bVar1 == 0) && (*pbVar4 == 0)) goto LAB_0001ce50;
          pp_Var2 = __ctype_tolower_loc();
          if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar4]) break;
          pbVar3 = pbVar3 + 1;
          pbVar4 = pbVar4 + 1;
        }
        if (bVar1 == 0 && *pbVar4 == 0) break;
        local_28 = local_28 + 1;
        local_24 = local_24 + 3;
        if (local_28 == 0x38) {
          return 0;
        }
      }
LAB_0001ce50:
      return (&DAT_00137c64)[local_28 * 3];
    }
  }
  return local_20;
}

