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

void check_and_close(void)

{
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4 __regparm3 FUN_00089151(undefined4 param_1,undefined4 param_2)

{
  char *pcVar1;
  
  if (DAT_000d131c != (byte *)0x0) {
    if ((*DAT_000d131c & 0x20) != 0) {
      pcVar1 = "standard input";
      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {
        pcVar1 = *(char **)(_DAT_000d1318 + -4);
      }
      FUN_000191bd("%s: read error",pcVar1);
      DAT_000d12f8._0_1_ = 1;
    }
    FUN_000a7a5d();
    DAT_000d131c = (byte *)0x0;
  }
  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000191a6("write error");
  }
  return param_2;
}


PUSH ESI
PUSH EBX
PUSH EDX
CALL 0x00017640
ADD EBX,0x478c7
LEA ESI,[EBX + 0x8d8]
MOV EAX,dword ptr [ESI + 0x24]
TEST EAX,EAX
JZ 0x000891ac
TEST byte ptr [EAX],0x20
JZ 0x000891a0
LEA EDX,[EBX + 0xffff2954]
MOV ECX,dword ptr [EBX + 0x58c]
CMP EAX,dword ptr [ECX]
JZ 0x00089187
MOV EAX,dword ptr [ESI + 0x20]
MOV EDX,dword ptr [EAX + -0x4]
SUB ESP,0x8
PUSH EDX
LEA EAX,[EBX + 0xffffb078]
PUSH EAX
CALL 0x000191bd
MOV byte ptr [ESI],0x1
MOV EAX,dword ptr [ESI + 0x24]
ADD ESP,0x10
CALL 0x000a7a5d
MOV dword ptr [ESI + 0x24],0x0
MOV EAX,dword ptr [EBX + 0x594]
MOV EAX,dword ptr [EAX]
TEST byte ptr [EAX],0x20
JZ 0x000891c8
SUB ESP,0xc
LEA EAX,[EBX + 0xffff2ab4]
PUSH EAX
CALL 0x000191a6
POP EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nundefined4 __regparm3 FUN_00089151(undefined4 param_1,undefined4 param_2)\n\n{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000191a6("write error");\n  }\n  return param_2;\n}\n\n" comment comment (function_definition "undefined4 __regparm3 FUN_00089151(undefined4 param_1,undefined4 param_2)\n\n{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000191a6("write error");\n  }\n  return param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00089151(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000191a6("write error");\n  }\n  return param_2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }" if (parenthesized_expression "(DAT_000d131c != (byte *)0x0)" ( (binary_expression "DAT_000d131c != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }" { (if_statement "if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }" if (parenthesized_expression "((*DAT_000d131c & 0x20) != 0)" ( (binary_expression "(*DAT_000d131c & 0x20) != 0" (parenthesized_expression "(*DAT_000d131c & 0x20)" ( (binary_expression "*DAT_000d131c & 0x20" (pointer_expression "*DAT_000d131c" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }" { (expression_statement "pcVar1 = "standard input";" (assignment_expression "pcVar1 = "standard input"" identifier = (string_literal ""standard input"" " string_content ")) ;) (if_statement "if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }" if (parenthesized_expression "(DAT_000d131c != *(byte **)PTR_stdin_000d0fac)" ( (binary_expression "DAT_000d131c != *(byte **)PTR_stdin_000d0fac" identifier != (pointer_expression "*(byte **)PTR_stdin_000d0fac" * (cast_expression "(byte **)PTR_stdin_000d0fac" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }" { (expression_statement "pcVar1 = *(char **)(_DAT_000d1318 + -4);" (assignment_expression "pcVar1 = *(char **)(_DAT_000d1318 + -4)" identifier = (pointer_expression "*(char **)(_DAT_000d1318 + -4)" * (cast_expression "(char **)(_DAT_000d1318 + -4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(_DAT_000d1318 + -4)" ( (binary_expression "_DAT_000d1318 + -4" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000191bd("%s: read error",pcVar1);" (call_expression "FUN_000191bd("%s: read error",pcVar1)" identifier (argument_list "("%s: read error",pcVar1)" ( (string_literal ""%s: read error"" " string_content ") , identifier ))) ;) (expression_statement "DAT_000d12f8._0_1_ = 1;" (assignment_expression "DAT_000d12f8._0_1_ = 1" (field_expression "DAT_000d12f8._0_1_" identifier . field_identifier) = number_literal) ;) })) (expression_statement "FUN_000a7a5d();" (call_expression "FUN_000a7a5d()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_000d131c = (byte *)0x0;" (assignment_expression "DAT_000d131c = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000191a6("write error");\n  }" if (parenthesized_expression "((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0)" ( (binary_expression "(**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0" (parenthesized_expression "(**(byte **)PTR_stdout_000d0fb4 & 0x20)" ( (binary_expression "**(byte **)PTR_stdout_000d0fb4 & 0x20" (pointer_expression "**(byte **)PTR_stdout_000d0fb4" * (pointer_expression "*(byte **)PTR_stdout_000d0fb4" * (cast_expression "(byte **)PTR_stdout_000d0fb4" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000191a6("write error");\n  }" { comment (expression_statement "FUN_000191a6("write error");" (call_expression "FUN_000191a6("write error")" identifier (argument_list "("write error")" ( (string_literal ""write error"" " string_content ") ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid check_and_close(void)\n\n{\n}\n\n" comment (function_definition "void check_and_close(void)\n\n{\n}" primitive_type (function_declarator "check_and_close(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "undefined4 __regparm3 FUN_00089151(undefined4 param_1,undefined4 param_2)\n\n{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }\n  return param_2;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00089151(undefined4 param_1,undefined4 param_2)\n\n{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }\n  return param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00089151(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }\n  return param_2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }" if (parenthesized_expression "(DAT_000d131c != (byte *)0x0)" ( (binary_expression "DAT_000d131c != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }" { (if_statement "if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }" if (parenthesized_expression "((*DAT_000d131c & 0x20) != 0)" ( (binary_expression "(*DAT_000d131c & 0x20) != 0" (parenthesized_expression "(*DAT_000d131c & 0x20)" ( (binary_expression "*DAT_000d131c & 0x20" (pointer_expression "*DAT_000d131c" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }" { (expression_statement "pcVar1 = "standard input";" (assignment_expression "pcVar1 = "standard input"" identifier = (string_literal ""standard input"" " string_content ")) ;) (if_statement "if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }" if (parenthesized_expression "(DAT_000d131c != *(byte **)PTR_stdin_000d0fac)" ( (binary_expression "DAT_000d131c != *(byte **)PTR_stdin_000d0fac" identifier != (pointer_expression "*(byte **)PTR_stdin_000d0fac" * (cast_expression "(byte **)PTR_stdin_000d0fac" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }" { (expression_statement "pcVar1 = *(char **)(_DAT_000d1318 + -4);" (assignment_expression "pcVar1 = *(char **)(_DAT_000d1318 + -4)" identifier = (pointer_expression "*(char **)(_DAT_000d1318 + -4)" * (cast_expression "(char **)(_DAT_000d1318 + -4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(_DAT_000d1318 + -4)" ( (binary_expression "_DAT_000d1318 + -4" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000191bd("%s: read error",pcVar1);" (call_expression "FUN_000191bd("%s: read error",pcVar1)" identifier (argument_list "("%s: read error",pcVar1)" ( (string_literal ""%s: read error"" " string_content ") , identifier ))) ;) (expression_statement "DAT_000d12f8._0_1_ = 1;" (assignment_expression "DAT_000d12f8._0_1_ = 1" (field_expression "DAT_000d12f8._0_1_" identifier . field_identifier) = number_literal) ;) })) (expression_statement "FUN_000a7a5d();" (call_expression "FUN_000a7a5d()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_000d131c = (byte *)0x0;" (assignment_expression "DAT_000d131c = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }" if (parenthesized_expression "((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0)" ( (binary_expression "(**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0" (parenthesized_expression "(**(byte **)PTR_stdout_000d0fb4 & 0x20)" ( (binary_expression "**(byte **)PTR_stdout_000d0fb4 & 0x20" (pointer_expression "**(byte **)PTR_stdout_000d0fb4" * (pointer_expression "*(byte **)PTR_stdout_000d0fb4" * (cast_expression "(byte **)PTR_stdout_000d0fb4" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n    FUN_000191a6("write error");\n  }" { (expression_statement "FUN_000191a6("write error");" (call_expression "FUN_000191a6("write error")" identifier (argument_list "("write error")" ( (string_literal ""write error"" " string_content ") ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_00089151(undefined4 param_1,undefined4 param_2)\n\n{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }\n  return param_2;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00089151(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00089151") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }\n  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }\n  return param_2;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (if_statement "if (DAT_000d131c != (byte *)0x0) {\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }" (if "if") (parenthesized_expression "(DAT_000d131c != (byte *)0x0)" (( "(") (binary_expression "DAT_000d131c != (byte *)0x0" (identifier "DAT_000d131c") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }\n    FUN_000a7a5d();\n    DAT_000d131c = (byte *)0x0;\n  }" ({ "{") (if_statement "if ((*DAT_000d131c & 0x20) != 0) {\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }" (if "if") (parenthesized_expression "((*DAT_000d131c & 0x20) != 0)" (( "(") (binary_expression "(*DAT_000d131c & 0x20) != 0" (parenthesized_expression "(*DAT_000d131c & 0x20)" (( "(") (binary_expression "*DAT_000d131c & 0x20" (pointer_expression "*DAT_000d131c" (* "*") (identifier "DAT_000d131c")) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar1 = "standard input";\n      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }\n      FUN_000191bd("%s: read error",pcVar1);\n      DAT_000d12f8._0_1_ = 1;\n    }" ({ "{") (expression_statement "pcVar1 = "standard input";" (assignment_expression "pcVar1 = "standard input"" (identifier "pcVar1") (= "=") (string_literal ""standard input"" (" """) (string_content "standard input") (" """))) (; ";")) (if_statement "if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }" (if "if") (parenthesized_expression "(DAT_000d131c != *(byte **)PTR_stdin_000d0fac)" (( "(") (binary_expression "DAT_000d131c != *(byte **)PTR_stdin_000d0fac" (identifier "DAT_000d131c") (!= "!=") (pointer_expression "*(byte **)PTR_stdin_000d0fac" (* "*") (cast_expression "(byte **)PTR_stdin_000d0fac" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdin_000d0fac")))) () ")")) (compound_statement "{\n        pcVar1 = *(char **)(_DAT_000d1318 + -4);\n      }" ({ "{") (expression_statement "pcVar1 = *(char **)(_DAT_000d1318 + -4);" (assignment_expression "pcVar1 = *(char **)(_DAT_000d1318 + -4)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(_DAT_000d1318 + -4)" (* "*") (cast_expression "(char **)(_DAT_000d1318 + -4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(_DAT_000d1318 + -4)" (( "(") (binary_expression "_DAT_000d1318 + -4" (identifier "_DAT_000d1318") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_000191bd("%s: read error",pcVar1);" (call_expression "FUN_000191bd("%s: read error",pcVar1)" (identifier "FUN_000191bd") (argument_list "("%s: read error",pcVar1)" (( "(") (string_literal ""%s: read error"" (" """) (string_content "%s: read error") (" """)) (, ",") (identifier "pcVar1") () ")"))) (; ";")) (expression_statement "DAT_000d12f8._0_1_ = 1;" (assignment_expression "DAT_000d12f8._0_1_ = 1" (field_expression "DAT_000d12f8._0_1_" (identifier "DAT_000d12f8") (. ".") (field_identifier "_0_1_")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "FUN_000a7a5d();" (call_expression "FUN_000a7a5d()" (identifier "FUN_000a7a5d") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_000d131c = (byte *)0x0;" (assignment_expression "DAT_000d131c = (byte *)0x0" (identifier "DAT_000d131c") (= "=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (if_statement "if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {\n                    \n    FUN_000191a6("write error");\n  }" (if "if") (parenthesized_expression "((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0)" (( "(") (binary_expression "(**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0" (parenthesized_expression "(**(byte **)PTR_stdout_000d0fb4 & 0x20)" (( "(") (binary_expression "**(byte **)PTR_stdout_000d0fb4 & 0x20" (pointer_expression "**(byte **)PTR_stdout_000d0fb4" (* "*") (pointer_expression "*(byte **)PTR_stdout_000d0fb4" (* "*") (cast_expression "(byte **)PTR_stdout_000d0fb4" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_000d0fb4")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_000191a6("write error");\n  }" ({ "{") (expression_statement "FUN_000191a6("write error");" (call_expression "FUN_000191a6("write error")" (identifier "FUN_000191a6") (argument_list "("write error")" (( "(") (string_literal ""write error"" (" """) (string_content "write error") (" """)) () ")"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

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

void function_1(void)

{
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4 __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  char *pcVar1;
  
  if (DAT_000d131c != (byte *)0x0) {
    if ((*DAT_000d131c & 0x20) != 0) {
      pcVar1 = "standard input";
      if (DAT_000d131c != *(byte **)PTR_stdin_000d0fac) {
        pcVar1 = *(char **)(_DAT_000d1318 + -4);
      }
      FUN_000191bd("%s: read error",pcVar1);
      DAT_000d12f8._0_1_ = 1;
    }
    FUN_000a7a5d();
    DAT_000d131c = (byte *)0x0;
  }
  if ((**(byte **)PTR_stdout_000d0fb4 & 0x20) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000191a6("write error");
  }
  return param_2;
}

