//
// sub_D79368 from 0xd79368 to 0xd79468 (256 bytes)
//
// 1 xrefs:
// > ??> @ 0x11224a0
//
// 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_D79368(__int64 a1)
{
__int64 *v2; // x19
__int64 v3; // x0
unsigned int v4; // w21
_QWORD *v5; // x0
_QWORD *v6; // x1
__int64 v7; // x3
__int64 v8; // x3
v2 = (__int64 *)CRYPTO_zalloc(16, "crypto/bio/bss_mem.c", 102);
if ( !v2 )
return 0;
v3 = BUF_MEM_new_ex(0);
*v2 = v3;
v4 = v3;
if ( v3 )
{
v5 = (_QWORD *)CRYPTO_zalloc(32, "crypto/bio/bss_mem.c", 110);
v2[1] = (__int64)v5;
if ( v5 )
{
v6 = (_QWORD *)*v2;
v4 = 1;
v7 = *(_QWORD *)(*v2 + 8);
*v5 = *(_QWORD *)*v2;
v5[1] = v7;
v8 = v6[3];
v5[2] = v6[2];
v5[3] = v8;
*(_DWORD *)(a1 + 28) = 1;
*(_DWORD *)(a1 + 24) = 1;
*(_QWORD *)(a1 + 48) = v2;
*(_DWORD *)(a1 + 40) = -1;
}
else
{
v4 = 0;
BUF_MEM_free(*v2);
CRYPTO_free(v2, "crypto/bio/bss_mem.c", 112);
}
}
else
{
CRYPTO_free(v2, "crypto/bio/bss_mem.c", 107);
}
return v4;
}