{"type": "func", "start": 5373490896, "end": 5373491225, "name": "MusicDownloadManager::onTryUpdateSFXLibraryCompleted", "pseudocode": "// \n// MusicDownloadManager::onTryUpdateSFXLibraryCompleted from 0x14048f6d0 to 0x14048f819 (329 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x14048f5d7\n// > <???> @ 0x140928e2c\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:50 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall MusicDownloadManager::onTryUpdateSFXLibraryCompleted(__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] = nullptr;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_140836580);\n  Block[0] = (void *)0x6C5F7866735F76LL;\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 + 432) )\n      MusicDownloadManager::musicActionFailed(a1, 4);\n    else\n      MusicDownloadManager::downloadSFXLibrary(a1);\n    sub_14003D310((__int64)String);\n  }\n  else\n  {\n    MusicDownloadManager::musicActionFailed(a1, 3);\n  }\n}", "assembly": "; \n; MusicDownloadManager::onTryUpdateSFXLibraryCompleted from 0x14048f6d0 to 0x14048f819 (329 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::tryUpdateSFXLibrary @ 0x14048f5d7\n; > <???> @ 0x140928e2c\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:50 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14048f6d0\npush    rdi                                                            ; +0x5, 0x14048f6d5\nsub     rsp, 80h                                                       ; +0x6, 0x14048f6d6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14048f6dd\nxor     rax, rsp                                                       ; +0x14, 0x14048f6e4\nmov     [rsp+88h+var_18], rax                                          ; +0x17, 0x14048f6e7\nmov     rdi, r8                                                        ; +0x1c, 0x14048f6ec\nmov     rbx, rcx                                                       ; +0x1f, 0x14048f6ef\nxorps   xmm0, xmm0                                                     ; +0x22, 0x14048f6f2\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x25, 0x14048f6f5\nmovdqa  xmm1, cs:xmmword_140836580                                     ; +0x2a, 0x14048f6fa\nmovdqu  [rsp+88h+var_48], xmm1                                         ; +0x32, 0x14048f702\nmov     rax, cs:qword_1407B8530                                        ; +0x38, 0x14048f708\nmov     dword ptr [rsp+88h+Block], eax                                 ; +0x3f, 0x14048f70f\nmovzx   eax, word ptr cs:qword_1407B8530+4                             ; +0x43, 0x14048f713\nmov     word ptr [rsp+88h+Block+4], ax                                 ; +0x4a, 0x14048f71a\nmovzx   eax, byte ptr cs:qword_1407B8530+6                             ; +0x4f, 0x14048f71f\nmov     byte ptr [rsp+88h+Block+6], al                                 ; +0x56, 0x14048f726\nmov     byte ptr [rsp+88h+Block+7], 0                                  ; +0x5a, 0x14048f72a\nlea     rdx, [rsp+88h+Block]                                           ; +0x5f, 0x14048f72f\nmov     rcx, [rcx+148h]                                                ; +0x64, 0x14048f734\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 &) ; +0x6b, 0x14048f73b\nnop                                                                    ; +0x71, 0x14048f741\nmov     rdx, qword ptr [rsp+88h+var_48+8]                              ; +0x72, 0x14048f742\ncmp     rdx, 0Fh                                                       ; +0x77, 0x14048f747\njbe     short loc_14048F795                                            ; +0x7b, 0x14048f74b\ninc     rdx                                                            ; +0x7d, 0x14048f74d\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x80, 0x14048f750\nmov     rax, rcx                                                       ; +0x85, 0x14048f755\ncmp     rdx, 1000h                                                     ; +0x88, 0x14048f758\njb      short loc_14048F790                                            ; +0x8f, 0x14048f75f\nadd     rdx, 27h ; '''                                                 ; +0x91, 0x14048f761\nmov     rcx, [rcx-8]                                                   ; +0x95, 0x14048f765\nsub     rax, rcx                                                       ; +0x99, 0x14048f769\nsub     rax, 8                                                         ; +0x9c, 0x14048f76c\ncmp     rax, 1Fh                                                       ; +0xa0, 0x14048f770\njbe     short loc_14048F790                                            ; +0xa4, 0x14048f774\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xa6, 0x14048f776\nxor     r9d, r9d; LineNo                                               ; +0xaf, 0x14048f77f\nxor     r8d, r8d; FileName                                             ; +0xb2, 0x14048f782\nxor     edx, edx; FunctionName                                         ; +0xb5, 0x14048f785\nxor     ecx, ecx; Expression                                           ; +0xb7, 0x14048f787\ncall    cs:_invoke_watson                                              ; +0xb9, 0x14048f789\nalign 10h                                                              ; +0xbf, 0x14048f78f\ncall    j_j_free                                                       ; +0xc0, 0x14048f790\ntest    rdi, rdi                                                       ; +0xc5, 0x14048f795\njz      short loc_14048F7EE                                            ; +0xc8, 0x14048f798\ncmp     byte ptr [rdi+40h], 0                                          ; +0xca, 0x14048f79a\njz      short loc_14048F7EE                                            ; +0xce, 0x14048f79e\nmov     rdx, rdi                                                       ; +0xd0, 0x14048f7a0\nlea     rcx, [rsp+88h+String]                                          ; +0xd3, 0x14048f7a3\ncall    GameToolbox__getResponse                                       ; +0xd8, 0x14048f7a8\nnop                                                                    ; +0xdd, 0x14048f7ad\nlea     rcx, [rsp+88h+String]                                          ; +0xde, 0x14048f7ae\ncmp     [rsp+88h+var_20], 0Fh                                          ; +0xe3, 0x14048f7b3\ncmova   rcx, [rsp+88h+String]; String                                  ; +0xe9, 0x14048f7b9\ncall    cs:atoi                                                        ; +0xef, 0x14048f7bf\nmov     rcx, rbx                                                       ; +0xf5, 0x14048f7c5\ncmp     eax, [rbx+1B0h]                                                ; +0xf8, 0x14048f7c8\njle     short loc_14048F7D7                                            ; +0xfe, 0x14048f7ce\ncall    MusicDownloadManager__downloadSFXLibrary                       ; +0x100, 0x14048f7d0\njmp     short loc_14048F7E2                                            ; +0x105, 0x14048f7d5\nmov     edx, 4                                                         ; +0x107, 0x14048f7d7\ncall    MusicDownloadManager__musicActionFailed                        ; +0x10c, 0x14048f7dc\nnop                                                                    ; +0x111, 0x14048f7e1\nlea     rcx, [rsp+88h+String]                                          ; +0x112, 0x14048f7e2\ncall    sub_14003D310                                                  ; +0x117, 0x14048f7e7\njmp     short loc_14048F7FB                                            ; +0x11c, 0x14048f7ec\nmov     edx, 3                                                         ; +0x11e, 0x14048f7ee\nmov     rcx, rbx                                                       ; +0x123, 0x14048f7f3\ncall    MusicDownloadManager__musicActionFailed                        ; +0x126, 0x14048f7f6\nmov     rcx, [rsp+88h+var_18]                                          ; +0x12b, 0x14048f7fb\nxor     rcx, rsp; StackCookie                                          ; +0x130, 0x14048f800\ncall    __security_check_cookie                                        ; +0x133, 0x14048f803\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x138, 0x14048f808\nadd     rsp, 80h                                                       ; +0x140, 0x14048f810\npop     rdi                                                            ; +0x147, 0x14048f817\nretn                                                                   ; +0x148, 0x14048f818", "xrefs": ["MusicDownloadManager::tryUpdateSFXLibrary @ 0x14048f5d7", "<???> @ 0x140928e2c"], "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"}