; ; GJSongBrowser::FLAlert_Clicked from 0x1402b7b30 to 0x1402b7c29 (249 bytes) ; ; 4 xrefs: ; > @ 0x14057fa30 ; > @ 0x14068bdac ; > @ 0x14068bdbc ; > @ 0x1406d257c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x1402b7b30 push rbp ; +0x2, 0x1402b7b32 sub rsp, 58h ; +0x3, 0x1402b7b33 mov rax, cs:__security_cookie ; +0x7, 0x1402b7b37 xor rax, rsp ; +0xe, 0x1402b7b3e mov [rsp+68h+var_28], rax ; +0x11, 0x1402b7b41 mov rax, [rdx] ; +0x16, 0x1402b7b46 mov rbp, rcx ; +0x19, 0x1402b7b49 mov rcx, rdx ; +0x1c, 0x1402b7b4c movzx ebx, r8b ; +0x1f, 0x1402b7b4f call qword ptr [rax+38h] ; +0x23, 0x1402b7b53 cmp eax, 1 ; +0x26, 0x1402b7b56 jnz loc_1402B7C15 ; +0x29, 0x1402b7b59 test bl, bl ; +0x2f, 0x1402b7b5f jz loc_1402B7C15 ; +0x31, 0x1402b7b61 mov [rsp+68h+arg_10], rsi ; +0x37, 0x1402b7b67 mov [rsp+68h+var_18], rdi ; +0x3f, 0x1402b7b6f call MusicDownloadManager__sharedState ; +0x44, 0x1402b7b74 mov rcx, rax ; +0x49, 0x1402b7b79 call MusicDownloadManager__getDownloadedSongs ; +0x4c, 0x1402b7b7c mov rcx, rax ; +0x51, 0x1402b7b81 mov rsi, rax ; +0x54, 0x1402b7b84 xor edi, edi ; +0x57, 0x1402b7b87 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x1402b7b89 test eax, eax ; +0x5f, 0x1402b7b8f jz short loc_1402B7BE9 ; +0x61, 0x1402b7b91 mov edx, edi ; +0x63, 0x1402b7b93 mov rcx, rsi ; +0x65, 0x1402b7b95 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x1402b7b98 mov ebx, [rax+140h] ; +0x6e, 0x1402b7b9e call MusicDownloadManager__sharedState ; +0x74, 0x1402b7ba4 mov r8d, ebx ; +0x79, 0x1402b7ba9 lea rdx, [rsp+68h+FileName] ; +0x7c, 0x1402b7bac mov rcx, rax ; +0x81, 0x1402b7bb1 call MusicDownloadManager__pathForSong ; +0x84, 0x1402b7bb4 cmp [rsp+68h+var_30], 0Fh ; +0x89, 0x1402b7bb9 lea rcx, [rsp+68h+FileName] ; +0x8f, 0x1402b7bbf cmova rcx, [rsp+68h+FileName]; FileName ; +0x94, 0x1402b7bc4 call cs:remove ; +0x9a, 0x1402b7bca lea rcx, [rsp+68h+FileName] ; +0xa0, 0x1402b7bd0 call sub_14003A830 ; +0xa5, 0x1402b7bd5 mov rcx, rsi ; +0xaa, 0x1402b7bda inc edi ; +0xad, 0x1402b7bdd call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xaf, 0x1402b7bdf cmp edi, eax ; +0xb5, 0x1402b7be5 jb short loc_1402B7B93 ; +0xb7, 0x1402b7be7 call MusicDownloadManager__sharedState ; +0xb9, 0x1402b7be9 mov rcx, rax ; +0xbe, 0x1402b7bee call MusicDownloadManager__clearUnusedSongs ; +0xc1, 0x1402b7bf1 lea rcx, [rbp-260h] ; +0xc6, 0x1402b7bf6 xor edx, edx ; +0xcd, 0x1402b7bfd mov rax, [rcx] ; +0xcf, 0x1402b7bff call qword ptr [rax+420h] ; +0xd2, 0x1402b7c02 mov rdi, [rsp+68h+var_18] ; +0xd8, 0x1402b7c08 mov rsi, [rsp+68h+arg_10] ; +0xdd, 0x1402b7c0d mov rcx, [rsp+68h+var_28] ; +0xe5, 0x1402b7c15 xor rcx, rsp; StackCookie ; +0xea, 0x1402b7c1a call __security_check_cookie ; +0xed, 0x1402b7c1d add rsp, 58h ; +0xf2, 0x1402b7c22 pop rbp ; +0xf6, 0x1402b7c26 pop rbx ; +0xf7, 0x1402b7c27 retn ; +0xf8, 0x1402b7c28