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

void __regparm3 sk_addr_free(SockAddr addr)

{
  if ((addrinfo *)addr->ais != (addrinfo *)0x0) {
    freeaddrinfo((addrinfo *)addr->ais);
  }
  safefree(addr);
  return;
}



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

void __regparm3 FUN_0009a650(int param_1)

{
  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {
    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));
  }
  FUN_0002f010(param_1);
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0x760f7
SUB ESP,0x4
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x0009a675
SUB ESP,0xc
PUSH EAX
CALL 0x0001b310
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0002f010
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 __regparm3 FUN_0009a650(int param_1)\n\n{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0009a650(int param_1)\n\n{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0009a650(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}" { (if_statement "if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0)" ( (binary_expression "*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0" (pointer_expression "*(addrinfo **)(param_1 + 0xc)" * (cast_expression "(addrinfo **)(param_1 + 0xc)" ( (type_descriptor "addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }" { (expression_statement "freeaddrinfo(*(addrinfo **)(param_1 + 0xc));" (call_expression "freeaddrinfo(*(addrinfo **)(param_1 + 0xc))" identifier (argument_list "(*(addrinfo **)(param_1 + 0xc))" ( (pointer_expression "*(addrinfo **)(param_1 + 0xc)" * (cast_expression "(addrinfo **)(param_1 + 0xc)" ( (type_descriptor "addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_0002f010(param_1);" (call_expression "FUN_0002f010(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: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 sk_addr_free(SockAddr addr)\n\n{\n  if ((addrinfo *)addr->ais != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)addr->ais);\n  }\n  safefree(addr);\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 sk_addr_free(SockAddr addr)\n\n{\n  if ((addrinfo *)addr->ais != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)addr->ais);\n  }\n  safefree(addr);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sk_addr_free(SockAddr addr)" identifier (parameter_list "(SockAddr addr)" ( (parameter_declaration "SockAddr addr" type_identifier identifier) ))) (compound_statement "{\n  if ((addrinfo *)addr->ais != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)addr->ais);\n  }\n  safefree(addr);\n  return;\n}" { (if_statement "if ((addrinfo *)addr->ais != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)addr->ais);\n  }" if (parenthesized_expression "((addrinfo *)addr->ais != (addrinfo *)0x0)" ( (binary_expression "(addrinfo *)addr->ais != (addrinfo *)0x0" (cast_expression "(addrinfo *)addr->ais" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "addr->ais" identifier -> field_identifier)) != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    freeaddrinfo((addrinfo *)addr->ais);\n  }" { (expression_statement "freeaddrinfo((addrinfo *)addr->ais);" (call_expression "freeaddrinfo((addrinfo *)addr->ais)" identifier (argument_list "((addrinfo *)addr->ais)" ( (cast_expression "(addrinfo *)addr->ais" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "addr->ais" identifier -> field_identifier)) ))) ;) })) (expression_statement "safefree(addr);" (call_expression "safefree(addr)" identifier (argument_list "(addr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0009a650(int param_1)\n\n{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0009a650(int param_1)\n\n{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0009a650(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}" { (if_statement "if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0)" ( (binary_expression "*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0" (pointer_expression "*(addrinfo **)(param_1 + 0xc)" * (cast_expression "(addrinfo **)(param_1 + 0xc)" ( (type_descriptor "addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }" { (expression_statement "freeaddrinfo(*(addrinfo **)(param_1 + 0xc));" (call_expression "freeaddrinfo(*(addrinfo **)(param_1 + 0xc))" identifier (argument_list "(*(addrinfo **)(param_1 + 0xc))" ( (pointer_expression "*(addrinfo **)(param_1 + 0xc)" * (cast_expression "(addrinfo **)(param_1 + 0xc)" ( (type_descriptor "addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_0002f010(param_1);" (call_expression "FUN_0002f010(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (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 ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0009a650(int param_1)\n\n{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0009a650(int param_1)" (identifier "FUN_0009a650") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }\n  FUN_0002f010(param_1);\n  return;\n}" ({ "{") (if_statement "if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0)" (( "(") (binary_expression "*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0" (pointer_expression "*(addrinfo **)(param_1 + 0xc)" (* "*") (cast_expression "(addrinfo **)(param_1 + 0xc)" (( "(") (type_descriptor "addrinfo **" (type_identifier "addrinfo") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (cast_expression "(addrinfo *)0x0" (( "(") (type_descriptor "addrinfo *" (type_identifier "addrinfo") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "freeaddrinfo(*(addrinfo **)(param_1 + 0xc));" (call_expression "freeaddrinfo(*(addrinfo **)(param_1 + 0xc))" (identifier "freeaddrinfo") (argument_list "(*(addrinfo **)(param_1 + 0xc))" (( "(") (pointer_expression "*(addrinfo **)(param_1 + 0xc)" (* "*") (cast_expression "(addrinfo **)(param_1 + 0xc)" (( "(") (type_descriptor "addrinfo **" (type_identifier "addrinfo") (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_0002f010(param_1);" (call_expression "FUN_0002f010(param_1)" (identifier "FUN_0002f010") (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: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 function_1(type_1 addr)

{
  if ((type_2 *)addr->ais != (type_2 *)0x0) {
    var_1((type_2 *)addr->ais);
  }
  var_2(addr);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (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: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (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 __regparm3 MASKED(int param_1)

{
  if (*(addrinfo **)(param_1 + 0xc) != (addrinfo *)0x0) {
    freeaddrinfo(*(addrinfo **)(param_1 + 0xc));
  }
  FUN_0002f010(param_1);
  return;
}

