//
// sub_7CFBE4 from 0x7cfbe4 to 0x7cfcbc (216 bytes)
//
// 1 xrefs:
// > ??> @ 0xa307a4
//
// 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 sub_7CFBE4(_DWORD *a1)
{
_DWORD *v2; // r0
_DWORD *v3; // r6
int v4; // r4
int v5; // r5
v2 = (_DWORD *)CRYPTO_zalloc(32, "crypto/bio/bf_buff.c", 45);
v3 = v2;
if ( !v2 )
return 0;
*v2 = 4096;
v4 = CRYPTO_malloc(4096, "crypto/bio/bf_buff.c", 50);
v3[2] = v4;
if ( v4 )
{
v3[1] = 4096;
v5 = CRYPTO_malloc(4096, "crypto/bio/bf_buff.c", 56);
v3[5] = v5;
if ( v5 )
{
a1[8] = v3;
a1[3] = 1;
a1[5] = 0;
return 1;
}
else
{
CRYPTO_free(v3[2], "crypto/bio/bf_buff.c", 58);
CRYPTO_free(v3, "crypto/bio/bf_buff.c", 59);
return 0;
}
}
else
{
CRYPTO_free(v3, "crypto/bio/bf_buff.c", 52);
return 0;
}
}