//
// EC_POINT_new from 0x7ea57c to 0x7ea668 (236 bytes)
//
// 27 xrefs:
// > EC_GROUP_new_from_ecparameters @ 0x7e6d5c
// > d2i_ECPrivateKey @ 0x7e74f8
// > EC_GROUP_new_by_curve_name @ 0x7e822c
// > EC_KEY_copy @ 0x7e8b88
// > ec_key_simple_generate_key @ 0x7e8f58
// > ec_key_simple_check_key @ 0x7e90c8
// > EC_KEY_set_public_key_affine_coordinates @ 0x7e94cc
// > EC_KEY_oct2key @ 0x7e97b4
// > EC_GROUP_copy @ 0x7eaab8
// > EC_POINT_dup @ 0x7eab88
// > EC_GROUP_set_generator @ 0x7eb9f8
// > ec_wNAF_mul @ 0x7ec270
// > ec_wNAF_mul @ 0x7ec788
// > ec_wNAF_precompute_mult @ 0x7ecd04
// > ec_wNAF_precompute_mult @ 0x7ecdd4
// > ec_wNAF_precompute_mult @ 0x7ecde4
// > ecdh_simple_compute_key @ 0x7ed698
// > ossl_ecdsa_sign_setup @ 0x7edacc
// > ossl_ecdsa_sign_sig @ 0x7ee12c
// > ossl_ecdsa_verify_sig @ 0x7eee50
// > sub_7F0594 @ 0x7f06d8
// > sub_7F1BA0 @ 0x7f1c78
// > sub_7F1BA0 @ 0x7f1c84
// > EC_POINT_bn2point @ 0x88b540
// > ec_GF2m_simple_mul @ 0x8d19f4
// > ec_GF2m_simple_mul @ 0x8d1a04
// > ??> @ 0x6149c
//
// 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
//
_DWORD *__fastcall EC_POINT_new(int *a1)
{
_DWORD *v2; // r0
_DWORD *v3; // r4
int v4; // r2
int v5; // r5
_DWORD *result; // r0
if ( a1 )
{
if ( *(_DWORD *)(*a1 + 44) )
{
v2 = (_DWORD *)CRYPTO_zalloc(20, "crypto/ec/ec_lib.c", 559);
v3 = v2;
if ( v2 )
{
v4 = *a1;
*v2 = *a1;
v5 = (*(int (**)(void))(v4 + 44))();
result = v3;
if ( !v5 )
{
CRYPTO_free(v3, "crypto/ec/ec_lib.c", 568);
return nullptr;
}
}
else
{
ERR_put_error(16, 121, 65, "crypto/ec/ec_lib.c", 561);
return nullptr;
}
}
else
{
ERR_put_error(16, 121, 66, "crypto/ec/ec_lib.c", 555);
return nullptr;
}
}
else
{
ERR_put_error(16, 121, 67, "crypto/ec/ec_lib.c", 551);
return nullptr;
}
return result;
}