// // cocos2d::unzCloseCurrentFile from 0x1800a4690 to 0x1800a4745 (181 bytes) // // 6 xrefs: // > cocos2d::CCFileUtils::getFileDataFromZip @ 0x1800721df // > cocos2d::unzClose @ 0x1800a4663 // > cocos2d::unzOpenCurrentFile3 @ 0x1800a52c6 // > cocos2d::unzOpenCurrentFilePassword @ 0x1800a5572 // > @ 0x18014cf68 // > @ 0x1801c1a4c // // This function is hookable on this platform (idp: pc, 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 11:22:15 +0000 // __int64 __fastcall cocos2d::unzCloseCurrentFile(cocos2d *this, void *a2) { unsigned int v2; // edi __int64 v4; // rbx bool v5; // zf v2 = 0; if ( !this ) return 4294967194LL; v4 = *((_QWORD *)this + 34); if ( !v4 ) return 4294967194LL; if ( !*(_QWORD *)(v4 + 160) && !*(_DWORD *)(v4 + 280) && *(_DWORD *)(v4 + 144) != *(_DWORD *)(v4 + 148) ) v2 = -105; if ( *(_QWORD *)v4 ) free(*(void **)v4); v5 = *(_DWORD *)(v4 + 104) == 8; *(_QWORD *)v4 = 0; if ( v5 ) inflateEnd(v4 + 8, a2); *(_DWORD *)(v4 + 104) = 0; free((void *)v4); *((_QWORD *)this + 34) = 0; return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source