{"type": "func", "start": 5373435888, "end": 5373436165, "name": "MusicDownloadManager::ProcessHttpGetRequest", "pseudocode": "// \n// MusicDownloadManager::ProcessHttpGetRequest from 0x140481ff0 to 0x140482105 (277 bytes)\n// \n// 10 xrefs:\n// > MusicDownloadManager::downloadCustomSong @ 0x14048c610\n// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x14048c87b\n// > MusicDownloadManager::downloadMusicLibrary @ 0x14048cc60\n// > MusicDownloadManager::downloadSFX @ 0x14048f201\n// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x14048f5e8\n// > MusicDownloadManager::downloadSFXLibrary @ 0x14048f9ce\n// > MusicDownloadManager::tryUpdateNewsFeed @ 0x14049193e\n// > MusicDownloadManager::downloadNewsFeed @ 0x140491caf\n// > MusicDownloadManager::downloadNewsImage @ 0x140493837\n// > <???> @ 0x140928970\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=3\ncocos2d::extension::CCHttpRequest *__fastcall MusicDownloadManager::ProcessHttpGetRequest(\n        cocos2d::CCObject *a1,\n        const char *a2,\n        const char *a3,\n        __int64 a4,\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  cocos2d::extension::CCHttpClient *Instance; // rax\n\n  v10 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u);\n  cocos2d::extension::CCHttpRequest::CCHttpRequest(v10);\n  *(_QWORD *)v10 = &cocos2d::extension::CCHttpRequest::`vftable';\n  *((_DWORD *)v10 + 54) = a5;\n  *((_DWORD *)v10 + 53) = a6;\n  v11 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v11 = *(const char **)a2;\n  cocos2d::extension::CCHttpRequest::setUrl(v10, v11);\n  *((_DWORD *)v10 + 14) = 0;\n  *((_QWORD *)v10 + 19) = a1;\n  *((_QWORD *)v10 + 20) = 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);\n  cocos2d::extension::CCHttpClient::send(Instance, v10);\n  cocos2d::CCObject::release(v10);\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n  return v10;\n}", "assembly": "; \n; MusicDownloadManager::ProcessHttpGetRequest from 0x140481ff0 to 0x140482105 (277 bytes)\n; \n; 10 xrefs:\n; > MusicDownloadManager::downloadCustomSong @ 0x14048c610\n; > MusicDownloadManager::tryUpdateMusicLibrary @ 0x14048c87b\n; > MusicDownloadManager::downloadMusicLibrary @ 0x14048cc60\n; > MusicDownloadManager::downloadSFX @ 0x14048f201\n; > MusicDownloadManager::tryUpdateSFXLibrary @ 0x14048f5e8\n; > MusicDownloadManager::downloadSFXLibrary @ 0x14048f9ce\n; > MusicDownloadManager::tryUpdateNewsFeed @ 0x14049193e\n; > MusicDownloadManager::downloadNewsFeed @ 0x140491caf\n; > MusicDownloadManager::downloadNewsImage @ 0x140493837\n; > <???> @ 0x140928970\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, 0x140481ff0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x140481ff5\npush    rsi                                                            ; +0xa, 0x140481ffa\npush    rdi                                                            ; +0xb, 0x140481ffb\npush    r14                                                            ; +0xc, 0x140481ffc\nsub     rsp, 40h                                                       ; +0xe, 0x140481ffe\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140482002\nxor     rax, rsp                                                       ; +0x19, 0x140482009\nmov     [rsp+58h+var_20], rax                                          ; +0x1c, 0x14048200c\nmov     rbp, r9                                                        ; +0x21, 0x140482011\nmov     rdi, r8                                                        ; +0x24, 0x140482014\nmov     r14, rdx                                                       ; +0x27, 0x140482017\nmov     rsi, rcx                                                       ; +0x2a, 0x14048201a\nmov     [rsp+58h+var_30], rdx                                          ; +0x2d, 0x14048201d\nmov     [rsp+58h+var_28], r8                                           ; +0x32, 0x140482022\nmov     ecx, 0E0h; Size                                                ; +0x37, 0x140482027\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x14048202c\nmov     rbx, rax                                                       ; +0x41, 0x140482031\nmov     [rsp+58h+var_38], rax                                          ; +0x44, 0x140482034\nmov     rcx, rax                                                       ; +0x49, 0x140482039\ncall    cs:??0CCHttpRequest@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCHttpRequest::CCHttpRequest(void) ; +0x4c, 0x14048203c\nlea     rax, ??_7CCHttpRequest@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpRequest::`vftable' ; +0x52, 0x140482042\nmov     [rbx], rax                                                     ; +0x59, 0x140482049\nmov     ecx, [rsp+58h+arg_20]                                          ; +0x5c, 0x14048204c\nmov     [rbx+0D8h], ecx                                                ; +0x63, 0x140482053\nmov     ecx, [rsp+58h+arg_28]                                          ; +0x69, 0x140482059\nmov     [rbx+0D4h], ecx                                                ; +0x70, 0x140482060\nmov     rdx, r14                                                       ; +0x76, 0x140482066\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x79, 0x140482069\njbe     short loc_140482073                                            ; +0x7e, 0x14048206e\nmov     rdx, [r14]                                                     ; +0x80, 0x140482070\nmov     rcx, rbx                                                       ; +0x83, 0x140482073\ncall    cs:?setUrl@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setUrl(char const *) ; +0x86, 0x140482076\nmov     dword ptr [rbx+38h], 0                                         ; +0x8c, 0x14048207c\nmov     [rbx+98h], rsi                                                 ; +0x93, 0x140482083\nmov     [rbx+0A0h], rbp                                                ; +0x9a, 0x14048208a\ntest    rsi, rsi                                                       ; +0xa1, 0x140482091\njz      short loc_14048209F                                            ; +0xa4, 0x140482094\nmov     rcx, rsi                                                       ; +0xa6, 0x140482096\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xa9, 0x140482099\nmov     rdx, rdi                                                       ; +0xaf, 0x14048209f\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xb2, 0x1404820a2\njbe     short loc_1404820AC                                            ; +0xb7, 0x1404820a7\nmov     rdx, [rdi]                                                     ; +0xb9, 0x1404820a9\nmov     rcx, rbx                                                       ; +0xbc, 0x1404820ac\ncall    cs:?setTag@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setTag(char const *) ; +0xbf, 0x1404820af\ncall    cs:?getInstance@CCHttpClient@extension@cocos2d@@SAPEAV123@XZ; cocos2d::extension::CCHttpClient::getInstance(void) ; +0xc5, 0x1404820b5\nmov     rcx, rax                                                       ; +0xcb, 0x1404820bb\nmov     rdx, rbx                                                       ; +0xce, 0x1404820be\ncall    cs:?send@CCHttpClient@extension@cocos2d@@QEAAXPEAVCCHttpRequest@23@@Z; cocos2d::extension::CCHttpClient::send(cocos2d::extension::CCHttpRequest *) ; +0xd1, 0x1404820c1\nmov     rcx, rbx                                                       ; +0xd7, 0x1404820c7\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xda, 0x1404820ca\nnop                                                                    ; +0xe0, 0x1404820d0\nmov     rcx, r14                                                       ; +0xe1, 0x1404820d1\ncall    sub_14003D310                                                  ; +0xe4, 0x1404820d4\nnop                                                                    ; +0xe9, 0x1404820d9\nmov     rcx, rdi                                                       ; +0xea, 0x1404820da\ncall    sub_14003D310                                                  ; +0xed, 0x1404820dd\nmov     rax, rbx                                                       ; +0xf2, 0x1404820e2\nmov     rcx, [rsp+58h+var_20]                                          ; +0xf5, 0x1404820e5\nxor     rcx, rsp; StackCookie                                          ; +0xfa, 0x1404820ea\ncall    __security_check_cookie                                        ; +0xfd, 0x1404820ed\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x102, 0x1404820f2\nmov     rbp, [rsp+58h+arg_18]                                          ; +0x107, 0x1404820f7\nadd     rsp, 40h                                                       ; +0x10c, 0x1404820fc\npop     r14                                                            ; +0x110, 0x140482100\npop     rdi                                                            ; +0x112, 0x140482102\npop     rsi                                                            ; +0x113, 0x140482103\nretn                                                                   ; +0x114, 0x140482104", "xrefs": ["MusicDownloadManager::downloadCustomSong @ 0x14048c610", "MusicDownloadManager::tryUpdateMusicLibrary @ 0x14048c87b", "MusicDownloadManager::downloadMusicLibrary @ 0x14048cc60", "MusicDownloadManager::downloadSFX @ 0x14048f201", "MusicDownloadManager::tryUpdateSFXLibrary @ 0x14048f5e8", "MusicDownloadManager::downloadSFXLibrary @ 0x14048f9ce", "MusicDownloadManager::tryUpdateNewsFeed @ 0x14049193e", "MusicDownloadManager::downloadNewsFeed @ 0x140491caf", "MusicDownloadManager::downloadNewsImage @ 0x140493837", "<???> @ 0x140928970"], "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"}