//
// PKCS7_add_attrib_smimecap from 0x8bbd58 to 0x8bbdd4 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x6b48c
//
// 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
//
int __fastcall PKCS7_add_attrib_smimecap(int a1, size_t *a2)
{
int *v4; // r0
int v5; // r4
v4 = (int *)ASN1_STRING_new();
v5 = (int)v4;
if ( v4 )
{
*v4 = ASN1_item_i2d(a2, v4 + 2, X509_ALGORS_it);
return PKCS7_add_signed_attribute(a1, (_BYTE *)&dword_A4 + 3, 16, v5);
}
else
{
ERR_put_error(33, 118, 65, (int)"crypto/pkcs7/pk7_attr.c", 26);
return 0;
}
}