// // CustomSongWidget::processNextMultiAsset from 0x14016e4d0 to 0x14016e7db (779 bytes) // // 4 xrefs: // > CustomSongWidget::startMultiAssetDownload @ 0x14016e4c8 // > CustomSongWidget::downloadAssetFinished @ 0x14016e885 // > CustomSongWidget::downloadAssetFailed @ 0x14016e961 // > @ 0x1409181dc // // 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 11:27:30 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall CustomSongWidget::processNextMultiAsset(_QWORD *a1, __int64 a2) { __int64 v2; // rdi cocos2d::extension::CCHttpClient *Instance; // rax __int64 v4; // rdx unsigned __int64 v5; // rsi unsigned int *v6; // rbx unsigned int *v7; // rcx unsigned int v8; // eax int v9; // ebx __int64 v10; // rcx __int64 v11; // rcx __int64 v12; // rcx cocos2d::extension::CCHttpClient *v13; // rax unsigned __int64 v14; // rax float v15; // xmm2_4 float v16; // xmm1_4 __int64 v17; // rdx __int64 v18; // rdx void *v19; // [rsp+20h] [rbp-58h] void *v20; // [rsp+28h] [rbp-50h] _BYTE v21[16]; // [rsp+30h] [rbp-48h] BYREF __int16 v22; // [rsp+88h] [rbp+10h] BYREF char v23; // [rsp+8Ah] [rbp+12h] unsigned int v24; // [rsp+90h] [rbp+18h] BYREF void *v25; // [rsp+98h] [rbp+20h] v2 = (__int64)a1; if ( a1[73] == a1[74] ) { (**(void (__fastcall ***)(__int64, void *))(a1[47] + 368LL))(a1[47] + 368LL, &unk_140702F7C); (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(v2 + 376) + 360LL))( *(_QWORD *)(v2 + 376) + 360LL, "Download complete."); if ( *(_BYTE *)(v2 + 501) ) { v15 = 0.34999999; v16 = 140.0; } else { v15 = 0.40000001; v16 = 230.0; } cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(v2 + 376), v16, v15, 0.0); LOBYTE(v17) = 1; CustomSongWidget::showError(v2, v17); *(_BYTE *)(v2 + 545) = 0; LOBYTE(v18) = 1; CustomSongWidget::updateMultiAssetInfo(v2, v18); } else { do { Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(a1, a2); v5 = cocos2d::extension::CCHttpClient::availableThreadCount(Instance); v6 = *(unsigned int **)(v2 + 584); v7 = *(unsigned int **)(v2 + 592); if ( v6 == v7 ) break; while ( *((_BYTE *)v6 + 12) ) { v6 += 4; if ( v6 == v7 ) return; } if ( (int)v6[2] <= 1 ) { *((_BYTE *)v6 + 12) = 1; v8 = v6[1]; if ( v8 == 1 ) { v9 = *v6; v24 = v9; if ( v9 >= 10000000 ) { v11 = qword_14090C070; if ( !qword_14090C070 ) { v19 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v11 = qword_14090C070; } MusicDownloadManager::downloadSong(v11, (unsigned int)v9); } else { sub_1400BD060((__int64 *)(v2 + 616), (__int64)v21, &v24); v10 = qword_14090C070; if ( !qword_14090C070 ) { v25 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v25); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v10 = qword_14090C070; } MusicDownloadManager::getSongInfo(v10, v24, 0); } } else if ( v8 == 2 ) { v12 = qword_14090C070; if ( !qword_14090C070 ) { v20 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v12 = qword_14090C070; } MusicDownloadManager::downloadSFX(v12, *v6); } } else { LOBYTE(v4) = 1; CustomSongWidget::updateMultiAssetInfo(v2, v4); v22 = 13055; v23 = 25; (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(v2 + 376) + 368LL))( *(_QWORD *)(v2 + 376) + 368LL, &v22); (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(v2 + 376) + 360LL))( *(_QWORD *)(v2 + 376) + 360LL, "Some assets failed to download."); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(v2 + 376), 230.0, 0.40000001, 0.0); CustomSongWidget::showError(v2, 0); } v13 = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v7, v4); v14 = cocos2d::extension::CCHttpClient::availableThreadCount(v13); a1 = *(_QWORD **)(v2 + 592); if ( *(_QWORD **)(v2 + 584) == a1 ) break; } while ( v14 && v14 < v5 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source