//
// SSL_get_servername from 0x798390 to 0x7983c0 (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x5be2c
//
// 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_servername(int a1, int a2)
{
int v2; // r3
int result; // r0
if ( a2 )
return 0;
v2 = *(_DWORD *)(a1 + 240);
result = *(_DWORD *)(a1 + 348);
if ( v2 )
{
if ( !result )
return *(_DWORD *)(v2 + 196);
}
return result;
}