//
// sub_88219C from 0x88219c to 0x8822c4 (296 bytes)
//
// 1 xrefs:
// > ??> @ 0xac12ec
//
// 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 sub_88219C(int a1)
{
const char *v2; // r0
char *v3; // r5
void *v4; // r7
char *v6; // r0
v2 = (const char *)DSO_convert_filename((_DWORD *)a1, 0);
v3 = (char *)v2;
if ( !v2 )
{
ERR_put_error(37, 102, 111, (int)"crypto/dso/dso_dlfcn.c", 104);
LABEL_7:
CRYPTO_free(v3, (int)"crypto/dso/dso_dlfcn.c", 126);
return 0;
}
v4 = dlopen(v2, 0);
if ( !v4 )
{
ERR_put_error(37, 102, 103, (int)"crypto/dso/dso_dlfcn.c", 113);
v6 = dlerror();
ERR_add_error_data(4, "filename(", v3, "): ", v6);
goto LABEL_7;
}
if ( OPENSSL_sk_push(*(int **)(a1 + 4), (int)v4) )
{
*(_DWORD *)(a1 + 32) = v3;
return 1;
}
else
{
ERR_put_error(37, 102, 105, (int)"crypto/dso/dso_dlfcn.c", 118);
CRYPTO_free(v3, (int)"crypto/dso/dso_dlfcn.c", 126);
dlclose(v4);
return 0;
}
}