// // MusicDownloadManager::onDownloadNewsImageCompleted from 0x56ee14 to 0x56ef76 (354 bytes) // // 0 xrefs: // // 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:52:35 +0000 // int __fastcall MusicDownloadManager::onDownloadNewsImageCompleted( MusicDownloadManager *this, cocos2d::extension::CCHttpClient *a2, cocos2d::extension::CCHttpResponse *a3) { int v4; // r6 bool v6; // nf size_t v7; // r0 const char *NewsImageDownloadKey; // r0 int *v9; // r6 int v10; // r2 int v11; // r3 char *v12; // r0 FILE *v13; // r9 int *v14; // r8 int v15; // r2 int v16; // r3 int v17; // r2 int v18; // r3 int v20; // r2 int v21; // r3 int v22[3]; // [sp+4h] [bp-68h] BYREF int v23[3]; // [sp+10h] [bp-5Ch] BYREF int v24[3]; // [sp+1Ch] [bp-50h] BYREF int v25[3]; // [sp+28h] [bp-44h] BYREF char v26; // [sp+34h] [bp-38h] BYREF char v27; // [sp+35h] [bp-37h] BYREF char *filename; // [sp+3Ch] [bp-30h] int v29[3]; // [sp+40h] [bp-2Ch] BYREF int v30[3]; // [sp+4Ch] [bp-20h] BYREF int v31[3]; // [sp+58h] [bp-14h] BYREF v4 = *((_DWORD *)a3 + 13); v6 = (*(_BYTE *)(v4 + 80) & 1) != 0; if ( (*(_BYTE *)(v4 + 80) & 1) == 0 ) v4 += 81; v22[0] = 0; if ( v6 ) v4 = *(_DWORD *)(v4 + 88); v22[1] = 0; v22[2] = 0; v7 = strlen((const char *)v4); std::string::__init(v22, (const void *)v4, v7); std::string::basic_string(v23, (int)v22); NewsImageDownloadKey = (const char *)MusicDownloadManager::getNewsImageDownloadKey((int)this, (unsigned __int8 *)v23); MusicDownloadManager::removeDLFromActive(this, NewsImageDownloadKey); std::string::~string((int)v23); if ( *((_BYTE *)a3 + 56) ) { if ( *((_DWORD *)a3 + 15) == *((_DWORD *)a3 + 16) ) { v9 = v25; std::string::basic_string(v25, (int)v22); MusicDownloadManager::newsImageFailed((int)this, (int)v25, v10, v11); } else { std::string::basic_string(v29, (int)v22); v9 = (int *)&v26; MusicDownloadManager::pathForNewsImage((MusicDownloadManager *)&v26, (int)this, (unsigned __int8 *)v29); std::string::~string((int)v29); if ( (v26 & 1) != 0 ) v12 = filename; else v12 = &v27; v13 = fopen(v12, "wb"); if ( v13 ) { fwrite(*((const void **)a3 + 15), 1u, *((_DWORD *)a3 + 16) - *((_DWORD *)a3 + 15), v13); fclose(v13); v14 = v31; std::string::basic_string(v31, (int)v22); MusicDownloadManager::newsImageDownloaded((int)this, (int)v31, v17, v18); } else { v14 = v30; std::string::basic_string(v30, (int)v22); MusicDownloadManager::newsImageFailed((int)this, (int)v30, v15, v16); } std::string::~string((int)v14); } } else { v9 = v24; std::string::basic_string(v24, (int)v22); MusicDownloadManager::newsImageFailed((int)this, (int)v24, v20, v21); } std::string::~string((int)v9); return std::string::~string((int)v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source