//
// sub_D45E84 from 0xd45e84 to 0xd45efc (120 bytes)
//
// 1 xrefs:
// > ssl_get_new_session @ 0xd46650
//
// 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_D45E84(__int64 a1, const void *a2, unsigned int *a3)
{
int v6; // w19
v6 = 10;
while ( 1 )
{
if ( (int)RAND_bytes(a2, *a3) <= 0 )
return 0;
--v6;
if ( !SSL_has_matching_session_id(a1, a2, *a3) )
break;
if ( !v6 )
return 0;
}
return 1;
}