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

int conn_upkeep(connectdata *conn,void *param)

{
  _func_uint_connectdata_ptr_uint *p_Var1;
  
  p_Var1 = conn->handler->connection_check;
  if (p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0) {
    (*p_Var1)(conn,2);
  }
  return 0;
}



undefined4 FUN_0002ecd0(int param_1)

{
  code *pcVar1;
  
  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);
  if (pcVar1 != (code *)0x0) {
    (*pcVar1)(param_1,2);
  }
  return 0;
}


SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX + 0x27c]
MOV EAX,dword ptr [EAX + 0x38]
TEST EAX,EAX
JZ 0x0002ecef
SUB ESP,0x8
PUSH 0x2
PUSH EDX
CALL EAX
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0xc
RET
(translation_unit "undefined4 FUN_0002ecd0(int param_1)\n\n{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0002ecd0(int param_1)\n\n{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0002ecd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);" (assignment_expression "pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38)" identifier = (pointer_expression "*(code **)(*(int *)(param_1 + 0x27c) + 0x38)" * (cast_expression "(code **)(*(int *)(param_1 + 0x27c) + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x27c) + 0x38)" ( (binary_expression "*(int *)(param_1 + 0x27c) + 0x38" (pointer_expression "*(int *)(param_1 + 0x27c)" * (cast_expression "(int *)(param_1 + 0x27c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x27c)" ( (binary_expression "param_1 + 0x27c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }" if (parenthesized_expression "(pcVar1 != (code *)0x0)" ( (binary_expression "pcVar1 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*pcVar1)(param_1,2);\n  }" { (expression_statement "(*pcVar1)(param_1,2);" (call_expression "(*pcVar1)(param_1,2)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1,2)" ( identifier , number_literal ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint conn_upkeep(connectdata *conn,void *param)\n\n{\n  _func_uint_connectdata_ptr_uint *p_Var1;\n  \n  p_Var1 = conn->handler->connection_check;\n  if (p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0) {\n    (*p_Var1)(conn,2);\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int conn_upkeep(connectdata *conn,void *param)\n\n{\n  _func_uint_connectdata_ptr_uint *p_Var1;\n  \n  p_Var1 = conn->handler->connection_check;\n  if (p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0) {\n    (*p_Var1)(conn,2);\n  }\n  return 0;\n}" primitive_type (function_declarator "conn_upkeep(connectdata *conn,void *param)" identifier (parameter_list "(connectdata *conn,void *param)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "void *param" primitive_type (pointer_declarator "*param" * identifier)) ))) (compound_statement "{\n  _func_uint_connectdata_ptr_uint *p_Var1;\n  \n  p_Var1 = conn->handler->connection_check;\n  if (p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0) {\n    (*p_Var1)(conn,2);\n  }\n  return 0;\n}" { (declaration "_func_uint_connectdata_ptr_uint *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (expression_statement "p_Var1 = conn->handler->connection_check;" (assignment_expression "p_Var1 = conn->handler->connection_check" identifier = (field_expression "conn->handler->connection_check" (field_expression "conn->handler" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0) {\n    (*p_Var1)(conn,2);\n  }" if (parenthesized_expression "(p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0)" ( (binary_expression "p_Var1 != (_func_uint_connectdata_ptr_uint *)0x0" identifier != (cast_expression "(_func_uint_connectdata_ptr_uint *)0x0" ( (type_descriptor "_func_uint_connectdata_ptr_uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*p_Var1)(conn,2);\n  }" { (expression_statement "(*p_Var1)(conn,2);" (call_expression "(*p_Var1)(conn,2)" (parenthesized_expression "(*p_Var1)" ( (pointer_expression "*p_Var1" * identifier) )) (argument_list "(conn,2)" ( identifier , number_literal ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0002ecd0(int param_1)\n\n{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0002ecd0(int param_1)\n\n{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0002ecd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);" (assignment_expression "pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38)" identifier = (pointer_expression "*(code **)(*(int *)(param_1 + 0x27c) + 0x38)" * (cast_expression "(code **)(*(int *)(param_1 + 0x27c) + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x27c) + 0x38)" ( (binary_expression "*(int *)(param_1 + 0x27c) + 0x38" (pointer_expression "*(int *)(param_1 + 0x27c)" * (cast_expression "(int *)(param_1 + 0x27c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x27c)" ( (binary_expression "param_1 + 0x27c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }" if (parenthesized_expression "(pcVar1 != (code *)0x0)" ( (binary_expression "pcVar1 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*pcVar1)(param_1,2);\n  }" { (expression_statement "(*pcVar1)(param_1,2);" (call_expression "(*pcVar1)(param_1,2)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1,2)" ( identifier , number_literal ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0002ecd0(int param_1)\n\n{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0002ecd0(int param_1)" (identifier "FUN_0002ecd0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  \n  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);\n  if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }\n  return 0;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);" (assignment_expression "pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(*(int *)(param_1 + 0x27c) + 0x38)" (* "*") (cast_expression "(code **)(*(int *)(param_1 + 0x27c) + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x27c) + 0x38)" (( "(") (binary_expression "*(int *)(param_1 + 0x27c) + 0x38" (pointer_expression "*(int *)(param_1 + 0x27c)" (* "*") (cast_expression "(int *)(param_1 + 0x27c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x27c)" (( "(") (binary_expression "param_1 + 0x27c" (identifier "param_1") (+ "+") (number_literal "0x27c")) () ")")))) (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (pcVar1 != (code *)0x0) {\n    (*pcVar1)(param_1,2);\n  }" (if "if") (parenthesized_expression "(pcVar1 != (code *)0x0)" (( "(") (binary_expression "pcVar1 != (code *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*pcVar1)(param_1,2);\n  }" ({ "{") (expression_statement "(*pcVar1)(param_1,2);" (call_expression "(*pcVar1)(param_1,2)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *conn,void *param)

{
  type_2 *var_1;
  
  var_1 = conn->handler->connection_check;
  if (var_1 != (type_2 *)0x0) {
    (*var_1)(conn,2);
  }
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  code *pcVar1;
  
  pcVar1 = *(code **)(*(int *)(param_1 + 0x27c) + 0x38);
  if (pcVar1 != (code *)0x0) {
    (*pcVar1)(param_1,2);
  }
  return 0;
}

