//
// X509V3_get_value_bool from 0xe03b48 to 0xe03cd0 (392 bytes)
//
// 8 xrefs:
// > sub_DA8D80 @ 0xda8e24
// > sub_DFD290 @ 0xdfd598
// > sub_DFD290 @ 0xdfd5c0
// > sub_DFD290 @ 0xdfd5d8
// > sub_DFD290 @ 0xdfd5f8
// > sub_E0D194 @ 0xe0d618
// > sub_E6FDB0 @ 0xe6fe74
// > ??> @ 0x377d0
//
// 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 X509V3_get_value_bool(__int64 a1, _DWORD *a2)
{
const char *v2; // x19
__int64 result; // x0
v2 = *(const char **)(a1 + 16);
if ( !v2 )
{
LABEL_17:
ERR_put_error(34, 110, 104, (__int64)"crypto/x509v3/v3_utl.c", 219);
ERR_add_error_data(6, "section:", *(_QWORD *)a1, ",name:", *(_QWORD *)(a1 + 8), ",value:", *(_QWORD *)(a1 + 16));
return 0;
}
if ( strcmp(*(const char **)(a1 + 16), "TRUE")
&& strcmp(v2, "true")
&& strcmp(v2, "Y")
&& strcmp(v2, "y")
&& strcmp(v2, "YES")
&& strcmp(v2, "yes") )
{
if ( !strcmp(v2, "FALSE")
|| !strcmp(v2, "false")
|| !strcmp(v2, "N")
|| !strcmp(v2, "n")
|| !strcmp(v2, "NO")
|| !strcmp(v2, "no") )
{
*a2 = 0;
return 1;
}
goto LABEL_17;
}
result = 1;
*a2 = 255;
return result;
}