; ; CustomSongWidget::deleteSong from 0x14016b270 to 0x14016b4e8 (632 bytes) ; ; 2 xrefs: ; > CustomSongWidget::FLAlert_Clicked @ 0x14016ed59 ; > @ 0x1409180d4 ; ; 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+arg_8], rbx ; +0x0, 0x14016b270 push rdi ; +0x5, 0x14016b275 sub rsp, 80h ; +0x6, 0x14016b276 mov rax, cs:__security_cookie ; +0xd, 0x14016b27d xor rax, rsp ; +0x14, 0x14016b284 mov [rsp+88h+var_10], rax ; +0x17, 0x14016b287 mov rdi, rcx ; +0x1c, 0x14016b28c cmp qword ptr [rcx+150h], 0 ; +0x1f, 0x14016b28f jz loc_14016B4CA ; +0x27, 0x14016b297 lea rax, [rsp+88h+var_50] ; +0x2d, 0x14016b29d mov [rsp+88h+var_58], rax ; +0x32, 0x14016b2a2 mov rcx, cs:qword_14090C070 ; +0x37, 0x14016b2a7 test rcx, rcx ; +0x3e, 0x14016b2ae jnz short loc_14016B2E5 ; +0x41, 0x14016b2b1 mov ecx, 3D0h; Size ; +0x43, 0x14016b2b3 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x48, 0x14016b2b8 mov [rsp+88h+var_60], rax ; +0x4d, 0x14016b2bd mov rcx, rax ; +0x52, 0x14016b2c2 call MusicDownloadManager__MusicDownloadManager ; +0x55, 0x14016b2c5 nop ; +0x5a, 0x14016b2ca mov cs:qword_14090C070, rax ; +0x5b, 0x14016b2cb mov rcx, [rax] ; +0x62, 0x14016b2d2 mov rdx, [rcx+48h] ; +0x65, 0x14016b2d5 mov rcx, rax ; +0x69, 0x14016b2d9 call rdx ; +0x6c, 0x14016b2dc mov rcx, cs:qword_14090C070 ; +0x6e, 0x14016b2de mov r8, [rdi+150h] ; +0x75, 0x14016b2e5 mov r8d, [r8+140h] ; +0x7c, 0x14016b2ec lea rdx, [rsp+88h+var_50] ; +0x83, 0x14016b2f3 call MusicDownloadManager__pathForSong ; +0x88, 0x14016b2f8 mov rbx, rax ; +0x8d, 0x14016b2fd mov rcx, cs:qword_14090BF60 ; +0x90, 0x14016b300 test rcx, rcx ; +0x97, 0x14016b307 jnz short loc_14016B33E ; +0x9a, 0x14016b30a mov ecx, 8A8h; Size ; +0x9c, 0x14016b30c call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xa1, 0x14016b311 mov [rsp+88h+var_60], rax ; +0xa6, 0x14016b316 mov rcx, rax ; +0xab, 0x14016b31b call FMODAudioEngine__FMODAudioEngine ; +0xae, 0x14016b31e nop ; +0xb3, 0x14016b323 mov cs:qword_14090BF60, rax ; +0xb4, 0x14016b324 mov rcx, [rax] ; +0xbb, 0x14016b32b mov rdx, [rcx+48h] ; +0xbe, 0x14016b32e mov rcx, rax ; +0xc2, 0x14016b332 call rdx ; +0xc5, 0x14016b335 mov rcx, cs:qword_14090BF60 ; +0xc7, 0x14016b337 mov rdx, rbx ; +0xce, 0x14016b33e call FMODAudioEngine__isMusicPlaying ; +0xd1, 0x14016b341 test al, al ; +0xd6, 0x14016b346 jz short loc_14016B3BE ; +0xd8, 0x14016b348 mov rbx, cs:qword_14090BF60 ; +0xda, 0x14016b34a test rbx, rbx ; +0xe1, 0x14016b351 jnz short loc_14016B388 ; +0xe4, 0x14016b354 mov ecx, 8A8h; Size ; +0xe6, 0x14016b356 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xeb, 0x14016b35b mov [rsp+88h+var_60], rax ; +0xf0, 0x14016b360 mov rcx, rax ; +0xf5, 0x14016b365 call FMODAudioEngine__FMODAudioEngine ; +0xf8, 0x14016b368 nop ; +0xfd, 0x14016b36d mov cs:qword_14090BF60, rax ; +0xfe, 0x14016b36e mov rcx, [rax] ; +0x105, 0x14016b375 mov rdx, [rcx+48h] ; +0x108, 0x14016b378 mov rcx, rax ; +0x10c, 0x14016b37c call rdx ; +0x10f, 0x14016b37f mov rbx, cs:qword_14090BF60 ; +0x111, 0x14016b381 mov rcx, [rbx+228h] ; +0x118, 0x14016b388 test rcx, rcx ; +0x11f, 0x14016b38f jz short loc_14016B39A ; +0x122, 0x14016b392 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x124, 0x14016b394 lea rcx, [rbx+448h] ; +0x12a, 0x14016b39a call sub_14003EB60 ; +0x131, 0x14016b3a1 lea rcx, [rbx+488h] ; +0x136, 0x14016b3a6 call sub_14003EB60 ; +0x13d, 0x14016b3ad lea rcx, [rbx+4C8h] ; +0x142, 0x14016b3b2 call sub_14003EB60 ; +0x149, 0x14016b3b9 mov rcx, cs:qword_14090C070 ; +0x14e, 0x14016b3be test rcx, rcx ; +0x155, 0x14016b3c5 jnz short loc_14016B3FC ; +0x158, 0x14016b3c8 mov ecx, 3D0h; Size ; +0x15a, 0x14016b3ca call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x15f, 0x14016b3cf mov [rsp+88h+var_60], rax ; +0x164, 0x14016b3d4 mov rcx, rax ; +0x169, 0x14016b3d9 call MusicDownloadManager__MusicDownloadManager ; +0x16c, 0x14016b3dc nop ; +0x171, 0x14016b3e1 mov cs:qword_14090C070, rax ; +0x172, 0x14016b3e2 mov rcx, [rax] ; +0x179, 0x14016b3e9 mov rdx, [rcx+48h] ; +0x17c, 0x14016b3ec mov rcx, rax ; +0x180, 0x14016b3f0 call rdx ; +0x183, 0x14016b3f3 mov rcx, cs:qword_14090C070 ; +0x185, 0x14016b3f5 mov r8, [rdi+150h] ; +0x18c, 0x14016b3fc mov r8d, [r8+140h] ; +0x193, 0x14016b403 lea rdx, [rsp+88h+FileName] ; +0x19a, 0x14016b40a call MusicDownloadManager__pathForSong ; +0x19f, 0x14016b40f lea rcx, [rsp+88h+FileName] ; +0x1a4, 0x14016b414 cmp [rsp+88h+var_18], 0Fh ; +0x1a9, 0x14016b419 cmova rcx, [rsp+88h+FileName]; FileName ; +0x1af, 0x14016b41f call cs:remove ; +0x1b5, 0x14016b425 lea rcx, [rsp+88h+FileName] ; +0x1bb, 0x14016b42b call sub_14003D310 ; +0x1c0, 0x14016b430 mov rcx, rdi ; +0x1c5, 0x14016b435 call CustomSongWidget__updateSongInfo ; +0x1c8, 0x14016b438 mov [rsp+88h+var_68], 64FFh ; +0x1cd, 0x14016b43d movzx eax, [rsp+88h+var_68] ; +0x1d4, 0x14016b444 mov [rsp+88h+var_68], ax ; +0x1d9, 0x14016b449 mov [rsp+88h+var_66], 0 ; +0x1de, 0x14016b44e mov rcx, [rdi+178h] ; +0x1e3, 0x14016b453 add rcx, 170h ; +0x1ea, 0x14016b45a mov rax, [rcx] ; +0x1f1, 0x14016b461 lea rdx, [rsp+88h+var_68] ; +0x1f4, 0x14016b464 call qword ptr [rax] ; +0x1f9, 0x14016b469 mov rcx, [rdi+178h] ; +0x1fb, 0x14016b46b add rcx, 168h ; +0x202, 0x14016b472 mov rax, [rcx] ; +0x209, 0x14016b479 lea rdx, aSongDeleted; "Song Deleted" ; +0x20c, 0x14016b47c call qword ptr [rax] ; +0x213, 0x14016b483 xorps xmm3, xmm3 ; +0x215, 0x14016b485 mov rcx, [rdi+178h] ; +0x218, 0x14016b488 cmp byte ptr [rdi+1F5h], 0 ; +0x21f, 0x14016b48f jz short loc_14016B4AA ; +0x226, 0x14016b496 movss xmm2, cs:dword_140834EC0 ; +0x228, 0x14016b498 movss xmm1, cs:dword_14083583C ; +0x230, 0x14016b4a0 jmp short loc_14016B4BA ; +0x238, 0x14016b4a8 movss xmm2, cs:dword_140834EDC ; +0x23a, 0x14016b4aa movss xmm1, cs:dword_140835938 ; +0x242, 0x14016b4b2 call cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x24a, 0x14016b4ba mov dl, 1 ; +0x250, 0x14016b4c0 mov rcx, rdi ; +0x252, 0x14016b4c2 call CustomSongWidget__showError ; +0x255, 0x14016b4c5 mov rcx, [rsp+88h+var_10] ; +0x25a, 0x14016b4ca xor rcx, rsp; StackCookie ; +0x25f, 0x14016b4cf call __security_check_cookie ; +0x262, 0x14016b4d2 mov rbx, [rsp+88h+arg_8] ; +0x267, 0x14016b4d7 add rsp, 80h ; +0x26f, 0x14016b4df pop rdi ; +0x276, 0x14016b4e6 retn ; +0x277, 0x14016b4e7