{"type": "func", "start": 5373435568, "end": 5373435882, "name": "MusicDownloadManager::ProcessHttpRequest", "pseudocode": "// \n// MusicDownloadManager::ProcessHttpRequest from 0x140481eb0 to 0x140481fea (314 bytes)\n// \n// 4 xrefs:\n// > MusicDownloadManager::getSongInfo @ 0x140482bec\n// > MusicDownloadManager::getCustomContentURL @ 0x14048b89a\n// > MusicDownloadManager::getAudioFilesize @ 0x14048c17b\n// > <???> @ 0x140928964\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\n// Hidden C++ exception states: #wind=4\nvoid __fastcall MusicDownloadManager::ProcessHttpRequest(\n        cocos2d::CCObject *a1,\n        const char *a2,\n        const char *a3,\n        const char *a4,\n        int a5)\n{\n  cocos2d::extension::CCHttpRequest *v9; // rbx\n  const char *v10; // rdx\n  const char *v11; // rax\n  const char *v12; // rdx\n  __int64 v13; // r8\n  const char *v14; // rdx\n  __int64 v15; // rdx\n  __int64 v16; // rcx\n  cocos2d::extension::CCHttpClient *Instance; // rax\n\n  v9 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u);\n  cocos2d::extension::CCHttpRequest::CCHttpRequest(v9);\n  *(_QWORD *)v9 = &cocos2d::extension::CCHttpRequest::`vftable';\n  v10 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v10 = *(const char **)a2;\n  cocos2d::extension::CCHttpRequest::setUrl(v9, v10);\n  *((_DWORD *)v9 + 14) = 1;\n  *((_QWORD *)v9 + 19) = a1;\n  *((_QWORD *)v9 + 20) = MusicDownloadManager::onProcessHttpRequestCompleted;\n  if ( a1 )\n    cocos2d::CCObject::retain(a1);\n  v11 = a3;\n  if ( *((_QWORD *)a3 + 3) <= 0xFu )\n  {\n    v12 = a3;\n  }\n  else\n  {\n    v11 = *(const char **)a3;\n    v12 = *(const char **)a3;\n  }\n  v13 = -1;\n  do\n    ++v13;\n  while ( v11[v13] );\n  cocos2d::extension::CCHttpRequest::setRequestData(v9, v12, v13);\n  v14 = a4;\n  if ( *((_QWORD *)a4 + 3) > 0xFu )\n    v14 = *(const char **)a4;\n  cocos2d::extension::CCHttpRequest::setTag(v9, v14);\n  *((_DWORD *)v9 + 50) = a5;\n  Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v16, v15);\n  cocos2d::extension::CCHttpClient::send(Instance, v9);\n  cocos2d::CCObject::release(v9);\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n  sub_14003D310((__int64)a4);\n}", "assembly": "; \n; MusicDownloadManager::ProcessHttpRequest from 0x140481eb0 to 0x140481fea (314 bytes)\n; \n; 4 xrefs:\n; > MusicDownloadManager::getSongInfo @ 0x140482bec\n; > MusicDownloadManager::getCustomContentURL @ 0x14048b89a\n; > MusicDownloadManager::getAudioFilesize @ 0x14048c17b\n; > <???> @ 0x140928964\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; \npush    rbx                                                            ; +0x0, 0x140481eb0\npush    rbp                                                            ; +0x2, 0x140481eb2\npush    rsi                                                            ; +0x3, 0x140481eb3\npush    rdi                                                            ; +0x4, 0x140481eb4\npush    r14                                                            ; +0x5, 0x140481eb5\nsub     rsp, 50h                                                       ; +0x7, 0x140481eb7\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x140481ebb\nxor     rax, rsp                                                       ; +0x12, 0x140481ec2\nmov     [rsp+78h+var_38], rax                                          ; +0x15, 0x140481ec5\nmov     rsi, r9                                                        ; +0x1a, 0x140481eca\nmov     rdi, r8                                                        ; +0x1d, 0x140481ecd\nmov     r14, rdx                                                       ; +0x20, 0x140481ed0\nmov     rbp, rcx                                                       ; +0x23, 0x140481ed3\nmov     [rsp+78h+var_50], rdx                                          ; +0x26, 0x140481ed6\nmov     [rsp+78h+var_48], r8                                           ; +0x2b, 0x140481edb\nmov     [rsp+78h+var_40], r9                                           ; +0x30, 0x140481ee0\nmov     ecx, 0E0h; Size                                                ; +0x35, 0x140481ee5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x140481eea\nmov     rbx, rax                                                       ; +0x3f, 0x140481eef\nmov     [rsp+78h+var_58], rax                                          ; +0x42, 0x140481ef2\nmov     rcx, rax                                                       ; +0x47, 0x140481ef7\ncall    cs:??0CCHttpRequest@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCHttpRequest::CCHttpRequest(void) ; +0x4a, 0x140481efa\nlea     rax, ??_7CCHttpRequest@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpRequest::`vftable' ; +0x50, 0x140481f00\nmov     [rbx], rax                                                     ; +0x57, 0x140481f07\nmov     rdx, r14                                                       ; +0x5a, 0x140481f0a\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x5d, 0x140481f0d\njbe     short loc_140481F17                                            ; +0x62, 0x140481f12\nmov     rdx, [r14]                                                     ; +0x64, 0x140481f14\nmov     rcx, rbx                                                       ; +0x67, 0x140481f17\ncall    cs:?setUrl@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setUrl(char const *) ; +0x6a, 0x140481f1a\nmov     dword ptr [rbx+38h], 1                                         ; +0x70, 0x140481f20\nmov     [rbx+98h], rbp                                                 ; +0x77, 0x140481f27\nlea     rax, MusicDownloadManager__onProcessHttpRequestCompleted       ; +0x7e, 0x140481f2e\nmov     [rbx+0A0h], rax                                                ; +0x85, 0x140481f35\ntest    rbp, rbp                                                       ; +0x8c, 0x140481f3c\njz      short loc_140481F4A                                            ; +0x8f, 0x140481f3f\nmov     rcx, rbp                                                       ; +0x91, 0x140481f41\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x94, 0x140481f44\nmov     rax, rdi                                                       ; +0x9a, 0x140481f4a\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x9d, 0x140481f4d\njbe     short loc_140481F5C                                            ; +0xa2, 0x140481f52\nmov     rax, [rdi]                                                     ; +0xa4, 0x140481f54\nmov     rdx, rax                                                       ; +0xa7, 0x140481f57\njmp     short loc_140481F5F                                            ; +0xaa, 0x140481f5a\nmov     rdx, rdi                                                       ; +0xac, 0x140481f5c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xaf, 0x140481f5f\ninc     r8                                                             ; +0xb6, 0x140481f66\ncmp     byte ptr [rax+r8], 0                                           ; +0xb9, 0x140481f69\njnz     short loc_140481F66                                            ; +0xbe, 0x140481f6e\nmov     rcx, rbx                                                       ; +0xc0, 0x140481f70\ncall    cs:?setRequestData@CCHttpRequest@extension@cocos2d@@QEAAXPEBDI@Z; cocos2d::extension::CCHttpRequest::setRequestData(char const *,uint) ; +0xc3, 0x140481f73\nmov     rdx, rsi                                                       ; +0xc9, 0x140481f79\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0xcc, 0x140481f7c\njbe     short loc_140481F86                                            ; +0xd1, 0x140481f81\nmov     rdx, [rsi]                                                     ; +0xd3, 0x140481f83\nmov     rcx, rbx                                                       ; +0xd6, 0x140481f86\ncall    cs:?setTag@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setTag(char const *) ; +0xd9, 0x140481f89\nmov     eax, [rsp+78h+arg_20]                                          ; +0xdf, 0x140481f8f\nmov     [rbx+0C8h], eax                                                ; +0xe6, 0x140481f96\ncall    cs:?getInstance@CCHttpClient@extension@cocos2d@@SAPEAV123@XZ; cocos2d::extension::CCHttpClient::getInstance(void) ; +0xec, 0x140481f9c\nmov     rcx, rax                                                       ; +0xf2, 0x140481fa2\nmov     rdx, rbx                                                       ; +0xf5, 0x140481fa5\ncall    cs:?send@CCHttpClient@extension@cocos2d@@QEAAXPEAVCCHttpRequest@23@@Z; cocos2d::extension::CCHttpClient::send(cocos2d::extension::CCHttpRequest *) ; +0xf8, 0x140481fa8\nmov     rcx, rbx                                                       ; +0xfe, 0x140481fae\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x101, 0x140481fb1\nnop                                                                    ; +0x107, 0x140481fb7\nmov     rcx, r14                                                       ; +0x108, 0x140481fb8\ncall    sub_14003D310                                                  ; +0x10b, 0x140481fbb\nnop                                                                    ; +0x110, 0x140481fc0\nmov     rcx, rdi                                                       ; +0x111, 0x140481fc1\ncall    sub_14003D310                                                  ; +0x114, 0x140481fc4\nnop                                                                    ; +0x119, 0x140481fc9\nmov     rcx, rsi                                                       ; +0x11a, 0x140481fca\ncall    sub_14003D310                                                  ; +0x11d, 0x140481fcd\nmov     rcx, [rsp+78h+var_38]                                          ; +0x122, 0x140481fd2\nxor     rcx, rsp; StackCookie                                          ; +0x127, 0x140481fd7\ncall    __security_check_cookie                                        ; +0x12a, 0x140481fda\nadd     rsp, 50h                                                       ; +0x12f, 0x140481fdf\npop     r14                                                            ; +0x133, 0x140481fe3\npop     rdi                                                            ; +0x135, 0x140481fe5\npop     rsi                                                            ; +0x136, 0x140481fe6\npop     rbp                                                            ; +0x137, 0x140481fe7\npop     rbx                                                            ; +0x138, 0x140481fe8\nretn                                                                   ; +0x139, 0x140481fe9", "xrefs": ["MusicDownloadManager::getSongInfo @ 0x140482bec", "MusicDownloadManager::getCustomContentURL @ 0x14048b89a", "MusicDownloadManager::getAudioFilesize @ 0x14048c17b", "<???> @ 0x140928964"], "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"}