{"type": "func", "start": 5373475008, "end": 5373475436, "name": "MusicDownloadManager::onGetCustomContentURLCompleted", "pseudocode": "// \n// MusicDownloadManager::onGetCustomContentURLCompleted from 0x14048b8c0 to 0x14048ba6c (428 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::handleIt @ 0x1404822cf\n// > <???> @ 0x140928d6c\n// > <???> @ 0x140928d78\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:48 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall MusicDownloadManager::onGetCustomContentURLCompleted(__int64 a1, const void **a2, __int64 a3)\n{\n  void *v6; // rcx\n  _BYTE *v7; // rcx\n  size_t v8; // r8\n  _BYTE *v9; // rdx\n  size_t v10; // r8\n  void *Block[2]; // [rsp+40h] [rbp-48h] BYREF\n  __m128i si128; // [rsp+50h] [rbp-38h]\n\n  Block[1] = (void *)108;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1408365A0);\n  Block[0] = (void *)0x72755F635F746567LL;\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 328), Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 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  *(_OWORD *)Block = 0;\n  si128.m128i_i64[0] = 2;\n  si128.m128i_i64[1] = 15;\n  strcpy((char *)Block, \"-1\");\n  v7 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v7 = *a2;\n  v8 = (size_t)a2[2];\n  if ( v8 > 2 )\n    v8 = 2;\n  if ( !memcmp(v7, Block, v8) && a2[2] == (const void *)2 )\n  {\n    MusicDownloadManager::musicActionFailed(a1, 2);\n  }\n  else\n  {\n    v9 = a2;\n    if ( (unsigned __int64)a2[3] > 0xF )\n      v9 = *a2;\n    v10 = -1;\n    do\n      ++v10;\n    while ( v9[v10] );\n    sub_1400405A0((void **)(a1 + 368), v9, v10);\n    MusicDownloadManager::musicActionFinished(a1, 2);\n    if ( *(_BYTE *)(a1 + 970) )\n    {\n      *(_BYTE *)(a1 + 970) = 0;\n      MusicDownloadManager::tryUpdateNewsFeed(a1);\n    }\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310(a3);\n}", "assembly": "; \n; MusicDownloadManager::onGetCustomContentURLCompleted from 0x14048b8c0 to 0x14048ba6c (428 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::handleIt @ 0x1404822cf\n; > <???> @ 0x140928d6c\n; > <???> @ 0x140928d78\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:48 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14048b8c0\npush    rdi                                                            ; +0x5, 0x14048b8c5\npush    r14                                                            ; +0x6, 0x14048b8c6\npush    r15                                                            ; +0x8, 0x14048b8c8\nsub     rsp, 70h                                                       ; +0xa, 0x14048b8ca\nmov     rax, cs:__security_cookie                                      ; +0xe, 0x14048b8ce\nxor     rax, rsp                                                       ; +0x15, 0x14048b8d5\nmov     [rsp+88h+var_28], rax                                          ; +0x18, 0x14048b8d8\nmov     r14, r8                                                        ; +0x1d, 0x14048b8dd\nmov     rbx, rdx                                                       ; +0x20, 0x14048b8e0\nmov     rdi, rcx                                                       ; +0x23, 0x14048b8e3\nmov     [rsp+88h+var_58], rdx                                          ; +0x26, 0x14048b8e6\nmov     [rsp+88h+var_50], r8                                           ; +0x2b, 0x14048b8eb\nxorps   xmm0, xmm0                                                     ; +0x30, 0x14048b8f0\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x33, 0x14048b8f3\nmovdqa  xmm1, cs:xmmword_1408365A0                                     ; +0x38, 0x14048b8f8\nmovdqu  [rsp+88h+var_38], xmm1                                         ; +0x40, 0x14048b900\nmovsd   xmm0, cs:qword_1407B81D0                                       ; +0x46, 0x14048b906\nmovsd   [rsp+88h+Block], xmm0                                          ; +0x4e, 0x14048b90e\nmovzx   eax, cs:byte_1407B81D8                                         ; +0x54, 0x14048b914\nmov     byte ptr [rsp+88h+Block+8], al                                 ; +0x5b, 0x14048b91b\nmov     byte ptr [rsp+88h+Block+9], 0                                  ; +0x5f, 0x14048b91f\nlea     rdx, [rsp+88h+Block]                                           ; +0x64, 0x14048b924\nmov     rcx, [rcx+148h]                                                ; +0x69, 0x14048b929\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 &) ; +0x70, 0x14048b930\nnop                                                                    ; +0x76, 0x14048b936\nmov     rdx, qword ptr [rsp+88h+var_38+8]                              ; +0x77, 0x14048b937\ncmp     rdx, 0Fh                                                       ; +0x7c, 0x14048b93c\njbe     short loc_14048B98A                                            ; +0x80, 0x14048b940\ninc     rdx                                                            ; +0x82, 0x14048b942\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x85, 0x14048b945\nmov     rax, rcx                                                       ; +0x8a, 0x14048b94a\ncmp     rdx, 1000h                                                     ; +0x8d, 0x14048b94d\njb      short loc_14048B985                                            ; +0x94, 0x14048b954\nadd     rdx, 27h ; '''                                                 ; +0x96, 0x14048b956\nmov     rcx, [rcx-8]                                                   ; +0x9a, 0x14048b95a\nsub     rax, rcx                                                       ; +0x9e, 0x14048b95e\nsub     rax, 8                                                         ; +0xa1, 0x14048b961\ncmp     rax, 1Fh                                                       ; +0xa5, 0x14048b965\njbe     short loc_14048B985                                            ; +0xa9, 0x14048b969\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xab, 0x14048b96b\nxor     r9d, r9d; LineNo                                               ; +0xb4, 0x14048b974\nxor     r8d, r8d; FileName                                             ; +0xb7, 0x14048b977\nxor     edx, edx; FunctionName                                         ; +0xba, 0x14048b97a\nxor     ecx, ecx; Expression                                           ; +0xbc, 0x14048b97c\ncall    cs:_invoke_watson                                              ; +0xbe, 0x14048b97e\ndb 0CCh                                                                ; +0xc4, 0x14048b984\ncall    j_j_free                                                       ; +0xc5, 0x14048b985\nxorps   xmm0, xmm0                                                     ; +0xca, 0x14048b98a\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xcd, 0x14048b98d\nmov     r15d, 2                                                        ; +0xd2, 0x14048b992\nmov     qword ptr [rsp+88h+var_38], r15                                ; +0xd8, 0x14048b998\nmov     qword ptr [rsp+88h+var_38+8], 0Fh                              ; +0xdd, 0x14048b99d\nmov     eax, 312Dh                                                     ; +0xe6, 0x14048b9a6\nmov     word ptr [rsp+88h+Block], ax                                   ; +0xeb, 0x14048b9ab\nmov     byte ptr [rsp+88h+Block+2], 0                                  ; +0xf0, 0x14048b9b0\nmov     rcx, rbx                                                       ; +0xf5, 0x14048b9b5\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xf8, 0x14048b9b8\njbe     short loc_14048B9C2                                            ; +0xfd, 0x14048b9bd\nmov     rcx, [rbx]; Buf1                                               ; +0xff, 0x14048b9bf\nmov     r8, [rbx+10h]                                                  ; +0x102, 0x14048b9c2\ncmp     r8, r15                                                        ; +0x106, 0x14048b9c6\ncmova   r8, r15; Size                                                  ; +0x109, 0x14048b9c9\nlea     rdx, [rsp+88h+Block]; Buf2                                     ; +0x10d, 0x14048b9cd\ncall    memcmp                                                         ; +0x112, 0x14048b9d2\ntest    eax, eax                                                       ; +0x117, 0x14048b9d7\njnz     short loc_14048B9EE                                            ; +0x119, 0x14048b9d9\ncmp     [rbx+10h], r15                                                 ; +0x11b, 0x14048b9db\njnz     short loc_14048B9EE                                            ; +0x11f, 0x14048b9df\nmov     edx, r15d                                                      ; +0x121, 0x14048b9e1\nmov     rcx, rdi                                                       ; +0x124, 0x14048b9e4\ncall    MusicDownloadManager__musicActionFailed                        ; +0x127, 0x14048b9e7\njmp     short loc_14048BA3C                                            ; +0x12c, 0x14048b9ec\nmov     rdx, rbx                                                       ; +0x12e, 0x14048b9ee\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x131, 0x14048b9f1\njbe     short loc_14048B9FB                                            ; +0x136, 0x14048b9f6\nmov     rdx, [rbx]; Src                                                ; +0x138, 0x14048b9f8\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x13b, 0x14048b9fb\ninc     r8; Size                                                       ; +0x142, 0x14048ba02\ncmp     byte ptr [rdx+r8], 0                                           ; +0x145, 0x14048ba05\njnz     short loc_14048BA02                                            ; +0x14a, 0x14048ba0a\nlea     rcx, [rdi+170h]; void *                                        ; +0x14c, 0x14048ba0c\ncall    sub_1400405A0                                                  ; +0x153, 0x14048ba13\nmov     edx, r15d                                                      ; +0x158, 0x14048ba18\nmov     rcx, rdi                                                       ; +0x15b, 0x14048ba1b\ncall    MusicDownloadManager__musicActionFinished                      ; +0x15e, 0x14048ba1e\ncmp     byte ptr [rdi+3CAh], 0                                         ; +0x163, 0x14048ba23\njz      short loc_14048BA3C                                            ; +0x16a, 0x14048ba2a\nmov     byte ptr [rdi+3CAh], 0                                         ; +0x16c, 0x14048ba2c\nmov     rcx, rdi                                                       ; +0x173, 0x14048ba33\ncall    MusicDownloadManager__tryUpdateNewsFeed                        ; +0x176, 0x14048ba36\nnop                                                                    ; +0x17b, 0x14048ba3b\nmov     rcx, rbx                                                       ; +0x17c, 0x14048ba3c\ncall    sub_14003D310                                                  ; +0x17f, 0x14048ba3f\nnop                                                                    ; +0x184, 0x14048ba44\nmov     rcx, r14                                                       ; +0x185, 0x14048ba45\ncall    sub_14003D310                                                  ; +0x188, 0x14048ba48\nmov     rcx, [rsp+88h+var_28]                                          ; +0x18d, 0x14048ba4d\nxor     rcx, rsp; StackCookie                                          ; +0x192, 0x14048ba52\ncall    __security_check_cookie                                        ; +0x195, 0x14048ba55\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x19a, 0x14048ba5a\nadd     rsp, 70h                                                       ; +0x1a2, 0x14048ba62\npop     r15                                                            ; +0x1a6, 0x14048ba66\npop     r14                                                            ; +0x1a8, 0x14048ba68\npop     rdi                                                            ; +0x1aa, 0x14048ba6a\nretn                                                                   ; +0x1ab, 0x14048ba6b", "xrefs": ["MusicDownloadManager::handleIt @ 0x1404822cf", "<???> @ 0x140928d6c", "<???> @ 0x140928d78"], "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"}