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

void free_callback(void *cls)

{
  close(*(int *)((int)cls + 0x58));
  *(undefined4 *)((int)cls + 0x58) = 0xffffffff;
  return;
}



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

void FUN_0001e4b0(int param_1)

{
  close(*(int *)(param_1 + 0x58));
  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00012570
ADD EBX,0x11b49
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH dword ptr [ESI + 0x58]
CALL 0x00012330
MOV dword ptr [ESI + 0x58],0xffffffff
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e4b0(int param_1)\n\n{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}\n\n" comment (function_definition "void FUN_0001e4b0(int param_1)\n\n{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "FUN_0001e4b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}" { (expression_statement "close(*(int *)(param_1 + 0x58));" (call_expression "close(*(int *)(param_1 + 0x58))" identifier (argument_list "(*(int *)(param_1 + 0x58))" ( (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (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 free_callback(void *cls)\n\n{\n  close(*(int *)((int)cls + 0x58));\n  *(undefined4 *)((int)cls + 0x58) = 0xffffffff;\n  return;\n}\n\n" comment comment (function_definition "void free_callback(void *cls)\n\n{\n  close(*(int *)((int)cls + 0x58));\n  *(undefined4 *)((int)cls + 0x58) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "free_callback(void *cls)" identifier (parameter_list "(void *cls)" ( (parameter_declaration "void *cls" primitive_type (pointer_declarator "*cls" * identifier)) ))) (compound_statement "{\n  close(*(int *)((int)cls + 0x58));\n  *(undefined4 *)((int)cls + 0x58) = 0xffffffff;\n  return;\n}" { (expression_statement "close(*(int *)((int)cls + 0x58));" (call_expression "close(*(int *)((int)cls + 0x58))" identifier (argument_list "(*(int *)((int)cls + 0x58))" ( (pointer_expression "*(int *)((int)cls + 0x58)" * (cast_expression "(int *)((int)cls + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cls + 0x58)" ( (binary_expression "(int)cls + 0x58" (cast_expression "(int)cls" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)((int)cls + 0x58) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)cls + 0x58) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)cls + 0x58)" * (cast_expression "(undefined4 *)((int)cls + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cls + 0x58)" ( (binary_expression "(int)cls + 0x58" (cast_expression "(int)cls" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001e4b0(int param_1)\n\n{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void FUN_0001e4b0(int param_1)\n\n{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "FUN_0001e4b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}" { (expression_statement "close(*(int *)(param_1 + 0x58));" (call_expression "close(*(int *)(param_1 + 0x58))" identifier (argument_list "(*(int *)(param_1 + 0x58))" ( (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (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 ;) })))
(function_definition "void FUN_0001e4b0(int param_1)\n\n{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001e4b0(int param_1)" (identifier "FUN_0001e4b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  close(*(int *)(param_1 + 0x58));\n  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;\n  return;\n}" ({ "{") (expression_statement "close(*(int *)(param_1 + 0x58));" (call_expression "close(*(int *)(param_1 + 0x58))" (identifier "close") (argument_list "(*(int *)(param_1 + 0x58))" (( "(") (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (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(void *cls)

{
  var_1(*(int *)((int)cls + 0x58));
  *(type_1 *)((int)cls + 0x58) = 0xffffffff;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (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))))

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

void MASKED(int param_1)

{
  close(*(int *)(param_1 + 0x58));
  *(undefined4 *)(param_1 + 0x58) = 0xffffffff;
  return;
}

