//
// SRP_Verify_B_mod_N from 0x836fe4 to 0x83706c (136 bytes)
//
// 3 xrefs:
// > srp_generate_client_master_secret @ 0x7b5bc0
// > SRP_Verify_A_mod_N @ 0x83706c
// > ??> @ 0x5db7c
//
// 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
//
bool __fastcall SRP_Verify_B_mod_N(int a1, int a2, int a3, int a4)
{
bool v4; // zf
int v8; // r0
int v9; // r6
int v10; // r0
int v11; // r7
_BOOL4 v12; // r4
v4 = a2 == 0;
if ( a2 )
v4 = a1 == 0;
if ( v4 )
return 0;
v8 = BN_CTX_new(a1);
v9 = v8;
if ( !v8 )
return 0;
v10 = BN_new();
v11 = v10;
v12 = v10 && BN_nnmod(v10, a1, a2, v9, a4) && !BN_is_zero(v11);
BN_CTX_free(v9);
BN_free(v11);
return v12;
}