//
// sub_D790CC from 0xd790cc to 0xd79164 (152 bytes)
//
// 2 xrefs:
// > ??> @ 0x11224a8
// > ??> @ 0x11224f8
//
// 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_D790CC(__int64 result)
{
__int64 v1; // x19
int v2; // w1
__int64 *v3; // x20
__int64 v4; // x0
v1 = result;
if ( result )
{
v2 = *(_DWORD *)(result + 28);
result = 1;
if ( v2 )
{
if ( *(_DWORD *)(v1 + 24) )
{
v3 = *(__int64 **)(v1 + 48);
if ( v3 )
{
v4 = *v3;
if ( (*(_DWORD *)(v1 + 32) & 0x200) != 0 )
*(_QWORD *)(v4 + 8) = 0;
BUF_MEM_free(v4);
CRYPTO_free(v3[1], "crypto/bio/bss_mem.c", 153);
CRYPTO_free(v3, "crypto/bio/bss_mem.c", 154);
*(_QWORD *)(v1 + 48) = 0;
return 1;
}
}
}
}
return result;
}