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

ld_plugin_status release_input_file(void *handle)

{
  if (called_plugin == (plugin_t *)0x0) {
    info_assert("../../ld/plugin.c",0x265);
  }
  if (*(int *)((int)handle + 0x18) != -1) {
    close(*(int *)((int)handle + 0x18));
    *(undefined4 *)((int)handle + 0x18) = 0xffffffff;
  }
  return LDPS_OK;
}



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

undefined4 FUN_00033a70(int param_1)

{
  if (DAT_00094b68 == 0) {
    FUN_00031740("../../ld/plugin.c",0x265);
  }
  if (*(int *)(param_1 + 0x18) != -1) {
    close(*(int *)(param_1 + 0x18));
    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;
  }
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x00015a10
ADD EBX,0x60589
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX + 0xb68]
TEST EAX,EAX
JZ 0x00033ab8
MOV EAX,dword ptr [ESI + 0x18]
CMP EAX,-0x1
JZ 0x00033aa9
SUB ESP,0xc
PUSH EAX
CALL 0x00014bd0
MOV dword ptr [ESI + 0x18],0xffffffff
ADD ESP,0x10
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
SUB ESP,0x8
LEA EAX,[EBX + 0xfffbe037]
PUSH 0x265
PUSH EAX
CALL 0x00031740
ADD ESP,0x10
JMP 0x00033a8e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00033a70(int param_1)\n\n{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00033a70(int param_1)\n\n{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00033a70(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}" { (if_statement "if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }" if (parenthesized_expression "(DAT_00094b68 == 0)" ( (binary_expression "DAT_00094b68 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }" { (expression_statement "FUN_00031740("../../ld/plugin.c",0x265);" (call_expression "FUN_00031740("../../ld/plugin.c",0x265)" identifier (argument_list "("../../ld/plugin.c",0x265)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) != -1)" ( (binary_expression "*(int *)(param_1 + 0x18) != -1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)(param_1 + 0x18));" (call_expression "close(*(int *)(param_1 + 0x18))" identifier (argument_list "(*(int *)(param_1 + 0x18))" ( (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nld_plugin_status release_input_file(void *handle)\n\n{\n  if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)((int)handle + 0x18) != -1) {\n    close(*(int *)((int)handle + 0x18));\n    *(undefined4 *)((int)handle + 0x18) = 0xffffffff;\n  }\n  return LDPS_OK;\n}\n\n" comment comment (function_definition "ld_plugin_status release_input_file(void *handle)\n\n{\n  if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)((int)handle + 0x18) != -1) {\n    close(*(int *)((int)handle + 0x18));\n    *(undefined4 *)((int)handle + 0x18) = 0xffffffff;\n  }\n  return LDPS_OK;\n}" type_identifier (function_declarator "release_input_file(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)((int)handle + 0x18) != -1) {\n    close(*(int *)((int)handle + 0x18));\n    *(undefined4 *)((int)handle + 0x18) = 0xffffffff;\n  }\n  return LDPS_OK;\n}" { (if_statement "if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x265);\n  }" if (parenthesized_expression "(called_plugin == (plugin_t *)0x0)" ( (binary_expression "called_plugin == (plugin_t *)0x0" identifier == (cast_expression "(plugin_t *)0x0" ( (type_descriptor "plugin_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    info_assert("../../ld/plugin.c",0x265);\n  }" { (expression_statement "info_assert("../../ld/plugin.c",0x265);" (call_expression "info_assert("../../ld/plugin.c",0x265)" identifier (argument_list "("../../ld/plugin.c",0x265)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(int *)((int)handle + 0x18) != -1) {\n    close(*(int *)((int)handle + 0x18));\n    *(undefined4 *)((int)handle + 0x18) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)((int)handle + 0x18) != -1)" ( (binary_expression "*(int *)((int)handle + 0x18) != -1" (pointer_expression "*(int *)((int)handle + 0x18)" * (cast_expression "(int *)((int)handle + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x18)" ( (binary_expression "(int)handle + 0x18" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    close(*(int *)((int)handle + 0x18));\n    *(undefined4 *)((int)handle + 0x18) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)((int)handle + 0x18));" (call_expression "close(*(int *)((int)handle + 0x18))" identifier (argument_list "(*(int *)((int)handle + 0x18))" ( (pointer_expression "*(int *)((int)handle + 0x18)" * (cast_expression "(int *)((int)handle + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x18)" ( (binary_expression "(int)handle + 0x18" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)((int)handle + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)handle + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)handle + 0x18)" * (cast_expression "(undefined4 *)((int)handle + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x18)" ( (binary_expression "(int)handle + 0x18" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (return_statement "return LDPS_OK;" return identifier ;) })))
(translation_unit "undefined4 FUN_00033a70(int param_1)\n\n{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00033a70(int param_1)\n\n{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00033a70(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}" { (if_statement "if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }" if (parenthesized_expression "(DAT_00094b68 == 0)" ( (binary_expression "DAT_00094b68 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }" { (expression_statement "FUN_00031740("../../ld/plugin.c",0x265);" (call_expression "FUN_00031740("../../ld/plugin.c",0x265)" identifier (argument_list "("../../ld/plugin.c",0x265)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) != -1)" ( (binary_expression "*(int *)(param_1 + 0x18) != -1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)(param_1 + 0x18));" (call_expression "close(*(int *)(param_1 + 0x18))" identifier (argument_list "(*(int *)(param_1 + 0x18))" ( (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00033a70(int param_1)\n\n{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00033a70(int param_1)" (identifier "FUN_00033a70") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }\n  if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }\n  return 0;\n}" ({ "{") (if_statement "if (DAT_00094b68 == 0) {\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }" (if "if") (parenthesized_expression "(DAT_00094b68 == 0)" (( "(") (binary_expression "DAT_00094b68 == 0" (identifier "DAT_00094b68") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00031740("../../ld/plugin.c",0x265);\n  }" ({ "{") (expression_statement "FUN_00031740("../../ld/plugin.c",0x265);" (call_expression "FUN_00031740("../../ld/plugin.c",0x265)" (identifier "FUN_00031740") (argument_list "("../../ld/plugin.c",0x265)" (( "(") (string_literal ""../../ld/plugin.c"" (" """) (string_content "../../ld/plugin.c") (" """)) (, ",") (number_literal "0x265") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x18) != -1) {\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x18) != -1)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) != -1" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    close(*(int *)(param_1 + 0x18));\n    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  }" ({ "{") (expression_statement "close(*(int *)(param_1 + 0x18));" (call_expression "close(*(int *)(param_1 + 0x18))" (identifier "close") (argument_list "(*(int *)(param_1 + 0x18))" (( "(") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *handle)

{
  if (var_1 == (type_2 *)0x0) {
    var_2("../../ld/plugin.c",0x265);
  }
  if (*(int *)((int)handle + 0x18) != -1) {
    var_3(*(int *)((int)handle + 0x18));
    *(type_3 *)((int)handle + 0x18) = 0xffffffff;
  }
  return LDPS_OK;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1)

{
  if (DAT_00094b68 == 0) {
    FUN_00031740("../../ld/plugin.c",0x265);
  }
  if (*(int *)(param_1 + 0x18) != -1) {
    close(*(int *)(param_1 + 0x18));
    *(undefined4 *)(param_1 + 0x18) = 0xffffffff;
  }
  return 0;
}

