//
// srp_verify_server_param from 0xd5cabc to 0xd5cb7c (192 bytes)
//
// 2 xrefs:
// > tls_process_key_exchange @ 0xd4b7d0
// > ??> @ 0x428b8
//
// 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 srp_verify_server_param(_QWORD *a1, _DWORD *a2)
{
_QWORD *v2; // x19
unsigned int is_zero; // w20
int (__fastcall *v7)(_QWORD *, _QWORD); // x2
v2 = a1 + 99;
if ( (BN_ucmp(a1[105], a1[104]) & 0x80000000) != 0 && (BN_ucmp(v2[8], v2[5]) & 0x80000000) != 0 )
{
is_zero = BN_is_zero(v2[8]);
if ( !is_zero )
{
if ( (int)BN_num_bits(v2[5]) >= *((_DWORD *)v2 + 28) )
{
v7 = (int (__fastcall *)(_QWORD *, _QWORD))v2[2];
if ( v7 )
{
if ( v7(a1, a1[99]) > 0 )
return 1;
}
else if ( SRP_check_known_gN_param(v2[6], v2[5]) )
{
return 1;
}
}
*a2 = 71;
return is_zero;
}
}
is_zero = 0;
*a2 = 47;
return is_zero;
}