//
// sub_8D5BF4 from 0x8d5bf4 to 0x8d5c98 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3a64c
//
// 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_8D5BF4(int a1)
{
_DWORD *v2; // r4
void *v3; // r5
v2 = CRYPTO_zalloc(&dword_40, (int)"crypto/asn1/bio_asn1.c", 98);
if ( !v2 )
return 0;
v3 = CRYPTO_malloc(dword_14, (int)"crypto/asn1/bio_asn1.c", 114);
v2[1] = v3;
if ( v3 )
{
v2[2] = 20;
v2[6] = 0;
*v2 = 0;
v2[7] = 4;
BIO_set_data(a1, (int)v2);
BIO_set_init(a1, 1);
return 1;
}
else
{
CRYPTO_free(v2, (int)"crypto/asn1/bio_asn1.c", 103);
return 0;
}
}