//
// o2i_ECPublicKey from 0x7e7b70 to 0x7e7c20 (176 bytes)
//
// 3 xrefs:
// > sub_7E3D80 @ 0x7e451c
// > sub_7E49DC @ 0x7e4a5c
// > ??> @ 0x6112c
//
// 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 o2i_ECPublicKey(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // r4
if ( a1 && (v3 = *a1) != 0 && *(_DWORD *)(v3 + 12) )
{
if ( EC_KEY_oct2key(*a1, *a2, a3, 0) )
{
*a2 += a3;
}
else
{
v3 = 0;
ERR_put_error(16, 152, 16, "crypto/ec/ec_asn1.c", 1118);
}
}
else
{
ERR_put_error(16, 152, 67, "crypto/ec/ec_asn1.c", 1113);
return 0;
}
return v3;
}