//
// CONF_module_add from 0xd82528 to 0xd8262c (260 bytes)
//
// 6 xrefs:
// > SSL_add_ssl_module @ 0xd6095c
// > ENGINE_add_conf_module @ 0xd9c414
// > EVP_add_alg_module @ 0xda8f38
// > ASN1_add_oid_module @ 0xe0e464
// > ASN1_add_stable_module @ 0xe0e7c8
// > ??> @ 0x53580
//
// 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 CONF_module_add(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // x0
_QWORD *v7; // x19
__int64 v8; // x0
if ( qword_125D588 || (qword_125D588 = OPENSSL_sk_new_null(a1)) != 0 )
{
v6 = (_QWORD *)CRYPTO_zalloc(48, "crypto/conf/conf_mod.c", 234);
v7 = v6;
if ( v6 )
{
*v6 = 0;
v8 = CRYPTO_strdup(a1, "crypto/conf/conf_mod.c", 239);
v7[2] = a2;
v7[1] = v8;
v7[3] = a3;
if ( v8 )
{
if ( (unsigned int)OPENSSL_sk_push(qword_125D588, v7) )
return 1;
CRYPTO_free(v7[1], "crypto/conf/conf_mod.c", 248);
CRYPTO_free(v7, "crypto/conf/conf_mod.c", 249);
}
else
{
CRYPTO_free(v7, "crypto/conf/conf_mod.c", 243);
}
}
}
return 0;
}