//
// CONF_modules_load_file from 0x1000a98 to 0x1000b94 (252 bytes)
//
// 3 xrefs:
// > sub_E2EE78 @ 0xe2ee94
// > openssl_config_int @ 0x10a2834
// > ??> @ 0xc6bf8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:53 +0000
//
__int64 __fastcall CONF_modules_load_file(__int64 a1, char *a2, char a3)
{
__int64 v6; // x19
__int64 v7; // x20
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // x2
unsigned int v11; // w22
__int64 v13; // x0
v6 = NCONF_new(0);
if ( v6 )
{
v7 = a1;
if ( !a1 )
{
v7 = CONF_get1_default_config_file();
if ( !v7 )
{
v11 = 0;
goto LABEL_13;
}
}
v8 = NCONF_load(v6);
if ( (int)v8 <= 0 )
{
v11 = 0;
if ( (a3 & 0x10) != 0 )
{
v13 = ERR_peek_last_error(v8, v9, v10) & 0xFFF;
if ( (_DWORD)v13 == 114 )
{
ERR_clear_error(v13);
v11 = 1;
}
}
}
else
{
v11 = CONF_modules_load(v6, a2, a3);
}
}
else
{
v11 = 0;
v7 = 0;
}
if ( a1 )
{
NCONF_free(v6);
return v11;
}
LABEL_13:
CRYPTO_free(v7, "crypto/conf/conf_mod.c", 142);
NCONF_free(v6);
return v11;
}