//
// EC_KEY_key2buf from 0x7e96e8 to 0x7e9738 (80 bytes)
//
// 6 xrefs:
// > sub_7E3D80 @ 0x7e3ddc
// > sub_7E51A0 @ 0x7e51fc
// > sub_7E5364 @ 0x7e53c4
// > EC_KEY_print @ 0x7e561c
// > i2d_ECPrivateKey @ 0x7e77e8
// > ??> @ 0x610ec
//
// 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 EC_KEY_key2buf(int result, int a2, int a3, int a4)
{
int v4; // lr
if ( result )
{
v4 = *(_DWORD *)(result + 16);
if ( v4 )
{
result = *(_DWORD *)(result + 12);
if ( result )
return EC_POINT_point2buf(result, v4, a2, a3, a4);
}
else
{
return 0;
}
}
return result;
}