//
// SSL_srp_server_param_with_username from 0x7b57ec to 0x7b58c4 (216 bytes)
//
// 2 xrefs:
// > tls_post_process_client_hello @ 0x7a9ad4
// > ??> @ 0x5d54c
//
// 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 SSL_srp_server_param_with_username(_DWORD *a1, _DWORD *a2)
{
int (__fastcall *v2)(_DWORD *); // r3
int result; // r0
int v6; // r2
int v7; // r0
_BYTE v8[52]; // [sp+0h] [bp-34h] BYREF
v2 = (int (__fastcall *)(_DWORD *))a1[123];
*a2 = 115;
if ( !v2 || (result = v2(a1)) == 0 )
{
v6 = a1[127];
*a2 = 80;
if ( v6 && a1[128] && a1[129] && a1[134] && RAND_bytes(v8, 48) > 0 )
{
a1[133] = BN_bin2bn(v8, 48, 0);
OPENSSL_cleanse(v8, 48);
v7 = SRP_Calc_B(a1[133], a1[127], a1[128], a1[134]);
a1[130] = v7;
if ( v7 )
return 0;
else
return 2;
}
else
{
return 2;
}
}
return result;
}