
/* 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 Curl_ssl_kill_session(curl_ssl_session *session)

{
  if (session->sessionid != (void *)0x0) {
    (*Curl_ssl->session_free)(session->sessionid);
    session->sessionid = (void *)0x0;
    session->age = 0;
    Curl_free_primary_ssl_config(&session->ssl_config);
    (*Curl_cfree)(session->name);
    session->name = (char *)0x0;
    (*Curl_cfree)(session->conn_to_host);
    session->conn_to_host = (char *)0x0;
  }
  return;
}



void __regparm3 FUN_0007ae40(undefined4 param_1,undefined4 param_2)

{
  int unaff_EBX;
  undefined4 *unaff_retaddr;
  
  entry(param_2,0x7ae47);
  if (unaff_retaddr[3] != 0) {
    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);
    unaff_retaddr[3] = 0;
    unaff_retaddr[5] = 0;
    FUN_0007a860(unaff_retaddr + 8);
    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);
    *unaff_retaddr = 0;
    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);
    unaff_retaddr[1] = 0;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x35999
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0007aea4
LEA EDX,[EBX + 0x914]
SUB ESP,0xc
MOV EDX,dword ptr [EDX]
PUSH EAX
CALL dword ptr [EDX + 0x44]
MOV dword ptr [ESI + 0xc],0x0
LEA EAX,[ESI + 0x20]
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESP],EAX
CALL 0x0007a860
LEA EBX,[EBX + 0x88c]
POP EAX
PUSH dword ptr [ESI]
CALL dword ptr [EBX]
MOV dword ptr [ESI],0x0
POP EDX
PUSH dword ptr [ESI + 0x4]
CALL dword ptr [EBX]
MOV dword ptr [ESI + 0x4],0x0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "void __regparm3 FUN_0007ae40(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0007ae40(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0007ae40(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}" { (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x7ae47);" (call_expression "entry(param_2,0x7ae47)" identifier (argument_list "(param_2,0x7ae47)" ( identifier , number_literal ))) ;) (if_statement "if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }" if (parenthesized_expression "(unaff_retaddr[3] != 0)" ( (binary_expression "unaff_retaddr[3] != 0" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }" { (expression_statement "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);" (call_expression "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3])" (parenthesized_expression "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))" ( (pointer_expression "**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" * (pointer_expression "*(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" * (cast_expression "(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" ( (binary_expression "*(int *)(&DAT_000362ad + unaff_EBX) + 0x44" (pointer_expression "*(int *)(&DAT_000362ad + unaff_EBX)" * (cast_expression "(int *)(&DAT_000362ad + unaff_EBX)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000362ad + unaff_EBX)" ( (binary_expression "&DAT_000362ad + unaff_EBX" (pointer_expression "&DAT_000362ad" & identifier) + identifier) )))) + number_literal) ))))) )) (argument_list "(unaff_retaddr[3])" ( (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) ))) ;) (expression_statement "unaff_retaddr[3] = 0;" (assignment_expression "unaff_retaddr[3] = 0" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[5] = 0;" (assignment_expression "unaff_retaddr[5] = 0" (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0007a860(unaff_retaddr + 8);" (call_expression "FUN_0007a860(unaff_retaddr + 8)" identifier (argument_list "(unaff_retaddr + 8)" ( (binary_expression "unaff_retaddr + 8" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);" (call_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr)" (parenthesized_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))" ( (pointer_expression "**(code **)(curl_mfprintf + unaff_EBX + 5)" * (pointer_expression "*(code **)(curl_mfprintf + unaff_EBX + 5)" * (cast_expression "(code **)(curl_mfprintf + unaff_EBX + 5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(curl_mfprintf + unaff_EBX + 5)" ( (binary_expression "curl_mfprintf + unaff_EBX + 5" (binary_expression "curl_mfprintf + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(*unaff_retaddr)" ( (pointer_expression "*unaff_retaddr" * identifier) ))) ;) (expression_statement "*unaff_retaddr = 0;" (assignment_expression "*unaff_retaddr = 0" (pointer_expression "*unaff_retaddr" * identifier) = number_literal) ;) (expression_statement "(**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);" (call_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1])" (parenthesized_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))" ( (pointer_expression "**(code **)(curl_mfprintf + unaff_EBX + 5)" * (pointer_expression "*(code **)(curl_mfprintf + unaff_EBX + 5)" * (cast_expression "(code **)(curl_mfprintf + unaff_EBX + 5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(curl_mfprintf + unaff_EBX + 5)" ( (binary_expression "curl_mfprintf + unaff_EBX + 5" (binary_expression "curl_mfprintf + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(unaff_retaddr[1])" ( (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) ))) ;) (expression_statement "unaff_retaddr[1] = 0;" (assignment_expression "unaff_retaddr[1] = 0" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = number_literal) ;) })) (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 Curl_ssl_kill_session(curl_ssl_session *session)\n\n{\n  if (session->sessionid != (void *)0x0) {\n    (*Curl_ssl->session_free)(session->sessionid);\n    session->sessionid = (void *)0x0;\n    session->age = 0;\n    Curl_free_primary_ssl_config(&session->ssl_config);\n    (*Curl_cfree)(session->name);\n    session->name = (char *)0x0;\n    (*Curl_cfree)(session->conn_to_host);\n    session->conn_to_host = (char *)0x0;\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void Curl_ssl_kill_session(curl_ssl_session *session)\n\n{\n  if (session->sessionid != (void *)0x0) {\n    (*Curl_ssl->session_free)(session->sessionid);\n    session->sessionid = (void *)0x0;\n    session->age = 0;\n    Curl_free_primary_ssl_config(&session->ssl_config);\n    (*Curl_cfree)(session->name);\n    session->name = (char *)0x0;\n    (*Curl_cfree)(session->conn_to_host);\n    session->conn_to_host = (char *)0x0;\n  }\n  return;\n}" primitive_type (function_declarator "Curl_ssl_kill_session(curl_ssl_session *session)" identifier (parameter_list "(curl_ssl_session *session)" ( (parameter_declaration "curl_ssl_session *session" type_identifier (pointer_declarator "*session" * identifier)) ))) (compound_statement "{\n  if (session->sessionid != (void *)0x0) {\n    (*Curl_ssl->session_free)(session->sessionid);\n    session->sessionid = (void *)0x0;\n    session->age = 0;\n    Curl_free_primary_ssl_config(&session->ssl_config);\n    (*Curl_cfree)(session->name);\n    session->name = (char *)0x0;\n    (*Curl_cfree)(session->conn_to_host);\n    session->conn_to_host = (char *)0x0;\n  }\n  return;\n}" { (if_statement "if (session->sessionid != (void *)0x0) {\n    (*Curl_ssl->session_free)(session->sessionid);\n    session->sessionid = (void *)0x0;\n    session->age = 0;\n    Curl_free_primary_ssl_config(&session->ssl_config);\n    (*Curl_cfree)(session->name);\n    session->name = (char *)0x0;\n    (*Curl_cfree)(session->conn_to_host);\n    session->conn_to_host = (char *)0x0;\n  }" if (parenthesized_expression "(session->sessionid != (void *)0x0)" ( (binary_expression "session->sessionid != (void *)0x0" (field_expression "session->sessionid" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*Curl_ssl->session_free)(session->sessionid);\n    session->sessionid = (void *)0x0;\n    session->age = 0;\n    Curl_free_primary_ssl_config(&session->ssl_config);\n    (*Curl_cfree)(session->name);\n    session->name = (char *)0x0;\n    (*Curl_cfree)(session->conn_to_host);\n    session->conn_to_host = (char *)0x0;\n  }" { (expression_statement "(*Curl_ssl->session_free)(session->sessionid);" (call_expression "(*Curl_ssl->session_free)(session->sessionid)" (parenthesized_expression "(*Curl_ssl->session_free)" ( (pointer_expression "*Curl_ssl->session_free" * (field_expression "Curl_ssl->session_free" identifier -> field_identifier)) )) (argument_list "(session->sessionid)" ( (field_expression "session->sessionid" identifier -> field_identifier) ))) ;) (expression_statement "session->sessionid = (void *)0x0;" (assignment_expression "session->sessionid = (void *)0x0" (field_expression "session->sessionid" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "session->age = 0;" (assignment_expression "session->age = 0" (field_expression "session->age" identifier -> field_identifier) = number_literal) ;) (expression_statement "Curl_free_primary_ssl_config(&session->ssl_config);" (call_expression "Curl_free_primary_ssl_config(&session->ssl_config)" identifier (argument_list "(&session->ssl_config)" ( (pointer_expression "&session->ssl_config" & (field_expression "session->ssl_config" identifier -> field_identifier)) ))) ;) (expression_statement "(*Curl_cfree)(session->name);" (call_expression "(*Curl_cfree)(session->name)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(session->name)" ( (field_expression "session->name" identifier -> field_identifier) ))) ;) (expression_statement "session->name = (char *)0x0;" (assignment_expression "session->name = (char *)0x0" (field_expression "session->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*Curl_cfree)(session->conn_to_host);" (call_expression "(*Curl_cfree)(session->conn_to_host)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(session->conn_to_host)" ( (field_expression "session->conn_to_host" identifier -> field_identifier) ))) ;) (expression_statement "session->conn_to_host = (char *)0x0;" (assignment_expression "session->conn_to_host = (char *)0x0" (field_expression "session->conn_to_host" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0007ae40(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0007ae40(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0007ae40(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}" { (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x7ae47);" (call_expression "entry(param_2,0x7ae47)" identifier (argument_list "(param_2,0x7ae47)" ( identifier , number_literal ))) ;) (if_statement "if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }" if (parenthesized_expression "(unaff_retaddr[3] != 0)" ( (binary_expression "unaff_retaddr[3] != 0" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }" { (expression_statement "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);" (call_expression "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3])" (parenthesized_expression "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))" ( (pointer_expression "**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" * (pointer_expression "*(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" * (cast_expression "(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" ( (binary_expression "*(int *)(&DAT_000362ad + unaff_EBX) + 0x44" (pointer_expression "*(int *)(&DAT_000362ad + unaff_EBX)" * (cast_expression "(int *)(&DAT_000362ad + unaff_EBX)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000362ad + unaff_EBX)" ( (binary_expression "&DAT_000362ad + unaff_EBX" (pointer_expression "&DAT_000362ad" & identifier) + identifier) )))) + number_literal) ))))) )) (argument_list "(unaff_retaddr[3])" ( (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) ))) ;) (expression_statement "unaff_retaddr[3] = 0;" (assignment_expression "unaff_retaddr[3] = 0" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[5] = 0;" (assignment_expression "unaff_retaddr[5] = 0" (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0007a860(unaff_retaddr + 8);" (call_expression "FUN_0007a860(unaff_retaddr + 8)" identifier (argument_list "(unaff_retaddr + 8)" ( (binary_expression "unaff_retaddr + 8" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);" (call_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr)" (parenthesized_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))" ( (pointer_expression "**(code **)(curl_mfprintf + unaff_EBX + 5)" * (pointer_expression "*(code **)(curl_mfprintf + unaff_EBX + 5)" * (cast_expression "(code **)(curl_mfprintf + unaff_EBX + 5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(curl_mfprintf + unaff_EBX + 5)" ( (binary_expression "curl_mfprintf + unaff_EBX + 5" (binary_expression "curl_mfprintf + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(*unaff_retaddr)" ( (pointer_expression "*unaff_retaddr" * identifier) ))) ;) (expression_statement "*unaff_retaddr = 0;" (assignment_expression "*unaff_retaddr = 0" (pointer_expression "*unaff_retaddr" * identifier) = number_literal) ;) (expression_statement "(**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);" (call_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1])" (parenthesized_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))" ( (pointer_expression "**(code **)(curl_mfprintf + unaff_EBX + 5)" * (pointer_expression "*(code **)(curl_mfprintf + unaff_EBX + 5)" * (cast_expression "(code **)(curl_mfprintf + unaff_EBX + 5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(curl_mfprintf + unaff_EBX + 5)" ( (binary_expression "curl_mfprintf + unaff_EBX + 5" (binary_expression "curl_mfprintf + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(unaff_retaddr[1])" ( (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) ))) ;) (expression_statement "unaff_retaddr[1] = 0;" (assignment_expression "unaff_retaddr[1] = 0" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (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 (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0007ae40(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0007ae40(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0007ae40") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int unaff_EBX;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x7ae47);\n  if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }\n  return;\n}" ({ "{") (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x7ae47);" (call_expression "entry(param_2,0x7ae47)" (identifier "entry") (argument_list "(param_2,0x7ae47)" (( "(") (identifier "param_2") (, ",") (number_literal "0x7ae47") () ")"))) (; ";")) (if_statement "if (unaff_retaddr[3] != 0) {\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }" (if "if") (parenthesized_expression "(unaff_retaddr[3] != 0)" (( "(") (binary_expression "unaff_retaddr[3] != 0" (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);\n    unaff_retaddr[3] = 0;\n    unaff_retaddr[5] = 0;\n    FUN_0007a860(unaff_retaddr + 8);\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);\n    *unaff_retaddr = 0;\n    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);\n    unaff_retaddr[1] = 0;\n  }" ({ "{") (expression_statement "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);" (call_expression "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3])" (parenthesized_expression "(**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))" (( "(") (pointer_expression "**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" (* "*") (pointer_expression "*(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" (* "*") (cast_expression "(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44)" (( "(") (binary_expression "*(int *)(&DAT_000362ad + unaff_EBX) + 0x44" (pointer_expression "*(int *)(&DAT_000362ad + unaff_EBX)" (* "*") (cast_expression "(int *)(&DAT_000362ad + unaff_EBX)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000362ad + unaff_EBX)" (( "(") (binary_expression "&DAT_000362ad + unaff_EBX" (pointer_expression "&DAT_000362ad" (& "&") (identifier "DAT_000362ad")) (+ "+") (identifier "unaff_EBX")) () ")")))) (+ "+") (number_literal "0x44")) () ")"))))) () ")")) (argument_list "(unaff_retaddr[3])" (( "(") (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "unaff_retaddr[3] = 0;" (assignment_expression "unaff_retaddr[3] = 0" (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_retaddr[5] = 0;" (assignment_expression "unaff_retaddr[5] = 0" (subscript_expression "unaff_retaddr[5]" (identifier "unaff_retaddr") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0007a860(unaff_retaddr + 8);" (call_expression "FUN_0007a860(unaff_retaddr + 8)" (identifier "FUN_0007a860") (argument_list "(unaff_retaddr + 8)" (( "(") (binary_expression "unaff_retaddr + 8" (identifier "unaff_retaddr") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "(**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);" (call_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr)" (parenthesized_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))" (( "(") (pointer_expression "**(code **)(curl_mfprintf + unaff_EBX + 5)" (* "*") (pointer_expression "*(code **)(curl_mfprintf + unaff_EBX + 5)" (* "*") (cast_expression "(code **)(curl_mfprintf + unaff_EBX + 5)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(curl_mfprintf + unaff_EBX + 5)" (( "(") (binary_expression "curl_mfprintf + unaff_EBX + 5" (binary_expression "curl_mfprintf + unaff_EBX" (identifier "curl_mfprintf") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "5")) () ")"))))) () ")")) (argument_list "(*unaff_retaddr)" (( "(") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) () ")"))) (; ";")) (expression_statement "*unaff_retaddr = 0;" (assignment_expression "*unaff_retaddr = 0" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);" (call_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1])" (parenthesized_expression "(**(code **)(curl_mfprintf + unaff_EBX + 5))" (( "(") (pointer_expression "**(code **)(curl_mfprintf + unaff_EBX + 5)" (* "*") (pointer_expression "*(code **)(curl_mfprintf + unaff_EBX + 5)" (* "*") (cast_expression "(code **)(curl_mfprintf + unaff_EBX + 5)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(curl_mfprintf + unaff_EBX + 5)" (( "(") (binary_expression "curl_mfprintf + unaff_EBX + 5" (binary_expression "curl_mfprintf + unaff_EBX" (identifier "curl_mfprintf") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "5")) () ")"))))) () ")")) (argument_list "(unaff_retaddr[1])" (( "(") (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "unaff_retaddr[1] = 0;" (assignment_expression "unaff_retaddr[1] = 0" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (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 *session)

{
  if (session->sessionid != (void *)0x0) {
    (*Curl_ssl->session_free)(session->sessionid);
    session->sessionid = (void *)0x0;
    session->age = 0;
    var_1(&session->ssl_config);
    (*Curl_cfree)(session->name);
    session->name = (char *)0x0;
    (*Curl_cfree)(session->conn_to_host);
    session->conn_to_host = (char *)0x0;
  }
  return;
}


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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int unaff_EBX;
  undefined4 *unaff_retaddr;
  
  entry(param_2,0x7ae47);
  if (unaff_retaddr[3] != 0) {
    (**(code **)(*(int *)(&DAT_000362ad + unaff_EBX) + 0x44))(unaff_retaddr[3]);
    unaff_retaddr[3] = 0;
    unaff_retaddr[5] = 0;
    FUN_0007a860(unaff_retaddr + 8);
    (**(code **)(curl_mfprintf + unaff_EBX + 5))(*unaff_retaddr);
    *unaff_retaddr = 0;
    (**(code **)(curl_mfprintf + unaff_EBX + 5))(unaff_retaddr[1]);
    unaff_retaddr[1] = 0;
  }
  return;
}

