{"type": "func", "start": 5370086864, "end": 5370087362, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x1401505d0 to 0x1401507c2 (498 bytes)\n// \n// 2 xrefs:\n// > CustomSongCell::loadFromObject @ 0x14015046e\n// > <???> @ 0x14091775c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:17 +0000\n// \n\n// Hidden C++ exception states: #wind=6\nchar __fastcall CustomSongCell::onDelete(__int64 *a1)\n{\n  __int64 v2; // rcx\n  _QWORD *v3; // rbx\n  _QWORD *v4; // rcx\n  _QWORD *v5; // rbx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  const char *v8; // rcx\n  void *v10; // [rsp+20h] [rbp-68h]\n  void *v11; // [rsp+20h] [rbp-68h]\n  void *v12; // [rsp+20h] [rbp-68h]\n  void *v13; // [rsp+20h] [rbp-68h]\n  _BYTE v14[32]; // [rsp+30h] [rbp-58h] BYREF\n  char *FileName[4]; // [rsp+50h] [rbp-38h] BYREF\n\n  if ( a1[71] )\n  {\n    v2 = qword_14090C070;\n    if ( !qword_14090C070 )\n    {\n      v10 = operator new(0x3D0u);\n      qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n      v2 = qword_14090C070;\n    }\n    v3 = (_QWORD *)MusicDownloadManager::pathForSong(v2, v14, *(unsigned int *)(a1[71] + 320));\n    v4 = (_QWORD *)qword_14090BF60;\n    if ( !qword_14090BF60 )\n    {\n      v11 = operator new(0x8A8u);\n      qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n      v4 = (_QWORD *)qword_14090BF60;\n    }\n    if ( FMODAudioEngine::isMusicPlaying(v4, v3) )\n    {\n      v5 = (_QWORD *)qword_14090BF60;\n      if ( !qword_14090BF60 )\n      {\n        v12 = operator new(0x8A8u);\n        qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n        v5 = (_QWORD *)qword_14090BF60;\n      }\n      v6 = v5[69];\n      if ( v6 )\n        FMOD::ChannelControl::stop(v6);\n      sub_14003EB60(v5 + 137);\n      sub_14003EB60(v5 + 145);\n      sub_14003EB60(v5 + 153);\n    }\n    v7 = qword_14090C070;\n    if ( !qword_14090C070 )\n    {\n      v13 = operator new(0x3D0u);\n      qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n      v7 = qword_14090C070;\n    }\n    MusicDownloadManager::pathForSong(v7, FileName, *(unsigned int *)(a1[71] + 320));\n    v8 = (const char *)FileName;\n    if ( FileName[3] > (char *)0xF )\n      v8 = FileName[0];\n    remove(v8);\n    sub_14003D310((__int64)FileName);\n  }\n  return TableView::deleteTableViewCell(a1[52], (struct cocos2d::CCObject *)a1);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x1401505d0 to 0x1401507c2 (498 bytes)\n; \n; 2 xrefs:\n; > CustomSongCell::loadFromObject @ 0x14015046e\n; > <???> @ 0x14091775c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:17 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401505d0\npush    rdi                                                            ; +0x5, 0x1401505d5\nsub     rsp, 80h                                                       ; +0x6, 0x1401505d6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1401505dd\nxor     rax, rsp                                                       ; +0x14, 0x1401505e4\nmov     [rsp+88h+var_18], rax                                          ; +0x17, 0x1401505e7\nmov     rdi, rcx                                                       ; +0x1c, 0x1401505ec\ncmp     qword ptr [rcx+238h], 0                                        ; +0x1f, 0x1401505ef\njz      loc_140150795                                                  ; +0x27, 0x1401505f7\nlea     rax, [rsp+88h+var_58]                                          ; +0x2d, 0x1401505fd\nmov     [rsp+88h+var_60], rax                                          ; +0x32, 0x140150602\nmov     rcx, cs:qword_14090C070                                        ; +0x37, 0x140150607\ntest    rcx, rcx                                                       ; +0x3e, 0x14015060e\njnz     short loc_140150645                                            ; +0x41, 0x140150611\nmov     ecx, 3D0h; Size                                                ; +0x43, 0x140150613\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x140150618\nmov     [rsp+88h+var_68], rax                                          ; +0x4d, 0x14015061d\nmov     rcx, rax                                                       ; +0x52, 0x140150622\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x55, 0x140150625\nnop                                                                    ; +0x5a, 0x14015062a\nmov     cs:qword_14090C070, rax                                        ; +0x5b, 0x14015062b\nmov     rcx, [rax]                                                     ; +0x62, 0x140150632\nmov     rdx, [rcx+48h]                                                 ; +0x65, 0x140150635\nmov     rcx, rax                                                       ; +0x69, 0x140150639\ncall    rdx                                                            ; +0x6c, 0x14015063c\nmov     rcx, cs:qword_14090C070                                        ; +0x6e, 0x14015063e\nmov     r8, [rdi+238h]                                                 ; +0x75, 0x140150645\nmov     r8d, [r8+140h]                                                 ; +0x7c, 0x14015064c\nlea     rdx, [rsp+88h+var_58]                                          ; +0x83, 0x140150653\ncall    MusicDownloadManager__pathForSong                              ; +0x88, 0x140150658\nmov     rbx, rax                                                       ; +0x8d, 0x14015065d\nmov     rcx, cs:qword_14090BF60                                        ; +0x90, 0x140150660\ntest    rcx, rcx                                                       ; +0x97, 0x140150667\njnz     short loc_14015069E                                            ; +0x9a, 0x14015066a\nmov     ecx, 8A8h; Size                                                ; +0x9c, 0x14015066c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa1, 0x140150671\nmov     [rsp+88h+var_68], rax                                          ; +0xa6, 0x140150676\nmov     rcx, rax                                                       ; +0xab, 0x14015067b\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xae, 0x14015067e\nnop                                                                    ; +0xb3, 0x140150683\nmov     cs:qword_14090BF60, rax                                        ; +0xb4, 0x140150684\nmov     rcx, [rax]                                                     ; +0xbb, 0x14015068b\nmov     rdx, [rcx+48h]                                                 ; +0xbe, 0x14015068e\nmov     rcx, rax                                                       ; +0xc2, 0x140150692\ncall    rdx                                                            ; +0xc5, 0x140150695\nmov     rcx, cs:qword_14090BF60                                        ; +0xc7, 0x140150697\nmov     rdx, rbx                                                       ; +0xce, 0x14015069e\ncall    FMODAudioEngine__isMusicPlaying                                ; +0xd1, 0x1401506a1\ntest    al, al                                                         ; +0xd6, 0x1401506a6\njz      short loc_14015071E                                            ; +0xd8, 0x1401506a8\nmov     rbx, cs:qword_14090BF60                                        ; +0xda, 0x1401506aa\ntest    rbx, rbx                                                       ; +0xe1, 0x1401506b1\njnz     short loc_1401506E8                                            ; +0xe4, 0x1401506b4\nmov     ecx, 8A8h; Size                                                ; +0xe6, 0x1401506b6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xeb, 0x1401506bb\nmov     [rsp+88h+var_68], rax                                          ; +0xf0, 0x1401506c0\nmov     rcx, rax                                                       ; +0xf5, 0x1401506c5\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xf8, 0x1401506c8\nnop                                                                    ; +0xfd, 0x1401506cd\nmov     cs:qword_14090BF60, rax                                        ; +0xfe, 0x1401506ce\nmov     rcx, [rax]                                                     ; +0x105, 0x1401506d5\nmov     rdx, [rcx+48h]                                                 ; +0x108, 0x1401506d8\nmov     rcx, rax                                                       ; +0x10c, 0x1401506dc\ncall    rdx                                                            ; +0x10f, 0x1401506df\nmov     rbx, cs:qword_14090BF60                                        ; +0x111, 0x1401506e1\nmov     rcx, [rbx+228h]                                                ; +0x118, 0x1401506e8\ntest    rcx, rcx                                                       ; +0x11f, 0x1401506ef\njz      short loc_1401506FA                                            ; +0x122, 0x1401506f2\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x124, 0x1401506f4\nlea     rcx, [rbx+448h]                                                ; +0x12a, 0x1401506fa\ncall    sub_14003EB60                                                  ; +0x131, 0x140150701\nlea     rcx, [rbx+488h]                                                ; +0x136, 0x140150706\ncall    sub_14003EB60                                                  ; +0x13d, 0x14015070d\nlea     rcx, [rbx+4C8h]                                                ; +0x142, 0x140150712\ncall    sub_14003EB60                                                  ; +0x149, 0x140150719\nmov     rcx, cs:qword_14090C070                                        ; +0x14e, 0x14015071e\ntest    rcx, rcx                                                       ; +0x155, 0x140150725\njnz     short loc_14015075C                                            ; +0x158, 0x140150728\nmov     ecx, 3D0h; Size                                                ; +0x15a, 0x14015072a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15f, 0x14015072f\nmov     [rsp+88h+var_68], rax                                          ; +0x164, 0x140150734\nmov     rcx, rax                                                       ; +0x169, 0x140150739\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x16c, 0x14015073c\nnop                                                                    ; +0x171, 0x140150741\nmov     cs:qword_14090C070, rax                                        ; +0x172, 0x140150742\nmov     rcx, [rax]                                                     ; +0x179, 0x140150749\nmov     rdx, [rcx+48h]                                                 ; +0x17c, 0x14015074c\nmov     rcx, rax                                                       ; +0x180, 0x140150750\ncall    rdx                                                            ; +0x183, 0x140150753\nmov     rcx, cs:qword_14090C070                                        ; +0x185, 0x140150755\nmov     r8, [rdi+238h]                                                 ; +0x18c, 0x14015075c\nmov     r8d, [r8+140h]                                                 ; +0x193, 0x140150763\nlea     rdx, [rsp+88h+FileName]                                        ; +0x19a, 0x14015076a\ncall    MusicDownloadManager__pathForSong                              ; +0x19f, 0x14015076f\nlea     rcx, [rsp+88h+FileName]                                        ; +0x1a4, 0x140150774\ncmp     [rsp+88h+var_20], 0Fh                                          ; +0x1a9, 0x140150779\ncmova   rcx, [rsp+88h+FileName]; FileName                              ; +0x1af, 0x14015077f\ncall    cs:remove                                                      ; +0x1b5, 0x140150785\nlea     rcx, [rsp+88h+FileName]                                        ; +0x1bb, 0x14015078b\ncall    sub_14003D310                                                  ; +0x1c0, 0x140150790\nmov     rdx, rdi                                                       ; +0x1c5, 0x140150795\nmov     rcx, [rdi+1A0h]                                                ; +0x1c8, 0x140150798\ncall    TableView__deleteTableViewCell                                 ; +0x1cf, 0x14015079f\nmov     rcx, [rsp+88h+var_18]                                          ; +0x1d4, 0x1401507a4\nxor     rcx, rsp; StackCookie                                          ; +0x1d9, 0x1401507a9\ncall    __security_check_cookie                                        ; +0x1dc, 0x1401507ac\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x1e1, 0x1401507b1\nadd     rsp, 80h                                                       ; +0x1e9, 0x1401507b9\npop     rdi                                                            ; +0x1f0, 0x1401507c0\nretn                                                                   ; +0x1f1, 0x1401507c1", "xrefs": ["CustomSongCell::loadFromObject @ 0x14015046e", "<???> @ 0x14091775c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}