// // cocos2d::ZipFile::getFileData from 0x7faf68 to 0x7fafec (132 bytes) // // 2 xrefs: // > cocos2d::CCFileUtilsAndroid::doGetFileData @ 0x7eb11a // > cocos2d::ZipFile::getFileData @ 0x7faff2 // // 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:01:14 +0000 // void *__fastcall cocos2d::ZipFile::getFileData(int a1, unsigned __int8 *a2, void **a3, cocos2d **a4) { int v6; // r0 int *v8; // r0 _DWORD *v9; // r0 int v10; // r1 void *v11; // r2 void *v12; // r1 void *v13; // r7 unsigned int v14; // r3 void *v15; // r1 _DWORD v17[2]; // [sp+0h] [bp-14h] BYREF void *v18; // [sp+8h] [bp-Ch] if ( a3 ) *a3 = nullptr; if ( !*a4 ) return nullptr; v6 = *a2; if ( !((v6 & 1) != 0 ? *((_DWORD *)a2 + 1) : v6 >> 1) ) return nullptr; v8 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find( (int)(a4 + 1), a2); if ( v8 == (int *)(a4 + 2) ) return nullptr; v9 = v8 + 7; v10 = v9[1]; v11 = (void *)v9[2]; v17[0] = *v9; v17[1] = v10; v18 = v11; if ( cocos2d::unzGoToFilePos(*a4, v17) || cocos2d::unzOpenCurrentFile(*a4, v12) ) return nullptr; v13 = (void *)operator new[]((unsigned int)v18); cocos2d::unzReadCurrentFile(*a4, v13, v18, v14); if ( a3 ) *a3 = v18; cocos2d::unzCloseCurrentFile(*a4, v15); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source