{"type": "func", "start": 5373444832, "end": 5373445049, "name": "MusicDownloadManager::addDLToActive", "pseudocode": "// \n// MusicDownloadManager::addDLToActive from 0x1404842e0 to 0x1404843b9 (217 bytes)\n// \n// 6 xrefs:\n// > MusicDownloadManager::getSongInfo @ 0x140482a31\n// > MusicDownloadManager::downloadSong @ 0x140483f5d\n// > MusicDownloadManager::downloadCustomSong @ 0x14048c61e\n// > MusicDownloadManager::downloadSFX @ 0x14048f20f\n// > MusicDownloadManager::downloadNewsImage @ 0x140493847\n// > <???> @ 0x140928a9c\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:32:46 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MusicDownloadManager::addDLToActive(__int64 a1, _BYTE *a2, __int64 a3)\n{\n  size_t v5; // r8\n  void *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( a2[v5] );\n  sub_14003D230(Block, a2, v5);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 328), a3, Block);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n}", "assembly": "; \n; MusicDownloadManager::addDLToActive from 0x1404842e0 to 0x1404843b9 (217 bytes)\n; \n; 6 xrefs:\n; > MusicDownloadManager::getSongInfo @ 0x140482a31\n; > MusicDownloadManager::downloadSong @ 0x140483f5d\n; > MusicDownloadManager::downloadCustomSong @ 0x14048c61e\n; > MusicDownloadManager::downloadSFX @ 0x14048f20f\n; > MusicDownloadManager::downloadNewsImage @ 0x140493847\n; > <???> @ 0x140928a9c\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:32:46 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1404842e0\npush    rdi                                                            ; +0x5, 0x1404842e5\nsub     rsp, 60h                                                       ; +0x6, 0x1404842e6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1404842ea\nxor     rax, rsp                                                       ; +0x11, 0x1404842f1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1404842f4\nmov     rdi, r8                                                        ; +0x19, 0x1404842f9\nmov     rbx, rcx                                                       ; +0x1c, 0x1404842fc\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x1404842ff\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x22, 0x140484302\nxorps   xmm1, xmm1                                                     ; +0x27, 0x140484307\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x2a, 0x14048430a\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x30, 0x140484310\nnop     word ptr [rax+rax+00000000h]                                   ; +0x37, 0x140484317\ninc     r8                                                             ; +0x40, 0x140484320\ncmp     byte ptr [rdx+r8], 0                                           ; +0x43, 0x140484323\njnz     short loc_140484320                                            ; +0x48, 0x140484328\nlea     rcx, [rsp+68h+Block]                                           ; +0x4a, 0x14048432a\ncall    sub_14003D230                                                  ; +0x4f, 0x14048432f\nnop                                                                    ; +0x54, 0x140484334\nlea     r8, [rsp+68h+Block]                                            ; +0x55, 0x140484335\nmov     rdx, rdi                                                       ; +0x5a, 0x14048433a\nmov     rcx, [rbx+148h]                                                ; +0x5d, 0x14048433d\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x64, 0x140484344\nnop                                                                    ; +0x6a, 0x14048434a\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x6b, 0x14048434b\ncmp     rdx, 0Fh                                                       ; +0x70, 0x140484350\njbe     short loc_14048439E                                            ; +0x74, 0x140484354\ninc     rdx                                                            ; +0x76, 0x140484356\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x79, 0x140484359\nmov     rax, rcx                                                       ; +0x7e, 0x14048435e\ncmp     rdx, 1000h                                                     ; +0x81, 0x140484361\njb      short loc_140484399                                            ; +0x88, 0x140484368\nadd     rdx, 27h ; '''                                                 ; +0x8a, 0x14048436a\nmov     rcx, [rcx-8]                                                   ; +0x8e, 0x14048436e\nsub     rax, rcx                                                       ; +0x92, 0x140484372\nsub     rax, 8                                                         ; +0x95, 0x140484375\ncmp     rax, 1Fh                                                       ; +0x99, 0x140484379\njbe     short loc_140484399                                            ; +0x9d, 0x14048437d\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x9f, 0x14048437f\nxor     r9d, r9d; LineNo                                               ; +0xa8, 0x140484388\nxor     r8d, r8d; FileName                                             ; +0xab, 0x14048438b\nxor     edx, edx; FunctionName                                         ; +0xae, 0x14048438e\nxor     ecx, ecx; Expression                                           ; +0xb0, 0x140484390\ncall    cs:_invoke_watson                                              ; +0xb2, 0x140484392\ndb 0CCh                                                                ; +0xb8, 0x140484398\ncall    j_j_free                                                       ; +0xb9, 0x140484399\nmov     rcx, [rsp+68h+var_18]                                          ; +0xbe, 0x14048439e\nxor     rcx, rsp; StackCookie                                          ; +0xc3, 0x1404843a3\ncall    __security_check_cookie                                        ; +0xc6, 0x1404843a6\nmov     rbx, [rsp+68h+arg_18]                                          ; +0xcb, 0x1404843ab\nadd     rsp, 60h                                                       ; +0xd3, 0x1404843b3\npop     rdi                                                            ; +0xd7, 0x1404843b7\nretn                                                                   ; +0xd8, 0x1404843b8", "xrefs": ["MusicDownloadManager::getSongInfo @ 0x140482a31", "MusicDownloadManager::downloadSong @ 0x140483f5d", "MusicDownloadManager::downloadCustomSong @ 0x14048c61e", "MusicDownloadManager::downloadSFX @ 0x14048f20f", "MusicDownloadManager::downloadNewsImage @ 0x140493847", "<???> @ 0x140928a9c"], "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"}