// // cocos2d::CCFileUtils::getFileDataFromZip from 0x180070050 to 0x180070170 (288 bytes) // // 6 xrefs: // > @ 0x180100358 // > @ 0x180101080 // > @ 0x18013a4f4 // > @ 0x18013a504 // > @ 0x1801438a8 // > @ 0x1801b41f4 // // 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 *this, cocos2d *a2, char *a3, unsigned int *a4) { void *v4; // rbx __int64 v7; // rax cocos2d *v8; // rax int v9; // r9d cocos2d *v10; // rdi void *v11; // rdx unsigned int v12; // r9d void *v13; // rdx void *v15; // [rsp+28h] [rbp-1A0h] char *v16; // [rsp+38h] [rbp-190h] unsigned int v17[7]; // [rsp+40h] [rbp-188h] BYREF size_t Size; // [rsp+5Ch] [rbp-16Ch] _BYTE v19[272]; // [rsp+90h] [rbp-138h] BYREF v4 = nullptr; *a4 = 0; if ( !a2 ) return nullptr; if ( !a3 ) return nullptr; v7 = -1; do ++v7; while ( *((_BYTE *)a2 + v7) ); if ( !v7 ) return nullptr; v8 = (cocos2d *)cocos2d::unzOpen(a2, (const char *)a2); v10 = v8; if ( v8 ) { if ( !(unsigned int)cocos2d::unzLocateFile(v8, a3, (const char *)1, v9) ) { LODWORD(v16) = 0; LODWORD(v15) = 0; if ( !(unsigned int)cocos2d::unzGetCurrentFileInfo( v10, v17, (struct cocos2d::unz_file_info_s *)v19, (char *)0x104, 0, v15, 0, v16, v17[0]) && !(unsigned int)cocos2d::unzOpenCurrentFile(v10, v11) ) { v4 = operator new((unsigned int)Size); cocos2d::unzReadCurrentFile(v10, v4, (void *)(unsigned int)Size, v12); *a4 = Size; cocos2d::unzCloseCurrentFile(v10, v13); } } cocos2d::unzClose(v10, v11); } return (unsigned __int8 *)v4; }