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

void open_output(char *filename,char *mode)

{
  char *string;
  
  if (filename != (char *)0x0) {
    output = (FILE *)fopen(filename,mode);
    if ((FILE *)output == (FILE *)0x0) {
      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);
      fatal(string,filename);
    }
    return;
  }
  output = *(FILE **)PTR_stdout_00025fe4;
  return;
}



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

void FUN_00018f60(char *param_1,char *param_2)

{
  undefined4 uVar1;
  
  if (param_1 != (char *)0x0) {
    DAT_000267c0 = fopen(param_1,param_2);
    if (DAT_000267c0 == (FILE *)0x0) {
      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);
      FUN_00018230(uVar1,param_1);
    }
    return;
  }
  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00012b10
ADD EBX,0xd099
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x00018fa0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x000121b0
ADD ESP,0x10
MOV dword ptr [EBX + 0x7c0],EAX
TEST EAX,EAX
JZ 0x00018fb8
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EBX + 0xffffffe4]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBX + 0x7c0],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffffac7a]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000120f0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00018230
ADD ESP,0x10
JMP 0x00018f92
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00018f60(char *param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}\n\n" comment (function_definition "void FUN_00018f60(char *param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}" primitive_type (function_declarator "FUN_00018f60(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }" { (expression_statement "DAT_000267c0 = fopen(param_1,param_2);" (assignment_expression "DAT_000267c0 = fopen(param_1,param_2)" identifier = (call_expression "fopen(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }" if (parenthesized_expression "(DAT_000267c0 == (FILE *)0x0)" ( (binary_expression "DAT_000267c0 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }" { (expression_statement "uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);" (assignment_expression "uVar1 = dcgettext(0,"indent: can\'t create %s\n",5)" identifier = (call_expression "dcgettext(0,"indent: can\'t create %s\n",5)" identifier (argument_list "(0,"indent: can\'t create %s\n",5)" ( number_literal , (string_literal ""indent: can\'t create %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00018230(uVar1,param_1);" (call_expression "FUN_00018230(uVar1,param_1)" identifier (argument_list "(uVar1,param_1)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;" (assignment_expression "DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4" identifier = (cast_expression "(FILE *)*(undefined4 *)PTR_stdout_00025fe4" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*(undefined4 *)PTR_stdout_00025fe4" * (cast_expression "(undefined4 *)PTR_stdout_00025fe4" ( (type_descriptor "undefined4 *" 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 open_output(char *filename,char *mode)\n\n{\n  char *string;\n  \n  if (filename != (char *)0x0) {\n    output = (FILE *)fopen(filename,mode);\n    if ((FILE *)output == (FILE *)0x0) {\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }\n    return;\n  }\n  output = *(FILE **)PTR_stdout_00025fe4;\n  return;\n}\n\n" comment comment (function_definition "void open_output(char *filename,char *mode)\n\n{\n  char *string;\n  \n  if (filename != (char *)0x0) {\n    output = (FILE *)fopen(filename,mode);\n    if ((FILE *)output == (FILE *)0x0) {\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }\n    return;\n  }\n  output = *(FILE **)PTR_stdout_00025fe4;\n  return;\n}" primitive_type (function_declarator "open_output(char *filename,char *mode)" identifier (parameter_list "(char *filename,char *mode)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "char *mode" primitive_type (pointer_declarator "*mode" * identifier)) ))) (compound_statement "{\n  char *string;\n  \n  if (filename != (char *)0x0) {\n    output = (FILE *)fopen(filename,mode);\n    if ((FILE *)output == (FILE *)0x0) {\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }\n    return;\n  }\n  output = *(FILE **)PTR_stdout_00025fe4;\n  return;\n}" { (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (if_statement "if (filename != (char *)0x0) {\n    output = (FILE *)fopen(filename,mode);\n    if ((FILE *)output == (FILE *)0x0) {\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }\n    return;\n  }" if (parenthesized_expression "(filename != (char *)0x0)" ( (binary_expression "filename != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    output = (FILE *)fopen(filename,mode);\n    if ((FILE *)output == (FILE *)0x0) {\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }\n    return;\n  }" { (expression_statement "output = (FILE *)fopen(filename,mode);" (assignment_expression "output = (FILE *)fopen(filename,mode)" identifier = (cast_expression "(FILE *)fopen(filename,mode)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "fopen(filename,mode)" identifier (argument_list "(filename,mode)" ( identifier , identifier ))))) ;) (if_statement "if ((FILE *)output == (FILE *)0x0) {\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }" if (parenthesized_expression "((FILE *)output == (FILE *)0x0)" ( (binary_expression "(FILE *)output == (FILE *)0x0" (cast_expression "(FILE *)output" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);\n      fatal(string,filename);\n    }" { (expression_statement "string = (char *)dcgettext(0,"indent: can\'t create %s\n",5);" (assignment_expression "string = (char *)dcgettext(0,"indent: can\'t create %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"indent: can\'t create %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"indent: can\'t create %s\n",5)" identifier (argument_list "(0,"indent: can\'t create %s\n",5)" ( number_literal , (string_literal ""indent: can\'t create %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fatal(string,filename);" (call_expression "fatal(string,filename)" identifier (argument_list "(string,filename)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "output = *(FILE **)PTR_stdout_00025fe4;" (assignment_expression "output = *(FILE **)PTR_stdout_00025fe4" identifier = (pointer_expression "*(FILE **)PTR_stdout_00025fe4" * (cast_expression "(FILE **)PTR_stdout_00025fe4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00018f60(char *param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}\n\n" (function_definition "void FUN_00018f60(char *param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}" primitive_type (function_declarator "FUN_00018f60(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }" { (expression_statement "DAT_000267c0 = fopen(param_1,param_2);" (assignment_expression "DAT_000267c0 = fopen(param_1,param_2)" identifier = (call_expression "fopen(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }" if (parenthesized_expression "(DAT_000267c0 == (FILE *)0x0)" ( (binary_expression "DAT_000267c0 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }" { (expression_statement "uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);" (assignment_expression "uVar1 = dcgettext(0,"indent: can\'t create %s\n",5)" identifier = (call_expression "dcgettext(0,"indent: can\'t create %s\n",5)" identifier (argument_list "(0,"indent: can\'t create %s\n",5)" ( number_literal , (string_literal ""indent: can\'t create %s\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00018230(uVar1,param_1);" (call_expression "FUN_00018230(uVar1,param_1)" identifier (argument_list "(uVar1,param_1)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;" (assignment_expression "DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4" identifier = (cast_expression "(FILE *)*(undefined4 *)PTR_stdout_00025fe4" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*(undefined4 *)PTR_stdout_00025fe4" * (cast_expression "(undefined4 *)PTR_stdout_00025fe4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)))) ;) (return_statement return ;) })))
(function_definition "void FUN_00018f60(char *param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00018f60(char *param_1,char *param_2)" (identifier "FUN_00018f60") (parameter_list "(char *param_1,char *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }\n  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != (char *)0x0) {\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_000267c0 = fopen(param_1,param_2);\n    if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }\n    return;\n  }" ({ "{") (expression_statement "DAT_000267c0 = fopen(param_1,param_2);" (assignment_expression "DAT_000267c0 = fopen(param_1,param_2)" (identifier "DAT_000267c0") (= "=") (call_expression "fopen(param_1,param_2)" (identifier "fopen") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (DAT_000267c0 == (FILE *)0x0) {\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }" (if "if") (parenthesized_expression "(DAT_000267c0 == (FILE *)0x0)" (( "(") (binary_expression "DAT_000267c0 == (FILE *)0x0" (identifier "DAT_000267c0") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);\n      FUN_00018230(uVar1,param_1);\n    }" ({ "{") (expression_statement "uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);" (assignment_expression "uVar1 = dcgettext(0,"indent: can\'t create %s\n",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"indent: can\'t create %s\n",5)" (identifier "dcgettext") (argument_list "(0,"indent: can\'t create %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""indent: can\'t create %s\n"" (" """) (string_content "indent: can") (escape_sequence "\'") (string_content "t create %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00018230(uVar1,param_1);" (call_expression "FUN_00018230(uVar1,param_1)" (identifier "FUN_00018230") (argument_list "(uVar1,param_1)" (( "(") (identifier "uVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;" (assignment_expression "DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4" (identifier "DAT_000267c0") (= "=") (cast_expression "(FILE *)*(undefined4 *)PTR_stdout_00025fe4" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*(undefined4 *)PTR_stdout_00025fe4" (* "*") (cast_expression "(undefined4 *)PTR_stdout_00025fe4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_00025fe4"))))) (; ";")) (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 *var_1,char *mode)

{
  char *string;
  
  if (var_1 != (char *)0x0) {
    output = (type_1 *)var_2(var_1,mode);
    if ((type_1 *)output == (type_1 *)0x0) {
      string = (char *)var_3(0,"indent: can\'t create %s\n",5);
      var_4(string,var_1);
    }
    return;
  }
  output = *(type_1 **)PTR_stdout_00025fe4;
  return;
}


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

{
  undefined4 uVar1;
  
  if (param_1 != (char *)0x0) {
    DAT_000267c0 = fopen(param_1,param_2);
    if (DAT_000267c0 == (FILE *)0x0) {
      uVar1 = dcgettext(0,"indent: can\'t create %s\n",5);
      FUN_00018230(uVar1,param_1);
    }
    return;
  }
  DAT_000267c0 = (FILE *)*(undefined4 *)PTR_stdout_00025fe4;
  return;
}

