// // ssl_get_client_min_max_version from 0x7a7934 to 0x7a7b58 (548 bytes) // // 3 xrefs: // > ssl_set_client_hello_version @ 0x7a7b78 // > ssl_set_client_disabled @ 0x7b1218 // > @ 0x5d4bc // // 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_get_client_min_max_version(int result, int *a2, _DWORD *a3) { int v3; // r3 int *v4; // r4 int v5; // r7 _DWORD *v7; // r5 int v8; // r6 int v9; // r0 int v10; // t1 int (__fastcall *v11)(int); // r3 int *v12; // r0 int v13; // r3 int *v14; // r10 int v15; // r11 int v16; // r2 int v17; // r3 int v18; // r3 int v19; // r3 int v20; // t1 v3 = **(_DWORD **)(result + 4); if ( v3 == 0x10000 ) { v4 = &dword_AB18F8; } else { if ( v3 != 0x1FFFF ) { v17 = *(_DWORD *)result; *a3 = *(_DWORD *)result; *a2 = v17; return 0; } v4 = &dword_AB18C8; } v5 = 0; *a2 = 0; if ( !*v4 ) { *a3 = 0; return 191; } v7 = (_DWORD *)result; v8 = 1; do { while ( 1 ) { v11 = (int (__fastcall *)(int))v4[1]; if ( !v11 ) goto LABEL_8; v12 = (int *)v11(result); v13 = v7[77]; v14 = v12; v15 = *v12; if ( v13 && v15 != v13 ) { if ( (*(_DWORD *)(*(_DWORD *)(v7[1] + 100) + 52) & 8) != 0 ) { if ( v15 == 256 ) { if ( v13 == 256 ) goto LABEL_7; v16 = 65280; } else { v16 = *v12; if ( v13 == 256 ) v13 = 65280; } if ( v16 > v13 ) goto LABEL_8; } else if ( v15 < v13 ) { goto LABEL_8; } } LABEL_7: v9 = ssl_security((int)v7, 9); if ( !v9 ) goto LABEL_8; v18 = v7[78]; if ( !v18 || v15 == v18 ) break; if ( (*(_DWORD *)(*(_DWORD *)(v7[1] + 100) + 52) & 8) == 0 ) { if ( v15 >= v18 ) goto LABEL_8; break; } if ( v15 == 256 ) { if ( v18 == 256 ) goto LABEL_8; v15 = 65280; } else if ( v18 == 256 ) { v18 = 65280; } if ( v15 > v18 ) break; LABEL_8: v8 = 1; LABEL_9: v10 = v4[3]; v4 += 3; result = v10; if ( !v10 ) goto LABEL_29; } if ( (v14[2] & v7[75]) != 0 ) goto LABEL_8; v19 = v14[1]; if ( (v19 & 2) != 0 && (*(_DWORD *)(v7[50] + 16) & 0x30000) != 0 ) goto LABEL_8; if ( (v19 & 1) != 0 && FIPS_mode(v9) ) goto LABEL_8; if ( v8 ) { v5 = *v14; *a2 = *v14; v8 = 0; goto LABEL_9; } *a2 = *v14; v20 = v4[3]; v4 += 3; result = v20; } while ( v20 ); LABEL_29: if ( !v5 ) result = 191; *a3 = v5; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source