// // cocos2d::CCFileUtils::getFileDataFromZip from 0x180072100 to 0x180072213 (275 bytes) // // 4 xrefs: // > @ 0x1801069a8 // > @ 0x180107758 // > @ 0x18014cf68 // > @ 0x1801be59c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:21:57 +0000 // unsigned __int8 *__fastcall cocos2d::CCFileUtils::getFileDataFromZip( cocos2d::CCFileUtils *this, cocos2d *a2, char *a3, unsigned int *a4) { void *v4; // rbx const char *v8; // rdx cocos2d *v9; // rax int v10; // r9d cocos2d *v11; // rdi void *v12; // rdx unsigned int v13; // r9d void *v14; // rdx void *v16; // [rsp+28h] [rbp-1A0h] char *v17; // [rsp+38h] [rbp-190h] unsigned int v18[7]; // [rsp+40h] [rbp-188h] BYREF size_t Size; // [rsp+5Ch] [rbp-16Ch] _BYTE v20[272]; // [rsp+90h] [rbp-138h] BYREF v4 = nullptr; *a4 = 0; if ( a2 ) { if ( a3 ) { if ( strlen((const char *)a2) ) { v9 = (cocos2d *)cocos2d::unzOpen(a2, v8); v11 = v9; if ( v9 ) { if ( !(unsigned int)cocos2d::unzLocateFile(v9, a3, (const char *)1, v10) ) { LODWORD(v17) = 0; LODWORD(v16) = 0; if ( !(unsigned int)cocos2d::unzGetCurrentFileInfo( v11, v18, (struct cocos2d::unz_file_info_s *)v20, (char *)0x104, 0, v16, 0, v17, v18[0]) && !(unsigned int)cocos2d::unzOpenCurrentFile(v11, v12) ) { v4 = (void *)sub_1800E4C6C((unsigned int)Size); cocos2d::unzReadCurrentFile(v11, v4, (void *)(unsigned int)Size, v13); *a4 = Size; cocos2d::unzCloseCurrentFile(v11, v14); } } cocos2d::unzClose(v11, v12); } } } } return (unsigned __int8 *)v4; }