//
// cms_EncryptedContent_init from 0xe7b570 to 0xe7b608 (152 bytes)
//
// 3 xrefs:
// > CMS_EnvelopedData_create @ 0xe1d924
// > CMS_EncryptedData_set1_key @ 0xe7b688
// > ??> @ 0x9d440
//
// 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
//
__int64 __fastcall cms_EncryptedContent_init(char ***a1, char **a2, const void *a3, void *a4)
{
char **v8; // x0
unsigned int v9; // w4
a1[3] = a2;
if ( a3 )
{
v8 = (char **)CRYPTO_malloc(a4, (__int64)"crypto/cms/cms_enc.c", 171);
a1[4] = v8;
v9 = (unsigned int)v8;
if ( !v8 )
return v9;
memcpy(v8, a3, (size_t)a4);
}
a1[5] = (char **)a4;
if ( a2 )
{
*a1 = OBJ_nid2obj(0x15u);
return 1;
}
return 1;
}