; ; CustomSongWidget::onDownload from 0x14016b890 to 0x14016bb0c (636 bytes) ; ; 4 xrefs: ; > CustomSongWidget::musicActionFinished @ 0x14016e991 ; > CustomSongWidget::FLAlert_Clicked @ 0x14016edb8 ; > CustomSongWidget::init @ 0x1401696b8 ; > @ 0x14091811c ; ; 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 11:27:29 +0000 ; push rbx ; +0x0, 0x14016b890 sub rsp, 20h ; +0x2, 0x14016b892 mov rbx, rcx ; +0x6, 0x14016b896 mov rcx, [rcx+178h] ; +0x9, 0x14016b899 mov rax, [rcx] ; +0x10, 0x14016b8a0 xor edx, edx ; +0x13, 0x14016b8a3 call qword ptr [rax+150h] ; +0x15, 0x14016b8a5 mov rcx, [rbx+1E0h] ; +0x1b, 0x14016b8ab test rcx, rcx ; +0x22, 0x14016b8b2 jz short loc_14016B8C2 ; +0x25, 0x14016b8b5 mov rax, [rcx] ; +0x27, 0x14016b8b7 xor edx, edx ; +0x2a, 0x14016b8ba call qword ptr [rax+150h] ; +0x2c, 0x14016b8bc mov rcx, cs:qword_14090BFD0 ; +0x32, 0x14016b8c2 test rcx, rcx ; +0x39, 0x14016b8c9 jnz short loc_14016B900 ; +0x3c, 0x14016b8cc mov ecx, 6E8h; Size ; +0x3e, 0x14016b8ce call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x43, 0x14016b8d3 mov [rsp+28h+arg_0], rax ; +0x48, 0x14016b8d8 mov rcx, rax ; +0x4d, 0x14016b8dd call GameManager__GameManager ; +0x50, 0x14016b8e0 nop ; +0x55, 0x14016b8e5 mov cs:qword_14090BFD0, rax ; +0x56, 0x14016b8e6 mov rcx, [rax] ; +0x5d, 0x14016b8ed mov rdx, [rcx+48h] ; +0x60, 0x14016b8f0 mov rcx, rax ; +0x64, 0x14016b8f4 call rdx ; +0x67, 0x14016b8f7 mov rcx, cs:qword_14090BFD0 ; +0x69, 0x14016b8f9 lea rdx, a0016; "0016" ; +0x70, 0x14016b900 call GameManager__getGameVariable ; +0x77, 0x14016b907 test al, al ; +0x7c, 0x14016b90c jnz short loc_14016B957 ; +0x7e, 0x14016b90e cmp cs:qword_14090C070, 0 ; +0x80, 0x14016b910 jnz short loc_14016B946 ; +0x88, 0x14016b918 mov ecx, 3D0h; Size ; +0x8a, 0x14016b91a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x8f, 0x14016b91f mov [rsp+28h+arg_0], rax ; +0x94, 0x14016b924 mov rcx, rax ; +0x99, 0x14016b929 call MusicDownloadManager__MusicDownloadManager ; +0x9c, 0x14016b92c nop ; +0xa1, 0x14016b931 mov cs:qword_14090C070, rax ; +0xa2, 0x14016b932 mov rcx, [rax] ; +0xa9, 0x14016b939 mov r8, [rcx+48h] ; +0xac, 0x14016b93c mov rcx, rax ; +0xb0, 0x14016b940 call r8 ; +0xb3, 0x14016b943 lea rdx, [rbx+148h] ; +0xb6, 0x14016b946 add rsp, 20h ; +0xbd, 0x14016b94d pop rbx ; +0xc1, 0x14016b951 jmp MusicDownloadManager__showTOS ; +0xc2, 0x14016b952 cmp byte ptr [rbx+211h], 0 ; +0xc7, 0x14016b957 jz short loc_14016B9DD ; +0xce, 0x14016b95e mov rcx, [rbx+180h] ; +0xd0, 0x14016b960 mov rax, [rcx] ; +0xd7, 0x14016b967 xor edx, edx ; +0xda, 0x14016b96a call qword ptr [rax+150h] ; +0xdc, 0x14016b96c mov rcx, [rbx+188h] ; +0xe2, 0x14016b972 mov rax, [rcx] ; +0xe9, 0x14016b979 mov dl, 1 ; +0xec, 0x14016b97c call qword ptr [rax+150h] ; +0xee, 0x14016b97e mov rcx, cs:qword_14090C070 ; +0xf4, 0x14016b984 test rcx, rcx ; +0xfb, 0x14016b98b jnz short loc_14016B9C2 ; +0xfe, 0x14016b98e mov ecx, 3D0h; Size ; +0x100, 0x14016b990 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x105, 0x14016b995 mov [rsp+28h+arg_0], rax ; +0x10a, 0x14016b99a mov rcx, rax ; +0x10f, 0x14016b99f call MusicDownloadManager__MusicDownloadManager ; +0x112, 0x14016b9a2 nop ; +0x117, 0x14016b9a7 mov cs:qword_14090C070, rax ; +0x118, 0x14016b9a8 mov rcx, [rax] ; +0x11f, 0x14016b9af mov rdx, [rcx+48h] ; +0x122, 0x14016b9b2 mov rcx, rax ; +0x126, 0x14016b9b6 call rdx ; +0x129, 0x14016b9b9 mov rcx, cs:qword_14090C070 ; +0x12b, 0x14016b9bb cmp qword ptr [rcx+180h], 0 ; +0x132, 0x14016b9c2 jz loc_14016BA87 ; +0x13a, 0x14016b9ca mov rcx, rbx ; +0x140, 0x14016b9d0 add rsp, 20h ; +0x143, 0x14016b9d3 pop rbx ; +0x147, 0x14016b9d7 jmp CustomSongWidget__startMultiAssetDownload ; +0x148, 0x14016b9d8 cmp qword ptr [rbx+150h], 0 ; +0x14d, 0x14016b9dd jz loc_14016BB06 ; +0x155, 0x14016b9e5 mov rcx, [rbx+1C8h] ; +0x15b, 0x14016b9eb mov rax, [rcx] ; +0x162, 0x14016b9f2 mov dl, 1 ; +0x165, 0x14016b9f5 call qword ptr [rax+150h] ; +0x167, 0x14016b9f7 mov rcx, [rbx+180h] ; +0x16d, 0x14016b9fd mov rax, [rcx] ; +0x174, 0x14016ba04 xor edx, edx ; +0x177, 0x14016ba07 call qword ptr [rax+150h] ; +0x179, 0x14016ba09 mov rcx, [rbx+188h] ; +0x17f, 0x14016ba0f mov rax, [rcx] ; +0x186, 0x14016ba16 mov dl, 1 ; +0x189, 0x14016ba19 call qword ptr [rax+150h] ; +0x18b, 0x14016ba1b mov rcx, [rbx+1B0h] ; +0x191, 0x14016ba21 mov rax, [rcx] ; +0x198, 0x14016ba28 xor edx, edx ; +0x19b, 0x14016ba2b call qword ptr [rax+150h] ; +0x19d, 0x14016ba2d mov rcx, cs:qword_14090C070 ; +0x1a3, 0x14016ba33 cmp dword ptr [rbx+1F8h], 989680h ; +0x1aa, 0x14016ba3a jl short loc_14016BA98 ; +0x1b4, 0x14016ba44 test rcx, rcx ; +0x1b6, 0x14016ba46 jnz short loc_14016BA7D ; +0x1b9, 0x14016ba49 mov ecx, 3D0h; Size ; +0x1bb, 0x14016ba4b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1c0, 0x14016ba50 mov [rsp+28h+arg_0], rax ; +0x1c5, 0x14016ba55 mov rcx, rax ; +0x1ca, 0x14016ba5a call MusicDownloadManager__MusicDownloadManager ; +0x1cd, 0x14016ba5d nop ; +0x1d2, 0x14016ba62 mov cs:qword_14090C070, rax ; +0x1d3, 0x14016ba63 mov rcx, [rax] ; +0x1da, 0x14016ba6a mov rdx, [rcx+48h] ; +0x1dd, 0x14016ba6d mov rcx, rax ; +0x1e1, 0x14016ba71 call rdx ; +0x1e4, 0x14016ba74 mov rcx, cs:qword_14090C070 ; +0x1e6, 0x14016ba76 cmp qword ptr [rcx+180h], 0 ; +0x1ed, 0x14016ba7d jnz short loc_14016BA98 ; +0x1f5, 0x14016ba85 mov byte ptr [rbx+210h], 1 ; +0x1f7, 0x14016ba87 add rsp, 20h ; +0x1fe, 0x14016ba8e pop rbx ; +0x202, 0x14016ba92 jmp MusicDownloadManager__getCustomContentURL ; +0x203, 0x14016ba93 mov rax, [rbx+150h] ; +0x208, 0x14016ba98 cmp byte ptr [rax+1D9h], 0 ; +0x20f, 0x14016ba9f jz short loc_14016BAB5 ; +0x216, 0x14016baa6 mov rcx, rbx ; +0x218, 0x14016baa8 add rsp, 20h ; +0x21b, 0x14016baab pop rbx ; +0x21f, 0x14016baaf jmp CustomSongWidget__startDownload ; +0x220, 0x14016bab0 mov byte ptr [rbx+1F3h], 1 ; +0x225, 0x14016bab5 test rcx, rcx ; +0x22c, 0x14016babc jnz short loc_14016BAF3 ; +0x22f, 0x14016babf mov ecx, 3D0h; Size ; +0x231, 0x14016bac1 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x236, 0x14016bac6 mov [rsp+28h+arg_0], rax ; +0x23b, 0x14016bacb mov rcx, rax ; +0x240, 0x14016bad0 call MusicDownloadManager__MusicDownloadManager ; +0x243, 0x14016bad3 nop ; +0x248, 0x14016bad8 mov cs:qword_14090C070, rax ; +0x249, 0x14016bad9 mov rcx, [rax] ; +0x250, 0x14016bae0 mov rdx, [rcx+48h] ; +0x253, 0x14016bae3 mov rcx, rax ; +0x257, 0x14016bae7 call rdx ; +0x25a, 0x14016baea mov rcx, cs:qword_14090C070 ; +0x25c, 0x14016baec mov r8b, 1 ; +0x263, 0x14016baf3 mov edx, [rbx+1F8h] ; +0x266, 0x14016baf6 add rsp, 20h ; +0x26c, 0x14016bafc pop rbx ; +0x270, 0x14016bb00 jmp MusicDownloadManager__getSongInfo ; +0x271, 0x14016bb01 add rsp, 20h ; +0x276, 0x14016bb06 pop rbx ; +0x27a, 0x14016bb0a retn ; +0x27b, 0x14016bb0b