
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int legal_identifier(char *name)

{
  byte bVar1;
  ushort **ppuVar2;
  byte *pbVar3;
  int iVar4;
  
  if (name == (char *)0x0) {
    return 0;
  }
  bVar1 = *name;
  iVar4 = 0;
  if (bVar1 != 0) {
    ppuVar2 = __ctype_b_loc();
    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {
      pbVar3 = (byte *)(name + 1);
      bVar1 = name[1];
      while (bVar1 != 0) {
        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {
          return 0;
        }
        pbVar3 = pbVar3 + 1;
        bVar1 = *pbVar3;
      }
      iVar4 = 1;
    }
  }
  return iVar4;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 legal_identifier(byte *param_1)

{
  byte bVar1;
  ushort **ppuVar2;
  byte *pbVar3;
  undefined4 uVar4;
  
  if (param_1 == (byte *)0x0) {
    return 0;
  }
  bVar1 = *param_1;
  uVar4 = 0;
  if (bVar1 != 0) {
    ppuVar2 = __ctype_b_loc();
    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {
      pbVar3 = param_1 + 1;
      bVar1 = param_1[1];
      while (bVar1 != 0) {
        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {
          return 0;
        }
        pbVar3 = pbVar3 + 1;
        bVar1 = *pbVar3;
      }
      uVar4 = 1;
    }
  }
  return uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x130717
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
TEST ESI,ESI
JZ 0x00041960
MOVZX EDI,byte ptr [ESI]
XOR EBP,EBP
MOV EAX,EDI
TEST AL,AL
JZ 0x0004194c
CALL 0x0002ed70
MOV EBX,dword ptr [EAX]
MOV EAX,EDI
MOVZX EAX,AL
TEST byte ptr [EBX + EAX*0x2 + 0x1],0x4
JNZ 0x0004191e
MOV EAX,EDI
CMP AL,0x5f
JNZ 0x0004194c
MOVZX EAX,byte ptr [ESI + 0x1]
LEA EDX,[ESI + 0x1]
TEST AL,AL
JZ 0x00041947
LEA ESI,[ESI]
MOVZX ECX,AL
TEST byte ptr [EBX + ECX*0x2],0x8
JNZ 0x0004193d
CMP AL,0x5f
JNZ 0x00041960
ADD EDX,0x1
MOVZX EAX,byte ptr [EDX]
TEST AL,AL
JNZ 0x00041930
MOV EBP,0x1
ADD ESP,0xc
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EBP,EBP
POP EBX
MOV EAX,EBP
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 legal_identifier(byte *param_1)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 legal_identifier(byte *param_1)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}" type_identifier (function_declarator "legal_identifier(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  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == (byte *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }" if (parenthesized_expression "(((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f))" ( (binary_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4)" ( (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x5f)" ( (binary_expression "bVar1 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }" { (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = param_1[1];" (assignment_expression "bVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (while_statement "while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" { (if_statement "if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }" if (parenthesized_expression "((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f))" ( (binary_expression "(((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)" (parenthesized_expression "(((*ppuVar2)[bVar1] & 8) == 0)" ( (binary_expression "((*ppuVar2)[bVar1] & 8) == 0" (parenthesized_expression "((*ppuVar2)[bVar1] & 8)" ( (binary_expression "(*ppuVar2)[bVar1] & 8" (subscript_expression "(*ppuVar2)[bVar1]" (parenthesized_expression "(*ppuVar2)" ( (pointer_expression "*ppuVar2" * identifier) )) [ identifier ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(bVar1 != 0x5f)" ( (binary_expression "bVar1 != 0x5f" identifier != number_literal) ))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) })) })) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint legal_identifier(char *name)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  int iVar4;\n  \n  if (name == (char *)0x0) {\n    return 0;\n  }\n  bVar1 = *name;\n  iVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }\n  }\n  return iVar4;\n}\n\n" comment comment (function_definition "int legal_identifier(char *name)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  int iVar4;\n  \n  if (name == (char *)0x0) {\n    return 0;\n  }\n  bVar1 = *name;\n  iVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "legal_identifier(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  int iVar4;\n  \n  if (name == (char *)0x0) {\n    return 0;\n  }\n  bVar1 = *name;\n  iVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (name == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = *name;" (assignment_expression "bVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }\n  }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }" if (parenthesized_expression "(((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f))" ( (binary_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4)" ( (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x5f)" ( (binary_expression "bVar1 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\n      pbVar3 = (byte *)(name + 1);\n      bVar1 = name[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      iVar4 = 1;\n    }" { (expression_statement "pbVar3 = (byte *)(name + 1);" (assignment_expression "pbVar3 = (byte *)(name + 1)" identifier = (cast_expression "(byte *)(name + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(name + 1)" ( (binary_expression "name + 1" identifier + number_literal) )))) ;) (expression_statement "bVar1 = name[1];" (assignment_expression "bVar1 = name[1]" identifier = (subscript_expression "name[1]" identifier [ number_literal ])) ;) (while_statement "while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" { (if_statement "if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }" if (parenthesized_expression "((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f))" ( (binary_expression "(((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)" (parenthesized_expression "(((*ppuVar2)[bVar1] & 8) == 0)" ( (binary_expression "((*ppuVar2)[bVar1] & 8) == 0" (parenthesized_expression "((*ppuVar2)[bVar1] & 8)" ( (binary_expression "(*ppuVar2)[bVar1] & 8" (subscript_expression "(*ppuVar2)[bVar1]" (parenthesized_expression "(*ppuVar2)" ( (pointer_expression "*ppuVar2" * identifier) )) [ identifier ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(bVar1 != 0x5f)" ( (binary_expression "bVar1 != 0x5f" identifier != number_literal) ))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) })) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "undefined4 legal_identifier(byte *param_1)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 legal_identifier(byte *param_1)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}" type_identifier (function_declarator "legal_identifier(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  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == (byte *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }" if (parenthesized_expression "(((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f))" ( (binary_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4)" ( (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x5f)" ( (binary_expression "bVar1 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }" { (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = param_1[1];" (assignment_expression "bVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (while_statement "while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" { (if_statement "if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }" if (parenthesized_expression "((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f))" ( (binary_expression "(((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)" (parenthesized_expression "(((*ppuVar2)[bVar1] & 8) == 0)" ( (binary_expression "((*ppuVar2)[bVar1] & 8) == 0" (parenthesized_expression "((*ppuVar2)[bVar1] & 8)" ( (binary_expression "(*ppuVar2)[bVar1] & 8" (subscript_expression "(*ppuVar2)[bVar1]" (parenthesized_expression "(*ppuVar2)" ( (pointer_expression "*ppuVar2" * identifier) )) [ identifier ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(bVar1 != 0x5f)" ( (binary_expression "bVar1 != 0x5f" identifier != number_literal) ))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) })) })) (return_statement "return uVar4;" 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 IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ IDENT ]) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 legal_identifier(byte *param_1)\n\n{\n  byte bVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "legal_identifier(byte *param_1)" (identifier "legal_identifier") (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  ushort **ppuVar2;\n  byte *pbVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == (byte *)0x0) {\n    return 0;\n  }\n  bVar1 = *param_1;\n  uVar4 = 0;\n  if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }\n  return uVar4;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "ushort **ppuVar2;" (type_identifier "ushort") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (param_1 == (byte *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (byte *)0x0)" (( "(") (binary_expression "param_1 == (byte *)0x0" (identifier "param_1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (bVar1 != 0) {\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }\n  }" ({ "{") (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" (identifier "ppuVar2") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }" (if "if") (parenthesized_expression "(((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f))" (( "(") (binary_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0)" (( "(") (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4)" (( "(") (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar2 + (uint)bVar1 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar1 * 2" (cast_expression "(int)*ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar2" (* "*") (identifier "ppuVar2"))) (+ "+") (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(bVar1 == 0x5f)" (( "(") (binary_expression "bVar1 == 0x5f" (identifier "bVar1") (== "==") (number_literal "0x5f")) () ")"))) () ")")) (compound_statement "{\n      pbVar3 = param_1 + 1;\n      bVar1 = param_1[1];\n      while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }\n      uVar4 = 1;\n    }" ({ "{") (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" (identifier "pbVar3") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = param_1[1];" (assignment_expression "bVar1 = param_1[1]" (identifier "bVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (while_statement "while (bVar1 != 0) {\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }\n        pbVar3 = pbVar3 + 1;\n        bVar1 = *pbVar3;\n      }" ({ "{") (if_statement "if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f))" (( "(") (binary_expression "(((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)" (parenthesized_expression "(((*ppuVar2)[bVar1] & 8) == 0)" (( "(") (binary_expression "((*ppuVar2)[bVar1] & 8) == 0" (parenthesized_expression "((*ppuVar2)[bVar1] & 8)" (( "(") (binary_expression "(*ppuVar2)[bVar1] & 8" (subscript_expression "(*ppuVar2)[bVar1]" (parenthesized_expression "(*ppuVar2)" (( "(") (pointer_expression "*ppuVar2" (* "*") (identifier "ppuVar2")) () ")")) ([ "[") (identifier "bVar1") (] "]")) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bVar1 != 0x5f)" (( "(") (binary_expression "bVar1 != 0x5f" (identifier "bVar1") (!= "!=") (number_literal "0x5f")) () ")"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" (identifier "bVar1") (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (} "}"))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *var_1)

{
  type_1 var_2;
  type_2 **ppuVar2;
  type_1 *var_4;
  int iVar4;
  
  if (var_1 == (char *)0x0) {
    return 0;
  }
  var_2 = *var_1;
  iVar4 = 0;
  if (var_2 != 0) {
    ppuVar2 = var_3();
    if (((*(type_1 *)((int)*ppuVar2 + (type_3)var_2 * 2 + 1) & 4) != 0) || (var_2 == 0x5f)) {
      var_4 = (type_1 *)(var_1 + 1);
      var_2 = var_1[1];
      while (var_2 != 0) {
        if ((((*ppuVar2)[var_2] & 8) == 0) && (var_2 != 0x5f)) {
          return 0;
        }
        var_4 = var_4 + 1;
        var_2 = *var_4;
      }
      iVar4 = 1;
    }
  }
  return iVar4;
}


(translation_unit (function_definition type: (type_identifier) 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: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(byte *param_1)

{
  byte bVar1;
  ushort **ppuVar2;
  byte *pbVar3;
  undefined4 uVar4;
  
  if (param_1 == (byte *)0x0) {
    return 0;
  }
  bVar1 = *param_1;
  uVar4 = 0;
  if (bVar1 != 0) {
    ppuVar2 = __ctype_b_loc();
    if (((*(byte *)((int)*ppuVar2 + (uint)bVar1 * 2 + 1) & 4) != 0) || (bVar1 == 0x5f)) {
      pbVar3 = param_1 + 1;
      bVar1 = param_1[1];
      while (bVar1 != 0) {
        if ((((*ppuVar2)[bVar1] & 8) == 0) && (bVar1 != 0x5f)) {
          return 0;
        }
        pbVar3 = pbVar3 + 1;
        bVar1 = *pbVar3;
      }
      uVar4 = 1;
    }
  }
  return uVar4;
}

