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

void file_error(char *filename)

{
  int *piVar1;
  char *pcVar2;
  
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  report_error("%s: %s",filename,pcVar2);
  return;
}



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

void file_error(undefined4 param_1)

{
  int *piVar1;
  char *pcVar2;
  
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  report_error("%s: %s",param_1,pcVar2);
  return;
}


PUSH EBX
CALL 0x000312b0
ADD EBX,0x10f87a
SUB ESP,0x8
CALL 0x0002e8b0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0002e670
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffb3fb6]
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00062690
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid file_error(undefined4 param_1)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}\n\n" comment (function_definition "void file_error(undefined4 param_1)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}" primitive_type (function_declarator "file_error(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "report_error("%s: %s",param_1,pcVar2);" (call_expression "report_error("%s: %s",param_1,pcVar2)" identifier (argument_list "("%s: %s",param_1,pcVar2)" ( (string_literal ""%s: %s"" " string_content ") , identifier , 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 file_error(char *filename)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",filename,pcVar2);\n  return;\n}\n\n" comment comment (function_definition "void file_error(char *filename)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",filename,pcVar2);\n  return;\n}" primitive_type (function_declarator "file_error(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",filename,pcVar2);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "report_error("%s: %s",filename,pcVar2);" (call_expression "report_error("%s: %s",filename,pcVar2)" identifier (argument_list "("%s: %s",filename,pcVar2)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void file_error(undefined4 param_1)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}\n\n" (function_definition "void file_error(undefined4 param_1)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}" primitive_type (function_declarator "file_error(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "report_error("%s: %s",param_1,pcVar2);" (call_expression "report_error("%s: %s",param_1,pcVar2)" identifier (argument_list "("%s: %s",param_1,pcVar2)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void file_error(undefined4 param_1)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}" (primitive_type "void") (function_declarator "file_error(undefined4 param_1)" (identifier "file_error") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  report_error("%s: %s",param_1,pcVar2);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" (identifier "pcVar2") (= "=") (call_expression "strerror(*piVar1)" (identifier "strerror") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")")))) (; ";")) (expression_statement "report_error("%s: %s",param_1,pcVar2);" (call_expression "report_error("%s: %s",param_1,pcVar2)" (identifier "report_error") (argument_list "("%s: %s",param_1,pcVar2)" (( "(") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (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(char *filename)

{
  int *piVar1;
  char *pcVar2;
  
  piVar1 = var_1();
  pcVar2 = var_2(*piVar1);
  var_3("%s: %s",filename,pcVar2);
  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 (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier)))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  int *piVar1;
  char *pcVar2;
  
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  report_error("%s: %s",param_1,pcVar2);
  return;
}

