//
// PKCS12_SAFEBAG_get1_cert from 0x825d40 to 0x825d88 (72 bytes)
//
// 3 xrefs:
// > sub_824818 @ 0x824914
// > PKCS12_parse @ 0x824d7c
// > ??> @ 0x6576c
//
// 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_SAFEBAG_get1_cert(int a1)
{
if ( PKCS12_SAFEBAG_get_nid((int *)a1) == (char *)&dword_98
&& OBJ_obj2nid(**(_DWORD **)(a1 + 4)) == (_BYTE *)off_9C + 2 )
{
return ASN1_item_unpack(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 4), &X509_it);
}
else
{
return 0;
}
}