//
// cocos2d::CCFileUtils::getFileDataFromZip from 0x5de644 to 0x5de6e0 (156 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned __int8 *cocos2d::CCFileUtils::getFileDataFromZip(
cocos2d::CCFileUtils *a1,
const char *a2,
const 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 ( !*a2 )
return nullptr;
v6 = (cocos2d *)cocos2d::unzOpen((cocos2d *)a2, a2);
v8 = v6;
if ( !v6 )
return nullptr;
if ( cocos2d::unzLocateFile(v6, (char *)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 (unsigned __int8 *)v10;
}