//
// BIO_ssl_copy_session_id from 0x7866d8 to 0x786750 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x59f8c
//
// 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
//
bool __fastcall BIO_ssl_copy_session_id(int a1, int a2)
{
int type; // r5
int v4; // r0
bool v5; // zf
int v6; // r4
_DWORD *data; // r5
_DWORD *v9; // r0
type = BIO_find_type(a1, 519);
v4 = BIO_find_type(a2, 519);
v5 = type == 0;
if ( type )
v5 = v4 == 0;
v6 = v4;
if ( !v5 && (data = (_DWORD *)BIO_get_data(type), v9 = (_DWORD *)BIO_get_data(v6), *data && *v9) )
return SSL_copy_session_id(*data) != 0;
else
return 0;
}