{"type": "func", "start": 5372113040, "end": 5372113211, "name": "MusicDownloadManager::removeDLFromActive", "pseudocode": "// \n// MusicDownloadManager::removeDLFromActive from 0x14033f090 to 0x14033f13b (171 bytes)\n// \n// 6 xrefs:\n// > CustomSFXWidget::onCancelDownload @ 0x1400c19f8\n// > CustomSongWidget::onCancelDownload @ 0x1400caaf8\n// > MusicDownloadManager::onGetSongInfoCompleted @ 0x14033d915\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ed7a\n// > MusicDownloadManager::onDownloadSFXCompleted @ 0x1403424f4\n// > <???> @ 0x1406d56b4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid MusicDownloadManager::removeDLFromActive(MusicDownloadManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  void *v4; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v6; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v6 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  cocos2d::CCDictionary::removeObjectForKey(a1->m_activeDownloads, Block);\n  if ( *((_QWORD *)&v6 + 1) > 0xFu )\n  {\n    v4 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v6 + 1) + 1LL) >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v4);\n  }\n}", "assembly": "; \n; MusicDownloadManager::removeDLFromActive from 0x14033f090 to 0x14033f13b (171 bytes)\n; \n; 6 xrefs:\n; > CustomSFXWidget::onCancelDownload @ 0x1400c19f8\n; > CustomSongWidget::onCancelDownload @ 0x1400caaf8\n; > MusicDownloadManager::onGetSongInfoCompleted @ 0x14033d915\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ed7a\n; > MusicDownloadManager::onDownloadSFXCompleted @ 0x1403424f4\n; > <???> @ 0x1406d56b4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x14033f090\nsub     rsp, 50h                                                       ; +0x2, 0x14033f092\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14033f096\nxor     rax, rsp                                                       ; +0xd, 0x14033f09d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x14033f0a0\nmov     rbx, rcx                                                       ; +0x15, 0x14033f0a5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x14033f0a8\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x14033f0ab\nxorps   xmm1, xmm1                                                     ; +0x20, 0x14033f0b0\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x14033f0b3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x14033f0b9\ninc     r8                                                             ; +0x30, 0x14033f0c0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x14033f0c3\njnz     short loc_14033F0C0                                            ; +0x38, 0x14033f0c8\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x14033f0ca\ncall    sub_14003A930                                                  ; +0x3f, 0x14033f0cf\nnop                                                                    ; +0x44, 0x14033f0d4\nlea     rdx, [rsp+58h+Block]                                           ; +0x45, 0x14033f0d5\nmov     rcx, [rbx+148h]                                                ; +0x4a, 0x14033f0da\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x51, 0x14033f0e1\nnop                                                                    ; +0x57, 0x14033f0e7\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x58, 0x14033f0e8\ncmp     rdx, 0Fh                                                       ; +0x5d, 0x14033f0ed\njbe     short loc_14033F128                                            ; +0x61, 0x14033f0f1\ninc     rdx                                                            ; +0x63, 0x14033f0f3\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x66, 0x14033f0f6\nmov     rax, rcx                                                       ; +0x6b, 0x14033f0fb\ncmp     rdx, 1000h                                                     ; +0x6e, 0x14033f0fe\njb      short loc_14033F123                                            ; +0x75, 0x14033f105\nadd     rdx, 27h ; '''                                                 ; +0x77, 0x14033f107\nmov     rcx, [rcx-8]                                                   ; +0x7b, 0x14033f10b\nsub     rax, rcx                                                       ; +0x7f, 0x14033f10f\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x82, 0x14033f112\ncmp     rax, 1Fh                                                       ; +0x86, 0x14033f116\njbe     short loc_14033F123                                            ; +0x8a, 0x14033f11a\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8c, 0x14033f11c\ndb 0CCh                                                                ; +0x92, 0x14033f122\ncall    j_j_free                                                       ; +0x93, 0x14033f123\nmov     rcx, [rsp+58h+var_18]                                          ; +0x98, 0x14033f128\nxor     rcx, rsp; StackCookie                                          ; +0x9d, 0x14033f12d\ncall    __security_check_cookie                                        ; +0xa0, 0x14033f130\nadd     rsp, 50h                                                       ; +0xa5, 0x14033f135\npop     rbx                                                            ; +0xa9, 0x14033f139\nretn                                                                   ; +0xaa, 0x14033f13a", "xrefs": ["CustomSFXWidget::onCancelDownload @ 0x1400c19f8", "CustomSongWidget::onCancelDownload @ 0x1400caaf8", "MusicDownloadManager::onGetSongInfoCompleted @ 0x14033d915", "MusicDownloadManager::onDownloadSongCompleted @ 0x14033ed7a", "MusicDownloadManager::onDownloadSFXCompleted @ 0x1403424f4", "<???> @ 0x1406d56b4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}