//
// BN_BLINDING_invert_ex from 0xe15044 to 0xe150bc (120 bytes)
//
// 4 xrefs:
// > sub_DD4EB0 @ 0xdd5094
// > sub_DD535C @ 0xdd54b0
// > BN_BLINDING_invert @ 0xe150cc
// > ??> @ 0x67140
//
// 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 BN_BLINDING_invert_ex(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // x3
__int64 v6; // x2
if ( a2 )
{
v5 = *(_QWORD *)(a3 + 24);
v6 = a2;
return BN_mod_mul(a1, a1, v6, v5, a4);
}
if ( *(_QWORD *)(a3 + 8) )
{
v5 = *(_QWORD *)(a3 + 24);
v6 = *(_QWORD *)(a3 + 8);
return BN_mod_mul(a1, a1, v6, v5, a4);
}
ERR_put_error(3, 101, 107, (__int64)"crypto/bn/bn_blind.c", 174);
return 0;
}