//
// DSO_set_filename from 0xd8acd4 to 0xd8adc8 (244 bytes)
//
// 2 xrefs:
// > DSO_load @ 0xd8ae3c
// > ??> @ 0x8d7b0
//
// 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 DSO_set_filename(__int64 a1, __int64 a2)
{
__int64 v4; // x19
if ( a1 && a2 )
{
if ( *(_QWORD *)(a1 + 56) )
{
ERR_put_error(37, 129, 110, "crypto/dso/dso_lib.c", 248);
return 0;
}
else
{
v4 = CRYPTO_strdup(a2, "crypto/dso/dso_lib.c", 252);
if ( v4 )
{
CRYPTO_free(*(_QWORD *)(a1 + 48), "crypto/dso/dso_lib.c", 257);
*(_QWORD *)(a1 + 48) = v4;
return 1;
}
else
{
ERR_put_error(37, 129, 65, "crypto/dso/dso_lib.c", 254);
return 0;
}
}
}
else
{
ERR_put_error(37, 129, 67, "crypto/dso/dso_lib.c", 244);
return 0;
}
}