// // deflateSetDictionary from 0xcbdc08 to 0xcbddf4 (492 bytes) // // 1 xrefs: // > @ 0x4b1f8 // // 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 // __int64 __fastcall deflateSetDictionary(unsigned __int8 **a1, unsigned __int8 *a2, unsigned int a3) { unsigned __int8 *v4; // x20 unsigned int v5; // w25 unsigned __int8 *v6; // x19 int v7; // w22 unsigned int v8; // w0 int v9; // w23 unsigned __int8 *v10; // x24 unsigned int i; // w2 int v12; // w1 unsigned int v13; // w0 int v14; // w10 unsigned int v15; // w5 __int64 v16; // x9 int v17; // w8 __int64 v18; // x7 unsigned int v19; // w6 __int64 v20; // x2 int v21; // w1 __int64 v23; // x2 __int64 v24; // x1 unsigned __int64 v25; // x0 unsigned int v26; // w1 char *v27; // x0 size_t v28; // x2 v4 = a2; v5 = a3; if ( !a1 ) return 4294967294LL; v6 = a1[7]; if ( !a2 ) return 4294967294LL; if ( !v6 ) return 4294967294LL; v7 = *((_DWORD *)v6 + 11); if ( v7 == 2 ) return 4294967294LL; if ( v7 == 1 ) { if ( *((_DWORD *)v6 + 2) == 42 && !*((_DWORD *)v6 + 41) ) { v25 = adler32((unsigned __int64)a1[12], a2, a3); v26 = *((_DWORD *)v6 + 17); a1[12] = (unsigned __int8 *)v25; *((_DWORD *)v6 + 11) = 0; if ( v5 < v26 ) goto LABEL_8; v8 = v26; goto LABEL_15; } return 4294967294LL; } if ( *((_DWORD *)v6 + 41) ) return 4294967294LL; v8 = *((_DWORD *)v6 + 17); *((_DWORD *)v6 + 11) = 0; if ( a3 >= v8 ) { if ( !v7 ) { v27 = *((char **)v6 + 13); v28 = 2LL * (unsigned int)(*((_DWORD *)v6 + 29) - 1); *(_WORD *)&v27[v28] = 0; memset(v27, 0, v28); *((_DWORD *)v6 + 39) = 0; *((_QWORD *)v6 + 17) = 0; *((_DWORD *)v6 + 1479) = 0; v8 = *((_DWORD *)v6 + 17); } LABEL_15: v24 = v5 - v8; v5 = v8; v4 += v24; } LABEL_8: v9 = *((_DWORD *)a1 + 2); v10 = *a1; *((_DWORD *)a1 + 2) = v5; *a1 = v4; sub_CBC270((__int64 *)v6); for ( i = *((_DWORD *)v6 + 41); i > 2; i = *((_DWORD *)v6 + 41) ) { v12 = *((_DWORD *)v6 + 39); v13 = *((_DWORD *)v6 + 28); v14 = *((_DWORD *)v6 + 32); v15 = v12 - 2 + i; v16 = *((_QWORD *)v6 + 10); v17 = *((_DWORD *)v6 + 31); v18 = *((_QWORD *)v6 + 12); v19 = *((_DWORD *)v6 + 19); v20 = *((_QWORD *)v6 + 13); do { v13 = (*(unsigned __int8 *)(v16 + (unsigned int)(v12 + 2)) ^ (v13 << v14)) & v17; *((_DWORD *)v6 + 28) = v13; *(_WORD *)(v18 + 2LL * (v12 & v19)) = *(_WORD *)(v20 + 2LL * v13); *(_WORD *)(v20 + 2LL * v13) = v12++; } while ( v12 != v15 ); *((_DWORD *)v6 + 39) = v12; *((_DWORD *)v6 + 41) = 2; sub_CBC270((__int64 *)v6); } v21 = *((_DWORD *)v6 + 39); *((_DWORD *)v6 + 1479) = i; *((_DWORD *)v6 + 41) = 0; v23 = i + v21; *((_DWORD *)v6 + 42) = 2; *((_DWORD *)v6 + 39) = v23; *((_DWORD *)v6 + 36) = 2; *((_QWORD *)v6 + 17) = v23; *((_DWORD *)v6 + 38) = 0; *a1 = v10; *((_DWORD *)a1 + 2) = v9; *((_DWORD *)v6 + 11) = v7; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source