// // ssl_version_supported from 0x7a6fc4 to 0x7a71ec (552 bytes) // // 2 xrefs: // > tls_construct_client_hello @ 0x7a0660 // > @ 0x5cf9c // // 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 ssl_version_supported(_DWORD *a1, int a2) { _DWORD *v2; // r2 int *v3; // r4 int v4; // r3 _DWORD *i; // r6 int v7; // r2 int (__fastcall *v9)(_DWORD *); // r3 int v10; // r2 _DWORD *v11; // r9 int v12; // r8 int v13; // r3 int v14; // r3 int v15; // t1 int v16; // r2 int v17; // r3 v2 = (_DWORD *)a1[1]; if ( *v2 == 0x10000 ) { v3 = &dword_AB18F8; } else { if ( *v2 != 0x1FFFF ) return *a1 == a2; v3 = &dword_AB18C8; } v4 = *v3; if ( !*v3 ) return 0; for ( i = a1; ; v2 = (_DWORD *)i[1] ) { v7 = *(_DWORD *)(v2[25] + 52) & 8; if ( a2 != v4 ) { if ( v7 ) { if ( a2 == 256 ) { if ( v4 == 256 ) return 0; v16 = 65280; } else { v16 = a2; if ( v4 == 256 ) v4 = 65280; } if ( v16 <= v4 ) return 0; } else if ( a2 >= v4 ) { return 0; } goto LABEL_28; } v9 = (int (__fastcall *)(_DWORD *))v3[1]; if ( !v9 ) goto LABEL_28; a1 = (_DWORD *)v9(a1); v10 = i[77]; v11 = a1; v12 = *a1; if ( v10 && v12 != v10 ) { if ( (*(_DWORD *)(*(_DWORD *)(i[1] + 100) + 52) & 8) != 0 ) { if ( v12 == 256 ) { if ( v10 == 256 ) goto LABEL_17; v17 = 65280; } else { v17 = *a1; if ( v10 == 256 ) v10 = 65280; } if ( v10 < v17 ) goto LABEL_28; } else if ( v12 < v10 ) { goto LABEL_28; } } LABEL_17: a1 = (_DWORD *)ssl_security((int)i, 9); if ( !a1 ) goto LABEL_28; v13 = i[78]; if ( v13 && v12 != v13 ) { if ( (*(_DWORD *)(*(_DWORD *)(i[1] + 100) + 52) & 8) != 0 ) { if ( v12 == 256 ) { if ( v13 == 256 ) goto LABEL_28; v12 = 65280; } else if ( v13 == 256 ) { v13 = 65280; } if ( v12 <= v13 ) goto LABEL_28; } else if ( v12 >= v13 ) { goto LABEL_28; } } if ( (v11[2] & i[75]) == 0 ) { v14 = v11[1]; if ( (v14 & 2) == 0 || (*(_DWORD *)(i[50] + 16) & 0x30000) == 0 ) { if ( (v14 & 1) == 0 ) break; a1 = (_DWORD *)FIPS_mode(a1); if ( !a1 ) break; } } LABEL_28: v15 = v3[3]; v3 += 3; v4 = v15; if ( !v15 ) return 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source