; ; CustomSongWidget::loadSongInfoFinished from 0x1006fc980 to 0x1006fcc31 (689 bytes) ; ; 2 xrefs: ; > sub_1006FCC40 @ 0x1006fcc4c ; > @ 0x100b95db8 ; ; 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, 0x1006fc980 mov rbp, rsp ; +0x1, 0x1006fc981 push r15 ; +0x4, 0x1006fc984 push r14 ; +0x6, 0x1006fc986 push rbx ; +0x8, 0x1006fc988 sub rsp, 18h ; +0x9, 0x1006fc989 mov r14, rsi ; +0xd, 0x1006fc98d mov rbx, rdi ; +0x10, 0x1006fc990 mov eax, [rsi+13Ch] ; +0x13, 0x1006fc993 mov rdi, [rdi+280h] ; +0x19, 0x1006fc999 test rdi, rdi ; +0x20, 0x1006fc9a0 jz short loc_1006FC9DB ; +0x23, 0x1006fc9a3 lea rcx, [rbx+280h] ; +0x25, 0x1006fc9a5 mov rdx, rdi ; +0x2c, 0x1006fc9ac jmp short loc_1006FC9C8 ; +0x2f, 0x1006fc9af align 20h ; +0x31, 0x1006fc9b1 mov rdx, [rdx] ; +0x40, 0x1006fc9c0 test rdx, rdx ; +0x43, 0x1006fc9c3 jz short loc_1006FC9DB ; +0x46, 0x1006fc9c6 mov esi, [rdx+1Ch] ; +0x48, 0x1006fc9c8 cmp eax, esi ; +0x4b, 0x1006fc9cb jl short loc_1006FC9C0 ; +0x4d, 0x1006fc9cd jle loc_1006FCA5F ; +0x4f, 0x1006fc9cf add rdx, 8 ; +0x55, 0x1006fc9d5 jmp short loc_1006FC9C0 ; +0x59, 0x1006fc9d9 mov ecx, [rbx+1F8h] ; +0x5b, 0x1006fc9db cmp ecx, eax ; +0x61, 0x1006fc9e1 setnz al ; +0x63, 0x1006fc9e3 test ecx, ecx ; +0x66, 0x1006fc9e6 setz cl ; +0x68, 0x1006fc9e8 or cl, al ; +0x6b, 0x1006fc9eb jnz loc_1006FCBC5 ; +0x6d, 0x1006fc9ed mov rdi, [rbx+178h] ; +0x73, 0x1006fc9f3 mov rax, [rdi] ; +0x7a, 0x1006fc9fa xor esi, esi ; +0x7d, 0x1006fc9fd call qword ptr [rax+158h] ; +0x7f, 0x1006fc9ff mov rdi, [rbx+1E0h] ; +0x85, 0x1006fca05 test rdi, rdi ; +0x8c, 0x1006fca0c jz short loc_1006FCA1C ; +0x8f, 0x1006fca0f mov rax, [rdi] ; +0x91, 0x1006fca11 xor esi, esi ; +0x94, 0x1006fca14 call qword ptr [rax+158h] ; +0x96, 0x1006fca16 mov rdi, [rbx+150h] ; +0x9c, 0x1006fca1c cmp rdi, r14 ; +0xa3, 0x1006fca23 jz loc_1006FCAC0 ; +0xa6, 0x1006fca26 test r14, r14 ; +0xac, 0x1006fca2c jz short loc_1006FCA40 ; +0xaf, 0x1006fca2f mov rdi, r14 ; +0xb1, 0x1006fca31 call cocos2d__CCObject__retain ; +0xb4, 0x1006fca34 mov rdi, [rbx+150h] ; +0xb9, 0x1006fca39 test rdi, rdi ; +0xc0, 0x1006fca40 jz short loc_1006FCA4A ; +0xc3, 0x1006fca43 call cocos2d__CCObject__release ; +0xc5, 0x1006fca45 mov [rbx+150h], r14 ; +0xca, 0x1006fca4a test r14, r14 ; +0xd1, 0x1006fca51 jz short loc_1006FCAC8 ; +0xd4, 0x1006fca54 mov eax, [r14+13Ch] ; +0xd6, 0x1006fca56 jmp short loc_1006FCACA ; +0xdd, 0x1006fca5d mov r15, rcx ; +0xdf, 0x1006fca5f mov rdx, rdi ; +0xe2, 0x1006fca62 nop word ptr [rax+rax+00000000h] ; +0xe5, 0x1006fca65 xor esi, esi ; +0xf0, 0x1006fca70 cmp [rdx+1Ch], eax ; +0xf2, 0x1006fca72 setl sil ; +0xf5, 0x1006fca75 cmovge r15, rdx ; +0xf9, 0x1006fca79 mov rdx, [rdx+rsi*8] ; +0xfd, 0x1006fca7d test rdx, rdx ; +0x101, 0x1006fca81 jnz short loc_1006FCA70 ; +0x104, 0x1006fca84 cmp r15, rcx ; +0x106, 0x1006fca86 jz loc_1006FCC13 ; +0x109, 0x1006fca89 cmp eax, [r15+1Ch] ; +0x10f, 0x1006fca8f jl loc_1006FCC13 ; +0x113, 0x1006fca93 mov rcx, [r15+8] ; +0x119, 0x1006fca99 test rcx, rcx ; +0x11d, 0x1006fca9d jz loc_1006FCBD0 ; +0x120, 0x1006fcaa0 nop word ptr [rax+rax+00000000h] ; +0x126, 0x1006fcaa6 mov rax, rcx ; +0x130, 0x1006fcab0 mov rcx, [rcx] ; +0x133, 0x1006fcab3 test rcx, rcx ; +0x136, 0x1006fcab6 jnz short loc_1006FCAB0 ; +0x139, 0x1006fcab9 jmp loc_1006FCBEC ; +0x13b, 0x1006fcabb mov r14, rdi ; +0x140, 0x1006fcac0 test r14, r14 ; +0x143, 0x1006fcac3 jnz short loc_1006FCA56 ; +0x146, 0x1006fcac6 xor eax, eax ; +0x148, 0x1006fcac8 mov [rbx+1F8h], eax ; +0x14a, 0x1006fcaca mov rdi, rbx ; +0x150, 0x1006fcad0 call CustomSongWidget__updateSongInfo ; +0x153, 0x1006fcad3 cmp byte ptr [rbx+1F3h], 1 ; +0x158, 0x1006fcad8 jnz loc_1006FCB8F ; +0x15f, 0x1006fcadf mov byte ptr [rbx+1F3h], 0 ; +0x165, 0x1006fcae5 call MusicDownloadManager__sharedState ; +0x16c, 0x1006fcaec mov esi, [rbx+1F8h] ; +0x171, 0x1006fcaf1 mov rdi, rax ; +0x177, 0x1006fcaf7 call MusicDownloadManager__downloadSong ; +0x17a, 0x1006fcafa mov rax, [rbx+1C8h] ; +0x17f, 0x1006fcaff mov r14, [rbx+1D0h] ; +0x186, 0x1006fcb06 movss xmm0, dword ptr [rax+1B0h] ; +0x18d, 0x1006fcb0d addss xmm0, cs:dword_100A03FD4 ; +0x195, 0x1006fcb15 xorps xmm1, xmm1 ; +0x19d, 0x1006fcb1d movaps xmm2, xmm0 ; +0x1a0, 0x1006fcb20 mulss xmm2, xmm1 ; +0x1a3, 0x1006fcb23 minss xmm2, xmm0 ; +0x1a7, 0x1006fcb27 lea r15, [rbp+var_28] ; +0x1ab, 0x1006fcb2b movss xmm3, cs:dword_100A03D64 ; +0x1af, 0x1006fcb2f xorps xmm0, xmm0 ; +0x1b7, 0x1006fcb37 mov rdi, r15 ; +0x1ba, 0x1006fcb3a call sub_100278270 ; +0x1bd, 0x1006fcb3d mov rax, [r14] ; +0x1c2, 0x1006fcb42 mov rdi, r14 ; +0x1c5, 0x1006fcb45 mov rsi, r15 ; +0x1c8, 0x1006fcb48 call qword ptr [rax+470h] ; +0x1cb, 0x1006fcb4b mov rdi, [rbx+1C8h] ; +0x1d1, 0x1006fcb51 mov rax, [rdi] ; +0x1d8, 0x1006fcb58 mov esi, 1 ; +0x1db, 0x1006fcb5b call qword ptr [rax+158h] ; +0x1e0, 0x1006fcb60 lea r14, CustomSongWidget__updateDownloadProgress ; +0x1e6, 0x1006fcb66 mov rdi, rbx ; +0x1ed, 0x1006fcb6d mov rsi, r14 ; +0x1f0, 0x1006fcb70 xor edx, edx ; +0x1f3, 0x1006fcb73 call cocos2d__CCNode__unschedule ; +0x1f5, 0x1006fcb75 movss xmm0, cs:dword_100A0485C ; +0x1fa, 0x1006fcb7a mov rdi, rbx ; +0x202, 0x1006fcb82 mov rsi, r14 ; +0x205, 0x1006fcb85 xor edx, edx ; +0x208, 0x1006fcb88 call cocos2d__CCNode__schedule_1 ; +0x20a, 0x1006fcb8a xorps xmm0, xmm0 ; +0x20f, 0x1006fcb8f call cocos2d__CCDelayTime__create ; +0x212, 0x1006fcb92 mov r14, rax ; +0x217, 0x1006fcb97 lea rsi, CustomSongWidget__updateSongInfo ; +0x21a, 0x1006fcb9a mov rdi, rbx ; +0x221, 0x1006fcba1 xor edx, edx ; +0x224, 0x1006fcba4 call cocos2d__CCCallFunc__create ; +0x226, 0x1006fcba6 mov rdi, r14 ; +0x22b, 0x1006fcbab mov rsi, rax ; +0x22e, 0x1006fcbae xor edx, edx ; +0x231, 0x1006fcbb1 xor eax, eax ; +0x233, 0x1006fcbb3 call sub_10039EB60 ; +0x235, 0x1006fcbb5 mov rdi, rbx ; +0x23a, 0x1006fcbba mov rsi, rax ; +0x23d, 0x1006fcbbd call cocos2d__CCNode__runAction ; +0x240, 0x1006fcbc0 add rsp, 18h ; +0x245, 0x1006fcbc5 pop rbx ; +0x249, 0x1006fcbc9 pop r14 ; +0x24a, 0x1006fcbca pop r15 ; +0x24c, 0x1006fcbcc pop rbp ; +0x24e, 0x1006fcbce retn ; +0x24f, 0x1006fcbcf mov rcx, r15 ; +0x250, 0x1006fcbd0 nop word ptr [rax+rax+00000000h] ; +0x253, 0x1006fcbd3 mov rax, [rcx+10h] ; +0x260, 0x1006fcbe0 cmp [rax], rcx ; +0x264, 0x1006fcbe4 mov rcx, rax ; +0x267, 0x1006fcbe7 jnz short loc_1006FCBE0 ; +0x26a, 0x1006fcbea cmp [rbx+278h], r15 ; +0x26c, 0x1006fcbec jnz short loc_1006FCBFC ; +0x273, 0x1006fcbf3 mov [rbx+278h], rax ; +0x275, 0x1006fcbf5 dec qword ptr [rbx+288h] ; +0x27c, 0x1006fcbfc mov rsi, r15 ; +0x283, 0x1006fcc03 call sub_1001454C0 ; +0x286, 0x1006fcc06 mov rdi, r15; __p ; +0x28b, 0x1006fcc0b call __ZdlPv; operator delete(void *) ; +0x28e, 0x1006fcc0e call MusicDownloadManager__sharedState ; +0x293, 0x1006fcc13 mov esi, [r14+13Ch] ; +0x298, 0x1006fcc18 mov rdi, rax ; +0x29f, 0x1006fcc1f add rsp, 18h ; +0x2a2, 0x1006fcc22 pop rbx ; +0x2a6, 0x1006fcc26 pop r14 ; +0x2a7, 0x1006fcc27 pop r15 ; +0x2a9, 0x1006fcc29 pop rbp ; +0x2ab, 0x1006fcc2b jmp MusicDownloadManager__downloadSong ; +0x2ac, 0x1006fcc2c