//
// CONF_modules_finish from 0x7da8c4 to 0x7da960 (156 bytes)
//
// 3 xrefs:
// > CONF_modules_unload @ 0x7da984
// > conf_modules_free_int @ 0x7daba0
// > ??> @ 0x6031c
//
// 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 CONF_modules_finish()
{
int v0; // r0
int *v1; // r4
int v2; // r3
void (*v3)(void); // r2
int v4; // r0
int result; // r0
while ( OPENSSL_sk_num(dword_AD2E38) > 0 )
{
v0 = OPENSSL_sk_pop(dword_AD2E38);
v1 = (int *)v0;
if ( v0 )
{
v2 = *(_DWORD *)v0;
v3 = *(void (**)(void))(*(_DWORD *)v0 + 12);
if ( v3 )
{
v3();
v2 = *v1;
}
v4 = v1[1];
--*(_DWORD *)(v2 + 16);
CRYPTO_free(v4, "crypto/conf/conf_mod.c", 405);
CRYPTO_free(v1[2], "crypto/conf/conf_mod.c", 406);
CRYPTO_free(v1, "crypto/conf/conf_mod.c", 407);
}
}
result = OPENSSL_sk_free(dword_AD2E38);
dword_AD2E38 = 0;
return result;
}