//
// MusicDownloadManager::ProcessHttpGetRequest from 0x10064a210 to 0x10064a35e (334 bytes)
//
// 9 xrefs:
// > MusicDownloadManager::downloadCustomSong @ 0x10064f329
// > MusicDownloadManager::tryUpdateNewsFeed @ 0x100659009
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x100659fa1
// > MusicDownloadManager::downloadMusicLibrary @ 0x10065a2db
// > MusicDownloadManager::downloadSFX @ 0x10065ede0
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x10065f35b
// > MusicDownloadManager::downloadSFXLibrary @ 0x10065f684
// > MusicDownloadManager::downloadNewsFeed @ 0x10066141c
// > MusicDownloadManager::downloadNewsImage @ 0x100663a00
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:34:46 +0000
//
char *__fastcall MusicDownloadManager::ProcessHttpGetRequest(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
int a6,
int a7)
{
char *v9; // rbx
const std::string::value_type *v10; // r12
const std::string::value_type *v11; // r14
__int64 Instance; // rax
v9 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v9);
*(_QWORD *)v9 = off_100B6FB70;
*(_OWORD *)(v9 + 168) = 0;
*((_QWORD *)v9 + 23) = 0;
*((_OWORD *)v9 + 4) = 0;
*((_OWORD *)v9 + 5) = 0;
*((_OWORD *)v9 + 6) = 0;
*((_OWORD *)v9 + 7) = 0;
*((_QWORD *)v9 + 16) = 0;
*((_DWORD *)v9 + 14) = 5;
*((_DWORD *)v9 + 48) = 0;
v9[196] = 0;
*((_DWORD *)v9 + 50) = 0;
*(_OWORD *)(v9 + 136) = 0;
*(_OWORD *)(v9 + 152) = 0;
*((_DWORD *)v9 + 52) = a6;
*((_DWORD *)v9 + 51) = a7;
if ( (*(_BYTE *)a2 & 1) != 0 )
v10 = *(const std::string::value_type **)(a2 + 16);
else
v10 = (const std::string::value_type *)(a2 + 1);
std::string::assign((std::string *)(v9 + 64), v10);
*((_DWORD *)v9 + 14) = 0;
*((_QWORD *)v9 + 17) = a1;
*((_QWORD *)v9 + 18) = a4;
*((_QWORD *)v9 + 19) = a5;
if ( a1 )
cocos2d::CCObject::retain(a1);
if ( (*(_BYTE *)a3 & 1) != 0 )
v11 = *(const std::string::value_type **)(a3 + 16);
else
v11 = (const std::string::value_type *)(a3 + 1);
std::string::assign((std::string *)(v9 + 112), v11);
Instance = cocos2d::extension::CCHttpClient::getInstance();
cocos2d::extension::CCHttpClient::send(Instance, (__int64)v9);
cocos2d::CCObject::release(v9);
return v9;
}