//
// sub_82BB48 from 0x82bb48 to 0x82bc10 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0xa38d1c
//
// 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 sub_82BB48(int a1, int a2)
{
int v3; // r6
char **v4; // r0
v3 = i2d_RSAPrivateKey(*(_DWORD *)(a2 + 20));
if ( v3 <= 0 )
{
ERR_put_error(4, 138, 65, (int)"crypto/rsa/rsa_ameth.c", 91);
return 0;
}
else
{
v4 = OBJ_nid2obj(6u);
if ( PKCS8_pkey_set0(a1, (int)v4, 0, 5, 0, 0, v3) )
{
return 1;
}
else
{
ERR_put_error(4, 138, 65, (int)"crypto/rsa/rsa_ameth.c", 97);
return 0;
}
}
}