//
// o2i_ECPublicKey from 0xd8ecac to 0xd8ed54 (168 bytes)
//
// 3 xrefs:
// > sub_D8B4C0 @ 0xd8bac8
// > sub_D8C0B4 @ 0xd8c138
// > ??> @ 0xb4318
//
// 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 o2i_ECPublicKey(__int64 *a1, _QWORD *a2, __int64 a3)
{
__int64 v5; // x19
if ( a1 && (v5 = *a1) != 0 && *(_QWORD *)(v5 + 24) )
{
if ( (unsigned int)EC_KEY_oct2key(v5, *a2, a3, 0) )
{
*a2 += a3;
}
else
{
v5 = 0;
ERR_put_error(16, 152, 16, "crypto/ec/ec_asn1.c", 1118);
}
}
else
{
v5 = 0;
ERR_put_error(16, 152, 67, "crypto/ec/ec_asn1.c", 1113);
}
return v5;
}