//
// DSO_bind_func from 0x7e3318 to 0x7e33cc (180 bytes)
//
// 5 xrefs:
// > CONF_modules_load @ 0x7da460
// > CONF_modules_load @ 0x7da47c
// > sub_8B3090 @ 0x8b3500
// > sub_8B3090 @ 0x8b3528
// > ??> @ 0x602fc
//
// 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 DSO_bind_func(int a1, int a2)
{
bool v2; // zf
int (*v3)(void); // r4
int result; // r0
v2 = a2 == 0;
if ( a2 )
v2 = a1 == 0;
if ( v2 )
{
ERR_put_error(37, 108, 67, "crypto/dso/dso_lib.c", 177);
return 0;
}
else
{
v3 = *(int (**)(void))(*(_DWORD *)a1 + 12);
if ( v3 )
{
result = v3();
if ( !result )
{
ERR_put_error(37, 108, 106, "crypto/dso/dso_lib.c", 185);
return 0;
}
}
else
{
ERR_put_error(37, 108, 108, "crypto/dso/dso_lib.c", 181);
return 0;
}
}
return result;
}