{"type": "func", "start": 5372104688, "end": 5372104933, "name": "MusicDownloadManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// MusicDownloadManager::onProcessHttpRequestCompleted from 0x14033cff0 to 0x14033d0e5 (245 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::ProcessHttpRequest @ 0x14033ce0e\n// > <???> @ 0x1406d5588\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid MusicDownloadManager::onProcessHttpRequestCompleted(\n        MusicDownloadManager *a1,\n        cocos2d::extension::CCHttpClient *a2,\n        cocos2d::extension::CCHttpResponse *a3)\n{\n  int v4; // esi\n  const char *Tag; // rdi\n  int Myend; // ebp\n  size_t v7; // r8\n  int v8; // eax\n  int v9; // edx\n  __int128 v10; // [rsp+30h] [rbp-88h] BYREF\n  __int64 v11; // [rsp+40h] [rbp-78h]\n  __int64 v12; // [rsp+48h] [rbp-70h]\n  __int128 *v13; // [rsp+50h] [rbp-68h]\n  _BYTE v14[32]; // [rsp+60h] [rbp-58h] BYREF\n  _BYTE v15[32]; // [rsp+80h] [rbp-38h] BYREF\n\n  v4 = (int)a1;\n  Tag = cocos2d::extension::CCHttpRequest::getTag(a3->_pHttpRequest);\n  Myend = (int)a3->_pHttpRequest->_headers._Mypair._Myval2._Myend;\n  GameToolbox::getResponse((__int64)v15, (__int64)a3);\n  v13 = &v10;\n  v10 = 0;\n  v11 = 0;\n  v12 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( Tag[v7] );\n  sub_14003A930(&v10, Tag, v7);\n  v8 = sub_14003BDB0((__int64)v14, (__int64)v15);\n  MusicDownloadManager::handleIt(v4, v9, v8, (unsigned int)&v10, Myend);\n  sub_14003A830((__int64)v15);\n}", "assembly": "; \n; MusicDownloadManager::onProcessHttpRequestCompleted from 0x14033cff0 to 0x14033d0e5 (245 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::ProcessHttpRequest @ 0x14033ce0e\n; > <???> @ 0x1406d5588\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14033cff0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14033cff5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14033cffa\npush    rdi                                                            ; +0xf, 0x14033cfff\nsub     rsp, 0B0h                                                      ; +0x10, 0x14033d000\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x14033d007\nxor     rax, rsp                                                       ; +0x1e, 0x14033d00e\nmov     [rsp+0B8h+var_18], rax                                         ; +0x21, 0x14033d011\nmov     rbx, r8                                                        ; +0x29, 0x14033d019\nmov     rsi, rcx                                                       ; +0x2c, 0x14033d01c\nmov     rcx, [r8+38h]                                                  ; +0x2f, 0x14033d01f\ncall    cs:?getTag@CCHttpRequest@extension@cocos2d@@QEAAPEBDXZ; cocos2d::extension::CCHttpRequest::getTag(void) ; +0x33, 0x14033d023\nmov     rdi, rax                                                       ; +0x39, 0x14033d029\nmov     r8, [rbx+38h]                                                  ; +0x3c, 0x14033d02c\nmov     ebp, [r8+0C8h]                                                 ; +0x40, 0x14033d030\nmov     rdx, rbx                                                       ; +0x47, 0x14033d037\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0x4a, 0x14033d03a\ncall    GameToolbox__getResponse                                       ; +0x52, 0x14033d042\nnop                                                                    ; +0x57, 0x14033d047\nlea     rax, [rsp+0B8h+var_88]                                         ; +0x58, 0x14033d048\nmov     [rsp+0B8h+var_68], rax                                         ; +0x5d, 0x14033d04d\nxorps   xmm0, xmm0                                                     ; +0x62, 0x14033d052\nmovups  [rsp+0B8h+var_88], xmm0                                        ; +0x65, 0x14033d055\nxor     eax, eax                                                       ; +0x6a, 0x14033d05a\nmov     [rsp+0B8h+var_78], rax                                         ; +0x6c, 0x14033d05c\nmov     [rsp+0B8h+var_70], rax                                         ; +0x71, 0x14033d061\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x76, 0x14033d066\nnop     dword ptr [rax]                                                ; +0x7d, 0x14033d06d\ninc     r8                                                             ; +0x80, 0x14033d070\ncmp     [rdi+r8], al                                                   ; +0x83, 0x14033d073\njnz     short loc_14033D070                                            ; +0x87, 0x14033d077\nmov     rdx, rdi                                                       ; +0x89, 0x14033d079\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x8c, 0x14033d07c\ncall    sub_14003A930                                                  ; +0x91, 0x14033d081\nnop                                                                    ; +0x96, 0x14033d086\nlea     rdx, [rsp+0B8h+var_38]                                         ; +0x97, 0x14033d087\nlea     rcx, [rsp+0B8h+var_58]                                         ; +0x9f, 0x14033d08f\ncall    sub_14003BDB0                                                  ; +0xa4, 0x14033d094\nnop                                                                    ; +0xa9, 0x14033d099\nmov     [rsp+0B8h+var_98], ebp                                         ; +0xaa, 0x14033d09a\nlea     r9, [rsp+0B8h+var_88]                                          ; +0xae, 0x14033d09e\nmov     r8, rax                                                        ; +0xb3, 0x14033d0a3\nmov     rcx, rsi                                                       ; +0xb6, 0x14033d0a6\ncall    MusicDownloadManager__handleIt                                 ; +0xb9, 0x14033d0a9\nnop                                                                    ; +0xbe, 0x14033d0ae\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0xbf, 0x14033d0af\ncall    sub_14003A830                                                  ; +0xc7, 0x14033d0b7\nmov     rcx, [rsp+0B8h+var_18]                                         ; +0xcc, 0x14033d0bc\nxor     rcx, rsp; StackCookie                                          ; +0xd4, 0x14033d0c4\ncall    __security_check_cookie                                        ; +0xd7, 0x14033d0c7\nlea     r11, [rsp+0B8h+var_8]                                          ; +0xdc, 0x14033d0cc\nmov     rbx, [r11+10h]                                                 ; +0xe4, 0x14033d0d4\nmov     rbp, [r11+18h]                                                 ; +0xe8, 0x14033d0d8\nmov     rsi, [r11+28h]                                                 ; +0xec, 0x14033d0dc\nmov     rsp, r11                                                       ; +0xf0, 0x14033d0e0\npop     rdi                                                            ; +0xf3, 0x14033d0e3\nretn                                                                   ; +0xf4, 0x14033d0e4", "xrefs": ["MusicDownloadManager::ProcessHttpRequest @ 0x14033ce0e", "<???> @ 0x1406d5588"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}