//
// PKCS12_unpack_p7encdata from 0xe65984 to 0xe659f0 (108 bytes)
//
// 2 xrefs:
// > PKCS12_parse @ 0xdca470
// > ??> @ 0x88758
//
// 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 PKCS12_unpack_p7encdata(__int64 a1, __int64 a2, unsigned int a3)
{
if ( (unsigned int)OBJ_obj2nid(*(_QWORD *)(a1 + 24)) == 26 )
return PKCS12_item_decrypt_d2i(
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 8LL) + 8LL),
&PKCS12_SAFEBAGS_it,
a2,
a3,
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 8LL) + 16LL),
1);
else
return 0;
}