//
// sub_D759D8 from 0xd759d8 to 0xd75ad0 (248 bytes)
//
// 1 xrefs:
// > ??> @ 0x11223b0
//
// 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
//
_DWORD *__fastcall sub_D759D8(__int64 a1)
{
_DWORD *result; // x0
_DWORD *v3; // x21
__int64 v4; // x0
__int64 v5; // x0
result = (_DWORD *)CRYPTO_zalloc(40, "crypto/bio/bf_buff.c", 45);
v3 = result;
if ( result )
{
*result = 4096;
v4 = CRYPTO_malloc(4096, "crypto/bio/bf_buff.c", 50);
*((_QWORD *)v3 + 1) = v4;
if ( v4 )
{
v3[1] = 4096;
v5 = CRYPTO_malloc(4096, "crypto/bio/bf_buff.c", 56);
*((_QWORD *)v3 + 3) = v5;
if ( v5 )
{
*(_QWORD *)(a1 + 48) = v3;
*(_DWORD *)(a1 + 24) = 1;
*(_DWORD *)(a1 + 32) = 0;
return dword_0 + 1;
}
else
{
CRYPTO_free(*((_QWORD *)v3 + 1), "crypto/bio/bf_buff.c", 58);
CRYPTO_free(v3, "crypto/bio/bf_buff.c", 59);
return nullptr;
}
}
else
{
CRYPTO_free(v3, "crypto/bio/bf_buff.c", 52);
return nullptr;
}
}
return result;
}