//
// sub_E2C5D4 from 0xe2c5d4 to 0xe2c688 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x1239930
//
// 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 sub_E2C5D4(__int64 a1)
{
void *v2; // x0
if ( a1 )
{
if ( (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 8)) <= 0 )
{
return 1;
}
else
{
v2 = (void *)OPENSSL_sk_pop(*(int **)(a1 + 8));
if ( v2 )
{
dlclose(v2);
return 1;
}
else
{
ERR_put_error(37, 103, 104, (__int64)"crypto/dso/dso_dlfcn.c", 143);
OPENSSL_sk_push(*(int **)(a1 + 8), 0);
return 0;
}
}
}
else
{
ERR_put_error(37, 103, 67, (__int64)"crypto/dso/dso_dlfcn.c", 136);
return 0;
}
}