//
// SSL_get_peer_cert_chain from 0x796c4c to 0x796c64 (24 bytes)
//
// 3 xrefs:
// > sub_64231C @ 0x64232a
// > sub_642BAC @ 0x643688
// > ??> @ 0x54c2c
//
// 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
//
int __fastcall SSL_get_peer_cert_chain(int result)
{
if ( result )
{
result = *(_DWORD *)(result + 240);
if ( result )
return *(_DWORD *)(result + 148);
}
return result;
}