//
// EC_POINT_copy from 0x7ea820 to 0x7ea8b8 (152 bytes)
//
// 16 xrefs:
// > EC_KEY_copy @ 0x7e8b9c
// > EC_GROUP_copy @ 0x7ea980
// > EC_POINT_dup @ 0x7eab98
// > EC_GROUP_set_generator @ 0x7eb98c
// > ec_wNAF_mul @ 0x7ec7cc
// > ec_wNAF_mul @ 0x7ec888
// > ec_wNAF_mul @ 0x7ec958
// > ec_wNAF_precompute_mult @ 0x7ecdf8
// > ec_wNAF_precompute_mult @ 0x7ece64
// > sub_7F1BA0 @ 0x7f1f58
// > sub_7F1BA0 @ 0x7f1fa8
// > ec_GFp_simple_add @ 0x7f44c0
// > ec_GF2m_simple_add @ 0x88a3b0
// > ec_GF2m_simple_add @ 0x88a70c
// > ec_GF2m_simple_mul @ 0x8d1b9c
// > ??> @ 0x6168c
//
// 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_POINT_copy(_DWORD *a1, _DWORD *a2)
{
if ( *(_DWORD *)(*a1 + 56) )
{
if ( *a1 == *a2 )
{
if ( a1 == a2 )
return 1;
else
return (*(int (__fastcall **)(_DWORD *))(*a1 + 56))(a1);
}
else
{
ERR_put_error(16, 114, 101, "crypto/ec/ec_lib.c", 604);
return 0;
}
}
else
{
ERR_put_error(16, 114, 66, "crypto/ec/ec_lib.c", 600);
return 0;
}
}