//
// X509V3_get_value_bool from 0x85d240 to 0x85d3fc (444 bytes)
//
// 8 xrefs:
// > sub_8021DC @ 0x802274
// > sub_8566F0 @ 0x856a00
// > sub_8566F0 @ 0x856a18
// > sub_8566F0 @ 0x856a30
// > sub_8566F0 @ 0x856a48
// > sub_864F7C @ 0x8655d0
// > sub_8C4060 @ 0x8c4110
// > ??> @ 0x634fc
//
// 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 X509V3_get_value_bool(int a1, _DWORD *a2)
{
const char *v2; // r4
v2 = *(const char **)(a1 + 8);
if ( v2 )
{
if ( !strcmp(*(const char **)(a1 + 8), "TRUE")
|| !strcmp(v2, "true")
|| !strcmp(v2, "Y")
|| !strcmp(v2, "y")
|| !strcmp(v2, "YES")
|| !strcmp(v2, "yes") )
{
*a2 = 255;
return 1;
}
if ( !strcmp(v2, "FALSE")
|| !strcmp(v2, "false")
|| !strcmp(v2, "N")
|| !strcmp(v2, "n")
|| !strcmp(v2, "NO")
|| !strcmp(v2, "no") )
{
*a2 = 0;
return 1;
}
}
ERR_put_error(34, 110, 104, (int)"crypto/x509v3/v3_utl.c", 219);
ERR_add_error_data(6, "section:", *(_DWORD *)a1, ",name:", *(_DWORD *)(a1 + 4), ",value:", *(_DWORD *)(a1 + 8));
return 0;
}