; ; CustomSFXWidget::onToggleFavorite from 0x140162080 to 0x14016219f (287 bytes) ; ; 2 xrefs: ; > CustomSFXWidget::init @ 0x140160e12 ; > @ 0x140917d80 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x140162080 push rdi ; +0x5, 0x140162085 sub rsp, 30h ; +0x6, 0x140162086 mov rdi, rcx ; +0xa, 0x14016208a mov rax, [rcx+150h] ; +0xd, 0x14016208d test rax, rax ; +0x14, 0x140162094 jz loc_140162194 ; +0x17, 0x140162097 mov rbx, cs:qword_14090C070 ; +0x1d, 0x14016209d cmp dword ptr [rax+4Ch], 0 ; +0x24, 0x1401620a4 jle short loc_140162117 ; +0x28, 0x1401620a8 test rbx, rbx ; +0x2a, 0x1401620aa jnz short loc_1401620E1 ; +0x2d, 0x1401620ad mov ecx, 3D0h; Size ; +0x2f, 0x1401620af call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x34, 0x1401620b4 mov [rsp+38h+arg_0], rax ; +0x39, 0x1401620b9 mov rcx, rax ; +0x3e, 0x1401620be call MusicDownloadManager__MusicDownloadManager ; +0x41, 0x1401620c1 nop ; +0x46, 0x1401620c6 mov cs:qword_14090C070, rax ; +0x47, 0x1401620c7 mov rcx, [rax] ; +0x4e, 0x1401620ce mov rdx, [rcx+48h] ; +0x51, 0x1401620d1 mov rcx, rax ; +0x55, 0x1401620d5 call rdx ; +0x58, 0x1401620d8 mov rbx, cs:qword_14090C070 ; +0x5a, 0x1401620da mov rax, [rdi+150h] ; +0x61, 0x1401620e1 mov ecx, [rax+4Ch] ; +0x68, 0x1401620e8 mov dword ptr [rsp+38h+arg_0], ecx ; +0x6b, 0x1401620eb cmp ecx, 1 ; +0x6f, 0x1401620ef jle loc_14016218C ; +0x72, 0x1401620f2 lea rcx, [rbx+2C8h] ; +0x78, 0x1401620f8 lea rdx, [rsp+38h+arg_0] ; +0x7f, 0x1401620ff call sub_140066A60 ; +0x84, 0x140162104 test rax, rax ; +0x89, 0x140162109 jnz short loc_14016218C ; +0x8c, 0x14016210c lea rcx, [rbx+2C8h] ; +0x8e, 0x14016210e jmp short loc_14016217D ; +0x95, 0x140162115 test rbx, rbx ; +0x97, 0x140162117 jnz short loc_14016214E ; +0x9a, 0x14016211a mov ecx, 3D0h; Size ; +0x9c, 0x14016211c call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xa1, 0x140162121 mov [rsp+38h+arg_0], rax ; +0xa6, 0x140162126 mov rcx, rax ; +0xab, 0x14016212b call MusicDownloadManager__MusicDownloadManager ; +0xae, 0x14016212e nop ; +0xb3, 0x140162133 mov cs:qword_14090C070, rax ; +0xb4, 0x140162134 mov rcx, [rax] ; +0xbb, 0x14016213b mov rdx, [rcx+48h] ; +0xbe, 0x14016213e mov rcx, rax ; +0xc2, 0x140162142 call rdx ; +0xc5, 0x140162145 mov rbx, cs:qword_14090C070 ; +0xc7, 0x140162147 mov rax, [rdi+150h] ; +0xce, 0x14016214e mov ecx, [rax+38h] ; +0xd5, 0x140162155 mov dword ptr [rsp+38h+arg_0], ecx ; +0xd8, 0x140162158 test ecx, ecx ; +0xdc, 0x14016215c jle short loc_14016218C ; +0xde, 0x14016215e lea rcx, [rbx+288h] ; +0xe0, 0x140162160 lea rdx, [rsp+38h+arg_0] ; +0xe7, 0x140162167 call sub_140066A60 ; +0xec, 0x14016216c test rax, rax ; +0xf1, 0x140162171 jnz short loc_14016218C ; +0xf4, 0x140162174 lea rcx, [rbx+288h] ; +0xf6, 0x140162176 lea r8, [rsp+38h+arg_0] ; +0xfd, 0x14016217d lea rdx, [rsp+38h+var_18] ; +0x102, 0x140162182 call sub_140068190 ; +0x107, 0x140162187 mov rcx, rdi ; +0x10c, 0x14016218c call CustomSFXWidget__updateSFXInfo ; +0x10f, 0x14016218f mov rbx, [rsp+38h+arg_8] ; +0x114, 0x140162194 add rsp, 30h ; +0x119, 0x140162199 pop rdi ; +0x11d, 0x14016219d retn ; +0x11e, 0x14016219e