; ; CustomSongWidget::updateWithMultiAssets from 0x1400cc350 to 0x1400cc69f (847 bytes) ; ; 3 xrefs: ; > LevelInfoLayer::init @ 0x1402f93e8 ; > LevelInfoLayer::levelDownloadFinished @ 0x1402fbd99 ; > @ 0x1406c8364 ; ; 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 ; mov [rsp-8+arg_18], rbx ; +0x0, 0x1400cc350 push rbp ; +0x5, 0x1400cc355 push rsi ; +0x6, 0x1400cc356 push rdi ; +0x7, 0x1400cc357 push r12 ; +0x8, 0x1400cc358 push r13 ; +0xa, 0x1400cc35a push r14 ; +0xc, 0x1400cc35c push r15 ; +0xe, 0x1400cc35e lea rbp, [rsp-27h] ; +0x10, 0x1400cc360 sub rsp, 0B0h ; +0x15, 0x1400cc365 mov rax, cs:__security_cookie ; +0x1c, 0x1400cc36c xor rax, rsp ; +0x23, 0x1400cc373 mov [rbp+57h+var_38], rax ; +0x26, 0x1400cc376 mov ebx, r9d ; +0x2a, 0x1400cc37a mov rax, r8 ; +0x2d, 0x1400cc37d mov [rbp+57h+var_B0], rax ; +0x30, 0x1400cc380 mov rdi, rdx ; +0x34, 0x1400cc384 mov [rbp+57h+var_B8], rdx ; +0x37, 0x1400cc387 mov r14, rcx ; +0x3b, 0x1400cc38b mov [rbp+57h+var_88], rcx ; +0x3e, 0x1400cc38e mov [rbp+57h+var_68], rdx ; +0x42, 0x1400cc392 mov [rbp+57h+var_60], rax ; +0x46, 0x1400cc396 cmp byte ptr [rcx+209h], 0 ; +0x4a, 0x1400cc39a jnz short loc_1400CC3B5 ; +0x51, 0x1400cc3a1 cmp qword ptr [rdx+10h], 0 ; +0x53, 0x1400cc3a3 jnz short loc_1400CC3B5 ; +0x58, 0x1400cc3a8 cmp qword ptr [r8+10h], 0 ; +0x5a, 0x1400cc3aa jz loc_1400CC660 ; +0x5f, 0x1400cc3af lea rsi, [rcx+210h] ; +0x65, 0x1400cc3b5 mov rcx, rsi ; +0x6c, 0x1400cc3bc call sub_1400CDCD0 ; +0x6f, 0x1400cc3bf lea rax, [r14+220h] ; +0x74, 0x1400cc3c4 mov [rbp+57h+var_90], rax ; +0x7b, 0x1400cc3cb mov rcx, rax ; +0x7f, 0x1400cc3cf call sub_1400CDCD0 ; +0x82, 0x1400cc3d2 mov [r14+248h], ebx ; +0x87, 0x1400cc3d7 xorps xmm0, xmm0 ; +0x8e, 0x1400cc3de movdqu xmmword ptr [rbp+57h+Block], xmm0 ; +0x91, 0x1400cc3e1 xor ebx, ebx ; +0x96, 0x1400cc3e6 mov [rbp+57h+var_98], rbx ; +0x98, 0x1400cc3e8 lea r8, [rbp+57h+Block] ; +0x9c, 0x1400cc3ec mov rcx, rdi ; +0xa0, 0x1400cc3f0 call sub_1400C7EE0 ; +0xa3, 0x1400cc3f3 xorps xmm0, xmm0 ; +0xa8, 0x1400cc3f8 movdqu xmmword ptr [rbp+57h+Src], xmm0 ; +0xab, 0x1400cc3fb mov [rbp+57h+var_70], rbx ; +0xb0, 0x1400cc400 lea r8, [rbp+57h+Src] ; +0xb4, 0x1400cc404 mov rcx, [rbp+57h+var_B0] ; +0xb8, 0x1400cc408 call sub_1400C7EE0 ; +0xbc, 0x1400cc40c mov r13, [rbp+57h+Block] ; +0xc1, 0x1400cc411 mov rdi, r13 ; +0xc5, 0x1400cc415 mov r14, [rbp+57h+Block+8] ; +0xc8, 0x1400cc418 cmp r13, r14 ; +0xcc, 0x1400cc41c jz short loc_1400CC47A ; +0xcf, 0x1400cc41f mov rdx, rdi ; +0xd1, 0x1400cc421 lea rcx, [rbp+57h+String] ; +0xd4, 0x1400cc424 call sub_14003BDB0 ; +0xd8, 0x1400cc428 nop ; +0xdd, 0x1400cc42d lea rcx, [rbp+57h+String] ; +0xde, 0x1400cc42e cmp [rbp+57h+var_40], 0Fh ; +0xe2, 0x1400cc432 cmova rcx, [rbp+57h+String]; String ; +0xe7, 0x1400cc437 call cs:atoi ; +0xec, 0x1400cc43c mov [rbp+57h+var_C0], eax ; +0xf2, 0x1400cc442 call MusicDownloadManager__sharedState ; +0xf5, 0x1400cc445 mov rcx, rax ; +0xfa, 0x1400cc44a mov edx, [rbp+57h+var_C0] ; +0xfd, 0x1400cc44d call MusicDownloadManager__isSongDownloaded ; +0x100, 0x1400cc450 movzx ebx, al ; +0x105, 0x1400cc455 lea rdx, [rbp+57h+var_C0] ; +0x108, 0x1400cc458 mov rcx, rsi ; +0x10c, 0x1400cc45c call sub_1400CDBF0 ; +0x10f, 0x1400cc45f mov [rax], bl ; +0x114, 0x1400cc464 lea rcx, [rbp+57h+String] ; +0x116, 0x1400cc466 call sub_14003A830 ; +0x11a, 0x1400cc46a add rdi, 20h ; ' ' ; +0x11f, 0x1400cc46f cmp rdi, r14 ; +0x123, 0x1400cc473 jnz short loc_1400CC421 ; +0x126, 0x1400cc476 xor ebx, ebx ; +0x128, 0x1400cc478 mov r15, [rbp+57h+Src] ; +0x12a, 0x1400cc47a mov rsi, r15 ; +0x12e, 0x1400cc47e mov r12, [rbp+57h+Src+8] ; +0x131, 0x1400cc481 cmp r15, r12 ; +0x135, 0x1400cc485 jz loc_1400CC593 ; +0x138, 0x1400cc488 mov rax, 7FFFFFFFFFFFFFFFh ; +0x13e, 0x1400cc48e mov ecx, 16h ; +0x148, 0x1400cc498 nop dword ptr [rax] ; +0x14d, 0x1400cc49d xorps xmm0, xmm0 ; +0x150, 0x1400cc4a0 movups xmmword ptr [rbp+57h+String], xmm0 ; +0x153, 0x1400cc4a3 mov [rbp+57h+var_48], rbx ; +0x157, 0x1400cc4a7 mov [rbp+57h+var_40], rbx ; +0x15b, 0x1400cc4ab mov r14, rsi ; +0x15f, 0x1400cc4af cmp qword ptr [rsi+18h], 0Fh ; +0x162, 0x1400cc4b2 jbe short loc_1400CC4BC ; +0x167, 0x1400cc4b7 mov r14, [rsi] ; +0x169, 0x1400cc4b9 mov rdi, [rsi+10h] ; +0x16c, 0x1400cc4bc cmp rdi, rax ; +0x170, 0x1400cc4c0 ja loc_1400CC699 ; +0x173, 0x1400cc4c3 cmp rdi, 0Fh ; +0x179, 0x1400cc4c9 ja short loc_1400CC4E6 ; +0x17d, 0x1400cc4cd mov [rbp+57h+var_48], rdi ; +0x17f, 0x1400cc4cf mov eax, 0Fh ; +0x183, 0x1400cc4d3 mov [rbp+57h+var_40], rax ; +0x188, 0x1400cc4d8 movups xmm0, xmmword ptr [r14] ; +0x18c, 0x1400cc4dc movups xmmword ptr [rbp+57h+String], xmm0 ; +0x190, 0x1400cc4e0 jmp short loc_1400CC52F ; +0x194, 0x1400cc4e4 mov [rbp+57h+var_40], 0Fh ; +0x196, 0x1400cc4e6 mov rbx, rdi ; +0x19e, 0x1400cc4ee or rbx, 0Fh ; +0x1a1, 0x1400cc4f1 cmp rbx, rax ; +0x1a5, 0x1400cc4f5 jbe short loc_1400CC4FF ; +0x1a8, 0x1400cc4f8 mov rbx, rax ; +0x1aa, 0x1400cc4fa jmp short loc_1400CC507 ; +0x1ad, 0x1400cc4fd cmp rbx, 16h ; +0x1af, 0x1400cc4ff cmovb rbx, rcx ; +0x1b3, 0x1400cc503 lea rcx, [rbx+1] ; +0x1b7, 0x1400cc507 call sub_14003AA10 ; +0x1bb, 0x1400cc50b mov [rbp+57h+String], rax ; +0x1c0, 0x1400cc510 mov [rbp+57h+var_48], rdi ; +0x1c4, 0x1400cc514 mov [rbp+57h+var_40], rbx ; +0x1c8, 0x1400cc518 lea r8, [rdi+1]; Size ; +0x1cc, 0x1400cc51c mov rdx, r14; Src ; +0x1d0, 0x1400cc520 mov rcx, rax; void * ; +0x1d3, 0x1400cc523 call memcpy ; +0x1d6, 0x1400cc526 mov rax, [rbp+57h+var_40] ; +0x1db, 0x1400cc52b lea rcx, [rbp+57h+String] ; +0x1df, 0x1400cc52f cmp rax, 0Fh ; +0x1e3, 0x1400cc533 cmova rcx, [rbp+57h+String]; String ; +0x1e7, 0x1400cc537 call cs:atoi ; +0x1ec, 0x1400cc53c mov [rbp+57h+var_C0], eax ; +0x1f2, 0x1400cc542 call MusicDownloadManager__sharedState ; +0x1f5, 0x1400cc545 mov rcx, rax ; +0x1fa, 0x1400cc54a mov edx, [rbp+57h+var_C0] ; +0x1fd, 0x1400cc54d call MusicDownloadManager__isSFXDownloaded ; +0x200, 0x1400cc550 movzx ebx, al ; +0x205, 0x1400cc555 lea rdx, [rbp+57h+var_C0] ; +0x208, 0x1400cc558 mov rcx, [rbp+57h+var_90] ; +0x20c, 0x1400cc55c call sub_1400CDBF0 ; +0x210, 0x1400cc560 mov [rax], bl ; +0x215, 0x1400cc565 lea rcx, [rbp+57h+String] ; +0x217, 0x1400cc567 call sub_14003A830 ; +0x21b, 0x1400cc56b add rsi, 20h ; ' ' ; +0x220, 0x1400cc570 cmp rsi, r12 ; +0x224, 0x1400cc574 mov rax, 7FFFFFFFFFFFFFFFh ; +0x227, 0x1400cc577 mov ebx, 0 ; +0x231, 0x1400cc581 lea ecx, [rbx+16h] ; +0x236, 0x1400cc586 jnz loc_1400CC4A0 ; +0x239, 0x1400cc589 mov r14, [rbp+57h+Block+8] ; +0x23f, 0x1400cc58f mov dl, 1 ; +0x243, 0x1400cc593 mov rcx, [rbp+57h+var_88] ; +0x245, 0x1400cc595 call CustomSongWidget__updateMultiAssetInfo ; +0x249, 0x1400cc599 nop ; +0x24e, 0x1400cc59e test r15, r15 ; +0x24f, 0x1400cc59f jz short loc_1400CC5FD ; +0x252, 0x1400cc5a2 mov rbx, r15 ; +0x254, 0x1400cc5a4 cmp r15, r12 ; +0x257, 0x1400cc5a7 jz short loc_1400CC5C1 ; +0x25a, 0x1400cc5aa nop dword ptr [rax+00h] ; +0x25c, 0x1400cc5ac mov rcx, rbx ; +0x260, 0x1400cc5b0 call sub_14003A830 ; +0x263, 0x1400cc5b3 add rbx, 20h ; ' ' ; +0x268, 0x1400cc5b8 cmp rbx, r12 ; +0x26c, 0x1400cc5bc jnz short loc_1400CC5B0 ; +0x26f, 0x1400cc5bf mov rdx, [rbp+57h+var_70] ; +0x271, 0x1400cc5c1 sub rdx, r15 ; +0x275, 0x1400cc5c5 and rdx, 0FFFFFFFFFFFFFFE0h ; +0x278, 0x1400cc5c8 mov rax, r15 ; +0x27c, 0x1400cc5cc cmp rdx, 1000h ; +0x27f, 0x1400cc5cf jb short loc_1400CC5F4 ; +0x286, 0x1400cc5d6 add rdx, 27h ; ''' ; +0x288, 0x1400cc5d8 mov r15, [r15-8] ; +0x28c, 0x1400cc5dc sub rax, r15 ; +0x290, 0x1400cc5e0 add rax, 0FFFFFFFFFFFFFFF8h ; +0x293, 0x1400cc5e3 cmp rax, 1Fh ; +0x297, 0x1400cc5e7 jbe short loc_1400CC5F4 ; +0x29b, 0x1400cc5eb call cs:_invalid_parameter_noinfo_noreturn ; +0x29d, 0x1400cc5ed align 4 ; +0x2a3, 0x1400cc5f3 mov rcx, r15; Block ; +0x2a4, 0x1400cc5f4 call j_j_free ; +0x2a7, 0x1400cc5f7 nop ; +0x2ac, 0x1400cc5fc test r13, r13 ; +0x2ad, 0x1400cc5fd jz short loc_1400CC65C ; +0x2b0, 0x1400cc600 mov rbx, r13 ; +0x2b2, 0x1400cc602 cmp r13, r14 ; +0x2b5, 0x1400cc605 jz short loc_1400CC621 ; +0x2b8, 0x1400cc608 nop word ptr [rax+rax+00h] ; +0x2ba, 0x1400cc60a mov rcx, rbx ; +0x2c0, 0x1400cc610 call sub_14003A830 ; +0x2c3, 0x1400cc613 add rbx, 20h ; ' ' ; +0x2c8, 0x1400cc618 cmp rbx, r14 ; +0x2cc, 0x1400cc61c jnz short loc_1400CC610 ; +0x2cf, 0x1400cc61f mov rdx, [rbp+57h+var_98] ; +0x2d1, 0x1400cc621 sub rdx, r13 ; +0x2d5, 0x1400cc625 and rdx, 0FFFFFFFFFFFFFFE0h ; +0x2d8, 0x1400cc628 mov rax, r13 ; +0x2dc, 0x1400cc62c cmp rdx, 1000h ; +0x2df, 0x1400cc62f jb short loc_1400CC654 ; +0x2e6, 0x1400cc636 add rdx, 27h ; ''' ; +0x2e8, 0x1400cc638 mov r13, [r13-8] ; +0x2ec, 0x1400cc63c sub rax, r13 ; +0x2f0, 0x1400cc640 add rax, 0FFFFFFFFFFFFFFF8h ; +0x2f3, 0x1400cc643 cmp rax, 1Fh ; +0x2f7, 0x1400cc647 jbe short loc_1400CC654 ; +0x2fb, 0x1400cc64b call cs:_invalid_parameter_noinfo_noreturn ; +0x2fd, 0x1400cc64d align 4 ; +0x303, 0x1400cc653 mov rcx, r13; Block ; +0x304, 0x1400cc654 call j_j_free ; +0x307, 0x1400cc657 mov rdi, [rbp+57h+var_B8] ; +0x30c, 0x1400cc65c mov rcx, rdi ; +0x310, 0x1400cc660 call sub_14003A830 ; +0x313, 0x1400cc663 nop ; +0x318, 0x1400cc668 mov rcx, [rbp+57h+var_B0] ; +0x319, 0x1400cc669 call sub_14003A830 ; +0x31d, 0x1400cc66d mov rcx, [rbp+57h+var_38] ; +0x322, 0x1400cc672 xor rcx, rsp; StackCookie ; +0x326, 0x1400cc676 call __security_check_cookie ; +0x329, 0x1400cc679 mov rbx, [rsp+0E0h+arg_18] ; +0x32e, 0x1400cc67e add rsp, 0B0h ; +0x336, 0x1400cc686 pop r15 ; +0x33d, 0x1400cc68d pop r14 ; +0x33f, 0x1400cc68f pop r13 ; +0x341, 0x1400cc691 pop r12 ; +0x343, 0x1400cc693 pop rdi ; +0x345, 0x1400cc695 pop rsi ; +0x346, 0x1400cc696 pop rbp ; +0x347, 0x1400cc697 retn ; +0x348, 0x1400cc698 call sub_140007B50 ; +0x349, 0x1400cc699 db 90h ; +0x34e, 0x1400cc69e