//
// PKCS7_get_smimecap from 0xad0ddc to 0xad0e30 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x84f1c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:23 +0000
//
_DWORD *__fastcall PKCS7_get_smimecap(int a1)
{
_DWORD *result; // r0
int *v2; // r2
unsigned __int8 *v3; // r0
int v4; // r2
unsigned __int8 *v5; // [sp+4h] [bp-8h] BYREF
result = (_DWORD *)PKCS7_get_signed_attribute(a1);
if ( result )
{
if ( *result == 16 )
{
v2 = (int *)result[1];
v3 = (unsigned __int8 *)v2[2];
v4 = *v2;
v5 = v3;
return (_DWORD *)ASN1_item_d2i(nullptr, &v5, v4, (int)X509_ALGORS_it);
}
else
{
return nullptr;
}
}
return result;
}