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

void new_yy_file(FILE *file)

{
  if (first_file == '\0') {
    fclose((FILE *)yyin);
  }
  first_file = '\0';
  yyin = file;
  return;
}



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

void FUN_00011c90(undefined4 param_1)

{
  if (DAT_0002918c == '\0') {
    fclose(DAT_00029198);
  }
  DAT_0002918c = 0;
  DAT_00029198 = (FILE *)param_1;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00011650
ADD EBX,0x1726d
SUB ESP,0x4
CMP byte ptr [EBX + 0x288],0x0
LEA ESI,[EBX + 0x294]
JZ 0x00011cc8
MOV EAX,dword ptr [ESP + 0x10]
MOV byte ptr [EBX + 0x288],0x0
MOV dword ptr [ESI],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x000110f0
ADD ESP,0x10
JMP 0x00011caf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00011c90(undefined4 param_1)\n\n{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}\n\n" comment (function_definition "void FUN_00011c90(undefined4 param_1)\n\n{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}" primitive_type (function_declarator "FUN_00011c90(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}" { (if_statement "if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }" if (parenthesized_expression "(DAT_0002918c == '\0')" ( (binary_expression "DAT_0002918c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fclose(DAT_00029198);\n  }" { (expression_statement "fclose(DAT_00029198);" (call_expression "fclose(DAT_00029198)" identifier (argument_list "(DAT_00029198)" ( identifier ))) ;) })) (expression_statement "DAT_0002918c = 0;" (assignment_expression "DAT_0002918c = 0" identifier = number_literal) ;) (expression_statement "DAT_00029198 = (FILE *)param_1;" (assignment_expression "DAT_00029198 = (FILE *)param_1" identifier = (cast_expression "(FILE *)param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid new_yy_file(FILE *file)\n\n{\n  if (first_file == '\0') {\n    fclose((FILE *)yyin);\n  }\n  first_file = '\0';\n  yyin = file;\n  return;\n}\n\n" comment comment (function_definition "void new_yy_file(FILE *file)\n\n{\n  if (first_file == '\0') {\n    fclose((FILE *)yyin);\n  }\n  first_file = '\0';\n  yyin = file;\n  return;\n}" primitive_type (function_declarator "new_yy_file(FILE *file)" identifier (parameter_list "(FILE *file)" ( (parameter_declaration "FILE *file" type_identifier (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  if (first_file == '\0') {\n    fclose((FILE *)yyin);\n  }\n  first_file = '\0';\n  yyin = file;\n  return;\n}" { (if_statement "if (first_file == '\0') {\n    fclose((FILE *)yyin);\n  }" if (parenthesized_expression "(first_file == '\0')" ( (binary_expression "first_file == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fclose((FILE *)yyin);\n  }" { (expression_statement "fclose((FILE *)yyin);" (call_expression "fclose((FILE *)yyin)" identifier (argument_list "((FILE *)yyin)" ( (cast_expression "(FILE *)yyin" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (expression_statement "first_file = '\0';" (assignment_expression "first_file = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "yyin = file;" (assignment_expression "yyin = file" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00011c90(undefined4 param_1)\n\n{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}\n\n" (function_definition "void FUN_00011c90(undefined4 param_1)\n\n{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}" primitive_type (function_declarator "FUN_00011c90(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}" { (if_statement "if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }" if (parenthesized_expression "(DAT_0002918c == '\0')" ( (binary_expression "DAT_0002918c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fclose(DAT_00029198);\n  }" { (expression_statement "fclose(DAT_00029198);" (call_expression "fclose(DAT_00029198)" identifier (argument_list "(DAT_00029198)" ( identifier ))) ;) })) (expression_statement "DAT_0002918c = 0;" (assignment_expression "DAT_0002918c = 0" identifier = number_literal) ;) (expression_statement "DAT_00029198 = (FILE *)param_1;" (assignment_expression "DAT_00029198 = (FILE *)param_1" identifier = (cast_expression "(FILE *)param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00011c90(undefined4 param_1)\n\n{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00011c90(undefined4 param_1)" (identifier "FUN_00011c90") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }\n  DAT_0002918c = 0;\n  DAT_00029198 = (FILE *)param_1;\n  return;\n}" ({ "{") (if_statement "if (DAT_0002918c == '\0') {\n    fclose(DAT_00029198);\n  }" (if "if") (parenthesized_expression "(DAT_0002918c == '\0')" (( "(") (binary_expression "DAT_0002918c == '\0'" (identifier "DAT_0002918c") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    fclose(DAT_00029198);\n  }" ({ "{") (expression_statement "fclose(DAT_00029198);" (call_expression "fclose(DAT_00029198)" (identifier "fclose") (argument_list "(DAT_00029198)" (( "(") (identifier "DAT_00029198") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_0002918c = 0;" (assignment_expression "DAT_0002918c = 0" (identifier "DAT_0002918c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00029198 = (FILE *)param_1;" (assignment_expression "DAT_00029198 = (FILE *)param_1" (identifier "DAT_00029198") (= "=") (cast_expression "(FILE *)param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *file)

{
  if (var_1 == '\0') {
    var_2((type_1 *)yyin);
  }
  var_1 = '\0';
  yyin = file;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  if (DAT_0002918c == '\0') {
    fclose(DAT_00029198);
  }
  DAT_0002918c = 0;
  DAT_00029198 = (FILE *)param_1;
  return;
}

