
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void pfd_close(PortForwarding *pf)

{
  if (pf != (PortForwarding *)0x0) {
    (*(*pf->s)->close)(pf->s);
    free_portfwd_state(pf);
    return;
  }
  return;
}



void FUN_0001bf10(int param_1)

{
  if (param_1 != 0) {
    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));
    FUN_0001baf0();
    return;
  }
  return;
}


PUSH EBX
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x10]
TEST EBX,EBX
JZ 0x0001bf38
MOV EAX,dword ptr [EBX + 0xc]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x4]
MOV EAX,EBX
ADD ESP,0x18
POP EBX
JMP 0x0001baf0
ADD ESP,0x8
POP EBX
RET
(translation_unit "void FUN_0001bf10(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001bf10(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001bf10(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 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" ( (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001baf0();" (call_expression "FUN_0001baf0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid pfd_close(PortForwarding *pf)\n\n{\n  if (pf != (PortForwarding *)0x0) {\n    (*(*pf->s)->close)(pf->s);\n    free_portfwd_state(pf);\n    return;\n  }\n  return;\n}\n\n" comment comment (function_definition "void pfd_close(PortForwarding *pf)\n\n{\n  if (pf != (PortForwarding *)0x0) {\n    (*(*pf->s)->close)(pf->s);\n    free_portfwd_state(pf);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "pfd_close(PortForwarding *pf)" identifier (parameter_list "(PortForwarding *pf)" ( (parameter_declaration "PortForwarding *pf" type_identifier (pointer_declarator "*pf" * identifier)) ))) (compound_statement "{\n  if (pf != (PortForwarding *)0x0) {\n    (*(*pf->s)->close)(pf->s);\n    free_portfwd_state(pf);\n    return;\n  }\n  return;\n}" { (if_statement "if (pf != (PortForwarding *)0x0) {\n    (*(*pf->s)->close)(pf->s);\n    free_portfwd_state(pf);\n    return;\n  }" if (parenthesized_expression "(pf != (PortForwarding *)0x0)" ( (binary_expression "pf != (PortForwarding *)0x0" identifier != (cast_expression "(PortForwarding *)0x0" ( (type_descriptor "PortForwarding *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(*pf->s)->close)(pf->s);\n    free_portfwd_state(pf);\n    return;\n  }" { (expression_statement "(*(*pf->s)->close)(pf->s);" (call_expression "(*(*pf->s)->close)(pf->s)" (parenthesized_expression "(*(*pf->s)->close)" ( (pointer_expression "*(*pf->s)->close" * (field_expression "(*pf->s)->close" (parenthesized_expression "(*pf->s)" ( (pointer_expression "*pf->s" * (field_expression "pf->s" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(pf->s)" ( (field_expression "pf->s" identifier -> field_identifier) ))) ;) (expression_statement "free_portfwd_state(pf);" (call_expression "free_portfwd_state(pf)" identifier (argument_list "(pf)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001bf10(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001bf10(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001bf10(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 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" ( (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001baf0();" (call_expression "FUN_0001baf0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (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 ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001bf10(int param_1)\n\n{\n  if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001bf10(int param_1)" (identifier "FUN_0001bf10") (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 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\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 + 0xc) + 4))(*(int **)(param_1 + 0xc));\n    FUN_0001baf0();\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0001baf0();" (call_expression "FUN_0001baf0()" (identifier "FUN_0001baf0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *var_1)

{
  if (var_1 != (type_1 *)0x0) {
    (*(*var_1->s)->close)(var_1->s);
    var_2(var_1);
    return;
  }
  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))) (return_statement))) (return_statement))))

void MASKED(int param_1)

{
  if (param_1 != 0) {
    (**(code **)(**(int **)(param_1 + 0xc) + 4))(*(int **)(param_1 + 0xc));
    FUN_0001baf0();
    return;
  }
  return;
}

