//
// cocos2d::CCFileUtils::getFileDataFromZip from 0x100150c74 to 0x100150d90 (284 bytes)
//
// 2 xrefs:
// > ??> @ 0x10079a400
// > ??> @ 0x1007c7cd0
//
// 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 *__fastcall cocos2d::CCFileUtils::getFileDataFromZip(
cocos2d::CCFileUtils *a1,
const char *a2,
const char *a3,
unsigned __int64 *a4)
{
unsigned __int8 *v4; // x21
__int64 v7; // x0
__int64 v8; // x19
size_t v10; // x22
_BYTE v11[56]; // [xsp+8h] [xbp-1C8h] BYREF
size_t __sz; // [xsp+40h] [xbp-190h]
_BYTE v13[260]; // [xsp+94h] [xbp-13Ch] BYREF
v4 = nullptr;
*a4 = 0;
if ( a2 && a3 )
{
if ( *a2 && (v7 = sub_100177D70(a2)) != 0 )
{
v8 = v7;
if ( (unsigned int)sub_1001785F8(v7, (char *)a3)
|| (unsigned int)sub_1001783F8(v8, v11, v13, 260, 0, 0, 0, 0)
|| (unsigned int)sub_100178BAC(v8) )
{
v4 = nullptr;
}
else
{
v10 = __sz;
v4 = (unsigned __int8 *)operator new[](__sz);
sub_100178BC0(v8, v4, v10);
*a4 = __sz;
sub_100177DD0(v8);
}
sub_100177D7C(v8);
}
else
{
return nullptr;
}
}
return v4;
}