{"type": "func", "start": 5372104400, "end": 5372104677, "name": "MusicDownloadManager::ProcessHttpGetRequest", "pseudocode": "// \n// MusicDownloadManager::ProcessHttpGetRequest from 0x14033ced0 to 0x14033cfe5 (277 bytes)\n// \n// 7 xrefs:\n// > MusicDownloadManager::downloadCustomSong @ 0x1403404f0\n// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x14034073e\n// > MusicDownloadManager::downloadMusicLibrary @ 0x140340b03\n// > MusicDownloadManager::downloadSFX @ 0x140342411\n// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x1403427cb\n// > MusicDownloadManager::downloadSFXLibrary @ 0x140342b81\n// > <???> @ 0x1406d557c\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\n// Hidden C++ exception states: #wind=3\ncocos2d::extension::CCHttpRequest *__fastcall MusicDownloadManager::ProcessHttpGetRequest(\n        cocos2d::CCObject *a1,\n        const char *a2,\n        const char *a3,\n        void (__cdecl *a4)(cocos2d::extension::CCHttpClient *, cocos2d::extension::CCHttpResponse *),\n        int a5,\n        int a6)\n{\n  cocos2d::extension::CCHttpRequest *v10; // rbx\n  const char *v11; // rdx\n  const char *v12; // rdx\n  __int64 v13; // rdx\n  __int64 v14; // rcx\n  __int64 v15; // r8\n  __int64 v16; // r9\n  cocos2d::extension::CCHttpClient *Instance; // rax\n\n  v10 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u);\n  cocos2d::extension::CCHttpRequest::CCHttpRequest(v10);\n  v10->__vftable = (cocos2d::extension::CCHttpRequest_vtbl *)&cocos2d::extension::CCHttpRequest::`vftable';\n  v10->_downloadProgress = a5;\n  *(_DWORD *)&v10->_shouldCancel = a6;\n  v11 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v11 = *(const char **)a2;\n  cocos2d::extension::CCHttpRequest::setUrl(v10, v11);\n  v10->_requestType = kHttpGet;\n  v10->_pTarget = a1;\n  v10->_pSelector.ptr = a4;\n  if ( a1 )\n    cocos2d::CCObject::retain(a1);\n  v12 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v12 = *(const char **)a3;\n  cocos2d::extension::CCHttpRequest::setTag(v10, v12);\n  Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v14, v13, v15, v16);\n  cocos2d::extension::CCHttpClient::send(Instance, v10);\n  cocos2d::CCObject::release(v10);\n  sub_14003A830((__int64)a2);\n  sub_14003A830((__int64)a3);\n  return v10;\n}", "assembly": "; \n; MusicDownloadManager::ProcessHttpGetRequest from 0x14033ced0 to 0x14033cfe5 (277 bytes)\n; \n; 7 xrefs:\n; > MusicDownloadManager::downloadCustomSong @ 0x1403404f0\n; > MusicDownloadManager::tryUpdateMusicLibrary @ 0x14034073e\n; > MusicDownloadManager::downloadMusicLibrary @ 0x140340b03\n; > MusicDownloadManager::downloadSFX @ 0x140342411\n; > MusicDownloadManager::tryUpdateSFXLibrary @ 0x1403427cb\n; > MusicDownloadManager::downloadSFXLibrary @ 0x140342b81\n; > <???> @ 0x1406d557c\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, 0x14033ced0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14033ced5\npush    rsi                                                            ; +0xa, 0x14033ceda\npush    rdi                                                            ; +0xb, 0x14033cedb\npush    r14                                                            ; +0xc, 0x14033cedc\nsub     rsp, 40h                                                       ; +0xe, 0x14033cede\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x14033cee2\nxor     rax, rsp                                                       ; +0x19, 0x14033cee9\nmov     [rsp+58h+var_20], rax                                          ; +0x1c, 0x14033ceec\nmov     rbp, r9                                                        ; +0x21, 0x14033cef1\nmov     rdi, r8                                                        ; +0x24, 0x14033cef4\nmov     r14, rdx                                                       ; +0x27, 0x14033cef7\nmov     rsi, rcx                                                       ; +0x2a, 0x14033cefa\nmov     [rsp+58h+var_30], rdx                                          ; +0x2d, 0x14033cefd\nmov     [rsp+58h+var_28], r8                                           ; +0x32, 0x14033cf02\nmov     ecx, 0E0h; Size                                                ; +0x37, 0x14033cf07\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x14033cf0c\nmov     rbx, rax                                                       ; +0x41, 0x14033cf11\nmov     [rsp+58h+var_38], rax                                          ; +0x44, 0x14033cf14\nmov     rcx, rax                                                       ; +0x49, 0x14033cf19\ncall    cs:??0CCHttpRequest@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCHttpRequest::CCHttpRequest(void) ; +0x4c, 0x14033cf1c\nlea     rax, ??_7CCHttpRequest@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpRequest::`vftable' ; +0x52, 0x14033cf22\nmov     [rbx], rax                                                     ; +0x59, 0x14033cf29\nmov     ecx, [rsp+58h+arg_20]                                          ; +0x5c, 0x14033cf2c\nmov     [rbx+0D8h], ecx                                                ; +0x63, 0x14033cf33\nmov     ecx, [rsp+58h+arg_28]                                          ; +0x69, 0x14033cf39\nmov     [rbx+0D4h], ecx                                                ; +0x70, 0x14033cf40\nmov     rdx, r14                                                       ; +0x76, 0x14033cf46\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x79, 0x14033cf49\njbe     short loc_14033CF53                                            ; +0x7e, 0x14033cf4e\nmov     rdx, [r14]                                                     ; +0x80, 0x14033cf50\nmov     rcx, rbx                                                       ; +0x83, 0x14033cf53\ncall    cs:?setUrl@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setUrl(char const *) ; +0x86, 0x14033cf56\nmov     dword ptr [rbx+38h], 0                                         ; +0x8c, 0x14033cf5c\nmov     [rbx+98h], rsi                                                 ; +0x93, 0x14033cf63\nmov     [rbx+0A0h], rbp                                                ; +0x9a, 0x14033cf6a\ntest    rsi, rsi                                                       ; +0xa1, 0x14033cf71\njz      short loc_14033CF7F                                            ; +0xa4, 0x14033cf74\nmov     rcx, rsi                                                       ; +0xa6, 0x14033cf76\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xa9, 0x14033cf79\nmov     rdx, rdi                                                       ; +0xaf, 0x14033cf7f\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xb2, 0x14033cf82\njbe     short loc_14033CF8C                                            ; +0xb7, 0x14033cf87\nmov     rdx, [rdi]                                                     ; +0xb9, 0x14033cf89\nmov     rcx, rbx                                                       ; +0xbc, 0x14033cf8c\ncall    cs:?setTag@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setTag(char const *) ; +0xbf, 0x14033cf8f\ncall    cs:?getInstance@CCHttpClient@extension@cocos2d@@SAPEAV123@XZ; cocos2d::extension::CCHttpClient::getInstance(void) ; +0xc5, 0x14033cf95\nmov     rcx, rax                                                       ; +0xcb, 0x14033cf9b\nmov     rdx, rbx                                                       ; +0xce, 0x14033cf9e\ncall    cs:?send@CCHttpClient@extension@cocos2d@@QEAAXPEAVCCHttpRequest@23@@Z; cocos2d::extension::CCHttpClient::send(cocos2d::extension::CCHttpRequest *) ; +0xd1, 0x14033cfa1\nmov     rcx, rbx                                                       ; +0xd7, 0x14033cfa7\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xda, 0x14033cfaa\nnop                                                                    ; +0xe0, 0x14033cfb0\nmov     rcx, r14                                                       ; +0xe1, 0x14033cfb1\ncall    sub_14003A830                                                  ; +0xe4, 0x14033cfb4\nnop                                                                    ; +0xe9, 0x14033cfb9\nmov     rcx, rdi                                                       ; +0xea, 0x14033cfba\ncall    sub_14003A830                                                  ; +0xed, 0x14033cfbd\nmov     rax, rbx                                                       ; +0xf2, 0x14033cfc2\nmov     rcx, [rsp+58h+var_20]                                          ; +0xf5, 0x14033cfc5\nxor     rcx, rsp; StackCookie                                          ; +0xfa, 0x14033cfca\ncall    __security_check_cookie                                        ; +0xfd, 0x14033cfcd\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x102, 0x14033cfd2\nmov     rbp, [rsp+58h+arg_18]                                          ; +0x107, 0x14033cfd7\nadd     rsp, 40h                                                       ; +0x10c, 0x14033cfdc\npop     r14                                                            ; +0x110, 0x14033cfe0\npop     rdi                                                            ; +0x112, 0x14033cfe2\npop     rsi                                                            ; +0x113, 0x14033cfe3\nretn                                                                   ; +0x114, 0x14033cfe4", "xrefs": ["MusicDownloadManager::downloadCustomSong @ 0x1403404f0", "MusicDownloadManager::tryUpdateMusicLibrary @ 0x14034073e", "MusicDownloadManager::downloadMusicLibrary @ 0x140340b03", "MusicDownloadManager::downloadSFX @ 0x140342411", "MusicDownloadManager::tryUpdateSFXLibrary @ 0x1403427cb", "MusicDownloadManager::downloadSFXLibrary @ 0x140342b81", "<???> @ 0x1406d557c"], "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"}