// // cocos2d::extension::AssetsManager::downLoad from 0x7a5bf8 to 0x7a5ce4 (236 bytes) // // 1 xrefs: // > cocos2d::extension::assetsManagerDownloadAndUncompress @ 0x7a5d52 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:57 +0000 // int __fastcall cocos2d::extension::AssetsManager::downLoad( cocos2d::extension::AssetsManager *this, unsigned int a2, char *a3, int a4) { char *v5; // r0 FILE *v6; // r5 int v7; // r4 char *v8; // r2 int v9; // r8 unsigned int v11[2]; // [sp+0h] [bp+0h] BYREF char *filename; // [sp+8h] [bp+8h] int v13; // [sp+Ch] [bp+Ch] v11[0] = (unsigned int)this; v11[1] = a2; filename = a3; v13 = a4; std::operator+(v11, (unsigned __int8 *)this + 4, "cocos2dx-update-temp-package.zip"); if ( (v11[0] & 1) != 0 ) v5 = filename; else v5 = (char *)v11 + 1; v6 = fopen(v5, "wb"); if ( v6 ) { if ( (*((_BYTE *)this + 28) & 1) != 0 ) v8 = *((char **)this + 9); else v8 = (char *)this + 29; sub_83AF54(*((_DWORD *)this + 16), 10002, v8); sub_83AF54(*((_DWORD *)this + 16), 20011, j_j_fwrite); sub_83AF54(*((_DWORD *)this + 16), 10001, v6); sub_83AF54(*((_DWORD *)this + 16), 43, 0); sub_83AF54(*((_DWORD *)this + 16), 20056, cocos2d::extension::assetsManagerProgressFunc); sub_83AF54(*((_DWORD *)this + 16), 10057, this); v9 = sub_83AF74(*((_DWORD *)this + 16)); sub_83B0DC(*((_DWORD *)this + 16)); if ( !v9 ) { fclose(v6); v7 = 1; goto LABEL_13; } cocos2d::extension::AssetsManager::sendErrorMessage((int)this, 1); fclose(v6); } else { cocos2d::extension::AssetsManager::sendErrorMessage((int)this, 0); } v7 = 0; LABEL_13: std::string::~string((int)v11); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source