//
// ssl_clear_bad_session from 0xd47300 to 0xd47358 (88 bytes)
//
// 4 xrefs:
// > SSL_free @ 0xd42ac0
// > SSL_clear @ 0xd42d90
// > SSL_set_session @ 0xd4736c
// > ??> @ 0x966d8
//
// 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 ssl_clear_bad_session(__int64 a1)
{
if ( !*(_QWORD *)(a1 + 376)
|| (*(_DWORD *)(a1 + 68) & 1) != 0
|| (unsigned int)SSL_in_init(a1)
|| (unsigned int)SSL_in_before(a1) )
{
return 0;
}
SSL_CTX_remove_session(*(_QWORD **)(a1 + 720), *(_QWORD *)(a1 + 376));
return 1;
}