//
// sub_E2C244 from 0xe2c244 to 0xe2c378 (308 bytes)
//
// 1 xrefs:
// > ??> @ 0x1239948
//
// 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
//
char *__fastcall sub_E2C244(__int64 a1, char *a2)
{
int v4; // w19
char *v5; // x0
char *v6; // x19
int v8; // w23
int v9; // w19
char *v10; // x19
v4 = strlen(a2);
if ( strchr(a2, 47) )
{
v5 = (char *)CRYPTO_malloc((void *)(v4 + 1), (__int64)"crypto/dso/dso_dlfcn.c", 257);
v6 = v5;
if ( v5 )
{
strcpy(v5, a2);
return v6;
}
goto LABEL_11;
}
v8 = v4 + 4;
v9 = v4 + 7;
if ( (DSO_flags(a1) & 2) == 0 )
v8 = v9;
v10 = (char *)CRYPTO_malloc((void *)v8, (__int64)"crypto/dso/dso_dlfcn.c", 257);
if ( !v10 )
{
LABEL_11:
ERR_put_error(37, 123, 109, (__int64)"crypto/dso/dso_dlfcn.c", 259);
return nullptr;
}
if ( (DSO_flags(a1) & 2) != 0 )
sprintf(v10, "%s.so", a2);
else
sprintf(v10, "lib%s.so", a2);
return v10;
}