; ; CustomSongWidget::onPlayback from 0x14016bcd0 to 0x14016c158 (1160 bytes) ; ; 2 xrefs: ; > CustomSongWidget::init @ 0x1401698c5 ; > @ 0x14091814c ; ; 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 ; mov [rsp-8+arg_8], rbx ; +0x0, 0x14016bcd0 mov [rsp-8+arg_10], rsi ; +0x5, 0x14016bcd5 mov [rsp-8+arg_18], rdi ; +0xa, 0x14016bcda push rbp ; +0xf, 0x14016bcdf push r14 ; +0x10, 0x14016bce0 push r15 ; +0x12, 0x14016bce2 lea rbp, [rsp-47h] ; +0x14, 0x14016bce4 sub rsp, 0B0h ; +0x19, 0x14016bce9 mov rax, cs:__security_cookie ; +0x20, 0x14016bcf0 xor rax, rsp ; +0x27, 0x14016bcf7 mov [rbp+57h+var_20], rax ; +0x2a, 0x14016bcfa mov rdi, rcx ; +0x2e, 0x14016bcfe mov rcx, [rcx+208h] ; +0x31, 0x14016bd01 test rcx, rcx ; +0x38, 0x14016bd08 jz short loc_14016BD1E ; +0x3b, 0x14016bd0b mov rax, [rcx] ; +0x3d, 0x14016bd0d mov rdx, [rdi+150h] ; +0x40, 0x14016bd10 call qword ptr [rax] ; +0x47, 0x14016bd17 jmp loc_14016C129 ; +0x49, 0x14016bd19 cmp qword ptr [rdi+150h], 0 ; +0x4e, 0x14016bd1e jz loc_14016C129 ; +0x56, 0x14016bd26 mov rcx, cs:qword_14090C070 ; +0x5c, 0x14016bd2c test rcx, rcx ; +0x63, 0x14016bd33 jnz short loc_14016BD69 ; +0x66, 0x14016bd36 mov ecx, 3D0h; Size ; +0x68, 0x14016bd38 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x6d, 0x14016bd3d mov [rbp+57h+var_88], rax ; +0x72, 0x14016bd42 mov rcx, rax ; +0x76, 0x14016bd46 call MusicDownloadManager__MusicDownloadManager ; +0x79, 0x14016bd49 nop ; +0x7e, 0x14016bd4e mov cs:qword_14090C070, rax ; +0x7f, 0x14016bd4f mov rcx, [rax] ; +0x86, 0x14016bd56 mov rdx, [rcx+48h] ; +0x89, 0x14016bd59 mov rcx, rax ; +0x8d, 0x14016bd5d call rdx ; +0x90, 0x14016bd60 mov rcx, cs:qword_14090C070 ; +0x92, 0x14016bd62 mov r8, [rdi+150h] ; +0x99, 0x14016bd69 mov r8d, [r8+140h] ; +0xa0, 0x14016bd70 lea rdx, [rbp+57h+Src] ; +0xa7, 0x14016bd77 call MusicDownloadManager__pathForSong ; +0xab, 0x14016bd7b nop ; +0xb0, 0x14016bd80 mov rcx, cs:qword_14090BF60 ; +0xb1, 0x14016bd81 test rcx, rcx ; +0xb8, 0x14016bd88 jnz short loc_14016BDBE ; +0xbb, 0x14016bd8b mov ecx, 8A8h; Size ; +0xbd, 0x14016bd8d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xc2, 0x14016bd92 mov [rbp+57h+var_88], rax ; +0xc7, 0x14016bd97 mov rcx, rax ; +0xcb, 0x14016bd9b call FMODAudioEngine__FMODAudioEngine ; +0xce, 0x14016bd9e nop ; +0xd3, 0x14016bda3 mov cs:qword_14090BF60, rax ; +0xd4, 0x14016bda4 mov rcx, [rax] ; +0xdb, 0x14016bdab mov rdx, [rcx+48h] ; +0xde, 0x14016bdae mov rcx, rax ; +0xe2, 0x14016bdb2 call rdx ; +0xe5, 0x14016bdb5 mov rcx, cs:qword_14090BF60 ; +0xe7, 0x14016bdb7 xor edx, edx ; +0xee, 0x14016bdbe call FMODAudioEngine__isMusicPlaying_1 ; +0xf0, 0x14016bdc0 xor r15d, r15d ; +0xf5, 0x14016bdc5 test al, al ; +0xf8, 0x14016bdc8 jz loc_14016BF25 ; +0xfa, 0x14016bdca lea rax, [rbp+57h+var_80] ; +0x100, 0x14016bdd0 mov [rbp+57h+var_88], rax ; +0x104, 0x14016bdd4 xorps xmm0, xmm0 ; +0x108, 0x14016bdd8 movups [rbp+57h+var_80], xmm0 ; +0x10b, 0x14016bddb mov [rbp+57h+var_70], r15 ; +0x10f, 0x14016bddf mov [rbp+57h+var_68], r15 ; +0x113, 0x14016bde3 lea r14, [rbp+57h+Src] ; +0x117, 0x14016bde7 cmp [rbp+57h+var_48], 0Fh ; +0x11b, 0x14016bdeb cmova r14, [rbp+57h+Src] ; +0x120, 0x14016bdf0 mov rsi, [rbp+57h+var_50] ; +0x125, 0x14016bdf5 mov rbx, 7FFFFFFFFFFFFFFFh ; +0x129, 0x14016bdf9 cmp rsi, rbx ; +0x133, 0x14016be03 ja loc_14016C152 ; +0x136, 0x14016be06 cmp rsi, 0Fh ; +0x13c, 0x14016be0c ja short loc_14016BE28 ; +0x140, 0x14016be10 mov [rbp+57h+var_70], rsi ; +0x142, 0x14016be12 mov [rbp+57h+var_68], 0Fh ; +0x146, 0x14016be16 movups xmm0, xmmword ptr [r14] ; +0x14e, 0x14016be1e movups [rbp+57h+var_80], xmm0 ; +0x152, 0x14016be22 jmp short loc_14016BE68 ; +0x156, 0x14016be26 mov rax, rsi ; +0x158, 0x14016be28 or rax, 0Fh ; +0x15b, 0x14016be2b cmp rax, rbx ; +0x15f, 0x14016be2f ja short loc_14016BE43 ; +0x162, 0x14016be32 mov rbx, rax ; +0x164, 0x14016be34 mov ecx, 16h ; +0x167, 0x14016be37 cmp rax, rcx ; +0x16c, 0x14016be3c cmovb rbx, rcx ; +0x16f, 0x14016be3f lea rcx, [rbx+1] ; +0x173, 0x14016be43 call sub_14003D460 ; +0x177, 0x14016be47 mov qword ptr [rbp+57h+var_80], rax ; +0x17c, 0x14016be4c mov [rbp+57h+var_70], rsi ; +0x180, 0x14016be50 mov [rbp+57h+var_68], rbx ; +0x184, 0x14016be54 lea r8, [rsi+1]; Size ; +0x188, 0x14016be58 mov rdx, r14; Src ; +0x18c, 0x14016be5c mov rcx, rax; void * ; +0x18f, 0x14016be5f call memcpy ; +0x192, 0x14016be62 nop ; +0x197, 0x14016be67 mov rcx, cs:qword_14090BF60 ; +0x198, 0x14016be68 test rcx, rcx ; +0x19f, 0x14016be6f jnz short loc_14016BEA5 ; +0x1a2, 0x14016be72 mov ecx, 8A8h; Size ; +0x1a4, 0x14016be74 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1a9, 0x14016be79 mov [rbp+57h+var_90], rax ; +0x1ae, 0x14016be7e mov rcx, rax ; +0x1b2, 0x14016be82 call FMODAudioEngine__FMODAudioEngine ; +0x1b5, 0x14016be85 nop ; +0x1ba, 0x14016be8a mov cs:qword_14090BF60, rax ; +0x1bb, 0x14016be8b mov rcx, [rax] ; +0x1c2, 0x14016be92 mov rdx, [rcx+48h] ; +0x1c5, 0x14016be95 mov rcx, rax ; +0x1c9, 0x14016be99 call rdx ; +0x1cc, 0x14016be9c mov rcx, cs:qword_14090BF60 ; +0x1ce, 0x14016be9e lea rdx, [rbp+57h+var_80] ; +0x1d5, 0x14016bea5 call FMODAudioEngine__isMusicPlaying ; +0x1d9, 0x14016bea9 test al, al ; +0x1de, 0x14016beae jnz short loc_14016BF25 ; +0x1e0, 0x14016beb0 mov rbx, cs:qword_14090BF60 ; +0x1e2, 0x14016beb2 test rbx, rbx ; +0x1e9, 0x14016beb9 jnz short loc_14016BEEF ; +0x1ec, 0x14016bebc mov ecx, 8A8h; Size ; +0x1ee, 0x14016bebe call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1f3, 0x14016bec3 mov [rbp+57h+var_90], rax ; +0x1f8, 0x14016bec8 mov rcx, rax ; +0x1fc, 0x14016becc call FMODAudioEngine__FMODAudioEngine ; +0x1ff, 0x14016becf nop ; +0x204, 0x14016bed4 mov cs:qword_14090BF60, rax ; +0x205, 0x14016bed5 mov rcx, [rax] ; +0x20c, 0x14016bedc mov rdx, [rcx+48h] ; +0x20f, 0x14016bedf mov rcx, rax ; +0x213, 0x14016bee3 call rdx ; +0x216, 0x14016bee6 mov rbx, cs:qword_14090BF60 ; +0x218, 0x14016bee8 mov rcx, [rbx+228h] ; +0x21f, 0x14016beef test rcx, rcx ; +0x226, 0x14016bef6 jz short loc_14016BF01 ; +0x229, 0x14016bef9 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x22b, 0x14016befb lea rcx, [rbx+448h] ; +0x231, 0x14016bf01 call sub_14003EB60 ; +0x238, 0x14016bf08 lea rcx, [rbx+488h] ; +0x23d, 0x14016bf0d call sub_14003EB60 ; +0x244, 0x14016bf14 lea rcx, [rbx+4C8h] ; +0x249, 0x14016bf19 call sub_14003EB60 ; +0x250, 0x14016bf20 mov rcx, cs:qword_14090BF60 ; +0x255, 0x14016bf25 test rcx, rcx ; +0x25c, 0x14016bf2c jnz short loc_14016BF62 ; +0x25f, 0x14016bf2f mov ecx, 8A8h; Size ; +0x261, 0x14016bf31 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x266, 0x14016bf36 mov [rbp+57h+var_90], rax ; +0x26b, 0x14016bf3b mov rcx, rax ; +0x26f, 0x14016bf3f call FMODAudioEngine__FMODAudioEngine ; +0x272, 0x14016bf42 nop ; +0x277, 0x14016bf47 mov cs:qword_14090BF60, rax ; +0x278, 0x14016bf48 mov rcx, [rax] ; +0x27f, 0x14016bf4f mov rdx, [rcx+48h] ; +0x282, 0x14016bf52 mov rcx, rax ; +0x286, 0x14016bf56 call rdx ; +0x289, 0x14016bf59 mov rcx, cs:qword_14090BF60 ; +0x28b, 0x14016bf5b xor edx, edx ; +0x292, 0x14016bf62 call FMODAudioEngine__isMusicPlaying_1 ; +0x294, 0x14016bf64 test al, al ; +0x299, 0x14016bf69 jz short loc_14016BFE5 ; +0x29b, 0x14016bf6b mov rbx, cs:qword_14090BF60 ; +0x29d, 0x14016bf6d test rbx, rbx ; +0x2a4, 0x14016bf74 jnz short loc_14016BFAA ; +0x2a7, 0x14016bf77 mov ecx, 8A8h; Size ; +0x2a9, 0x14016bf79 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2ae, 0x14016bf7e mov [rbp+57h+var_90], rax ; +0x2b3, 0x14016bf83 mov rcx, rax ; +0x2b7, 0x14016bf87 call FMODAudioEngine__FMODAudioEngine ; +0x2ba, 0x14016bf8a nop ; +0x2bf, 0x14016bf8f mov cs:qword_14090BF60, rax ; +0x2c0, 0x14016bf90 mov rcx, [rax] ; +0x2c7, 0x14016bf97 mov rdx, [rcx+48h] ; +0x2ca, 0x14016bf9a mov rcx, rax ; +0x2ce, 0x14016bf9e call rdx ; +0x2d1, 0x14016bfa1 mov rbx, cs:qword_14090BF60 ; +0x2d3, 0x14016bfa3 mov rcx, [rbx+228h] ; +0x2da, 0x14016bfaa test rcx, rcx ; +0x2e1, 0x14016bfb1 jz short loc_14016BFBC ; +0x2e4, 0x14016bfb4 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x2e6, 0x14016bfb6 lea rcx, [rbx+448h] ; +0x2ec, 0x14016bfbc call sub_14003EB60 ; +0x2f3, 0x14016bfc3 lea rcx, [rbx+488h] ; +0x2f8, 0x14016bfc8 call sub_14003EB60 ; +0x2ff, 0x14016bfcf lea rcx, [rbx+4C8h] ; +0x304, 0x14016bfd4 call sub_14003EB60 ; +0x30b, 0x14016bfdb jmp loc_14016C0DD ; +0x310, 0x14016bfe0 cmp qword ptr [rdi+150h], 0 ; +0x315, 0x14016bfe5 jz loc_14016C0DD ; +0x31d, 0x14016bfed lea rax, [rbp+57h+var_80] ; +0x323, 0x14016bff3 mov [rbp+57h+var_90], rax ; +0x327, 0x14016bff7 mov rcx, cs:qword_14090C070 ; +0x32b, 0x14016bffb test rcx, rcx ; +0x332, 0x14016c002 jnz short loc_14016C038 ; +0x335, 0x14016c005 mov ecx, 3D0h; Size ; +0x337, 0x14016c007 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x33c, 0x14016c00c mov [rbp+57h+var_88], rax ; +0x341, 0x14016c011 mov rcx, rax ; +0x345, 0x14016c015 call MusicDownloadManager__MusicDownloadManager ; +0x348, 0x14016c018 nop ; +0x34d, 0x14016c01d mov cs:qword_14090C070, rax ; +0x34e, 0x14016c01e mov rcx, [rax] ; +0x355, 0x14016c025 mov rdx, [rcx+48h] ; +0x358, 0x14016c028 mov rcx, rax ; +0x35c, 0x14016c02c call rdx ; +0x35f, 0x14016c02f mov rcx, cs:qword_14090C070 ; +0x361, 0x14016c031 mov r8, [rdi+150h] ; +0x368, 0x14016c038 mov r8d, [r8+140h] ; +0x36f, 0x14016c03f lea rdx, [rbp+57h+var_40] ; +0x376, 0x14016c046 call MusicDownloadManager__pathForSong ; +0x37a, 0x14016c04a nop ; +0x37f, 0x14016c04f cmp qword ptr [rax+18h], 0Fh ; +0x380, 0x14016c050 jbe short loc_14016C05A ; +0x385, 0x14016c055 mov rax, [rax] ; +0x387, 0x14016c057 xorps xmm0, xmm0 ; +0x38a, 0x14016c05a movups [rbp+57h+var_80], xmm0 ; +0x38d, 0x14016c05d mov [rbp+57h+var_70], r15 ; +0x391, 0x14016c061 mov [rbp+57h+var_68], r15 ; +0x395, 0x14016c065 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x399, 0x14016c069 inc r8 ; +0x3a0, 0x14016c070 cmp byte ptr [rax+r8], 0 ; +0x3a3, 0x14016c073 jnz short loc_14016C070 ; +0x3a8, 0x14016c078 mov rdx, rax ; +0x3aa, 0x14016c07a lea rcx, [rbp+57h+var_80] ; +0x3ad, 0x14016c07d call sub_14003D230 ; +0x3b1, 0x14016c081 nop ; +0x3b6, 0x14016c086 mov rcx, cs:qword_14090BF60 ; +0x3b7, 0x14016c087 test rcx, rcx ; +0x3be, 0x14016c08e jnz short loc_14016C0C4 ; +0x3c1, 0x14016c091 mov ecx, 8A8h; Size ; +0x3c3, 0x14016c093 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3c8, 0x14016c098 mov [rbp+57h+var_88], rax ; +0x3cd, 0x14016c09d mov rcx, rax ; +0x3d1, 0x14016c0a1 call FMODAudioEngine__FMODAudioEngine ; +0x3d4, 0x14016c0a4 nop ; +0x3d9, 0x14016c0a9 mov cs:qword_14090BF60, rax ; +0x3da, 0x14016c0aa mov rcx, [rax] ; +0x3e1, 0x14016c0b1 mov rdx, [rcx+48h] ; +0x3e4, 0x14016c0b4 mov rcx, rax ; +0x3e8, 0x14016c0b8 call rdx ; +0x3eb, 0x14016c0bb mov rcx, cs:qword_14090BF60 ; +0x3ed, 0x14016c0bd xorps xmm3, xmm3 ; +0x3f4, 0x14016c0c4 xor r8d, r8d ; +0x3f7, 0x14016c0c7 lea rdx, [rbp+57h+var_80] ; +0x3fa, 0x14016c0ca call FMODAudioEngine__playMusic ; +0x3fe, 0x14016c0ce nop ; +0x403, 0x14016c0d3 lea rcx, [rbp+57h+var_40] ; +0x404, 0x14016c0d4 call sub_14003D310 ; +0x408, 0x14016c0d8 mov rcx, cs:qword_14090C070 ; +0x40d, 0x14016c0dd test rcx, rcx ; +0x414, 0x14016c0e4 jnz short loc_14016C11A ; +0x417, 0x14016c0e7 mov ecx, 3D0h; Size ; +0x419, 0x14016c0e9 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x41e, 0x14016c0ee mov [rbp+57h+var_90], rax ; +0x423, 0x14016c0f3 mov rcx, rax ; +0x427, 0x14016c0f7 call MusicDownloadManager__MusicDownloadManager ; +0x42a, 0x14016c0fa nop ; +0x42f, 0x14016c0ff mov cs:qword_14090C070, rax ; +0x430, 0x14016c100 mov rcx, [rax] ; +0x437, 0x14016c107 mov rdx, [rcx+48h] ; +0x43a, 0x14016c10a mov rcx, rax ; +0x43e, 0x14016c10e call rdx ; +0x441, 0x14016c111 mov rcx, cs:qword_14090C070 ; +0x443, 0x14016c113 call MusicDownloadManager__songStateChanged ; +0x44a, 0x14016c11a nop ; +0x44f, 0x14016c11f lea rcx, [rbp+57h+Src] ; +0x450, 0x14016c120 call sub_14003D310 ; +0x454, 0x14016c124 mov rcx, [rbp+57h+var_20] ; +0x459, 0x14016c129 xor rcx, rsp; StackCookie ; +0x45d, 0x14016c12d call __security_check_cookie ; +0x460, 0x14016c130 lea r11, [rsp+0C0h+var_10] ; +0x465, 0x14016c135 mov rbx, [r11+28h] ; +0x46d, 0x14016c13d mov rsi, [r11+30h] ; +0x471, 0x14016c141 mov rdi, [r11+38h] ; +0x475, 0x14016c145 mov rsp, r11 ; +0x479, 0x14016c149 pop r15 ; +0x47c, 0x14016c14c pop r14 ; +0x47e, 0x14016c14e pop rbp ; +0x480, 0x14016c150 retn ; +0x481, 0x14016c151 call sub_140009D90 ; +0x482, 0x14016c152 align 8 ; +0x487, 0x14016c157