; ; CustomSongWidget::loadSongInfoFinished from 0x100620210 to 0x1006204c1 (689 bytes) ; ; 2 xrefs: ; > sub_1006204D0 @ 0x1006204dc ; > @ 0x100982238 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x100620210 mov rbp, rsp ; +0x1, 0x100620211 push r15 ; +0x4, 0x100620214 push r14 ; +0x6, 0x100620216 push rbx ; +0x8, 0x100620218 sub rsp, 18h ; +0x9, 0x100620219 mov r14, rsi ; +0xd, 0x10062021d mov rbx, rdi ; +0x10, 0x100620220 mov eax, [rsi+13Ch] ; +0x13, 0x100620223 mov rdi, [rdi+268h] ; +0x19, 0x100620229 test rdi, rdi ; +0x20, 0x100620230 jz short loc_10062026B ; +0x23, 0x100620233 lea rcx, [rbx+268h] ; +0x25, 0x100620235 mov rdx, rdi ; +0x2c, 0x10062023c jmp short loc_100620258 ; +0x2f, 0x10062023f align 10h ; +0x31, 0x100620241 mov rdx, [rdx] ; +0x40, 0x100620250 test rdx, rdx ; +0x43, 0x100620253 jz short loc_10062026B ; +0x46, 0x100620256 mov esi, [rdx+1Ch] ; +0x48, 0x100620258 cmp eax, esi ; +0x4b, 0x10062025b jl short loc_100620250 ; +0x4d, 0x10062025d jle loc_1006202EF ; +0x4f, 0x10062025f add rdx, 8 ; +0x55, 0x100620265 jmp short loc_100620250 ; +0x59, 0x100620269 mov ecx, [rbx+1F0h] ; +0x5b, 0x10062026b cmp ecx, eax ; +0x61, 0x100620271 setnz al ; +0x63, 0x100620273 test ecx, ecx ; +0x66, 0x100620276 setz cl ; +0x68, 0x100620278 or cl, al ; +0x6b, 0x10062027b jnz loc_100620455 ; +0x6d, 0x10062027d mov rdi, [rbx+178h] ; +0x73, 0x100620283 mov rax, [rdi] ; +0x7a, 0x10062028a xor esi, esi ; +0x7d, 0x10062028d call qword ptr [rax+148h] ; +0x7f, 0x10062028f mov rdi, [rbx+1D8h] ; +0x85, 0x100620295 test rdi, rdi ; +0x8c, 0x10062029c jz short loc_1006202AC ; +0x8f, 0x10062029f mov rax, [rdi] ; +0x91, 0x1006202a1 xor esi, esi ; +0x94, 0x1006202a4 call qword ptr [rax+148h] ; +0x96, 0x1006202a6 mov rdi, [rbx+150h] ; +0x9c, 0x1006202ac cmp rdi, r14 ; +0xa3, 0x1006202b3 jz loc_100620350 ; +0xa6, 0x1006202b6 test r14, r14 ; +0xac, 0x1006202bc jz short loc_1006202D0 ; +0xaf, 0x1006202bf mov rdi, r14 ; +0xb1, 0x1006202c1 call cocos2d__CCObject__retain ; +0xb4, 0x1006202c4 mov rdi, [rbx+150h] ; +0xb9, 0x1006202c9 test rdi, rdi ; +0xc0, 0x1006202d0 jz short loc_1006202DA ; +0xc3, 0x1006202d3 call cocos2d__CCObject__release ; +0xc5, 0x1006202d5 mov [rbx+150h], r14 ; +0xca, 0x1006202da test r14, r14 ; +0xd1, 0x1006202e1 jz short loc_100620358 ; +0xd4, 0x1006202e4 mov eax, [r14+13Ch] ; +0xd6, 0x1006202e6 jmp short loc_10062035A ; +0xdd, 0x1006202ed mov r15, rcx ; +0xdf, 0x1006202ef mov rdx, rdi ; +0xe2, 0x1006202f2 nop word ptr [rax+rax+00000000h] ; +0xe5, 0x1006202f5 xor esi, esi ; +0xf0, 0x100620300 cmp [rdx+1Ch], eax ; +0xf2, 0x100620302 setl sil ; +0xf5, 0x100620305 cmovge r15, rdx ; +0xf9, 0x100620309 mov rdx, [rdx+rsi*8] ; +0xfd, 0x10062030d test rdx, rdx ; +0x101, 0x100620311 jnz short loc_100620300 ; +0x104, 0x100620314 cmp r15, rcx ; +0x106, 0x100620316 jz loc_1006204A3 ; +0x109, 0x100620319 cmp eax, [r15+1Ch] ; +0x10f, 0x10062031f jl loc_1006204A3 ; +0x113, 0x100620323 mov rcx, [r15+8] ; +0x119, 0x100620329 test rcx, rcx ; +0x11d, 0x10062032d jz loc_100620460 ; +0x120, 0x100620330 nop word ptr [rax+rax+00000000h] ; +0x126, 0x100620336 mov rax, rcx ; +0x130, 0x100620340 mov rcx, [rcx] ; +0x133, 0x100620343 test rcx, rcx ; +0x136, 0x100620346 jnz short loc_100620340 ; +0x139, 0x100620349 jmp loc_10062047C ; +0x13b, 0x10062034b mov r14, rdi ; +0x140, 0x100620350 test r14, r14 ; +0x143, 0x100620353 jnz short loc_1006202E6 ; +0x146, 0x100620356 xor eax, eax ; +0x148, 0x100620358 mov [rbx+1F0h], eax ; +0x14a, 0x10062035a mov rdi, rbx ; +0x150, 0x100620360 call CustomSongWidget__updateSongInfo ; +0x153, 0x100620363 cmp byte ptr [rbx+1EBh], 1 ; +0x158, 0x100620368 jnz loc_10062041F ; +0x15f, 0x10062036f mov byte ptr [rbx+1EBh], 0 ; +0x165, 0x100620375 call MusicDownloadManager__sharedState ; +0x16c, 0x10062037c mov esi, [rbx+1F0h] ; +0x171, 0x100620381 mov rdi, rax ; +0x177, 0x100620387 call MusicDownloadManager__downloadSong ; +0x17a, 0x10062038a mov rax, [rbx+1C0h] ; +0x17f, 0x10062038f mov r14, [rbx+1C8h] ; +0x186, 0x100620396 movss xmm0, dword ptr [rax+1B0h] ; +0x18d, 0x10062039d addss xmm0, cs:dword_100815290 ; +0x195, 0x1006203a5 xorps xmm1, xmm1 ; +0x19d, 0x1006203ad movaps xmm2, xmm0 ; +0x1a0, 0x1006203b0 mulss xmm2, xmm1 ; +0x1a3, 0x1006203b3 minss xmm2, xmm0 ; +0x1a7, 0x1006203b7 lea r15, [rbp+var_28] ; +0x1ab, 0x1006203bb movss xmm3, cs:dword_100815034 ; +0x1af, 0x1006203bf xorps xmm0, xmm0 ; +0x1b7, 0x1006203c7 mov rdi, r15 ; +0x1ba, 0x1006203ca call sub_10028CC00 ; +0x1bd, 0x1006203cd mov rax, [r14] ; +0x1c2, 0x1006203d2 mov rdi, r14 ; +0x1c5, 0x1006203d5 mov rsi, r15 ; +0x1c8, 0x1006203d8 call qword ptr [rax+460h] ; +0x1cb, 0x1006203db mov rdi, [rbx+1C0h] ; +0x1d1, 0x1006203e1 mov rax, [rdi] ; +0x1d8, 0x1006203e8 mov esi, 1 ; +0x1db, 0x1006203eb call qword ptr [rax+148h] ; +0x1e0, 0x1006203f0 lea r14, CustomSongWidget__updateDownloadProgress ; +0x1e6, 0x1006203f6 mov rdi, rbx ; +0x1ed, 0x1006203fd mov rsi, r14 ; +0x1f0, 0x100620400 xor edx, edx ; +0x1f3, 0x100620403 call cocos2d__CCNode__unschedule ; +0x1f5, 0x100620405 movss xmm0, cs:dword_10081646C ; +0x1fa, 0x10062040a mov rdi, rbx ; +0x202, 0x100620412 mov rsi, r14 ; +0x205, 0x100620415 xor edx, edx ; +0x208, 0x100620418 call cocos2d__CCNode__schedule_1 ; +0x20a, 0x10062041a xorps xmm0, xmm0 ; +0x20f, 0x10062041f call cocos2d__CCDelayTime__create ; +0x212, 0x100620422 mov r14, rax ; +0x217, 0x100620427 lea rsi, CustomSongWidget__updateSongInfo ; +0x21a, 0x10062042a mov rdi, rbx ; +0x221, 0x100620431 xor edx, edx ; +0x224, 0x100620434 call cocos2d__CCCallFunc__create ; +0x226, 0x100620436 mov rdi, r14 ; +0x22b, 0x10062043b mov rsi, rax ; +0x22e, 0x10062043e xor edx, edx ; +0x231, 0x100620441 xor eax, eax ; +0x233, 0x100620443 call sub_1003B5760 ; +0x235, 0x100620445 mov rdi, rbx ; +0x23a, 0x10062044a mov rsi, rax ; +0x23d, 0x10062044d call cocos2d__CCNode__runAction ; +0x240, 0x100620450 add rsp, 18h ; +0x245, 0x100620455 pop rbx ; +0x249, 0x100620459 pop r14 ; +0x24a, 0x10062045a pop r15 ; +0x24c, 0x10062045c pop rbp ; +0x24e, 0x10062045e retn ; +0x24f, 0x10062045f mov rcx, r15 ; +0x250, 0x100620460 nop word ptr [rax+rax+00000000h] ; +0x253, 0x100620463 mov rax, [rcx+10h] ; +0x260, 0x100620470 cmp [rax], rcx ; +0x264, 0x100620474 mov rcx, rax ; +0x267, 0x100620477 jnz short loc_100620470 ; +0x26a, 0x10062047a cmp [rbx+260h], r15 ; +0x26c, 0x10062047c jnz short loc_10062048C ; +0x273, 0x100620483 mov [rbx+260h], rax ; +0x275, 0x100620485 dec qword ptr [rbx+270h] ; +0x27c, 0x10062048c mov rsi, r15 ; +0x283, 0x100620493 call sub_100165F60 ; +0x286, 0x100620496 mov rdi, r15; __p ; +0x28b, 0x10062049b call __ZdlPv; operator delete(void *) ; +0x28e, 0x10062049e call MusicDownloadManager__sharedState ; +0x293, 0x1006204a3 mov esi, [r14+13Ch] ; +0x298, 0x1006204a8 mov rdi, rax ; +0x29f, 0x1006204af add rsp, 18h ; +0x2a2, 0x1006204b2 pop rbx ; +0x2a6, 0x1006204b6 pop r14 ; +0x2a7, 0x1006204b7 pop r15 ; +0x2a9, 0x1006204b9 pop rbp ; +0x2ab, 0x1006204bb jmp MusicDownloadManager__downloadSong ; +0x2ac, 0x1006204bc