//
// sub_8786DC from 0x8786dc to 0x87878c (176 bytes)
//
// 3 xrefs:
// > _CONF_free_data @ 0x8789d8
// > _CONF_free_data @ 0x8789e0
// > ??> @ 0x8789f8
//
// 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
//
void __fastcall sub_8786DC(int a1)
{
void **v1; // r8
signed int v3; // r4
int v4; // r0
void **v5; // r5
if ( !*(_DWORD *)(a1 + 4) )
{
v1 = *(void ***)(a1 + 8);
v3 = OPENSSL_sk_num((int)v1) - 1;
if ( v3 >= 0 )
{
do
{
v4 = OPENSSL_sk_value(v1, v3--);
v5 = (void **)v4;
CRYPTO_free(*(void **)(v4 + 8), (int)"crypto/conf/conf_api.c", 178);
CRYPTO_free(v5[1], (int)"crypto/conf/conf_api.c", 179);
CRYPTO_free(v5, (int)"crypto/conf/conf_api.c", 180);
}
while ( v3 != -1 );
}
OPENSSL_sk_free(v1);
CRYPTO_free(*(void **)a1, (int)"crypto/conf/conf_api.c", 183);
CRYPTO_free((void *)a1, (int)"crypto/conf/conf_api.c", 184);
}
}