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

void ldisc_free(void *handle)

{
                    /* WARNING: Load size is inaccurate */
  if (*handle != 0) {
    *(undefined4 *)(*handle + 0x1084) = 0;
  }
  if (*(int *)((int)handle + 4) != 0) {
    (**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);
  }
  if (*(void **)((int)handle + 0x24) != (void *)0x0) {
    safefree(*(void **)((int)handle + 0x24));
  }
  safefree(handle);
  return;
}



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

void FUN_00029960(int *param_1)

{
  if (*param_1 != 0) {
    *(undefined4 *)(*param_1 + 0x1084) = 0;
  }
  if (param_1[1] != 0) {
    (**(code **)(param_1[1] + 0x30))(param_1[2],0);
  }
  if (param_1[9] != 0) {
    FUN_000301a0(param_1[9]);
  }
  FUN_000301a0(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x8be7d
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x00029984
MOV dword ptr [EAX + 0x1084],0x0
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JZ 0x00029999
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [ESI + 0x8]
CALL dword ptr [EAX + 0x30]
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x24]
TEST EAX,EAX
JZ 0x000299ac
SUB ESP,0xc
PUSH EAX
CALL 0x000301a0
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x000301a0
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_00029960(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00029960(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00029960(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}" { (if_statement "if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }" { (expression_statement "*(undefined4 *)(*param_1 + 0x1084) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + 0x1084) = 0" (pointer_expression "*(undefined4 *)(*param_1 + 0x1084)" * (cast_expression "(undefined4 *)(*param_1 + 0x1084)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1084)" ( (binary_expression "*param_1 + 0x1084" (pointer_expression "*param_1" * identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }" { (expression_statement "(**(code **)(param_1[1] + 0x30))(param_1[2],0);" (call_expression "(**(code **)(param_1[1] + 0x30))(param_1[2],0)" (parenthesized_expression "(**(code **)(param_1[1] + 0x30))" ( (pointer_expression "**(code **)(param_1[1] + 0x30)" * (pointer_expression "*(code **)(param_1[1] + 0x30)" * (cast_expression "(code **)(param_1[1] + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[1] + 0x30)" ( (binary_expression "param_1[1] + 0x30" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal) ))))) )) (argument_list "(param_1[2],0)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (if_statement "if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000301a0(param_1[9]);\n  }" { (expression_statement "FUN_000301a0(param_1[9]);" (call_expression "FUN_000301a0(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_000301a0(param_1);" (call_expression "FUN_000301a0(param_1)" identifier (argument_list "(param_1)" ( 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 ldisc_free(void *handle)\n\n{\n                    /* WARNING: Load size is inaccurate */\n  if (*handle != 0) {\n    *(undefined4 *)(*handle + 0x1084) = 0;\n  }\n  if (*(int *)((int)handle + 4) != 0) {\n    (**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);\n  }\n  if (*(void **)((int)handle + 0x24) != (void *)0x0) {\n    safefree(*(void **)((int)handle + 0x24));\n  }\n  safefree(handle);\n  return;\n}\n\n" comment comment (function_definition "void ldisc_free(void *handle)\n\n{\n                    /* WARNING: Load size is inaccurate */\n  if (*handle != 0) {\n    *(undefined4 *)(*handle + 0x1084) = 0;\n  }\n  if (*(int *)((int)handle + 4) != 0) {\n    (**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);\n  }\n  if (*(void **)((int)handle + 0x24) != (void *)0x0) {\n    safefree(*(void **)((int)handle + 0x24));\n  }\n  safefree(handle);\n  return;\n}" primitive_type (function_declarator "ldisc_free(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n  if (*handle != 0) {\n    *(undefined4 *)(*handle + 0x1084) = 0;\n  }\n  if (*(int *)((int)handle + 4) != 0) {\n    (**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);\n  }\n  if (*(void **)((int)handle + 0x24) != (void *)0x0) {\n    safefree(*(void **)((int)handle + 0x24));\n  }\n  safefree(handle);\n  return;\n}" { comment (if_statement "if (*handle != 0) {\n    *(undefined4 *)(*handle + 0x1084) = 0;\n  }" if (parenthesized_expression "(*handle != 0)" ( (binary_expression "*handle != 0" (pointer_expression "*handle" * identifier) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(*handle + 0x1084) = 0;\n  }" { (expression_statement "*(undefined4 *)(*handle + 0x1084) = 0;" (assignment_expression "*(undefined4 *)(*handle + 0x1084) = 0" (pointer_expression "*(undefined4 *)(*handle + 0x1084)" * (cast_expression "(undefined4 *)(*handle + 0x1084)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*handle + 0x1084)" ( (binary_expression "*handle + 0x1084" (pointer_expression "*handle" * identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)((int)handle + 4) != 0) {\n    (**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);\n  }" if (parenthesized_expression "(*(int *)((int)handle + 4) != 0)" ( (binary_expression "*(int *)((int)handle + 4) != 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);\n  }" { (expression_statement "(**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0);" (call_expression "(**(code **)(*(int *)((int)handle + 4) + 0x30))(*(undefined4 *)((int)handle + 8),0)" (parenthesized_expression "(**(code **)(*(int *)((int)handle + 4) + 0x30))" ( (pointer_expression "**(code **)(*(int *)((int)handle + 4) + 0x30)" * (pointer_expression "*(code **)(*(int *)((int)handle + 4) + 0x30)" * (cast_expression "(code **)(*(int *)((int)handle + 4) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)handle + 4) + 0x30)" ( (binary_expression "*(int *)((int)handle + 4) + 0x30" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(*(undefined4 *)((int)handle + 8),0)" ( (pointer_expression "*(undefined4 *)((int)handle + 8)" * (cast_expression "(undefined4 *)((int)handle + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal ))) ;) })) (if_statement "if (*(void **)((int)handle + 0x24) != (void *)0x0) {\n    safefree(*(void **)((int)handle + 0x24));\n  }" if (parenthesized_expression "(*(void **)((int)handle + 0x24) != (void *)0x0)" ( (binary_expression "*(void **)((int)handle + 0x24) != (void *)0x0" (pointer_expression "*(void **)((int)handle + 0x24)" * (cast_expression "(void **)((int)handle + 0x24)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x24)" ( (binary_expression "(int)handle + 0x24" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    safefree(*(void **)((int)handle + 0x24));\n  }" { (expression_statement "safefree(*(void **)((int)handle + 0x24));" (call_expression "safefree(*(void **)((int)handle + 0x24))" identifier (argument_list "(*(void **)((int)handle + 0x24))" ( (pointer_expression "*(void **)((int)handle + 0x24)" * (cast_expression "(void **)((int)handle + 0x24)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x24)" ( (binary_expression "(int)handle + 0x24" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "safefree(handle);" (call_expression "safefree(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00029960(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00029960(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00029960(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}" { (if_statement "if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }" { (expression_statement "*(undefined4 *)(*param_1 + 0x1084) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + 0x1084) = 0" (pointer_expression "*(undefined4 *)(*param_1 + 0x1084)" * (cast_expression "(undefined4 *)(*param_1 + 0x1084)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1084)" ( (binary_expression "*param_1 + 0x1084" (pointer_expression "*param_1" * identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }" { (expression_statement "(**(code **)(param_1[1] + 0x30))(param_1[2],0);" (call_expression "(**(code **)(param_1[1] + 0x30))(param_1[2],0)" (parenthesized_expression "(**(code **)(param_1[1] + 0x30))" ( (pointer_expression "**(code **)(param_1[1] + 0x30)" * (pointer_expression "*(code **)(param_1[1] + 0x30)" * (cast_expression "(code **)(param_1[1] + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[1] + 0x30)" ( (binary_expression "param_1[1] + 0x30" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal) ))))) )) (argument_list "(param_1[2],0)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (if_statement "if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000301a0(param_1[9]);\n  }" { (expression_statement "FUN_000301a0(param_1[9]);" (call_expression "FUN_000301a0(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_000301a0(param_1);" (call_expression "FUN_000301a0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00029960(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00029960(int *param_1)" (identifier "FUN_00029960") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }\n  if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }\n  if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }\n  FUN_000301a0(param_1);\n  return;\n}" ({ "{") (if_statement "if (*param_1 != 0) {\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(*param_1 + 0x1084) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(*param_1 + 0x1084) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + 0x1084) = 0" (pointer_expression "*(undefined4 *)(*param_1 + 0x1084)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0x1084)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1084)" (( "(") (binary_expression "*param_1 + 0x1084" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1084")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (param_1[1] != 0) {\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(param_1[1] + 0x30))(param_1[2],0);\n  }" ({ "{") (expression_statement "(**(code **)(param_1[1] + 0x30))(param_1[2],0);" (call_expression "(**(code **)(param_1[1] + 0x30))(param_1[2],0)" (parenthesized_expression "(**(code **)(param_1[1] + 0x30))" (( "(") (pointer_expression "**(code **)(param_1[1] + 0x30)" (* "*") (pointer_expression "*(code **)(param_1[1] + 0x30)" (* "*") (cast_expression "(code **)(param_1[1] + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[1] + 0x30)" (( "(") (binary_expression "param_1[1] + 0x30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(param_1[2],0)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[9] != 0) {\n    FUN_000301a0(param_1[9]);\n  }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000301a0(param_1[9]);\n  }" ({ "{") (expression_statement "FUN_000301a0(param_1[9]);" (call_expression "FUN_000301a0(param_1[9])" (identifier "FUN_000301a0") (argument_list "(param_1[9])" (( "(") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000301a0(param_1);" (call_expression "FUN_000301a0(param_1)" (identifier "FUN_000301a0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (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 *handle)

{
                    /* WARNING: Load size is inaccurate */
  if (*handle != 0) {
    *(type_1 *)(*handle + 0x1084) = 0;
  }
  if (*(int *)((int)handle + 4) != 0) {
    (**(type_2 **)(*(int *)((int)handle + 4) + 0x30))(*(type_1 *)((int)handle + 8),0);
  }
  if (*(void **)((int)handle + 0x24) != (void *)0x0) {
    var_1(*(void **)((int)handle + 0x24));
  }
  var_1(handle);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

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

void MASKED(int *param_1)

{
  if (*param_1 != 0) {
    *(undefined4 *)(*param_1 + 0x1084) = 0;
  }
  if (param_1[1] != 0) {
    (**(code **)(param_1[1] + 0x30))(param_1[2],0);
  }
  if (param_1[9] != 0) {
    FUN_000301a0(param_1[9]);
  }
  FUN_000301a0(param_1);
  return;
}

