
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void pfl_closing(Plug plug,char *error_msg,int error_code,int calling_back)

{
  if (plug != (Plug)0x0) {
    (**(code **)(plug[2]->log + 4))(plug[2]);
    safefree(plug[4]);
    safefree(plug);
  }
  return;
}



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

void FUN_0001e870(int param_1)

{
  if (param_1 != 0) {
    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));
    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));
    FUN_0001dd30(param_1);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xb1519
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x0001e8a8
MOV EAX,dword ptr [ESI + 0x8]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x4]
POP EAX
PUSH dword ptr [ESI + 0x10]
CALL 0x0001dd30
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e870(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001e870(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001e870(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" ( (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8))" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_0001dd30(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001dd30(param_1);" (call_expression "FUN_0001dd30(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/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid pfl_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  if (plug != (Plug)0x0) {\n    (**(code **)(plug[2]->log + 4))(plug[2]);\n    safefree(plug[4]);\n    safefree(plug);\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void pfl_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  if (plug != (Plug)0x0) {\n    (**(code **)(plug[2]->log + 4))(plug[2]);\n    safefree(plug[4]);\n    safefree(plug);\n  }\n  return;\n}" primitive_type (function_declarator "pfl_closing(Plug plug,char *error_msg,int error_code,int calling_back)" identifier (parameter_list "(Plug plug,char *error_msg,int error_code,int calling_back)" ( (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "char *error_msg" primitive_type (pointer_declarator "*error_msg" * identifier)) , (parameter_declaration "int error_code" primitive_type identifier) , (parameter_declaration "int calling_back" primitive_type identifier) ))) (compound_statement "{\n  if (plug != (Plug)0x0) {\n    (**(code **)(plug[2]->log + 4))(plug[2]);\n    safefree(plug[4]);\n    safefree(plug);\n  }\n  return;\n}" { (if_statement "if (plug != (Plug)0x0) {\n    (**(code **)(plug[2]->log + 4))(plug[2]);\n    safefree(plug[4]);\n    safefree(plug);\n  }" if (parenthesized_expression "(plug != (Plug)0x0)" ( (binary_expression "plug != (Plug)0x0" identifier != (cast_expression "(Plug)0x0" ( (type_descriptor "Plug" type_identifier) ) number_literal)) )) (compound_statement "{\n    (**(code **)(plug[2]->log + 4))(plug[2]);\n    safefree(plug[4]);\n    safefree(plug);\n  }" { (expression_statement "(**(code **)(plug[2]->log + 4))(plug[2]);" (call_expression "(**(code **)(plug[2]->log + 4))(plug[2])" (parenthesized_expression "(**(code **)(plug[2]->log + 4))" ( (pointer_expression "**(code **)(plug[2]->log + 4)" * (pointer_expression "*(code **)(plug[2]->log + 4)" * (cast_expression "(code **)(plug[2]->log + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(plug[2]->log + 4)" ( (binary_expression "plug[2]->log + 4" (field_expression "plug[2]->log" (subscript_expression "plug[2]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "(plug[2])" ( (subscript_expression "plug[2]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(plug[4]);" (call_expression "safefree(plug[4])" identifier (argument_list "(plug[4])" ( (subscript_expression "plug[4]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(plug);" (call_expression "safefree(plug)" identifier (argument_list "(plug)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001e870(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001e870(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001e870(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" ( (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8))" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_0001dd30(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001dd30(param_1);" (call_expression "FUN_0001dd30(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 IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != 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 (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (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 (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001e870(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001e870(int param_1)" (identifier "FUN_0001e870") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));\n    FUN_0001dd30(param_1);\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" (( "(") (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 8))" (( "(") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_0001dd30(*(undefined4 *)(param_1 + 0x10))" (identifier "FUN_0001dd30") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(param_1);" (call_expression "FUN_0001dd30(param_1)" (identifier "FUN_0001dd30") (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 */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 var_1,char *error_msg,int error_code,int calling_back)

{
  if (var_1 != (type_1)0x0) {
    (**(type_2 **)(var_1[2]->log + 4))(var_1[2]);
    var_2(var_1[4]);
    var_2(var_1);
  }
  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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))))) (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) {
    (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));
    FUN_0001dd30(*(undefined4 *)(param_1 + 0x10));
    FUN_0001dd30(param_1);
  }
  return;
}

