//
// sub_DEA234 from 0xdea234 to 0xdea2f0 (188 bytes)
//
// 3 xrefs:
// > X509_STORE_CTX_init @ 0xdedb28
// > X509_STORE_CTX_init @ 0xdedc20
// > X509_STORE_CTX_init @ 0xdedce4
//
// 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 sub_DEA234(__int64 a1, __int64 a2)
{
__int64 v4; // x3
__int64 v5; // x0
__int64 result; // x0
__int64 (__fastcall *v7)(__int64, __int64); // x3
unsigned int (__fastcall *v8)(_QWORD, __int64); // x2
__int64 v9; // [xsp+38h] [xbp+38h] BYREF
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL);
v5 = v4 & 0x10;
if ( (v4 & 0x10) != 0
|| (*(_DWORD *)(a2 + 132) & 0x200) == 0
|| (v7 = *(__int64 (__fastcall **)(__int64, __int64))(a1 + 56),
*(_DWORD *)(a1 + 176) = 36,
result = v7(v5, a1),
(_DWORD)result) )
{
if ( (unsigned int)X509_CRL_get0_by_cert(a2, &v9) )
{
result = 2;
if ( *(_DWORD *)(v9 + 48) != 8 )
{
v8 = *(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 56);
*(_DWORD *)(a1 + 176) = 23;
return v8(0, a1) != 0;
}
}
else
{
return 1;
}
}
return result;
}