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

ssize_t open_read_close(char *filename,void *buf,size_t size)

{
}



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

int __regparm3 FUN_0001acf7(char *param_1)

{
  int __fd;
  int iVar1;
  
  __fd = open64(param_1,0);
  iVar1 = __fd;
  if (-1 < __fd) {
    iVar1 = FUN_0001aca5();
    close(__fd);
  }
  return iVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x18
CALL 0x00017640
ADD EBX,0xb5d1e
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x10],ECX
PUSH 0x0
PUSH EAX
CALL 0x00016170
MOV ESI,EAX
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001ad3e
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
CALL 0x0001aca5
MOV EDI,EAX
SUB ESP,0xc
PUSH ESI
CALL 0x000174d0
ADD ESP,0x10
MOV ESI,EDI
MOV EAX,ESI
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0001acf7(char *param_1)\n\n{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 FUN_0001acf7(char *param_1)\n\n{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001acf7(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__fd = open64(param_1,0);" (assignment_expression "__fd = open64(param_1,0)" identifier = (call_expression "open64(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = __fd;" (assignment_expression "iVar1 = __fd" identifier = identifier) ;) (if_statement "if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }" if (parenthesized_expression "(-1 < __fd)" ( (binary_expression "-1 < __fd" number_literal < identifier) )) (compound_statement "{\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }" { (expression_statement "iVar1 = FUN_0001aca5();" (assignment_expression "iVar1 = FUN_0001aca5()" identifier = (call_expression "FUN_0001aca5()" identifier (argument_list "()" ( )))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nssize_t open_read_close(char *filename,void *buf,size_t size)\n\n{\n}\n\n" comment (function_definition "ssize_t open_read_close(char *filename,void *buf,size_t size)\n\n{\n}" primitive_type (function_declarator "open_read_close(char *filename,void *buf,size_t size)" identifier (parameter_list "(char *filename,void *buf,size_t size)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "void *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int __regparm3 FUN_0001acf7(char *param_1)\n\n{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_0001acf7(char *param_1)\n\n{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001acf7(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__fd = open64(param_1,0);" (assignment_expression "__fd = open64(param_1,0)" identifier = (call_expression "open64(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = __fd;" (assignment_expression "iVar1 = __fd" identifier = identifier) ;) (if_statement "if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }" if (parenthesized_expression "(-1 < __fd)" ( (binary_expression "-1 < __fd" number_literal < identifier) )) (compound_statement "{\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }" { (expression_statement "iVar1 = FUN_0001aca5();" (assignment_expression "iVar1 = FUN_0001aca5()" identifier = (call_expression "FUN_0001aca5()" identifier (argument_list "()" ( )))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0001acf7(char *param_1)\n\n{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001acf7(char *param_1)" (identifier "FUN_0001acf7") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  \n  __fd = open64(param_1,0);\n  iVar1 = __fd;\n  if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "__fd = open64(param_1,0);" (assignment_expression "__fd = open64(param_1,0)" (identifier "__fd") (= "=") (call_expression "open64(param_1,0)" (identifier "open64") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar1 = __fd;" (assignment_expression "iVar1 = __fd" (identifier "iVar1") (= "=") (identifier "__fd")) (; ";")) (if_statement "if (-1 < __fd) {\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }" (if "if") (parenthesized_expression "(-1 < __fd)" (( "(") (binary_expression "-1 < __fd" (number_literal "-1") (< "<") (identifier "__fd")) () ")")) (compound_statement "{\n    iVar1 = FUN_0001aca5();\n    close(__fd);\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001aca5();" (assignment_expression "iVar1 = FUN_0001aca5()" (identifier "iVar1") (= "=") (call_expression "FUN_0001aca5()" (identifier "FUN_0001aca5") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

ssize_t function_1(char *filename,void *buf,size_t size)

{
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement (identifier)))))

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

int __regparm3 MASKED(char *param_1)

{
  int __fd;
  int iVar1;
  
  __fd = open64(param_1,0);
  iVar1 = __fd;
  if (-1 < __fd) {
    iVar1 = FUN_0001aca5();
    close(__fd);
  }
  return iVar1;
}

