{"type": "func", "start": 5373500224, "end": 5373500791, "name": "MusicDownloadManager::downloadNewsFeed", "pseudocode": "// \n// MusicDownloadManager::downloadNewsFeed from 0x140491b40 to 0x140491d77 (567 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::onTryUpdateNewsFeedCompleted @ 0x140491af4\n// > <???> @ 0x140928e98\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:51 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall MusicDownloadManager::downloadNewsFeed(cocos2d::CCObject *a1)\n{\n  __int64 v2; // rbx\n  void *v3; // r8\n  const char *v4; // rax\n  cocos2d::extension::CCHttpRequest *Request; // rax\n  void *v6; // rcx\n  __int128 v7; // [rsp+38h] [rbp-41h] BYREF\n  __int64 v8; // [rsp+48h] [rbp-31h]\n  __int64 v9; // [rsp+50h] [rbp-29h]\n  _BYTE v10[32]; // [rsp+60h] [rbp-19h] BYREF\n  void *Block[2]; // [rsp+80h] [rbp+7h] BYREF\n  __m128i si128; // [rsp+90h] [rbp+17h]\n  void *v13[4]; // [rsp+A0h] [rbp+27h] BYREF\n\n  if ( *((_QWORD *)a1 + 48) )\n  {\n    Block[1] = nullptr;\n    si128 = _mm_load_si128((const __m128i *)&xmmword_140836580);\n    Block[0] = (void *)0x7377656E5F6C64LL;\n    v2 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)a1 + 41), Block);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v3 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v3 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v3);\n    }\n    if ( !v2 )\n    {\n      si128.m128i_i64[0] = 14;\n      si128.m128i_i64[1] = 15;\n      strcpy((char *)Block, \"/news/news.dat\");\n      HIBYTE(Block[1]) = 0;\n      MusicDownloadManager::generateCustomContentURL((__int64)a1, v13, (const char *)Block);\n      v7 = 0;\n      v8 = 0;\n      v9 = 15;\n      LOBYTE(v7) = 0;\n      v4 = (const char *)sub_14003F4F0((__int64)v10, (__int64)v13);\n      Request = MusicDownloadManager::ProcessHttpGetRequest(\n                  a1,\n                  v4,\n                  (const char *)&v7,\n                  (__int64)MusicDownloadManager::onDownloadNewsFeedCompleted,\n                  5,\n                  30);\n      Block[1] = nullptr;\n      si128 = _mm_load_si128((const __m128i *)&xmmword_140836580);\n      strcpy((char *)Block, \"dl_news\");\n      cocos2d::CCDictionary::setObject(*((_QWORD *)a1 + 41), Request, 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      sub_14003D310((__int64)v13);\n    }\n  }\n}", "assembly": "; \n; MusicDownloadManager::downloadNewsFeed from 0x140491b40 to 0x140491d77 (567 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::onTryUpdateNewsFeedCompleted @ 0x140491af4\n; > <???> @ 0x140928e98\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:51 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140491b40\nmov     [rsp-8+arg_10], rdi                                            ; +0x5, 0x140491b45\npush    rbp                                                            ; +0xa, 0x140491b4a\nlea     rbp, [rsp-57h]                                                 ; +0xb, 0x140491b4b\nsub     rsp, 0D0h                                                      ; +0x10, 0x140491b50\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x140491b57\nxor     rax, rsp                                                       ; +0x1e, 0x140491b5e\nmov     [rbp+57h+var_10], rax                                          ; +0x21, 0x140491b61\nmov     rdi, rcx                                                       ; +0x25, 0x140491b65\ncmp     qword ptr [rcx+180h], 0                                        ; +0x28, 0x140491b68\njz      loc_140491D56                                                  ; +0x30, 0x140491b70\nxorps   xmm0, xmm0                                                     ; +0x36, 0x140491b76\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x39, 0x140491b79\nmovdqa  xmm1, cs:xmmword_140836580                                     ; +0x3d, 0x140491b7d\nmovdqu  [rbp+57h+var_40], xmm1                                         ; +0x45, 0x140491b85\nmov     rax, cs:qword_1407B84F8                                        ; +0x4a, 0x140491b8a\nmov     dword ptr [rbp+57h+Block], eax                                 ; +0x51, 0x140491b91\nmovzx   eax, word ptr cs:qword_1407B84F8+4                             ; +0x54, 0x140491b94\nmov     word ptr [rbp+57h+Block+4], ax                                 ; +0x5b, 0x140491b9b\nmovzx   eax, byte ptr cs:qword_1407B84F8+6                             ; +0x5f, 0x140491b9f\nmov     byte ptr [rbp+57h+Block+6], al                                 ; +0x66, 0x140491ba6\nmov     byte ptr [rbp+57h+Block+7], 0                                  ; +0x69, 0x140491ba9\nlea     rdx, [rbp+57h+Block]                                           ; +0x6d, 0x140491bad\nmov     rcx, [rcx+148h]                                                ; +0x71, 0x140491bb1\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x78, 0x140491bb8\nmov     rbx, rax                                                       ; +0x7e, 0x140491bbe\nmov     rdx, qword ptr [rbp+57h+var_40+8]                              ; +0x81, 0x140491bc1\ncmp     rdx, 0Fh                                                       ; +0x85, 0x140491bc5\njbe     short loc_140491C13                                            ; +0x89, 0x140491bc9\ninc     rdx                                                            ; +0x8b, 0x140491bcb\nmov     r8, [rbp+57h+Block]                                            ; +0x8e, 0x140491bce\nmov     rcx, r8                                                        ; +0x92, 0x140491bd2\ncmp     rdx, 1000h                                                     ; +0x95, 0x140491bd5\njb      short loc_140491C0B                                            ; +0x9c, 0x140491bdc\nadd     rdx, 27h ; '''                                                 ; +0x9e, 0x140491bde\nmov     r8, [r8-8]                                                     ; +0xa2, 0x140491be2\nsub     rcx, r8                                                        ; +0xa6, 0x140491be6\nsub     rcx, 8                                                         ; +0xa9, 0x140491be9\ncmp     rcx, 1Fh                                                       ; +0xad, 0x140491bed\njbe     short loc_140491C0B                                            ; +0xb1, 0x140491bf1\nxor     ebx, ebx                                                       ; +0xb3, 0x140491bf3\nmov     [rsp+0D0h+Reserved], rbx; Reserved                             ; +0xb5, 0x140491bf5\nxor     r9d, r9d; LineNo                                               ; +0xba, 0x140491bfa\nxor     r8d, r8d; FileName                                             ; +0xbd, 0x140491bfd\nxor     edx, edx; FunctionName                                         ; +0xc0, 0x140491c00\nxor     ecx, ecx; Expression                                           ; +0xc2, 0x140491c02\ncall    cs:_invoke_watson                                              ; +0xc4, 0x140491c04\ndb 0CCh                                                                ; +0xca, 0x140491c0a\nmov     rcx, r8; Block                                                 ; +0xcb, 0x140491c0b\ncall    j_j_free                                                       ; +0xce, 0x140491c0e\ntest    rbx, rbx                                                       ; +0xd3, 0x140491c13\njnz     loc_140491D56                                                  ; +0xd6, 0x140491c16\nmov     word ptr [rbp+57h+Block+0Eh], bx                               ; +0xdc, 0x140491c1c\nmov     qword ptr [rbp+57h+var_40], 0Eh                                ; +0xe0, 0x140491c20\nmov     qword ptr [rbp+57h+var_40+8], 0Fh                              ; +0xe8, 0x140491c28\nmovsd   xmm0, cs:qword_1407B8500                                       ; +0xf0, 0x140491c30\nmovsd   [rbp+57h+Block], xmm0                                          ; +0xf8, 0x140491c38\nmov     eax, cs:dword_1407B8508                                        ; +0xfd, 0x140491c3d\nmov     dword ptr [rbp+57h+Block+8], eax                               ; +0x103, 0x140491c43\nmovzx   eax, cs:word_1407B850C                                         ; +0x106, 0x140491c46\nmov     word ptr [rbp+57h+Block+0Ch], ax                               ; +0x10d, 0x140491c4d\nlea     r8, [rbp+57h+Block]                                            ; +0x111, 0x140491c51\nlea     rdx, [rbp+57h+var_30]                                          ; +0x115, 0x140491c55\nmov     rcx, rdi                                                       ; +0x119, 0x140491c59\ncall    MusicDownloadManager__generateCustomContentURL                 ; +0x11c, 0x140491c5c\nnop                                                                    ; +0x121, 0x140491c61\nlea     rax, [rbp+57h+var_98]                                          ; +0x122, 0x140491c62\nmov     [rbp+57h+var_A0], rax                                          ; +0x126, 0x140491c66\nxorps   xmm0, xmm0                                                     ; +0x12a, 0x140491c6a\nmovups  [rbp+57h+var_98], xmm0                                         ; +0x12d, 0x140491c6d\nmov     [rbp+57h+var_88], rbx                                          ; +0x131, 0x140491c71\nmov     [rbp+57h+var_80], 0Fh                                          ; +0x135, 0x140491c75\nmov     byte ptr [rbp+57h+var_98], bl                                  ; +0x13d, 0x140491c7d\nlea     rdx, [rbp+57h+var_30]                                          ; +0x140, 0x140491c80\nlea     rcx, [rbp+57h+var_70]                                          ; +0x144, 0x140491c84\ncall    sub_14003F4F0                                                  ; +0x148, 0x140491c88\nnop                                                                    ; +0x14d, 0x140491c8d\nmov     [rsp+0D0h+var_A8], 1Eh                                         ; +0x14e, 0x140491c8e\nmov     dword ptr [rsp+0D0h+Reserved], 5                               ; +0x156, 0x140491c96\nlea     r9, MusicDownloadManager__onDownloadNewsFeedCompleted          ; +0x15e, 0x140491c9e\nlea     r8, [rbp+57h+var_98]                                           ; +0x165, 0x140491ca5\nmov     rdx, rax                                                       ; +0x169, 0x140491ca9\nmov     rcx, rdi                                                       ; +0x16c, 0x140491cac\ncall    MusicDownloadManager__ProcessHttpGetRequest                    ; +0x16f, 0x140491caf\nxorps   xmm0, xmm0                                                     ; +0x174, 0x140491cb4\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x177, 0x140491cb7\nmovdqa  xmm1, cs:xmmword_140836580                                     ; +0x17b, 0x140491cbb\nmovdqu  [rbp+57h+var_40], xmm1                                         ; +0x183, 0x140491cc3\nmov     rcx, cs:qword_1407B84F8                                        ; +0x188, 0x140491cc8\nmov     dword ptr [rbp+57h+Block], ecx                                 ; +0x18f, 0x140491ccf\nmovzx   ecx, word ptr cs:qword_1407B84F8+4                             ; +0x192, 0x140491cd2\nmov     word ptr [rbp+57h+Block+4], cx                                 ; +0x199, 0x140491cd9\nmovzx   ecx, byte ptr cs:qword_1407B84F8+6                             ; +0x19d, 0x140491cdd\nmov     byte ptr [rbp+57h+Block+6], cl                                 ; +0x1a4, 0x140491ce4\nmov     byte ptr [rbp+57h+Block+7], bl                                 ; +0x1a7, 0x140491ce7\nlea     r8, [rbp+57h+Block]                                            ; +0x1aa, 0x140491cea\nmov     rdx, rax                                                       ; +0x1ae, 0x140491cee\nmov     rcx, [rdi+148h]                                                ; +0x1b1, 0x140491cf1\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 &) ; +0x1b8, 0x140491cf8\nnop                                                                    ; +0x1be, 0x140491cfe\nmov     rdx, qword ptr [rbp+57h+var_40+8]                              ; +0x1bf, 0x140491cff\ncmp     rdx, 0Fh                                                       ; +0x1c3, 0x140491d03\njbe     short loc_140491D4D                                            ; +0x1c7, 0x140491d07\ninc     rdx                                                            ; +0x1c9, 0x140491d09\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x1cc, 0x140491d0c\nmov     rax, rcx                                                       ; +0x1d0, 0x140491d10\ncmp     rdx, 1000h                                                     ; +0x1d3, 0x140491d13\njb      short loc_140491D47                                            ; +0x1da, 0x140491d1a\nadd     rdx, 27h ; '''                                                 ; +0x1dc, 0x140491d1c\nmov     rcx, [rcx-8]                                                   ; +0x1e0, 0x140491d20\nsub     rax, rcx                                                       ; +0x1e4, 0x140491d24\nsub     rax, 8                                                         ; +0x1e7, 0x140491d27\ncmp     rax, 1Fh                                                       ; +0x1eb, 0x140491d2b\njbe     short loc_140491D47                                            ; +0x1ef, 0x140491d2f\nmov     [rsp+0D0h+Reserved], rbx; Reserved                             ; +0x1f1, 0x140491d31\nxor     r9d, r9d; LineNo                                               ; +0x1f6, 0x140491d36\nxor     r8d, r8d; FileName                                             ; +0x1f9, 0x140491d39\nxor     edx, edx; FunctionName                                         ; +0x1fc, 0x140491d3c\nxor     ecx, ecx; Expression                                           ; +0x1fe, 0x140491d3e\ncall    cs:_invoke_watson                                              ; +0x200, 0x140491d40\ndb 0CCh                                                                ; +0x206, 0x140491d46\ncall    j_j_free                                                       ; +0x207, 0x140491d47\nnop                                                                    ; +0x20c, 0x140491d4c\nlea     rcx, [rbp+57h+var_30]                                          ; +0x20d, 0x140491d4d\ncall    sub_14003D310                                                  ; +0x211, 0x140491d51\nmov     rcx, [rbp+57h+var_10]                                          ; +0x216, 0x140491d56\nxor     rcx, rsp; StackCookie                                          ; +0x21a, 0x140491d5a\ncall    __security_check_cookie                                        ; +0x21d, 0x140491d5d\nlea     r11, [rsp+0D0h+var_s0]                                         ; +0x222, 0x140491d62\nmov     rbx, [r11+18h]                                                 ; +0x22a, 0x140491d6a\nmov     rdi, [r11+20h]                                                 ; +0x22e, 0x140491d6e\nmov     rsp, r11                                                       ; +0x232, 0x140491d72\npop     rbp                                                            ; +0x235, 0x140491d75\nretn                                                                   ; +0x236, 0x140491d76", "xrefs": ["MusicDownloadManager::onTryUpdateNewsFeedCompleted @ 0x140491af4", "<???> @ 0x140928e98"], "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"}