//
// _CONF_get_section from 0x878794 to 0x8787d8 (68 bytes)
//
// 4 xrefs:
// > _CONF_get_section_values @ 0x8787dc
// > sub_8791C0 @ 0x879950
// > sub_8791C0 @ 0x879a5c
// > ??> @ 0x6a6ac
//
// 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 CONF_get_section(int a1, int a2)
{
bool v2; // zf
int v3; // r2
int v4; // r0
_DWORD v6[3]; // [sp+4h] [bp-14h] BYREF
v2 = a2 == 0;
if ( a2 )
v2 = a1 == 0;
v3 = v2;
if ( v2 )
return 0;
v6[0] = a2;
v4 = *(_DWORD *)(a1 + 8);
v6[1] = v3;
return OPENSSL_LH_retrieve(v4, (int)v6);
}