//
// sub_82C42C from 0x82c42c to 0x82c4c0 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0xa38d18
//
// 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_82C42C(_DWORD *a1, int a2)
{
int result; // r0
int v4; // r4
int v5; // [sp+8h] [bp-Ch] BYREF
int v6; // [sp+Ch] [bp-8h] BYREF
result = PKCS8_pkey_get0(nullptr, &v5, &v6, nullptr, a2);
if ( result )
{
v4 = d2i_RSAPrivateKey(0, &v5);
if ( v4 )
{
EVP_PKEY_assign(a1, 6, v4);
return 1;
}
else
{
ERR_put_error(4, 147, 4, (int)"crypto/rsa/rsa_ameth.c", 72);
return 0;
}
}
return result;
}