{"type": "func", "start": 5373436176, "end": 5373436421, "name": "MusicDownloadManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// MusicDownloadManager::onProcessHttpRequestCompleted from 0x140482110 to 0x140482205 (245 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::ProcessHttpRequest @ 0x140481f2e\n// > <???> @ 0x14092897c\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:45 +0000\n// \n\nvoid __fastcall MusicDownloadManager::onProcessHttpRequestCompleted(int a1, __int64 a2, __int64 a3)\n{\n  const char *Tag; // rdi\n  int v6; // 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  Tag = cocos2d::extension::CCHttpRequest::getTag(*(cocos2d::extension::CCHttpRequest **)(a3 + 56));\n  v6 = *(_DWORD *)(*(_QWORD *)(a3 + 56) + 200LL);\n  GameToolbox::getResponse((__int64)v15, 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_14003D230(&v10, Tag, v7);\n  v8 = sub_14003F4F0((__int64)v14, (__int64)v15);\n  MusicDownloadManager::handleIt(a1, v9, v8, (unsigned int)&v10, v6);\n  sub_14003D310((__int64)v15);\n}", "assembly": "; \n; MusicDownloadManager::onProcessHttpRequestCompleted from 0x140482110 to 0x140482205 (245 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::ProcessHttpRequest @ 0x140481f2e\n; > <???> @ 0x14092897c\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:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140482110\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140482115\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14048211a\npush    rdi                                                            ; +0xf, 0x14048211f\nsub     rsp, 0B0h                                                      ; +0x10, 0x140482120\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x140482127\nxor     rax, rsp                                                       ; +0x1e, 0x14048212e\nmov     [rsp+0B8h+var_18], rax                                         ; +0x21, 0x140482131\nmov     rbx, r8                                                        ; +0x29, 0x140482139\nmov     rsi, rcx                                                       ; +0x2c, 0x14048213c\nmov     rcx, [r8+38h]                                                  ; +0x2f, 0x14048213f\ncall    cs:?getTag@CCHttpRequest@extension@cocos2d@@QEAAPEBDXZ; cocos2d::extension::CCHttpRequest::getTag(void) ; +0x33, 0x140482143\nmov     rdi, rax                                                       ; +0x39, 0x140482149\nmov     r8, [rbx+38h]                                                  ; +0x3c, 0x14048214c\nmov     ebp, [r8+0C8h]                                                 ; +0x40, 0x140482150\nmov     rdx, rbx                                                       ; +0x47, 0x140482157\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0x4a, 0x14048215a\ncall    GameToolbox__getResponse                                       ; +0x52, 0x140482162\nnop                                                                    ; +0x57, 0x140482167\nlea     rax, [rsp+0B8h+var_88]                                         ; +0x58, 0x140482168\nmov     [rsp+0B8h+var_68], rax                                         ; +0x5d, 0x14048216d\nxorps   xmm0, xmm0                                                     ; +0x62, 0x140482172\nmovups  [rsp+0B8h+var_88], xmm0                                        ; +0x65, 0x140482175\nxor     eax, eax                                                       ; +0x6a, 0x14048217a\nmov     [rsp+0B8h+var_78], rax                                         ; +0x6c, 0x14048217c\nmov     [rsp+0B8h+var_70], rax                                         ; +0x71, 0x140482181\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x76, 0x140482186\nnop     dword ptr [rax]                                                ; +0x7d, 0x14048218d\ninc     r8                                                             ; +0x80, 0x140482190\ncmp     [rdi+r8], al                                                   ; +0x83, 0x140482193\njnz     short loc_140482190                                            ; +0x87, 0x140482197\nmov     rdx, rdi                                                       ; +0x89, 0x140482199\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x8c, 0x14048219c\ncall    sub_14003D230                                                  ; +0x91, 0x1404821a1\nnop                                                                    ; +0x96, 0x1404821a6\nlea     rdx, [rsp+0B8h+var_38]                                         ; +0x97, 0x1404821a7\nlea     rcx, [rsp+0B8h+var_58]                                         ; +0x9f, 0x1404821af\ncall    sub_14003F4F0                                                  ; +0xa4, 0x1404821b4\nnop                                                                    ; +0xa9, 0x1404821b9\nmov     [rsp+0B8h+var_98], ebp                                         ; +0xaa, 0x1404821ba\nlea     r9, [rsp+0B8h+var_88]                                          ; +0xae, 0x1404821be\nmov     r8, rax                                                        ; +0xb3, 0x1404821c3\nmov     rcx, rsi                                                       ; +0xb6, 0x1404821c6\ncall    MusicDownloadManager__handleIt                                 ; +0xb9, 0x1404821c9\nnop                                                                    ; +0xbe, 0x1404821ce\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0xbf, 0x1404821cf\ncall    sub_14003D310                                                  ; +0xc7, 0x1404821d7\nmov     rcx, [rsp+0B8h+var_18]                                         ; +0xcc, 0x1404821dc\nxor     rcx, rsp; StackCookie                                          ; +0xd4, 0x1404821e4\ncall    __security_check_cookie                                        ; +0xd7, 0x1404821e7\nlea     r11, [rsp+0B8h+var_8]                                          ; +0xdc, 0x1404821ec\nmov     rbx, [r11+10h]                                                 ; +0xe4, 0x1404821f4\nmov     rbp, [r11+18h]                                                 ; +0xe8, 0x1404821f8\nmov     rsi, [r11+28h]                                                 ; +0xec, 0x1404821fc\nmov     rsp, r11                                                       ; +0xf0, 0x140482200\npop     rdi                                                            ; +0xf3, 0x140482203\nretn                                                                   ; +0xf4, 0x140482204", "xrefs": ["MusicDownloadManager::ProcessHttpRequest @ 0x140481f2e", "<???> @ 0x14092897c"], "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"}