{"type": "func", "start": 5372104080, "end": 5372104394, "name": "MusicDownloadManager::ProcessHttpRequest", "pseudocode": "// \n// MusicDownloadManager::ProcessHttpRequest from 0x14033cd90 to 0x14033ceca (314 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::getSongInfo @ 0x14033d873\n// > MusicDownloadManager::getCustomContentURL @ 0x140340158\n// > <???> @ 0x1406d5570\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=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  __int64 v17; // r8\n  __int64 v18; // r9\n  cocos2d::extension::CCHttpClient *Instance; // rax\n\n  v9 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u);\n  cocos2d::extension::CCHttpRequest::CCHttpRequest(v9);\n  v9->__vftable = (cocos2d::extension::CCHttpRequest_vtbl *)&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  v9->_requestType = kHttpPost;\n  v9->_pTarget = a1;\n  v9->_pSelector.ptr = (void (__cdecl *)(cocos2d::extension::CCHttpClient *, cocos2d::extension::CCHttpResponse *))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  LODWORD(v9->_headers._Mypair._Myval2._Myend) = a5;\n  Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v16, v15, v17, v18);\n  cocos2d::extension::CCHttpClient::send(Instance, v9);\n  cocos2d::CCObject::release(v9);\n  sub_14003A830((__int64)a2);\n  sub_14003A830((__int64)a3);\n  sub_14003A830((__int64)a4);\n}", "assembly": "; \n; MusicDownloadManager::ProcessHttpRequest from 0x14033cd90 to 0x14033ceca (314 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::getSongInfo @ 0x14033d873\n; > MusicDownloadManager::getCustomContentURL @ 0x140340158\n; > <???> @ 0x1406d5570\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\npush    rbx                                                            ; +0x0, 0x14033cd90\npush    rbp                                                            ; +0x2, 0x14033cd92\npush    rsi                                                            ; +0x3, 0x14033cd93\npush    rdi                                                            ; +0x4, 0x14033cd94\npush    r14                                                            ; +0x5, 0x14033cd95\nsub     rsp, 50h                                                       ; +0x7, 0x14033cd97\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x14033cd9b\nxor     rax, rsp                                                       ; +0x12, 0x14033cda2\nmov     [rsp+78h+var_38], rax                                          ; +0x15, 0x14033cda5\nmov     rsi, r9                                                        ; +0x1a, 0x14033cdaa\nmov     rdi, r8                                                        ; +0x1d, 0x14033cdad\nmov     r14, rdx                                                       ; +0x20, 0x14033cdb0\nmov     rbp, rcx                                                       ; +0x23, 0x14033cdb3\nmov     [rsp+78h+var_50], rdx                                          ; +0x26, 0x14033cdb6\nmov     [rsp+78h+var_48], r8                                           ; +0x2b, 0x14033cdbb\nmov     [rsp+78h+var_40], r9                                           ; +0x30, 0x14033cdc0\nmov     ecx, 0E0h; Size                                                ; +0x35, 0x14033cdc5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x14033cdca\nmov     rbx, rax                                                       ; +0x3f, 0x14033cdcf\nmov     [rsp+78h+var_58], rax                                          ; +0x42, 0x14033cdd2\nmov     rcx, rax                                                       ; +0x47, 0x14033cdd7\ncall    cs:??0CCHttpRequest@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCHttpRequest::CCHttpRequest(void) ; +0x4a, 0x14033cdda\nlea     rax, ??_7CCHttpRequest@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpRequest::`vftable' ; +0x50, 0x14033cde0\nmov     [rbx], rax                                                     ; +0x57, 0x14033cde7\nmov     rdx, r14                                                       ; +0x5a, 0x14033cdea\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x5d, 0x14033cded\njbe     short loc_14033CDF7                                            ; +0x62, 0x14033cdf2\nmov     rdx, [r14]                                                     ; +0x64, 0x14033cdf4\nmov     rcx, rbx                                                       ; +0x67, 0x14033cdf7\ncall    cs:?setUrl@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setUrl(char const *) ; +0x6a, 0x14033cdfa\nmov     dword ptr [rbx+38h], 1                                         ; +0x70, 0x14033ce00\nmov     [rbx+98h], rbp                                                 ; +0x77, 0x14033ce07\nlea     rax, MusicDownloadManager__onProcessHttpRequestCompleted       ; +0x7e, 0x14033ce0e\nmov     [rbx+0A0h], rax                                                ; +0x85, 0x14033ce15\ntest    rbp, rbp                                                       ; +0x8c, 0x14033ce1c\njz      short loc_14033CE2A                                            ; +0x8f, 0x14033ce1f\nmov     rcx, rbp                                                       ; +0x91, 0x14033ce21\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x94, 0x14033ce24\nmov     rax, rdi                                                       ; +0x9a, 0x14033ce2a\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x9d, 0x14033ce2d\njbe     short loc_14033CE3C                                            ; +0xa2, 0x14033ce32\nmov     rax, [rdi]                                                     ; +0xa4, 0x14033ce34\nmov     rdx, rax                                                       ; +0xa7, 0x14033ce37\njmp     short loc_14033CE3F                                            ; +0xaa, 0x14033ce3a\nmov     rdx, rdi                                                       ; +0xac, 0x14033ce3c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xaf, 0x14033ce3f\ninc     r8                                                             ; +0xb6, 0x14033ce46\ncmp     byte ptr [rax+r8], 0                                           ; +0xb9, 0x14033ce49\njnz     short loc_14033CE46                                            ; +0xbe, 0x14033ce4e\nmov     rcx, rbx                                                       ; +0xc0, 0x14033ce50\ncall    cs:?setRequestData@CCHttpRequest@extension@cocos2d@@QEAAXPEBDI@Z; cocos2d::extension::CCHttpRequest::setRequestData(char const *,uint) ; +0xc3, 0x14033ce53\nmov     rdx, rsi                                                       ; +0xc9, 0x14033ce59\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0xcc, 0x14033ce5c\njbe     short loc_14033CE66                                            ; +0xd1, 0x14033ce61\nmov     rdx, [rsi]                                                     ; +0xd3, 0x14033ce63\nmov     rcx, rbx                                                       ; +0xd6, 0x14033ce66\ncall    cs:?setTag@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setTag(char const *) ; +0xd9, 0x14033ce69\nmov     eax, [rsp+78h+arg_20]                                          ; +0xdf, 0x14033ce6f\nmov     [rbx+0C8h], eax                                                ; +0xe6, 0x14033ce76\ncall    cs:?getInstance@CCHttpClient@extension@cocos2d@@SAPEAV123@XZ; cocos2d::extension::CCHttpClient::getInstance(void) ; +0xec, 0x14033ce7c\nmov     rcx, rax                                                       ; +0xf2, 0x14033ce82\nmov     rdx, rbx                                                       ; +0xf5, 0x14033ce85\ncall    cs:?send@CCHttpClient@extension@cocos2d@@QEAAXPEAVCCHttpRequest@23@@Z; cocos2d::extension::CCHttpClient::send(cocos2d::extension::CCHttpRequest *) ; +0xf8, 0x14033ce88\nmov     rcx, rbx                                                       ; +0xfe, 0x14033ce8e\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x101, 0x14033ce91\nnop                                                                    ; +0x107, 0x14033ce97\nmov     rcx, r14                                                       ; +0x108, 0x14033ce98\ncall    sub_14003A830                                                  ; +0x10b, 0x14033ce9b\nnop                                                                    ; +0x110, 0x14033cea0\nmov     rcx, rdi                                                       ; +0x111, 0x14033cea1\ncall    sub_14003A830                                                  ; +0x114, 0x14033cea4\nnop                                                                    ; +0x119, 0x14033cea9\nmov     rcx, rsi                                                       ; +0x11a, 0x14033ceaa\ncall    sub_14003A830                                                  ; +0x11d, 0x14033cead\nmov     rcx, [rsp+78h+var_38]                                          ; +0x122, 0x14033ceb2\nxor     rcx, rsp; StackCookie                                          ; +0x127, 0x14033ceb7\ncall    __security_check_cookie                                        ; +0x12a, 0x14033ceba\nadd     rsp, 50h                                                       ; +0x12f, 0x14033cebf\npop     r14                                                            ; +0x133, 0x14033cec3\npop     rdi                                                            ; +0x135, 0x14033cec5\npop     rsi                                                            ; +0x136, 0x14033cec6\npop     rbp                                                            ; +0x137, 0x14033cec7\npop     rbx                                                            ; +0x138, 0x14033cec8\nretn                                                                   ; +0x139, 0x14033cec9", "xrefs": ["MusicDownloadManager::getSongInfo @ 0x14033d873", "MusicDownloadManager::getCustomContentURL @ 0x140340158", "<???> @ 0x1406d5570"], "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"}