// // CMS_EncryptedData_set1_key from 0x8cf99c to 0x8cfaa4 (264 bytes) // // 1 xrefs: // > @ 0x6bc9c // // 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 CMS_EncryptedData_set1_key(int *a1, char **a2, const void *a3, void *a4) { bool v4; // zf void *v9; // r0 char **v10; // r0 int v11; // r1 v4 = a4 == nullptr; if ( a4 ) v4 = a3 == nullptr; if ( !v4 ) { if ( a2 ) { v9 = ASN1_item_new((int)&CMS_EncryptedData_it); a1[1] = (int)v9; if ( !v9 ) { ERR_put_error(46, 123, 65, (int)"crypto/cms/cms_enc.c", 193); return 0; } v10 = OBJ_nid2obj(0x1Au); v11 = a1[1]; *a1 = (int)v10; *(_DWORD *)v11 = 0; } else { if ( OBJ_obj2nid(*a1) != (_BYTE *)&dword_18 + 2 ) { ERR_put_error(46, 123, 122, (int)"crypto/cms/cms_enc.c", 199); return 0; } v11 = a1[1]; } return cms_EncryptedContent_init(*(char ****)(v11 + 4), a2, a3, a4); } ERR_put_error(46, 123, 130, (int)"crypto/cms/cms_enc.c", 187); return 0; }