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

void fadvise(FILE *fp,fadvice_t advice)

{
  int fd;
  
  if (fp != (FILE *)0x0) {
    fd = fileno((FILE *)fp);
    fdadvise(fd,0,0,advice);
  }
  return;
}



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

void FUN_00013000(FILE *param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != (FILE *)0x0) {
    iVar1 = fileno(param_1);
    FUN_00012fc0(iVar1,0,0,0,0,param_2);
  }
  return;
}


PUSH EBX
CALL 0x000118f0
ADD EBX,0x9ffa
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00013037
SUB ESP,0xc
PUSH EAX
CALL 0x00011250
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x1c]
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH EAX
CALL 0x00012fc0
ADD ESP,0x20
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00013000(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00013000(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00013000(FILE *param_1,undefined4 param_2)" identifier (parameter_list "(FILE *param_1,undefined4 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }" if (parenthesized_expression "(param_1 != (FILE *)0x0)" ( (binary_expression "param_1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }" { (expression_statement "iVar1 = fileno(param_1);" (assignment_expression "iVar1 = fileno(param_1)" identifier = (call_expression "fileno(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "FUN_00012fc0(iVar1,0,0,0,0,param_2);" (call_expression "FUN_00012fc0(iVar1,0,0,0,0,param_2)" identifier (argument_list "(iVar1,0,0,0,0,param_2)" ( identifier , number_literal , number_literal , number_literal , number_literal , 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 fadvise(FILE *fp,fadvice_t advice)\n\n{\n  int fd;\n  \n  if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n  }\n  return;\n}\n\n" comment comment (function_definition "void fadvise(FILE *fp,fadvice_t advice)\n\n{\n  int fd;\n  \n  if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n  }\n  return;\n}" primitive_type (function_declarator "fadvise(FILE *fp,fadvice_t advice)" identifier (parameter_list "(FILE *fp,fadvice_t advice)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "fadvice_t advice" type_identifier identifier) ))) (compound_statement "{\n  int fd;\n  \n  if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n  }\n  return;\n}" { (declaration "int fd;" primitive_type identifier ;) (if_statement "if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n  }" if (parenthesized_expression "(fp != (FILE *)0x0)" ( (binary_expression "fp != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n  }" { (expression_statement "fd = fileno((FILE *)fp);" (assignment_expression "fd = fileno((FILE *)fp)" identifier = (call_expression "fileno((FILE *)fp)" identifier (argument_list "((FILE *)fp)" ( (cast_expression "(FILE *)fp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "fdadvise(fd,0,0,advice);" (call_expression "fdadvise(fd,0,0,advice)" identifier (argument_list "(fd,0,0,advice)" ( identifier , number_literal , number_literal , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00013000(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00013000(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00013000(FILE *param_1,undefined4 param_2)" identifier (parameter_list "(FILE *param_1,undefined4 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }" if (parenthesized_expression "(param_1 != (FILE *)0x0)" ( (binary_expression "param_1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }" { (expression_statement "iVar1 = fileno(param_1);" (assignment_expression "iVar1 = fileno(param_1)" identifier = (call_expression "fileno(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "FUN_00012fc0(iVar1,0,0,0,0,param_2);" (call_expression "FUN_00012fc0(iVar1,0,0,0,0,param_2)" identifier (argument_list "(iVar1,0,0,0,0,param_2)" ( identifier , number_literal , number_literal , number_literal , number_literal , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE 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 )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , LIT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00013000(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00013000(FILE *param_1,undefined4 param_2)" (identifier "FUN_00013000") (parameter_list "(FILE *param_1,undefined4 param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }" (if "if") (parenthesized_expression "(param_1 != (FILE *)0x0)" (( "(") (binary_expression "param_1 != (FILE *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = fileno(param_1);\n    FUN_00012fc0(iVar1,0,0,0,0,param_2);\n  }" ({ "{") (expression_statement "iVar1 = fileno(param_1);" (assignment_expression "iVar1 = fileno(param_1)" (identifier "iVar1") (= "=") (call_expression "fileno(param_1)" (identifier "fileno") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "FUN_00012fc0(iVar1,0,0,0,0,param_2);" (call_expression "FUN_00012fc0(iVar1,0,0,0,0,param_2)" (identifier "FUN_00012fc0") (argument_list "(iVar1,0,0,0,0,param_2)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *var_1,type_2 advice)

{
  int fd;
  
  if (var_1 != (type_1 *)0x0) {
    fd = var_2((type_1 *)var_1);
    var_3(fd,0,0,advice);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (number_literal) (identifier)))))) (return_statement))))

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

void MASKED(FILE *param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != (FILE *)0x0) {
    iVar1 = fileno(param_1);
    FUN_00012fc0(iVar1,0,0,0,0,param_2);
  }
  return;
}

