// // cocos2d::ZipUtils::decompressString2 from 0x5efdb8 to 0x5efee4 (300 bytes) // // 3 xrefs: // > MusicDownloadManager::parseSFXLibrary @ 0x45a908 // > MusicDownloadManager::parseMusicLibrary @ 0x45cdbc // > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x5fedf0 // // 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 // cocos2d::ZipUtils *__fastcall cocos2d::ZipUtils::decompressString2( cocos2d::ZipUtils *this, cocos2d *a2, int a3, const unsigned __int8 *a4, char a5) { const unsigned __int8 *v5; // r6 unsigned __int8 **v8; // r3 unsigned __int8 *v9; // r11 unsigned __int8 *v10; // r2 cocos2d::ZipUtils *v12; // [sp+0h] [bp-14h] BYREF void *v13; // [sp+4h] [bp-10h] BYREF cocos2d *v14; // [sp+8h] [bp-Ch] BYREF v5 = a4; if ( a2 && (int)a4 > 0 ) { v12 = nullptr; if ( a3 ) { v13 = &unk_ACDDA8; sub_774534(&v13, a2, a4); cocos2d::ZipUtils::encryptDecrypt(&v14, &v13, a5); v5 = *((const unsigned __int8 **)v14 - 3); v9 = (unsigned __int8 *)base64Decode(v14, v5, (void **)&v12, (unsigned int *)((char *)&dword_0 + 1)); sub_774008(&v14); sub_774008(&v13); } else { v9 = (unsigned __int8 *)base64Decode(a2, a4, (void **)&v12, (unsigned int *)((char *)&dword_0 + 1)); } if ( (int)v9 <= 0 ) { if ( v12 ) { operator delete[](v12); v12 = nullptr; } } else { v13 = nullptr; v10 = cocos2d::ZipUtils::ccInflateMemory(v12, v9, &v13, v8, (unsigned int)v12); if ( (int)v10 > 0 ) { v14 = (cocos2d *)&unk_ACDDA8; sub_774534(&v14, v13, v10); if ( v12 ) { operator delete[](v12); v12 = nullptr; } if ( v13 ) { operator delete[](v13); v13 = nullptr; } *(_DWORD *)this = v14; goto LABEL_21; } if ( v12 ) { operator delete[](v12); v12 = nullptr; } if ( v13 ) { operator delete[](v13); v13 = nullptr; } } v14 = (cocos2d *)&unk_ACDDA8; sub_774534(&v14, a2, v5); *(_DWORD *)this = v14; LABEL_21: v14 = (cocos2d *)&unk_ACDDA8; sub_774008(&v14); return this; } sub_776584((int)this, (char *)&unk_939830); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source