//
// PKCS7_get_smimecap from 0x10e42dc to 0x10e4330 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x7d098
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:17:50 +0000
//
_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;
}