//
// PKCS12_unpack_p7encdata from 0x8bb488 to 0x8bb4e0 (88 bytes)
//
// 2 xrefs:
// > PKCS12_parse @ 0x824d50
// > ??> @ 0x657ec
//
// 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 PKCS12_unpack_p7encdata(int a1, int a2, int a3)
{
if ( OBJ_obj2nid(*(_DWORD *)(a1 + 16)) == (_BYTE *)&dword_18 + 2 )
return PKCS12_item_decrypt_d2i(
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 4) + 4),
PKCS12_SAFEBAGS_it,
a2,
a3,
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 4) + 8),
1);
else
return 0;
}