; ; CustomSFXWidget::onDownload from 0x140161e50 to 0x140161faf (351 bytes) ; ; 3 xrefs: ; > CustomSFXWidget::FLAlert_Clicked @ 0x140163a08 ; > CustomSFXWidget::init @ 0x14016092f ; > @ 0x140917d68 ; ; 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:25 +0000 ; push rbx ; +0x0, 0x140161e50 sub rsp, 20h ; +0x2, 0x140161e52 mov rbx, rcx ; +0x6, 0x140161e56 mov rcx, [rcx+170h] ; +0x9, 0x140161e59 mov rax, [rcx] ; +0x10, 0x140161e60 xor edx, edx ; +0x13, 0x140161e63 call qword ptr [rax+150h] ; +0x15, 0x140161e65 cmp qword ptr [rbx+150h], 0 ; +0x1b, 0x140161e6b jz loc_140161FA9 ; +0x23, 0x140161e73 mov rcx, cs:qword_14090BFD0 ; +0x29, 0x140161e79 test rcx, rcx ; +0x30, 0x140161e80 jnz short loc_140161EB7 ; +0x33, 0x140161e83 mov ecx, 6E8h; Size ; +0x35, 0x140161e85 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3a, 0x140161e8a mov [rsp+28h+arg_0], rax ; +0x3f, 0x140161e8f mov rcx, rax ; +0x44, 0x140161e94 call GameManager__GameManager ; +0x47, 0x140161e97 nop ; +0x4c, 0x140161e9c mov cs:qword_14090BFD0, rax ; +0x4d, 0x140161e9d mov rcx, [rax] ; +0x54, 0x140161ea4 mov rdx, [rcx+48h] ; +0x57, 0x140161ea7 mov rcx, rax ; +0x5b, 0x140161eab call rdx ; +0x5e, 0x140161eae mov rcx, cs:qword_14090BFD0 ; +0x60, 0x140161eb0 lea rdx, a0016; "0016" ; +0x67, 0x140161eb7 call GameManager__getGameVariable ; +0x6e, 0x140161ebe test al, al ; +0x73, 0x140161ec3 jnz short loc_140161F0E ; +0x75, 0x140161ec5 cmp cs:qword_14090C070, 0 ; +0x77, 0x140161ec7 jnz short loc_140161EFD ; +0x7f, 0x140161ecf mov ecx, 3D0h; Size ; +0x81, 0x140161ed1 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x86, 0x140161ed6 mov [rsp+28h+arg_0], rax ; +0x8b, 0x140161edb mov rcx, rax ; +0x90, 0x140161ee0 call MusicDownloadManager__MusicDownloadManager ; +0x93, 0x140161ee3 nop ; +0x98, 0x140161ee8 mov cs:qword_14090C070, rax ; +0x99, 0x140161ee9 mov rcx, [rax] ; +0xa0, 0x140161ef0 mov r8, [rcx+48h] ; +0xa3, 0x140161ef3 mov rcx, rax ; +0xa7, 0x140161ef7 call r8 ; +0xaa, 0x140161efa lea rdx, [rbx+148h] ; +0xad, 0x140161efd add rsp, 20h ; +0xb4, 0x140161f04 pop rbx ; +0xb8, 0x140161f08 jmp MusicDownloadManager__showTOS ; +0xb9, 0x140161f09 mov rcx, rbx ; +0xbe, 0x140161f0e call CustomSFXWidget__showLoadingArt ; +0xc1, 0x140161f11 mov rcx, [rbx+178h] ; +0xc6, 0x140161f16 mov rax, [rcx] ; +0xcd, 0x140161f1d xor edx, edx ; +0xd0, 0x140161f20 call qword ptr [rax+150h] ; +0xd2, 0x140161f22 mov rcx, [rbx+180h] ; +0xd8, 0x140161f28 mov rax, [rcx] ; +0xdf, 0x140161f2f mov dl, 1 ; +0xe2, 0x140161f32 call qword ptr [rax+150h] ; +0xe4, 0x140161f34 mov rcx, [rbx+198h] ; +0xea, 0x140161f3a mov rax, [rcx] ; +0xf1, 0x140161f41 xor edx, edx ; +0xf4, 0x140161f44 call qword ptr [rax+150h] ; +0xf6, 0x140161f46 mov byte ptr [rbx+1EBh], 0 ; +0xfc, 0x140161f4c mov rcx, cs:qword_14090C070 ; +0x103, 0x140161f53 test rcx, rcx ; +0x10a, 0x140161f5a jnz short loc_140161F91 ; +0x10d, 0x140161f5d mov ecx, 3D0h; Size ; +0x10f, 0x140161f5f call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x114, 0x140161f64 mov [rsp+28h+arg_0], rax ; +0x119, 0x140161f69 mov rcx, rax ; +0x11e, 0x140161f6e call MusicDownloadManager__MusicDownloadManager ; +0x121, 0x140161f71 nop ; +0x126, 0x140161f76 mov cs:qword_14090C070, rax ; +0x127, 0x140161f77 mov rcx, [rax] ; +0x12e, 0x140161f7e mov rdx, [rcx+48h] ; +0x131, 0x140161f81 mov rcx, rax ; +0x135, 0x140161f85 call rdx ; +0x138, 0x140161f88 mov rcx, cs:qword_14090C070 ; +0x13a, 0x140161f8a mov edx, [rbx+1F0h] ; +0x141, 0x140161f91 call MusicDownloadManager__downloadSFX ; +0x147, 0x140161f97 mov rcx, rbx ; +0x14c, 0x140161f9c add rsp, 20h ; +0x14f, 0x140161f9f pop rbx ; +0x153, 0x140161fa3 jmp CustomSFXWidget__startMonitorDownload ; +0x154, 0x140161fa4 add rsp, 20h ; +0x159, 0x140161fa9 pop rbx ; +0x15d, 0x140161fad retn ; +0x15e, 0x140161fae