//
// PKCS7_get_smimecap from 0xe662dc to 0xe66330 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x5b218
//
// 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
//
_DWORD *__fastcall PKCS7_get_smimecap(__int64 a1)
{
_DWORD *result; // x0
_DWORD *v2; // x1
int v3; // w2
int *v4; // x2
char *v5; // [xsp+18h] [xbp+18h] BYREF
result = (_DWORD *)PKCS7_get_signed_attribute(a1);
v2 = result;
if ( result )
{
v3 = *result;
result = nullptr;
if ( v3 == 16 )
{
v4 = *((int **)v2 + 1);
v5 = *((char **)v4 + 1);
return (_DWORD *)ASN1_item_d2i(nullptr, &v5, *v4, (__int64)&X509_ALGORS_it);
}
}
return result;
}