//
// sub_881DB0 from 0x881db0 to 0x881f1c (364 bytes)
//
// 1 xrefs:
// > ??> @ 0xac1300
//
// 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_881DB0(int a1, const char *a2, char *a3)
{
bool v3; // zf
size_t v6; // r6
size_t v7; // r0
char *v8; // r0
char *v9; // r4
int v10; // r2
void *v12; // r4
v3 = a2 == nullptr;
if ( !a2 )
v3 = a3 == nullptr;
if ( !v3 )
{
if ( a3 )
{
if ( !a2 )
{
v12 = CRYPTO_strdup(a3, (int)"crypto/dso/dso_dlfcn.c", 209);
if ( !v12 )
{
v10 = 211;
goto LABEL_19;
}
return (char *)v12;
}
if ( *a2 != 47 )
{
v6 = strlen(a3);
v7 = strlen(a2) + v6;
if ( v6 )
{
if ( a3[v6 - 1] == 47 )
{
--v6;
--v7;
}
}
v8 = (char *)CRYPTO_malloc((void *)(v7 + 2), (int)"crypto/dso/dso_dlfcn.c", 231);
v9 = v8;
if ( v8 )
{
strcpy(v8, a3);
v9[v6] = 47;
strcpy(&v9[v6 + 1], a2);
return v9;
}
v10 = 233;
goto LABEL_19;
}
}
v12 = CRYPTO_strdup(a2, (int)"crypto/dso/dso_dlfcn.c", 199);
if ( !v12 )
{
v10 = 201;
LABEL_19:
ERR_put_error(37, 130, 65, (int)"crypto/dso/dso_dlfcn.c", v10);
return nullptr;
}
return (char *)v12;
}
ERR_put_error(37, 130, 67, (int)"crypto/dso/dso_dlfcn.c", 191);
return nullptr;
}