//
// SSL_SESSION_get_master_key from 0xd42504 to 0xd4256c (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x93228
//
// 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
//
size_t __fastcall SSL_SESSION_get_master_key(__int64 a1, void *a2, unsigned __int64 a3)
{
size_t v3; // x19
LODWORD(v3) = *(_DWORD *)(a1 + 4);
if ( (v3 & 0x80000000) != 0 )
return 0;
if ( !a3 )
return (int)v3;
v3 = (int)v3;
if ( a3 <= (int)v3 )
v3 = a3;
memcpy(a2, (const void *)(a1 + 8), v3);
return v3;
}