// // SSL_get_sigalgs from 0x7b39bc to 0x7b3c58 (668 bytes) // // 1 xrefs: // > @ 0x5d99c // // 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_sigalgs(int a1, int a2, int *a3, int *a4, _DWORD *a5, _BYTE *a6, _BYTE *a7) { int v7; // lr int v8; // r12 int v9; // lr bool v10; // zf char v11; // r4 int v12; // r4 int v13; // r7 int v14; // r4 int v15; // r1 int v16; // r1 int v17; // r12 int v18; // r3 int v19; // r3 bool v20; // zf int *v23; // r3 int *v24; // r1 v7 = *(_DWORD *)(a1 + 104); v8 = *(_DWORD *)(v7 + 616); if ( !v8 ) return 0; if ( a2 < 0 ) return *(_DWORD *)(v7 + 620) >> 1; if ( 2 * a2 < *(_DWORD *)(v7 + 620) ) { v9 = v8 + 2 * a2; if ( a7 ) *a7 = *(_BYTE *)(v8 + 2 * a2); if ( a6 ) *a6 = *(_BYTE *)(v9 + 1); v10 = a3 == nullptr; if ( !a3 ) v10 = a5 == nullptr; v11 = v10; if ( a4 ) v12 = 0; else v12 = v11 & 1; if ( v12 ) goto LABEL_57; v13 = (int)a4; if ( a4 ) v13 = 1; v14 = (int)a5; if ( a5 ) v14 = 1; if ( !(v13 | v14) ) { v15 = 0; goto LABEL_36; } v16 = *(unsigned __int8 *)(v8 + 2 * a2); switch ( v16 ) { case 1: v24 = dword_A0CAC8; break; case 2: v24 = &dword_A0CAD0; break; case 3: v24 = &dword_A0CAD8; break; case 4: v24 = &dword_A0CAE0; break; case 5: v24 = &dword_A0CAE8; break; case 6: v24 = &dword_A0CAF0; break; case 237: v24 = &dword_A0CAF8; break; case 238: v24 = &dword_A0CB00; break; case 239: v24 = &dword_A0CB08; break; default: v15 = 0; goto LABEL_34; } v15 = *v24; LABEL_34: if ( v13 ) *a4 = v15; LABEL_36: v17 = (int)a3; if ( a3 ) v17 = 1; if ( v17 | v14 ) { v18 = *(unsigned __int8 *)(v9 + 1); switch ( v18 ) { case 1: v23 = &dword_A0CB10; break; case 2: v23 = &dword_A0CB18; break; case 3: v23 = &dword_A0CB20; break; case 237: v23 = &dword_A0CB28; break; case 238: v23 = &dword_A0CB30; break; case 239: v23 = &dword_A0CB38; break; default: v19 = 0; goto LABEL_47; } v19 = *v23; LABEL_47: if ( v17 ) *a3 = v19; if ( v14 ) { v20 = v15 == 0; if ( v15 ) v20 = v19 == 0; if ( v20 || OBJ_find_sigid_by_algs(a5, v15, v19) <= 0 ) { v7 = *(_DWORD *)(a1 + 104); *a5 = 0; } else { v7 = *(_DWORD *)(a1 + 104); } return *(_DWORD *)(v7 + 620) >> 1; } } LABEL_57: v7 = *(_DWORD *)(a1 + 104); return *(_DWORD *)(v7 + 620) >> 1; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source