// // cocos2d::extension::assetsManagerDownloadAndUncompress from 0xd0a1c4 to 0xd0a308 (324 bytes) // // 3 xrefs: // > @ 0x5afd0 // > cocos2d::extension::AssetsManager::update @ 0xd0a53c // > @ 0x15421c0 // // This function is hookable on this platform (idp: arm, 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 13:06:59 +0000 // __int64 __fastcall cocos2d::extension::assetsManagerDownloadAndUncompress(cocos2d::extension *this, void *a2) { char *v2; // x4 unsigned __int8 v4; // w0 int v5; // w5 size_t v6; // x2 unsigned __int8 v7; // w0 int v8; // w6 __int64 v9; // x1 void *v10; // x0 unsigned __int8 *v12; // x0 unsigned __int8 *v13; // x1 unsigned __int8 *v14; // x3 unsigned __int8 *v15; // x2 int v16; // t1 __int64 v17; // x0 __int64 v18; // x0 v2 = (char *)this + 104; v4 = *((_BYTE *)this + 104); v5 = v4 & 1; v6 = v4 >> 1; if ( (v4 & 1) != 0 ) v6 = *((_QWORD *)v2 + 1); v7 = *((_BYTE *)this + 32); v8 = v7 & 1; v9 = v7 >> 1; if ( (v7 & 1) != 0 ) v9 = *((_QWORD *)this + 5); if ( v6 == v9 ) { v12 = (unsigned __int8 *)this + 105; if ( v5 ) v12 = *((unsigned __int8 **)v2 + 2); v13 = (unsigned __int8 *)this + 33; if ( v8 ) v13 = *((unsigned __int8 **)this + 6); if ( v5 ) { if ( !v6 || !memcmp(v12, v13, v6) ) goto LABEL_22; } else { if ( !v6 ) goto LABEL_22; if ( *v12 == *v13 ) { v14 = v12 + 1; v15 = &v12[v6]; do { ++v13; if ( v14 == v15 ) goto LABEL_22; v16 = *v14++; } while ( *v13 == v16 ); } } } if ( !(unsigned __int8)cocos2d::extension::AssetsManager::downLoad(this) ) goto LABEL_7; v17 = operator new(0x10u); *(_QWORD *)(v17 + 8) = this; *(_DWORD *)v17 = 1; cocos2d::extension::AssetsManager::Helper::sendMessage(*((_QWORD *)this + 17), v17); LABEL_22: if ( (unsigned __int8)cocos2d::extension::AssetsManager::uncompress(this) ) { v18 = operator new(0x10u); *(_QWORD *)(v18 + 8) = this; *(_DWORD *)v18 = 0; cocos2d::extension::AssetsManager::Helper::sendMessage(*((_QWORD *)this + 17), v18); } else { cocos2d::extension::AssetsManager::sendErrorMessage((__int64)this, 3); } LABEL_7: v10 = *((void **)this + 18); if ( v10 ) { operator delete(v10); *((_QWORD *)this + 18) = 0; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source