//
// sub_D2F560 from 0xd2f560 to 0xd2f5f8 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x111ff98
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_D2F560(__int64 result)
{
__int64 v1; // x19
_QWORD *data; // x20
v1 = result;
if ( result )
{
data = (_QWORD *)BIO_get_data();
if ( *data )
SSL_shutdown(*data);
if ( (unsigned int)BIO_get_shutdown(v1) )
{
if ( (unsigned int)BIO_get_init(v1) )
SSL_free(*data);
BIO_clear_flags(v1, 0xFFFFFFFFLL);
BIO_set_init(v1, 0);
}
CRYPTO_free(data, "ssl/bio_ssl.c", 85);
return 1;
}
return result;
}