; ; CustomSongWidget::updateDownloadProgress from 0x1006fb7a0 to 0x1006fb86c (204 bytes) ; ; 13 xrefs: ; > CustomSongWidget::init @ 0x1006f85ee ; > CustomSongWidget::onDownload @ 0x1006f8853 ; > CustomSongWidget::startMonitorDownload @ 0x1006fab67 ; > CustomSongWidget::startDownload @ 0x1006fb761 ; > CustomSongWidget::updateDownloadProgress @ 0x1006fb7e0 ; > CustomSongWidget::downloadFailed @ 0x1006fb88b ; > CustomSongWidget::loadSongInfoFinished @ 0x1006fcb66 ; > CustomSongWidget::loadSongInfoFailed @ 0x1006fcde1 ; > CustomSongWidget::downloadSongStarted @ 0x1006fcfef ; > sub_1006FD030 @ 0x1006fd0c9 ; > CustomSongWidget::downloadSongFailed @ 0x1006fd568 ; > CustomSongWidget::musicActionFailed @ 0x1006fdb14 ; > sub_1006FDB40 @ 0x1006fdb6c ; ; 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:56 +0000 ; push rbp ; +0x0, 0x1006fb7a0 mov rbp, rsp ; +0x1, 0x1006fb7a1 push r14 ; +0x4, 0x1006fb7a4 push rbx ; +0x6, 0x1006fb7a6 sub rsp, 10h ; +0x7, 0x1006fb7a7 mov rbx, rdi ; +0xb, 0x1006fb7ab call MusicDownloadManager__sharedState ; +0xe, 0x1006fb7ae mov rcx, [rbx+150h] ; +0x13, 0x1006fb7b3 mov esi, [rcx+13Ch] ; +0x1a, 0x1006fb7ba mov rdi, rax ; +0x20, 0x1006fb7c0 call MusicDownloadManager__getDownloadProgress ; +0x23, 0x1006fb7c3 cmp qword ptr [rbx+150h], 0 ; +0x28, 0x1006fb7c8 setz cl ; +0x30, 0x1006fb7d0 cmp eax, 0FFFFFFFFh ; +0x33, 0x1006fb7d3 setz dl ; +0x36, 0x1006fb7d6 or dl, cl ; +0x39, 0x1006fb7d9 cmp dl, 1 ; +0x3b, 0x1006fb7db jnz short loc_1006FB801 ; +0x3e, 0x1006fb7de lea rsi, CustomSongWidget__updateDownloadProgress ; +0x40, 0x1006fb7e0 mov rdi, rbx ; +0x47, 0x1006fb7e7 xor edx, edx ; +0x4a, 0x1006fb7ea call cocos2d__CCNode__unschedule ; +0x4c, 0x1006fb7ec mov rdi, rbx ; +0x51, 0x1006fb7f1 add rsp, 10h ; +0x54, 0x1006fb7f4 pop rbx ; +0x58, 0x1006fb7f8 pop r14 ; +0x59, 0x1006fb7f9 pop rbp ; +0x5b, 0x1006fb7fb jmp CustomSongWidget__updateSongInfo ; +0x5c, 0x1006fb7fc xor ecx, ecx ; +0x61, 0x1006fb801 test eax, eax ; +0x63, 0x1006fb803 cmovg ecx, eax ; +0x65, 0x1006fb805 mov rax, [rbx+1C8h] ; +0x68, 0x1006fb808 movss xmm0, dword ptr [rax+1B0h] ; +0x6f, 0x1006fb80f addss xmm0, cs:dword_100A03FD4 ; +0x77, 0x1006fb817 mov rbx, [rbx+1D0h] ; +0x7f, 0x1006fb81f cvtsi2ss xmm2, ecx ; +0x86, 0x1006fb826 divss xmm2, cs:dword_100A03584 ; +0x8a, 0x1006fb82a mulss xmm2, xmm0 ; +0x92, 0x1006fb832 minss xmm2, xmm0 ; +0x96, 0x1006fb836 lea r14, [rbp+var_20] ; +0x9a, 0x1006fb83a movss xmm3, cs:dword_100A03D64 ; +0x9e, 0x1006fb83e xorps xmm0, xmm0 ; +0xa6, 0x1006fb846 xorps xmm1, xmm1 ; +0xa9, 0x1006fb849 mov rdi, r14 ; +0xac, 0x1006fb84c call sub_100278270 ; +0xaf, 0x1006fb84f mov rax, [rbx] ; +0xb4, 0x1006fb854 mov rdi, rbx ; +0xb7, 0x1006fb857 mov rsi, r14 ; +0xba, 0x1006fb85a call qword ptr [rax+470h] ; +0xbd, 0x1006fb85d add rsp, 10h ; +0xc3, 0x1006fb863 pop rbx ; +0xc7, 0x1006fb867 pop r14 ; +0xc8, 0x1006fb868 pop rbp ; +0xca, 0x1006fb86a retn ; +0xcb, 0x1006fb86b