//
// SMIME_write_CMS from 0x874420 to 0x874490 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x6a2dc
//
// 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 SMIME_write_CMS(int a1, int *a2, int a3, int a4)
{
char *v8; // r5
int v9; // r0
char *v10; // r0
int v11; // r3
v8 = OBJ_obj2nid(*a2);
v9 = CMS_get0_eContentType(a2);
v10 = OBJ_obj2nid(v9);
if ( v8 == (_BYTE *)&dword_14 + 2 )
v11 = *(_DWORD *)(a2[1] + 4);
else
v11 = 0;
return SMIME_write_ASN1(a1, a2, a3, a4, v8, v10, v11, CMS_ContentInfo_it);
}