// // SRP_Calc_server_key from 0x836948 to 0x836a64 (284 bytes) // // 2 xrefs: // > srp_generate_server_master_secret @ 0x7b5b14 // > @ 0x5db6c // // 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 SRP_Calc_server_key(int a1, int a2, int a3, int a4, int a5) { bool v5; // zf bool v6; // zf int v7; // r12 int v12; // r7 int v13; // r0 _BYTE *v14; // r8 int v15; // r0 int v16; // r4 int v17; // r0 v5 = a1 == 0; if ( a1 ) v5 = a3 == 0; if ( v5 ) return 0; v6 = a4 == 0; if ( a4 ) v6 = a2 == 0; v7 = v6; if ( !a5 ) v7 |= 1u; if ( v7 ) return 0; v12 = BN_CTX_new(a1); if ( v12 && (v13 = BN_new(), (v14 = (_BYTE *)v13) != nullptr) ) { v15 = BN_mod_exp(v13, a2, a3, a5, v12); if ( v15 && (v15 = BN_mod_mul(v14, a1, v14, a5, v12)) != 0 ) { v17 = BN_new(); v16 = v17; if ( v17 ) { if ( !BN_mod_exp(v17, v14, a4, a5, v12) ) { BN_free(v16); v16 = 0; } } } else { v16 = v15; } } else { v16 = 0; v14 = nullptr; } BN_CTX_free(v12); BN_clear_free(v14); return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source