//
// _CONF_add_string from 0x8787ec to 0x878880 (148 bytes)
//
// 2 xrefs:
// > sub_8791C0 @ 0x879858
// > ??> @ 0x6a6bc
//
// 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 CONF_add_string(int a1, _DWORD *a2, _DWORD *a3)
{
int *v3; // r5
int result; // r0
int v7; // r0
void **v8; // r6
v3 = (int *)a2[2];
*a3 = *a2;
result = OPENSSL_sk_push(v3, (int)a3);
if ( result )
{
v7 = OPENSSL_LH_insert(*(int **)(a1 + 8), (int)a3);
v8 = (void **)v7;
if ( v7 )
{
OPENSSL_sk_delete_ptr(v3, v7);
CRYPTO_free(v8[1], (int)"crypto/conf/conf_api.c", 62);
CRYPTO_free(v8[2], (int)"crypto/conf/conf_api.c", 63);
CRYPTO_free(v8, (int)"crypto/conf/conf_api.c", 64);
}
return 1;
}
return result;
}