//
// sub_D797A4 from 0xd797a4 to 0xd797fc (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122548
//
// 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_D797A4(__int64 result)
{
_DWORD *v1; // x19
int v2; // w1
v1 = (_DWORD *)result;
if ( result )
{
v2 = *(_DWORD *)(result + 28);
result = 1;
if ( v2 )
{
if ( v1[6] )
BIO_closesocket(v1[10]);
v1[6] = 0;
v1[8] = 0;
return 1;
}
}
return result;
}