// // cocos2d::unzOpenCurrentFile3 from 0x1800a5280 to 0x1800a5512 (658 bytes) // // 7 xrefs: // > cocos2d::unzOpenCurrentFile2 @ 0x1800a526d // > cocos2d::unzOpenCurrentFile @ 0x1800a5535 // > @ 0x1801486dc // > @ 0x180148718 // > @ 0x180148728 // > @ 0x18014cf68 // > @ 0x1801c1b90 // // 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:22:15 +0000 // __int64 __fastcall cocos2d::unzOpenCurrentFile3(cocos2d *this, _DWORD *a2, int *a3, int *a4, __int64 a5) { int v5; // ebp char *v10; // rbx void *v11; // rax _DWORD *v12; // rcx int v13; // eax int v14; // edx _QWORD *v15; // rcx __int64 v16; // rax __int128 v17; // xmm1 __int128 v18; // xmm0 __int128 v19; // xmm1 __int128 v20; // xmm0 __int64 v21; // rcx __int64 v22; // rcx unsigned int v23; // esi unsigned int v24; // [rsp+20h] [rbp-28h] BYREF _QWORD v25[4]; // [rsp+28h] [rbp-20h] BYREF v5 = (int)a4; if ( a5 || !this || !*((_QWORD *)this + 18) ) return 4294967194LL; if ( *((_QWORD *)this + 34) ) cocos2d::unzCloseCurrentFile(this, a2); if ( (unsigned int)sub_1800A3760((__int64)this, &v24, v25, (unsigned int *)&a5) ) return 4294967193LL; v10 = (char *)malloc(0x120u); if ( !v10 ) return 4294967192LL; v11 = malloc(0x4000u); *((_QWORD *)v10 + 14) = v25[0]; *((_DWORD *)v10 + 30) = a5; *(_QWORD *)v10 = v11; *((_QWORD *)v10 + 16) = 0; *((_DWORD *)v10 + 70) = v5; if ( v11 ) { *((_DWORD *)v10 + 26) = 0; v12 = (_DWORD *)((char *)this + 188); if ( a2 ) *a2 = *v12; if ( a3 ) { *a3 = 6; v13 = *((_DWORD *)this + 46) & 6; switch ( v13 ) { case 2: *a3 = 9; break; case 4: *a3 = 2; break; case 6: *a3 = 1; v12 = (_DWORD *)((char *)this + 188); break; } } v14 = *v12; v15 = v10 + 8; *((_DWORD *)v10 + 37) = *((_DWORD *)this + 49); *((_QWORD *)v10 + 32) = *((_QWORD *)this + 12); v16 = *((_QWORD *)this + 15); *((_DWORD *)v10 + 36) = 0; *((_QWORD *)v10 + 17) = 0; *((_DWORD *)v10 + 66) = v14; *((_QWORD *)v10 + 34) = v16; *((_DWORD *)v10 + 9) = 0; v17 = *((_OWORD *)this + 1); *(_OWORD *)(v10 + 168) = *(_OWORD *)this; v18 = *((_OWORD *)this + 2); *(_OWORD *)(v10 + 184) = v17; v19 = *((_OWORD *)this + 3); *(_OWORD *)(v10 + 200) = v18; v20 = *((_OWORD *)this + 4); *(_OWORD *)(v10 + 216) = v19; *(_QWORD *)&v19 = *((_QWORD *)this + 10); *(_OWORD *)(v10 + 232) = v20; *((_QWORD *)v10 + 31) = v19; if ( v14 == 12 ) { if ( !v5 ) *((_DWORD *)v10 + 70) = 1; } else if ( v14 == 8 && !v5 ) { *((_QWORD *)v10 + 7) = 0; *((_QWORD *)v10 + 8) = 0; *((_QWORD *)v10 + 9) = 0; *v15 = 0; *((_DWORD *)v10 + 4) = 0; v23 = inflateInit2_(v15, 4294967281LL, "1.3.0", 88); if ( v23 ) { free(v10); return v23; } *((_DWORD *)v10 + 26) = 8; } v21 = v24; *((_QWORD *)v10 + 19) = *((_QWORD *)this + 25); v22 = *((_QWORD *)this + 33) + v21 + 30; *((_QWORD *)v10 + 20) = *((_QWORD *)this + 26); *((_QWORD *)v10 + 12) = v22; *((_DWORD *)v10 + 4) = 0; *((_QWORD *)this + 34) = v10; *((_DWORD *)this + 70) = 0; return 0; } free(v10); return 4294967192LL; }
GD Web Decomp Icon

GD Web Decomp

Raw Source