//
// PKCS12_SAFEBAG_get_bag_nid from 0xdcb560 to 0xdcb5a4 (68 bytes)
//
// 3 xrefs:
// > sub_DCA0A8 @ 0xdca194
// > PKCS12_parse @ 0xdca564
// > ??> @ 0xa2d08
//
// 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_get_bag_nid(__int64 a1)
{
if ( (unsigned int)PKCS12_SAFEBAG_get_nid((__int64 *)a1) - 152 > 2 )
return 0xFFFFFFFFLL;
else
return OBJ_obj2nid(**(_QWORD **)(a1 + 8));
}