// // inflateSetDictionary from 0x73dd1c to 0x73de34 (280 bytes) // // 0 xrefs: // // 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 inflateSetDictionary(int a1, unsigned __int8 *a2, size_t a3) { _DWORD *v3; // r7 int v7; // r6 char *v8; // r0 unsigned __int8 *v9; // r8 size_t v10; // r3 int v11; // r1 int v12; // r2 unsigned __int8 *v13; // r1 size_t v14; // r4 char *v15; // r0 size_t v16; // r5 int result; // r0 unsigned int v18; // r2 size_t v19; // r3 bool v20; // zf unsigned int v21; // r3 unsigned int v22; // r0 int v23; // r3 int v24; // r3 if ( !a1 ) return -2; v3 = *(_DWORD **)(a1 + 28); if ( !v3 ) return -2; if ( v3[2] ) { if ( *v3 == 10 ) { LABEL_20: v22 = adler32(0, nullptr, 0); if ( v3[6] != adler32(v22, a2, a3) ) return -3; v7 = *(_DWORD *)(a1 + 28); goto LABEL_7; } return -2; } if ( *v3 == 10 ) goto LABEL_20; v7 = *(_DWORD *)(a1 + 28); LABEL_7: v8 = *(char **)(v7 + 52); v9 = &a2[a3]; if ( v8 || (v8 = (char *)(*(int (__fastcall **)(_DWORD, int, int))(a1 + 32))( *(_DWORD *)(a1 + 40), 1 << *(_DWORD *)(v7 + 36), 1), (*(_DWORD *)(v7 + 52) = v8) != 0) ) { v10 = *(_DWORD *)(v7 + 40); if ( !v10 ) { v11 = *(_DWORD *)(v7 + 36); *(_DWORD *)(v7 + 48) = 0; v10 = 1 << v11; *(_DWORD *)(v7 + 44) = 0; *(_DWORD *)(v7 + 40) = 1 << v11; } if ( a3 >= v10 ) { memcpy(v8, &v9[-v10], v10); v23 = *(_DWORD *)(v7 + 40); *(_DWORD *)(v7 + 48) = 0; *(_DWORD *)(v7 + 44) = v23; v3[3] = 1; return 0; } else { v12 = *(_DWORD *)(v7 + 48); v13 = a2; v14 = v10 - v12; v15 = &v8[v12]; if ( v10 - v12 >= a3 ) v14 = a3; memcpy(v15, v13, v14); v16 = a3 - v14; if ( v16 ) { memcpy(*(void **)(v7 + 52), &v9[-v16], v16); v24 = *(_DWORD *)(v7 + 40); *(_DWORD *)(v7 + 48) = v16; *(_DWORD *)(v7 + 44) = v24; v3[3] = 1; return 0; } else { result = 0; v18 = *(_DWORD *)(v7 + 40); v19 = *(_DWORD *)(v7 + 48) + v14; *(_DWORD *)(v7 + 48) = v19; v20 = v19 == v18; v21 = *(_DWORD *)(v7 + 44); if ( v20 ) *(_DWORD *)(v7 + 48) = 0; if ( v18 > v21 ) *(_DWORD *)(v7 + 44) = v21 + v14; v3[3] = 1; } } } else { *v3 = 30; return -4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source