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

void randread_error(void *file_name)

{
  char *pcVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 extraout_EDX;
  
  if (file_name != (void *)0x0) {
    pcVar1 = quote((char *)file_name);
    piVar2 = __errno_location();
    if (*piVar2 == 0) {
      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);
    }
    else {
      uVar3 = dcgettext(0,"%s: read error",5,piVar2);
    }
                    /* WARNING: Subroutine does not return */
    error(exit_failure,*piVar2,uVar3,pcVar1);
  }
                    /* WARNING: Subroutine does not return */
  abort();
}



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

void FUN_00029e80(int param_1)

{
  undefined4 uVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 extraout_EDX;
  
  if (param_1 != 0) {
    uVar1 = FUN_00021300(param_1);
    piVar2 = __errno_location();
    if (*piVar2 == 0) {
      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);
    }
    else {
      uVar3 = dcgettext(0,"%s: read error",5,piVar2);
    }
                    /* WARNING: Subroutine does not return */
    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);
  }
                    /* WARNING: Subroutine does not return */
  abort();
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00013950
ADD EBX,0x11174
TEST EAX,EAX
JZ 0x00012aca
SUB ESP,0xc
PUSH EAX
CALL 0x00021300
MOV EDI,EAX
CALL 0x00012640
ADD ESP,0x10
CMP dword ptr [EAX],0x0
MOV ESI,EAX
JZ 0x00029ee2
PUSH EAX
LEA EAX,[EBX + 0xffff60ba]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012240
ADD ESP,0x10
LEA EDX,[EBX + 0x2cc]
MOV EDX,dword ptr [EDX]
PUSH EDI
PUSH EAX
PUSH dword ptr [ESI]
PUSH EDX
CALL 0x00012410
LEA EAX,[EBX + 0xffff60aa]
PUSH EDX
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012240
ADD ESP,0x10
JMP 0x00029ec8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00029e80(int param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment (function_definition "void FUN_00029e80(int param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" primitive_type (function_declarator "FUN_00029e80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }" { (expression_statement "uVar1 = FUN_00021300(param_1);" (assignment_expression "uVar1 = FUN_00021300(param_1)" identifier = (call_expression "FUN_00021300(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }" { (expression_statement "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);" (assignment_expression "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX)" identifier = (call_expression "dcgettext(0,"%s: end of file",5,extraout_EDX)" identifier (argument_list "(0,"%s: end of file",5,extraout_EDX)" ( number_literal , (string_literal ""%s: end of file"" " string_content ") , number_literal , identifier )))) ;) }) (else_clause "else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" else (compound_statement "{\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" { (expression_statement "uVar3 = dcgettext(0,"%s: read error",5,piVar2);" (assignment_expression "uVar3 = dcgettext(0,"%s: read error",5,piVar2)" identifier = (call_expression "dcgettext(0,"%s: read error",5,piVar2)" identifier (argument_list "(0,"%s: read error",5,piVar2)" ( number_literal , (string_literal ""%s: read error"" " string_content ") , number_literal , identifier )))) ;) }))) comment (expression_statement "error(DAT_0003b2cc,*piVar2,uVar3,uVar1);" (call_expression "error(DAT_0003b2cc,*piVar2,uVar3,uVar1)" identifier (argument_list "(DAT_0003b2cc,*piVar2,uVar3,uVar1)" ( identifier , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid randread_error(void *file_name)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (file_name != (void *)0x0) {\n    pcVar1 = quote((char *)file_name);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(exit_failure,*piVar2,uVar3,pcVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment comment (function_definition "void randread_error(void *file_name)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (file_name != (void *)0x0) {\n    pcVar1 = quote((char *)file_name);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(exit_failure,*piVar2,uVar3,pcVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" primitive_type (function_declarator "randread_error(void *file_name)" identifier (parameter_list "(void *file_name)" ( (parameter_declaration "void *file_name" primitive_type (pointer_declarator "*file_name" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (file_name != (void *)0x0) {\n    pcVar1 = quote((char *)file_name);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(exit_failure,*piVar2,uVar3,pcVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (if_statement "if (file_name != (void *)0x0) {\n    pcVar1 = quote((char *)file_name);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(exit_failure,*piVar2,uVar3,pcVar1);\n  }" if (parenthesized_expression "(file_name != (void *)0x0)" ( (binary_expression "file_name != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = quote((char *)file_name);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    /* WARNING: Subroutine does not return */\n    error(exit_failure,*piVar2,uVar3,pcVar1);\n  }" { (expression_statement "pcVar1 = quote((char *)file_name);" (assignment_expression "pcVar1 = quote((char *)file_name)" identifier = (call_expression "quote((char *)file_name)" identifier (argument_list "((char *)file_name)" ( (cast_expression "(char *)file_name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }" { (expression_statement "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);" (assignment_expression "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX)" identifier = (call_expression "dcgettext(0,"%s: end of file",5,extraout_EDX)" identifier (argument_list "(0,"%s: end of file",5,extraout_EDX)" ( number_literal , (string_literal ""%s: end of file"" " string_content ") , number_literal , identifier )))) ;) }) (else_clause "else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" else (compound_statement "{\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" { (expression_statement "uVar3 = dcgettext(0,"%s: read error",5,piVar2);" (assignment_expression "uVar3 = dcgettext(0,"%s: read error",5,piVar2)" identifier = (call_expression "dcgettext(0,"%s: read error",5,piVar2)" identifier (argument_list "(0,"%s: read error",5,piVar2)" ( number_literal , (string_literal ""%s: read error"" " string_content ") , number_literal , identifier )))) ;) }))) comment (expression_statement "error(exit_failure,*piVar2,uVar3,pcVar1);" (call_expression "error(exit_failure,*piVar2,uVar3,pcVar1)" identifier (argument_list "(exit_failure,*piVar2,uVar3,pcVar1)" ( identifier , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00029e80(int param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    \n  abort();\n}\n\n" (function_definition "void FUN_00029e80(int param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    \n  abort();\n}" primitive_type (function_declarator "FUN_00029e80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    \n  abort();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }" { (expression_statement "uVar1 = FUN_00021300(param_1);" (assignment_expression "uVar1 = FUN_00021300(param_1)" identifier = (call_expression "FUN_00021300(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }" { (expression_statement "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);" (assignment_expression "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX)" identifier = (call_expression "dcgettext(0,"%s: end of file",5,extraout_EDX)" identifier (argument_list "(0,"%s: end of file",5,extraout_EDX)" ( number_literal , (string_literal ""%s: end of file"" " string_content ") , number_literal , identifier )))) ;) }) (else_clause "else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" else (compound_statement "{\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" { (expression_statement "uVar3 = dcgettext(0,"%s: read error",5,piVar2);" (assignment_expression "uVar3 = dcgettext(0,"%s: read error",5,piVar2)" identifier = (call_expression "dcgettext(0,"%s: read error",5,piVar2)" identifier (argument_list "(0,"%s: read error",5,piVar2)" ( number_literal , (string_literal ""%s: read error"" " string_content ") , number_literal , identifier )))) ;) }))) (expression_statement "error(DAT_0003b2cc,*piVar2,uVar3,uVar1);" (call_expression "error(DAT_0003b2cc,*piVar2,uVar3,uVar1)" identifier (argument_list "(DAT_0003b2cc,*piVar2,uVar3,uVar1)" ( identifier , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT , IDENT )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00029e80(int param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    \n  abort();\n}" (primitive_type "void") (function_declarator "FUN_00029e80(int param_1)" (identifier "FUN_00029e80") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 extraout_EDX;\n  \n  if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }\n                    \n  abort();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (if_statement "if (param_1 != 0) {\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_00021300(param_1);\n    piVar2 = __errno_location();\n    if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }\n                    \n    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);\n  }" ({ "{") (expression_statement "uVar1 = FUN_00021300(param_1);" (assignment_expression "uVar1 = FUN_00021300(param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_00021300(param_1)" (identifier "FUN_00021300") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*piVar2 == 0) {\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }\n    else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" (if "if") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);\n    }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);" (assignment_expression "uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"%s: end of file",5,extraout_EDX)" (identifier "dcgettext") (argument_list "(0,"%s: end of file",5,extraout_EDX)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: end of file"" (" """) (string_content "%s: end of file") (" """)) (, ",") (number_literal "5") (, ",") (identifier "extraout_EDX") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" (else "else") (compound_statement "{\n      uVar3 = dcgettext(0,"%s: read error",5,piVar2);\n    }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"%s: read error",5,piVar2);" (assignment_expression "uVar3 = dcgettext(0,"%s: read error",5,piVar2)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"%s: read error",5,piVar2)" (identifier "dcgettext") (argument_list "(0,"%s: read error",5,piVar2)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: read error"" (" """) (string_content "%s: read error") (" """)) (, ",") (number_literal "5") (, ",") (identifier "piVar2") () ")")))) (; ";")) (} "}")))) (expression_statement "error(DAT_0003b2cc,*piVar2,uVar3,uVar1);" (call_expression "error(DAT_0003b2cc,*piVar2,uVar3,uVar1)" (identifier "error") (argument_list "(DAT_0003b2cc,*piVar2,uVar3,uVar1)" (( "(") (identifier "DAT_0003b2cc") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (identifier "uVar3") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(void *var_1)

{
  char *pcVar1;
  int *piVar2;
  type_1 uVar3;
  type_1 extraout_EDX;
  
  if (var_1 != (void *)0x0) {
    pcVar1 = var_2((char *)var_1);
    piVar2 = var_3();
    if (*piVar2 == 0) {
      uVar3 = var_4(0,"%s: end of file",5,extraout_EDX);
    }
    else {
      uVar3 = var_4(0,"%s: read error",5,piVar2);
    }
                    /* WARNING: Subroutine does not return */
    var_5(exit_failure,*piVar2,uVar3,pcVar1);
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal) (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(int param_1)

{
  undefined4 uVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 extraout_EDX;
  
  if (param_1 != 0) {
    uVar1 = FUN_00021300(param_1);
    piVar2 = __errno_location();
    if (*piVar2 == 0) {
      uVar3 = dcgettext(0,"%s: end of file",5,extraout_EDX);
    }
    else {
      uVar3 = dcgettext(0,"%s: read error",5,piVar2);
    }
                    /* WARNING: Subroutine does not return */
    error(DAT_0003b2cc,*piVar2,uVar3,uVar1);
  }
                    /* WARNING: Subroutine does not return */
  abort();
}

