// // CustomSFXWidget::onDownload from 0x1006b6920 to 0x1006b6a76 (342 bytes) // // 3 xrefs: // > CustomSFXWidget::FLAlert_Clicked @ 0x1006b8a55 // > sub_1006B8A70 @ 0x1006b8abc // > CustomSFXWidget::init @ 0x1006b5a43 // // 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:35:27 +0000 // __int64 __fastcall CustomSFXWidget::onDownload(__int64 a1) { __int64 result; // rax __int64 v2; // rax __int64 v3; // rax __int64 v4; // r14 __m128 v5; // xmm0 __m128 v6; // xmm2 __int64 v7; // rax _BYTE v8[40]; // [rsp+8h] [rbp-28h] BYREF result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 0); if ( *(_QWORD *)(a1 + 336) ) { v2 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getGameVariable(v2, "0016") ) { CustomSFXWidget::showLoadingArt(a1); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 376) + 344LL))(*(_QWORD *)(a1 + 376), 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 384) + 344LL))(*(_QWORD *)(a1 + 384), 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 408) + 344LL))(*(_QWORD *)(a1 + 408), 0); *(_BYTE *)(a1 + 491) = 0; v3 = MusicDownloadManager::sharedState(); MusicDownloadManager::downloadSFX(v3, *(_DWORD *)(a1 + 496)); v4 = *(_QWORD *)(a1 + 464); v5 = (__m128)*(unsigned int *)(*(_QWORD *)(a1 + 456) + 432LL); v5.f32[0] = v5.f32[0] + -4.0; v6 = v5; v6.f32[0] = fminf(v5.f32[0] * 0.0, v5.f32[0]); sub_100278270((__int64)v8, 0.0, 0.0, v6, (__m128)0x41000000u); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1136LL))(v4, v8); CustomSFXWidget::showLoadingArt(a1); cocos2d::CCNode::unschedule(a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0); return cocos2d::CCNode::schedule_1( a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0, COERCE_DOUBLE(1023969417)); } else { v7 = MusicDownloadManager::sharedState(); return MusicDownloadManager::showTOS(v7, (int)a1 + 328); } } return result; }