// // cocos2d::extension::AssetsManager::downLoad from 0xa98220 to 0xa98408 (488 bytes) // // 2 xrefs: // > cocos2d::extension::assetsManagerDownloadAndUncompress @ 0xa98434 // > @ 0x79638 // // 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::extension::AssetsManager::downLoad(cocos2d::extension::AssetsManager *this) { FILE *v2; // x21 int v3; // w22 char *v4; // x2 unsigned int v5; // w19 char *v6; // x0 unsigned int *v8; // x2 int v9; // w1 char *filename; // [xsp+40h] [xbp+40h] BYREF sub_D18D28(&filename); sub_D15FD4(&filename, "cocos2dx-update-temp-package.zip", 32); v2 = fopen(filename, "wb"); if ( v2 ) { sub_B94BD0(*((_QWORD *)this + 6), 10002, *((_QWORD *)this + 3)); sub_B94BD0(*((_QWORD *)this + 6), 20011, j__fwrite); sub_B94BD0(*((_QWORD *)this + 6), 10001, v2); sub_B94BD0(*((_QWORD *)this + 6), 43, 0); sub_B94BD0(*((_QWORD *)this + 6), 20056, cocos2d::extension::assetsManagerProgressFunc); sub_B94BD0(*((_QWORD *)this + 6), 10057, this); v3 = sub_B94C64(*((_QWORD *)this + 6)); sub_B94EA8(*((_QWORD *)this + 6)); if ( !v3 ) { fclose(v2); v4 = filename; v5 = 1; v6 = filename - 24; if ( filename - 24 == (char *)&qword_124B6B0 ) return v5; goto LABEL_7; } cocos2d::extension::AssetsManager::sendErrorMessage((__int64)this, 1); fclose(v2); v5 = 0; } else { cocos2d::extension::AssetsManager::sendErrorMessage((__int64)this, 0); v5 = 0; } v4 = filename; v6 = filename - 24; if ( filename - 24 == (char *)&qword_124B6B0 ) return v5; LABEL_7: if ( &pthread_create ) { v8 = (unsigned int *)(v4 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v4 - 2); *((_DWORD *)v4 - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v6); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source