// // MusicDownloadManager::tryUpdateNewsFeed from 0x100658ea0 to 0x10065905b (443 bytes) // // 3 xrefs: // > MenuLayer::init @ 0x10037c1a1 // > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x10064ac82 // > NewsPopup::rebuildPage @ 0x10095921c // // This function is hookable on this platform (idp: pc, 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 12:34:52 +0000 // void __fastcall MusicDownloadManager::tryUpdateNewsFeed(__int64 a1) { __int64 v1; // rax unsigned int v2; // eax char v3; // r15 char *Request; // r14 _WORD v5[8]; // [rsp+10h] [rbp-80h] BYREF void *v6; // [rsp+20h] [rbp-70h] __int128 v7; // [rsp+28h] [rbp-68h] BYREF void *v8; // [rsp+38h] [rbp-58h] __int128 v9; // [rsp+40h] [rbp-50h] BYREF void *v10; // [rsp+50h] [rbp-40h] void *v11[6]; // [rsp+60h] [rbp-30h] BYREF v1 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::offlineModeEnabled(v1) ) return; if ( *(_BYTE *)(a1 + 873) || (*(_BYTE *)(a1 + 873) = 1, *(_QWORD *)(a1 + 840) != *(_QWORD *)(a1 + 848)) ) { v2 = *(unsigned __int8 *)(a1 + 368); if ( (v2 & 1) == 0 ) goto LABEL_5; LABEL_13: if ( *(_QWORD *)(a1 + 376) ) goto LABEL_6; LABEL_14: *(_BYTE *)(a1 + 874) = 1; MusicDownloadManager::getCustomContentURL(a1); return; } MusicDownloadManager::parseNewsFeed(a1); v2 = *(unsigned __int8 *)(a1 + 368); if ( (v2 & 1) != 0 ) goto LABEL_13; LABEL_5: if ( !(v2 >> 1) ) goto LABEL_14; LABEL_6: if ( !*(_BYTE *)(a1 + 872) && !MusicDownloadManager::getDLObject(a1, "v_news") ) { *(_BYTE *)(a1 + 872) = 1; strcpy((char *)v11, ",/news/news_version.txt"); MusicDownloadManager::generateCustomContentURL(&v7, a1, v11); if ( ((__int64)v11[0] & 1) != 0 ) operator delete(v11[2]); v3 = v7; if ( (v7 & 1) != 0 ) { sub_10001AD30(&v9, v8, *((unsigned __int64 *)&v7 + 1)); } else { v10 = v8; v9 = v7; } v5[0] = 0; Request = MusicDownloadManager::ProcessHttpGetRequest( a1, (__int64)&v9, (__int64)v5, (__int64)MusicDownloadManager::onTryUpdateNewsFeedCompleted, 0, 5, 10); if ( (v5[0] & 1) != 0 ) operator delete(v6); if ( (v9 & 1) != 0 ) operator delete(v10); MusicDownloadManager::addDLToActive(a1, "v_news", (__int64)Request); if ( (v3 & 1) != 0 ) operator delete(v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source