// // cocos2d::ZipUtils::ccInflateMemoryWithHint from 0xd99eec to 0xd9a05c (368 bytes) // // 2 xrefs: // > cocos2d::ZipUtils::ccInflateMemoryWithHint @ 0xd9a08c // > @ 0xa9660 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:08:23 +0000 // __int64 __fastcall cocos2d::ZipUtils::ccInflateMemoryWithHint( cocos2d::ZipUtils *this, unsigned __int8 *a2, void **a3, unsigned __int8 **a4, unsigned int *a5) { int v5; // w19 int v8; // w22 __int64 v10; // x0 __int64 result; // x0 unsigned int v12; // w0 unsigned int v13; // w19 char *v14; // x0 cocos2d::ZipUtils *v15; // [xsp+58h] [xbp+58h] BYREF int v16; // [xsp+60h] [xbp+60h] char *v17; // [xsp+70h] [xbp+70h] int v18; // [xsp+78h] [xbp+78h] __int64 v19; // [xsp+98h] [xbp+98h] __int64 v20; // [xsp+A0h] [xbp+A0h] __int64 v21; // [xsp+A8h] [xbp+A8h] v5 = (int)a2; v8 = (int)a5; v10 = operator new[]((int)a5); *a3 = (void *)v10; v19 = 0; v20 = 0; v21 = 0; v15 = this; v16 = v5; v17 = (char *)v10; v18 = v8; result = inflateInit2_(&v15, 47, "1.2.8", 112); if ( !(_DWORD)result ) { while ( 1 ) { v12 = inflate(&v15, 0); v13 = v12; if ( v12 == 1 ) break; switch ( v12 ) { case 0xFFFFFFFB: if ( v16 ) goto LABEL_4; inflateEnd(&v15); return 4294967293LL; case 0xFFFFFFFC: case 0xFFFFFFFD: goto LABEL_10; case 2u: v13 = -3; LABEL_10: inflateEnd(&v15); return v13; default: LABEL_4: v14 = (char *)realloc(*a3, 2 * v8); *a3 = v14; if ( !v14 ) { inflateEnd(&v15); return 4294967292LL; } v18 = v8; v17 = &v14[v8]; v8 *= 2; break; } } *(_DWORD *)a4 = v8 - v18; return inflateEnd(&v15); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source