// // sub_10056F664 from 0x10056f664 to 0x10056f864 (512 bytes) // // 2 xrefs: // > sub_10056F55C @ 0x10056f610 // > sub_10056F864 @ 0x10056f948 // // 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 sub_10056F664(__int64 *a1, __int64 a2) { z_stream *v4; // x20 __int64 v5; // x26 int v6; // w27 void *v7; // x22 int i; // w24 unsigned int v9; // w0 unsigned int v10; // w25 __int64 v11; // x24 __int64 v12; // x0 v4 = (z_stream *)(a2 + 216); v5 = *(_QWORD *)(a2 + 216); v6 = *(_DWORD *)(a2 + 224); v7 = off_10085DEB0(0x4000u); if ( v7 ) { for ( i = 1; ; i = 0 ) { while ( 1 ) { *(_QWORD *)(a2 + 240) = v7; *(_DWORD *)(a2 + 248) = 0x4000; v9 = inflate(v4, 2); v10 = v9; if ( v9 <= 1 ) break; if ( !i || v9 != -3 || (inflateEnd(v4), inflateInit2_(v4, -15, "1.2.8", 112)) ) { off_10085DEB8(v7); goto LABEL_17; } i = 0; *(_QWORD *)(a2 + 216) = v5; *(_DWORD *)(a2 + 224) = v6; } if ( 0x4000 != *(_DWORD *)(a2 + 248) && !*(_BYTE *)(a2 + 369) ) { v11 = sub_100552F3C((__int64)a1, 1, (char *)v7, (unsigned int)(0x4000 - *(_DWORD *)(a2 + 248))); if ( (_DWORD)v11 ) { off_10085DEB8(v7); inflateEnd(v4); *(_DWORD *)(a2 + 212) = 0; return v11; } } if ( v10 == 1 ) break; if ( !*(_DWORD *)(a2 + 224) ) { off_10085DEB8(v7); return 0; } } off_10085DEB8(v7); if ( !inflateEnd(v4) ) { inflateEnd(v4); v11 = 0; *(_DWORD *)(a2 + 212) = 0; return v11; } LABEL_17: v12 = *a1; if ( *(_QWORD *)(a2 + 264) ) sub_100552734(v12, "Error while processing content unencoding: %s"); else sub_100552734(v12, "Error while processing content unencoding: Unknown failure within decompression software."); inflateEnd(v4); *(_DWORD *)(a2 + 212) = 0; return 61; } else { inflateEnd(v4); *(_DWORD *)(a2 + 212) = 0; return 27; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source