//
// PKCS12_SAFEBAG_get_bag_nid from 0x825d10 to 0x825d40 (48 bytes)
//
// 3 xrefs:
// > sub_824818 @ 0x824904
// > PKCS12_parse @ 0x824bfc
// > ??> @ 0x6575c
//
// 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
//
char *__fastcall PKCS12_SAFEBAG_get_bag_nid(int a1)
{
if ( (unsigned int)(PKCS12_SAFEBAG_get_nid((int *)a1) - 152) > 2 )
return (char *)-1;
else
return OBJ_obj2nid(**(_DWORD **)(a1 + 4));
}