{"type": "func", "start": 5373479248, "end": 5373479568, "name": "MusicDownloadManager::onTryUpdateMusicLibraryCompleted", "pseudocode": "// \n// MusicDownloadManager::onTryUpdateMusicLibraryCompleted from 0x14048c950 to 0x14048ca90 (320 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x14048c86a\n// > <???> @ 0x140928dc0\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:49 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall MusicDownloadManager::onTryUpdateMusicLibraryCompleted(__int64 a1, __int64 a2, __int64 a3)\n{\n  void *v5; // rcx\n  const char *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-58h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-48h]\n  char *String[4]; // [rsp+50h] [rbp-38h] BYREF\n\n  Block[1] = (void *)108;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1408365A0);\n  Block[0] = (void *)0x5F636973756D5F76LL;\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 328), Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  if ( a3 && *(_BYTE *)(a3 + 64) )\n  {\n    GameToolbox::getResponse((__int64)String, a3);\n    v6 = (const char *)String;\n    if ( String[3] > (char *)0xF )\n      v6 = String[0];\n    if ( atoi(v6) <= *(_DWORD *)(a1 + 504) )\n      MusicDownloadManager::musicActionFailed(a1, 6);\n    else\n      MusicDownloadManager::downloadMusicLibrary(a1);\n    sub_14003D310((__int64)String);\n  }\n  else\n  {\n    MusicDownloadManager::musicActionFailed(a1, 5);\n  }\n}", "assembly": "; \n; MusicDownloadManager::onTryUpdateMusicLibraryCompleted from 0x14048c950 to 0x14048ca90 (320 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::tryUpdateMusicLibrary @ 0x14048c86a\n; > <???> @ 0x140928dc0\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:49 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14048c950\npush    rdi                                                            ; +0x5, 0x14048c955\nsub     rsp, 80h                                                       ; +0x6, 0x14048c956\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14048c95d\nxor     rax, rsp                                                       ; +0x14, 0x14048c964\nmov     [rsp+88h+var_18], rax                                          ; +0x17, 0x14048c967\nmov     rdi, r8                                                        ; +0x1c, 0x14048c96c\nmov     rbx, rcx                                                       ; +0x1f, 0x14048c96f\nxorps   xmm0, xmm0                                                     ; +0x22, 0x14048c972\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x25, 0x14048c975\nmovdqa  xmm1, cs:xmmword_1408365A0                                     ; +0x2a, 0x14048c97a\nmovdqu  [rsp+88h+var_48], xmm1                                         ; +0x32, 0x14048c982\nmovsd   xmm0, cs:qword_1407B80F8                                       ; +0x38, 0x14048c988\nmovsd   [rsp+88h+Block], xmm0                                          ; +0x40, 0x14048c990\nmovzx   eax, cs:byte_1407B8100                                         ; +0x46, 0x14048c996\nmov     byte ptr [rsp+88h+Block+8], al                                 ; +0x4d, 0x14048c99d\nmov     byte ptr [rsp+88h+Block+9], 0                                  ; +0x51, 0x14048c9a1\nlea     rdx, [rsp+88h+Block]                                           ; +0x56, 0x14048c9a6\nmov     rcx, [rcx+148h]                                                ; +0x5b, 0x14048c9ab\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 &) ; +0x62, 0x14048c9b2\nnop                                                                    ; +0x68, 0x14048c9b8\nmov     rdx, qword ptr [rsp+88h+var_48+8]                              ; +0x69, 0x14048c9b9\ncmp     rdx, 0Fh                                                       ; +0x6e, 0x14048c9be\njbe     short loc_14048CA0C                                            ; +0x72, 0x14048c9c2\ninc     rdx                                                            ; +0x74, 0x14048c9c4\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x77, 0x14048c9c7\nmov     rax, rcx                                                       ; +0x7c, 0x14048c9cc\ncmp     rdx, 1000h                                                     ; +0x7f, 0x14048c9cf\njb      short loc_14048CA07                                            ; +0x86, 0x14048c9d6\nadd     rdx, 27h ; '''                                                 ; +0x88, 0x14048c9d8\nmov     rcx, [rcx-8]                                                   ; +0x8c, 0x14048c9dc\nsub     rax, rcx                                                       ; +0x90, 0x14048c9e0\nsub     rax, 8                                                         ; +0x93, 0x14048c9e3\ncmp     rax, 1Fh                                                       ; +0x97, 0x14048c9e7\njbe     short loc_14048CA07                                            ; +0x9b, 0x14048c9eb\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x9d, 0x14048c9ed\nxor     r9d, r9d; LineNo                                               ; +0xa6, 0x14048c9f6\nxor     r8d, r8d; FileName                                             ; +0xa9, 0x14048c9f9\nxor     edx, edx; FunctionName                                         ; +0xac, 0x14048c9fc\nxor     ecx, ecx; Expression                                           ; +0xae, 0x14048c9fe\ncall    cs:_invoke_watson                                              ; +0xb0, 0x14048ca00\ndb 0CCh                                                                ; +0xb6, 0x14048ca06\ncall    j_j_free                                                       ; +0xb7, 0x14048ca07\ntest    rdi, rdi                                                       ; +0xbc, 0x14048ca0c\njz      short loc_14048CA65                                            ; +0xbf, 0x14048ca0f\ncmp     byte ptr [rdi+40h], 0                                          ; +0xc1, 0x14048ca11\njz      short loc_14048CA65                                            ; +0xc5, 0x14048ca15\nmov     rdx, rdi                                                       ; +0xc7, 0x14048ca17\nlea     rcx, [rsp+88h+String]                                          ; +0xca, 0x14048ca1a\ncall    GameToolbox__getResponse                                       ; +0xcf, 0x14048ca1f\nnop                                                                    ; +0xd4, 0x14048ca24\nlea     rcx, [rsp+88h+String]                                          ; +0xd5, 0x14048ca25\ncmp     [rsp+88h+var_20], 0Fh                                          ; +0xda, 0x14048ca2a\ncmova   rcx, [rsp+88h+String]; String                                  ; +0xe0, 0x14048ca30\ncall    cs:atoi                                                        ; +0xe6, 0x14048ca36\nmov     rcx, rbx                                                       ; +0xec, 0x14048ca3c\ncmp     eax, [rbx+1F8h]                                                ; +0xef, 0x14048ca3f\njle     short loc_14048CA4E                                            ; +0xf5, 0x14048ca45\ncall    MusicDownloadManager__downloadMusicLibrary                     ; +0xf7, 0x14048ca47\njmp     short loc_14048CA59                                            ; +0xfc, 0x14048ca4c\nmov     edx, 6                                                         ; +0xfe, 0x14048ca4e\ncall    MusicDownloadManager__musicActionFailed                        ; +0x103, 0x14048ca53\nnop                                                                    ; +0x108, 0x14048ca58\nlea     rcx, [rsp+88h+String]                                          ; +0x109, 0x14048ca59\ncall    sub_14003D310                                                  ; +0x10e, 0x14048ca5e\njmp     short loc_14048CA72                                            ; +0x113, 0x14048ca63\nmov     edx, 5                                                         ; +0x115, 0x14048ca65\nmov     rcx, rbx                                                       ; +0x11a, 0x14048ca6a\ncall    MusicDownloadManager__musicActionFailed                        ; +0x11d, 0x14048ca6d\nmov     rcx, [rsp+88h+var_18]                                          ; +0x122, 0x14048ca72\nxor     rcx, rsp; StackCookie                                          ; +0x127, 0x14048ca77\ncall    __security_check_cookie                                        ; +0x12a, 0x14048ca7a\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x12f, 0x14048ca7f\nadd     rsp, 80h                                                       ; +0x137, 0x14048ca87\npop     rdi                                                            ; +0x13e, 0x14048ca8e\nretn                                                                   ; +0x13f, 0x14048ca8f", "xrefs": ["MusicDownloadManager::tryUpdateMusicLibrary @ 0x14048c86a", "<???> @ 0x140928dc0"], "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"}