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

ld_plugin_status register_all_symbols_read(ld_plugin_all_symbols_read_handler handler)

{
  if (called_plugin != (plugin_t *)0x0) {
    called_plugin->all_symbols_read_handler = handler;
    return LDPS_OK;
  }
  info_assert("../../ld/plugin.c",0x1d5);
  called_plugin->all_symbols_read_handler = handler;
  return LDPS_OK;
}



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

undefined4 FUN_00035070(undefined4 param_1)

{
  if (DAT_00093a88 != 0) {
    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;
    return 0;
  }
  FUN_00032bf0("../../ld/plugin.c",0x1d5);
  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;
  return 0;
}


PUSH EBX
CALL 0x00015a30
ADD EBX,0x5df8a
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0xa88]
TEST EAX,EAX
JZ 0x000350a0
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0x18],EDX
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
SUB ESP,0x8
LEA EAX,[EBX + 0xfffbe05f]
PUSH 0x1d5
PUSH EAX
CALL 0x00032bf0
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0xa88]
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0x18],EDX
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00035070(undefined4 param_1)\n\n{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00035070(undefined4 param_1)\n\n{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}" type_identifier (function_declarator "FUN_00035070(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}" { (if_statement "if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00093a88 != 0)" ( (binary_expression "DAT_00093a88 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1;" (assignment_expression "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1" (pointer_expression "*(undefined4 *)(DAT_00093a88 + 0x18)" * (cast_expression "(undefined4 *)(DAT_00093a88 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00093a88 + 0x18)" ( (binary_expression "DAT_00093a88 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_00032bf0("../../ld/plugin.c",0x1d5);" (call_expression "FUN_00032bf0("../../ld/plugin.c",0x1d5)" identifier (argument_list "("../../ld/plugin.c",0x1d5)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) (expression_statement "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1;" (assignment_expression "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1" (pointer_expression "*(undefined4 *)(DAT_00093a88 + 0x18)" * (cast_expression "(undefined4 *)(DAT_00093a88 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00093a88 + 0x18)" ( (binary_expression "DAT_00093a88 + 0x18" identifier + number_literal) )))) = identifier) ;) (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 register_all_symbols_read(ld_plugin_all_symbols_read_handler handler)\n\n{\n  if (called_plugin != (plugin_t *)0x0) {\n    called_plugin->all_symbols_read_handler = handler;\n    return LDPS_OK;\n  }\n  info_assert("../../ld/plugin.c",0x1d5);\n  called_plugin->all_symbols_read_handler = handler;\n  return LDPS_OK;\n}\n\n" comment comment (function_definition "ld_plugin_status register_all_symbols_read(ld_plugin_all_symbols_read_handler handler)\n\n{\n  if (called_plugin != (plugin_t *)0x0) {\n    called_plugin->all_symbols_read_handler = handler;\n    return LDPS_OK;\n  }\n  info_assert("../../ld/plugin.c",0x1d5);\n  called_plugin->all_symbols_read_handler = handler;\n  return LDPS_OK;\n}" type_identifier (function_declarator "register_all_symbols_read(ld_plugin_all_symbols_read_handler handler)" identifier (parameter_list "(ld_plugin_all_symbols_read_handler handler)" ( (parameter_declaration "ld_plugin_all_symbols_read_handler handler" type_identifier identifier) ))) (compound_statement "{\n  if (called_plugin != (plugin_t *)0x0) {\n    called_plugin->all_symbols_read_handler = handler;\n    return LDPS_OK;\n  }\n  info_assert("../../ld/plugin.c",0x1d5);\n  called_plugin->all_symbols_read_handler = handler;\n  return LDPS_OK;\n}" { (if_statement "if (called_plugin != (plugin_t *)0x0) {\n    called_plugin->all_symbols_read_handler = handler;\n    return LDPS_OK;\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    called_plugin->all_symbols_read_handler = handler;\n    return LDPS_OK;\n  }" { (expression_statement "called_plugin->all_symbols_read_handler = handler;" (assignment_expression "called_plugin->all_symbols_read_handler = handler" (field_expression "called_plugin->all_symbols_read_handler" identifier -> field_identifier) = identifier) ;) (return_statement "return LDPS_OK;" return identifier ;) })) (expression_statement "info_assert("../../ld/plugin.c",0x1d5);" (call_expression "info_assert("../../ld/plugin.c",0x1d5)" identifier (argument_list "("../../ld/plugin.c",0x1d5)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) (expression_statement "called_plugin->all_symbols_read_handler = handler;" (assignment_expression "called_plugin->all_symbols_read_handler = handler" (field_expression "called_plugin->all_symbols_read_handler" identifier -> field_identifier) = identifier) ;) (return_statement "return LDPS_OK;" return identifier ;) })))
(translation_unit "undefined4 FUN_00035070(undefined4 param_1)\n\n{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00035070(undefined4 param_1)\n\n{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}" type_identifier (function_declarator "FUN_00035070(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}" { (if_statement "if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00093a88 != 0)" ( (binary_expression "DAT_00093a88 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1;" (assignment_expression "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1" (pointer_expression "*(undefined4 *)(DAT_00093a88 + 0x18)" * (cast_expression "(undefined4 *)(DAT_00093a88 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00093a88 + 0x18)" ( (binary_expression "DAT_00093a88 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_00032bf0("../../ld/plugin.c",0x1d5);" (call_expression "FUN_00032bf0("../../ld/plugin.c",0x1d5)" identifier (argument_list "("../../ld/plugin.c",0x1d5)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) (expression_statement "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1;" (assignment_expression "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1" (pointer_expression "*(undefined4 *)(DAT_00093a88 + 0x18)" * (cast_expression "(undefined4 *)(DAT_00093a88 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00093a88 + 0x18)" ( (binary_expression "DAT_00093a88 + 0x18" identifier + number_literal) )))) = identifier) ;) (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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00035070(undefined4 param_1)\n\n{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00035070(undefined4 param_1)" (identifier "FUN_00035070") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }\n  FUN_00032bf0("../../ld/plugin.c",0x1d5);\n  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n  return 0;\n}" ({ "{") (if_statement "if (DAT_00093a88 != 0) {\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_00093a88 != 0)" (( "(") (binary_expression "DAT_00093a88 != 0" (identifier "DAT_00093a88") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;\n    return 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1;" (assignment_expression "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1" (pointer_expression "*(undefined4 *)(DAT_00093a88 + 0x18)" (* "*") (cast_expression "(undefined4 *)(DAT_00093a88 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00093a88 + 0x18)" (( "(") (binary_expression "DAT_00093a88 + 0x18" (identifier "DAT_00093a88") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_00032bf0("../../ld/plugin.c",0x1d5);" (call_expression "FUN_00032bf0("../../ld/plugin.c",0x1d5)" (identifier "FUN_00032bf0") (argument_list "("../../ld/plugin.c",0x1d5)" (( "(") (string_literal ""../../ld/plugin.c"" (" """) (string_content "../../ld/plugin.c") (" """)) (, ",") (number_literal "0x1d5") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1;" (assignment_expression "*(undefined4 *)(DAT_00093a88 + 0x18) = param_1" (pointer_expression "*(undefined4 *)(DAT_00093a88 + 0x18)" (* "*") (cast_expression "(undefined4 *)(DAT_00093a88 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00093a88 + 0x18)" (( "(") (binary_expression "DAT_00093a88 + 0x18" (identifier "DAT_00093a88") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (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(type_2 handler)

{
  if (var_1 != (type_3 *)0x0) {
    var_1->all_symbols_read_handler = handler;
    return LDPS_OK;
  }
  var_2("../../ld/plugin.c",0x1d5);
  var_1->all_symbols_read_handler = handler;
  return LDPS_OK;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (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: (identifier))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 param_1)

{
  if (DAT_00093a88 != 0) {
    *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;
    return 0;
  }
  FUN_00032bf0("../../ld/plugin.c",0x1d5);
  *(undefined4 *)(DAT_00093a88 + 0x18) = param_1;
  return 0;
}

