//
// PKCS12_SAFEBAG_get1_cert from 0xdcb5a4 to 0xdcb600 (92 bytes)
//
// 3 xrefs:
// > sub_DCA0A8 @ 0xdca1a4
// > PKCS12_parse @ 0xdca574
// > ??> @ 0x41b50
//
// 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_SAFEBAG_get1_cert(__int64 a1)
{
if ( (unsigned int)PKCS12_SAFEBAG_get_nid((__int64 *)a1) == 152
&& (unsigned int)OBJ_obj2nid(**(_QWORD **)(a1 + 8)) == 158 )
{
return ASN1_item_unpack(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL), &X509_it);
}
else
{
return 0;
}
}