// // cocos2d::CCFileUtils::getFileDataFromZip from 0x7e6da4 to 0x7e6e40 (156 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:54 +0000 // void *__fastcall cocos2d::CCFileUtils::getFileDataFromZip( cocos2d::CCFileUtils *this, cocos2d *a2, char *a3, unsigned int *a4) { cocos2d *v6; // r0 int v7; // r3 cocos2d *v8; // r4 void *v9; // r1 void *v10; // r5 unsigned int v11; // r3 void *v12; // r1 _BYTE v14[28]; // [sp+10h] [bp-158h] BYREF void *v15; // [sp+2Ch] [bp-13Ch] _BYTE v16[260]; // [sp+60h] [bp-108h] BYREF *a4 = 0; if ( !a2 ) return nullptr; if ( !a3 ) return nullptr; if ( !*(_BYTE *)a2 ) return nullptr; v6 = (cocos2d *)cocos2d::unzOpen(a2, (const char *)a2); v8 = v6; if ( !v6 ) return nullptr; if ( cocos2d::unzLocateFile(v6, a3, (const char *)&dword_0 + 1, v7) || cocos2d::unzGetCurrentFileInfo(v8, v14, v16, 260, 0, 0, 0, 0) || cocos2d::unzOpenCurrentFile(v8, v9) ) { if ( v8 ) { v10 = nullptr; goto LABEL_11; } return nullptr; } v10 = (void *)operator new[]((unsigned int)v15); cocos2d::unzReadCurrentFile(v8, v10, v15, v11); *a4 = (unsigned int)v15; cocos2d::unzCloseCurrentFile(v8, v12); LABEL_11: cocos2d::unzClose(v8, v9); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source