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

int __regparm3 read_header(FILE *fp,char *header)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = header;
  while( true ) {
    iVar1 = fgetc((FILE *)fp);
    if (iVar1 + 1U < 0xf) {
      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {
        return 0;
      }
    }
    else if (iVar1 == 0x3a) {
      iVar1 = fgetc((FILE *)fp);
      if (iVar1 != 0x20) {
        return 0;
      }
      *pcVar2 = '\0';
      return 1;
    }
    if (pcVar2 == header + 0x27) break;
    *pcVar2 = (char)iVar1;
    pcVar2 = pcVar2 + 1;
  }
  return 0;
}



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

undefined4 __regparm3 FUN_00053f60(FILE *param_1,undefined1 *param_2)

{
  int iVar1;
  undefined1 *puVar2;
  
  puVar2 = param_2;
  while( true ) {
    iVar1 = fgetc(param_1);
    if (iVar1 + 1U < 0xf) {
      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {
        return 0;
      }
    }
    else if (iVar1 == 0x3a) {
      iVar1 = fgetc(param_1);
      if (iVar1 != 0x20) {
        return 0;
      }
      *puVar2 = 0;
      return 1;
    }
    if (puVar2 == param_2 + 0x27) break;
    *puVar2 = (char)iVar1;
    puVar2 = puVar2 + 1;
  }
  return 0;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
LEA EDI,[EDX + 0x27]
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00014970
ADD EBX,0x55e20
SUB ESP,0xc
JMP 0x00053f8f
CMP EAX,0x3a
JZ 0x00053fc0
CMP EBP,EDI
JZ 0x00053fad
ADD EBP,0x1
MOV byte ptr [EBP + -0x1],AL
SUB ESP,0xc
PUSH ESI
CALL 0x00014590
ADD ESP,0x10
LEA ECX,[EAX + 0x1]
CMP ECX,0xe
JA 0x00053f80
MOV EDX,0x4801
BT EDX,ECX
JNC 0x00053f85
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00014590
ADD ESP,0x10
CMP EAX,0x20
JNZ 0x00053fad
MOV byte ptr [EBP],0x0
MOV EAX,0x1
JMP 0x00053faf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00053f60(FILE *param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00053f60(FILE *param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00053f60(FILE *param_1,undefined1 *param_2)" identifier (parameter_list "(FILE *param_1,undefined1 *param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "iVar1 = fgetc(param_1);" (assignment_expression "iVar1 = fgetc(param_1)" identifier = (call_expression "fgetc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 + 1U < 0xf)" ( (binary_expression "iVar1 + 1U < 0xf" (binary_expression "iVar1 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }" { (if_statement "if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }" if (parenthesized_expression "((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0)" ( (binary_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0" (parenthesized_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1)" ( (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f) & 1" (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 + 1U & 0x1f)" ( (binary_expression "iVar1 + 1U & 0x1f" (binary_expression "iVar1 + 1U" identifier + number_literal) & number_literal) ))) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" else (if_statement "if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0x3a)" ( (binary_expression "iVar1 == 0x3a" identifier == number_literal) )) (compound_statement "{\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" { (expression_statement "iVar1 = fgetc(param_1);" (assignment_expression "iVar1 = fgetc(param_1)" identifier = (call_expression "fgetc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0x20) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0x20)" ( (binary_expression "iVar1 != 0x20" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))) (if_statement "if (puVar2 == param_2 + 0x27) break;" if (parenthesized_expression "(puVar2 == param_2 + 0x27)" ( (binary_expression "puVar2 == param_2 + 0x27" identifier == (binary_expression "param_2 + 0x27" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*puVar2 = (char)iVar1;" (assignment_expression "*puVar2 = (char)iVar1" (pointer_expression "*puVar2" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 read_header(FILE *fp,char *header)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = header;\n  while( true ) {\n    iVar1 = fgetc((FILE *)fp);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }\n    if (pcVar2 == header + 0x27) break;\n    *pcVar2 = (char)iVar1;\n    pcVar2 = pcVar2 + 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 read_header(FILE *fp,char *header)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = header;\n  while( true ) {\n    iVar1 = fgetc((FILE *)fp);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }\n    if (pcVar2 == header + 0x27) break;\n    *pcVar2 = (char)iVar1;\n    pcVar2 = pcVar2 + 1;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "read_header(FILE *fp,char *header)" identifier (parameter_list "(FILE *fp,char *header)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "char *header" primitive_type (pointer_declarator "*header" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = header;\n  while( true ) {\n    iVar1 = fgetc((FILE *)fp);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }\n    if (pcVar2 == header + 0x27) break;\n    *pcVar2 = (char)iVar1;\n    pcVar2 = pcVar2 + 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = header;" (assignment_expression "pcVar2 = header" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = fgetc((FILE *)fp);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }\n    if (pcVar2 == header + 0x27) break;\n    *pcVar2 = (char)iVar1;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = fgetc((FILE *)fp);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }\n    if (pcVar2 == header + 0x27) break;\n    *pcVar2 = (char)iVar1;\n    pcVar2 = pcVar2 + 1;\n  }" { (expression_statement "iVar1 = fgetc((FILE *)fp);" (assignment_expression "iVar1 = fgetc((FILE *)fp)" identifier = (call_expression "fgetc((FILE *)fp)" identifier (argument_list "((FILE *)fp)" ( (cast_expression "(FILE *)fp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }" if (parenthesized_expression "(iVar1 + 1U < 0xf)" ( (binary_expression "iVar1 + 1U < 0xf" (binary_expression "iVar1 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }" { (if_statement "if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }" if (parenthesized_expression "((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0)" ( (binary_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0" (parenthesized_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1)" ( (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f) & 1" (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 + 1U & 0x1f)" ( (binary_expression "iVar1 + 1U & 0x1f" (binary_expression "iVar1 + 1U" identifier + number_literal) & number_literal) ))) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }" else (if_statement "if (iVar1 == 0x3a) {\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0x3a)" ( (binary_expression "iVar1 == 0x3a" identifier == number_literal) )) (compound_statement "{\n      iVar1 = fgetc((FILE *)fp);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *pcVar2 = '\0';\n      return 1;\n    }" { (expression_statement "iVar1 = fgetc((FILE *)fp);" (assignment_expression "iVar1 = fgetc((FILE *)fp)" identifier = (call_expression "fgetc((FILE *)fp)" identifier (argument_list "((FILE *)fp)" ( (cast_expression "(FILE *)fp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 != 0x20) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0x20)" ( (binary_expression "iVar1 != 0x20" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })))) (if_statement "if (pcVar2 == header + 0x27) break;" if (parenthesized_expression "(pcVar2 == header + 0x27)" ( (binary_expression "pcVar2 == header + 0x27" identifier == (binary_expression "header + 0x27" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*pcVar2 = (char)iVar1;" (assignment_expression "*pcVar2 = (char)iVar1" (pointer_expression "*pcVar2" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00053f60(FILE *param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00053f60(FILE *param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00053f60(FILE *param_1,undefined1 *param_2)" identifier (parameter_list "(FILE *param_1,undefined1 *param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "iVar1 = fgetc(param_1);" (assignment_expression "iVar1 = fgetc(param_1)" identifier = (call_expression "fgetc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 + 1U < 0xf)" ( (binary_expression "iVar1 + 1U < 0xf" (binary_expression "iVar1 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }" { (if_statement "if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }" if (parenthesized_expression "((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0)" ( (binary_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0" (parenthesized_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1)" ( (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f) & 1" (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 + 1U & 0x1f)" ( (binary_expression "iVar1 + 1U & 0x1f" (binary_expression "iVar1 + 1U" identifier + number_literal) & number_literal) ))) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" else (if_statement "if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0x3a)" ( (binary_expression "iVar1 == 0x3a" identifier == number_literal) )) (compound_statement "{\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" { (expression_statement "iVar1 = fgetc(param_1);" (assignment_expression "iVar1 = fgetc(param_1)" identifier = (call_expression "fgetc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0x20) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0x20)" ( (binary_expression "iVar1 != 0x20" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))) (if_statement "if (puVar2 == param_2 + 0x27) break;" if (parenthesized_expression "(puVar2 == param_2 + 0x27)" ( (binary_expression "puVar2 == param_2 + 0x27" identifier == (binary_expression "param_2 + 0x27" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*puVar2 = (char)iVar1;" (assignment_expression "*puVar2 = (char)iVar1" (pointer_expression "*puVar2" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) ))) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (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 { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00053f60(FILE *param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00053f60(FILE *param_1,undefined1 *param_2)" (identifier "FUN_00053f60") (parameter_list "(FILE *param_1,undefined1 *param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  puVar2 = param_2;\n  while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" (identifier "puVar2") (= "=") (identifier "param_2")) (; ";")) (while_statement "while( true ) {\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = fgetc(param_1);\n    if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }\n    if (puVar2 == param_2 + 0x27) break;\n    *puVar2 = (char)iVar1;\n    puVar2 = puVar2 + 1;\n  }" ({ "{") (expression_statement "iVar1 = fgetc(param_1);" (assignment_expression "iVar1 = fgetc(param_1)" (identifier "iVar1") (= "=") (call_expression "fgetc(param_1)" (identifier "fgetc") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 + 1U < 0xf) {\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }\n    else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 + 1U < 0xf)" (( "(") (binary_expression "iVar1 + 1U < 0xf" (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U")) (< "<") (number_literal "0xf")) () ")")) (compound_statement "{\n      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0)" (( "(") (binary_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0" (parenthesized_expression "(0x4801U >> (iVar1 + 1U & 0x1f) & 1)" (( "(") (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f) & 1" (binary_expression "0x4801U >> (iVar1 + 1U & 0x1f)" (number_literal "0x4801U") (>> ">>") (parenthesized_expression "(iVar1 + 1U & 0x1f)" (( "(") (binary_expression "iVar1 + 1U & 0x1f" (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" (else "else") (if_statement "if (iVar1 == 0x3a) {\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0x3a)" (( "(") (binary_expression "iVar1 == 0x3a" (identifier "iVar1") (== "==") (number_literal "0x3a")) () ")")) (compound_statement "{\n      iVar1 = fgetc(param_1);\n      if (iVar1 != 0x20) {\n        return 0;\n      }\n      *puVar2 = 0;\n      return 1;\n    }" ({ "{") (expression_statement "iVar1 = fgetc(param_1);" (assignment_expression "iVar1 = fgetc(param_1)" (identifier "iVar1") (= "=") (call_expression "fgetc(param_1)" (identifier "fgetc") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0x20) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0x20)" (( "(") (binary_expression "iVar1 != 0x20" (identifier "iVar1") (!= "!=") (number_literal "0x20")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))))) (if_statement "if (puVar2 == param_2 + 0x27) break;" (if "if") (parenthesized_expression "(puVar2 == param_2 + 0x27)" (( "(") (binary_expression "puVar2 == param_2 + 0x27" (identifier "puVar2") (== "==") (binary_expression "param_2 + 0x27" (identifier "param_2") (+ "+") (number_literal "0x27"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*puVar2 = (char)iVar1;" (assignment_expression "*puVar2 = (char)iVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *fp,char *var_4)

{
  int var_2;
  char *var_3;
  
  var_3 = var_4;
  while( true ) {
    var_2 = var_1((type_1 *)fp);
    if (var_2 + 1U < 0xf) {
      if ((0x4801U >> (var_2 + 1U & 0x1f) & 1) != 0) {
        return 0;
      }
    }
    else if (var_2 == 0x3a) {
      var_2 = var_1((type_1 *)fp);
      if (var_2 != 0x20) {
        return 0;
      }
      *var_3 = '\0';
      return 1;
    }
    if (var_3 == var_4 + 0x27) break;
    *var_3 = (char)var_2;
    var_3 = var_3 + 1;
  }
  return 0;
}


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

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

undefined4 __regparm3 MASKED(FILE *param_1,undefined1 *param_2)

{
  int iVar1;
  undefined1 *puVar2;
  
  puVar2 = param_2;
  while( true ) {
    iVar1 = fgetc(param_1);
    if (iVar1 + 1U < 0xf) {
      if ((0x4801U >> (iVar1 + 1U & 0x1f) & 1) != 0) {
        return 0;
      }
    }
    else if (iVar1 == 0x3a) {
      iVar1 = fgetc(param_1);
      if (iVar1 != 0x20) {
        return 0;
      }
      *puVar2 = 0;
      return 1;
    }
    if (puVar2 == param_2 + 0x27) break;
    *puVar2 = (char)iVar1;
    puVar2 = puVar2 + 1;
  }
  return 0;
}

