// // cocos2d::unzLocateFile from 0x1800a1140 to 0x1800a13dd (669 bytes) // // 6 xrefs: // > cocos2d::CCFileUtils::getFileDataFromZip @ 0x1800700cb // > @ 0x18013f324 // > @ 0x18013f334 // > @ 0x18013f354 // > @ 0x1801438a8 // > @ 0x1801b7878 // // 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 // __int64 __fastcall cocos2d::unzLocateFile(cocos2d *this, _BYTE *a2, const char *a3) { int v3; // ebp unsigned __int64 v6; // rax __int64 result; // rax __int64 v8; // rbx __int64 v9; // r14 __int64 v10; // r15 int v11; // eax unsigned __int8 *v12; // rax signed __int64 v13; // rdx unsigned __int8 v14; // cl int v15; // eax char *v16; // r10 char v17; // dl char v18; // r8 char v19; // r9 char v20; // dl __int64 v21; // [rsp+50h] [rbp-1A8h] __int128 v22; // [rsp+58h] [rbp-1A0h] __int128 v23; // [rsp+68h] [rbp-190h] __int128 v24; // [rsp+78h] [rbp-180h] __int128 v25; // [rsp+88h] [rbp-170h] __int128 v26; // [rsp+98h] [rbp-160h] _BYTE v27[272]; // [rsp+B0h] [rbp-148h] BYREF v3 = (int)a3; if ( !this ) return 4294967194LL; v6 = -1; do ++v6; while ( a2[v6] ); if ( v6 >= 0x100 ) return 4294967194LL; if ( !*((_QWORD *)this + 18) ) return 4294967196LL; v8 = *((_QWORD *)this + 33); v22 = *((_OWORD *)this + 11); v9 = *((_QWORD *)this + 16); v23 = *((_OWORD *)this + 12); v10 = *((_QWORD *)this + 17); v24 = *((_OWORD *)this + 13); v25 = *((_OWORD *)this + 14); v26 = *((_OWORD *)this + 15); v21 = *((_QWORD *)this + 32); for ( result = cocos2d::unzGoToFirstFile(this, a2); !(_DWORD)result; result = cocos2d::unzGoToNextFile64(this, nullptr, nullptr, nullptr) ) { result = sub_18009FC50((__int64)this, 0, nullptr, (__int64)v27, 0x100u, 0, 0, 0, 0); if ( (_DWORD)result ) break; v11 = 2; if ( v3 ) v11 = v3; if ( v11 == 1 ) { v12 = v27; v13 = a2 - v27; while ( 1 ) { v14 = *v12; if ( *v12 != v12[v13] ) break; ++v12; if ( !v14 ) { v15 = 0; goto LABEL_29; } } v15 = v14 < v12[v13] ? -1 : 1; } else { v16 = a2; while ( 1 ) { v17 = v16[v27 - a2]; v18 = *v16++; v19 = v17 - 32; if ( (unsigned __int8)(v17 - 97) > 0x19u ) v19 = v17; v20 = v18 - 32; if ( (unsigned __int8)(v18 - 97) > 0x19u ) v20 = v18; if ( !v19 ) break; if ( !v20 ) goto LABEL_26; if ( v19 < v20 ) { v15 = -1; goto LABEL_29; } if ( v19 > v20 ) { LABEL_26: v15 = 1; goto LABEL_29; } } v15 = -(v20 != 0); } LABEL_29: if ( !v15 ) return 0; } *((_QWORD *)this + 16) = v9; *((_QWORD *)this + 17) = v10; *((_OWORD *)this + 11) = v22; *((_QWORD *)this + 33) = v8; *((_OWORD *)this + 12) = v23; *((_OWORD *)this + 13) = v24; *((_OWORD *)this + 14) = v25; *((_OWORD *)this + 15) = v26; *((_QWORD *)this + 32) = v21; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source