// // MusicDownloadManager::getSongInfo from 0x966214 to 0x966510 (764 bytes) // // 4 xrefs: // > CustomSongWidget::onGetSongInfo @ 0x868370 // > CustomSongWidget::processNextMultiAsset @ 0x86cfbc // > CustomSongWidget::onDownload @ 0x86d4e4 // > @ 0x7c468 // // This function is hookable on this platform (idp: arm, 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:57:35 +0000 // __int64 __fastcall MusicDownloadManager::getSongInfo(MusicDownloadManager *this, const char *a2, unsigned __int8 a3) { unsigned int v4; // w22 unsigned int v5; // w23 __int64 SongInfoObject; // x0 SongInfoObject *v7; // x20 const char *SongInfoKey; // x20 __int64 v10; // x1 _BOOL4 v11; // w23 GameLevelManager *v12; // x0 cocos2d::CCString *v13; // x0 __int64 CString; // x0 cocos2d::CCString *v15; // x0 size_t v16; // x0 const char *v17; // x1 size_t v18; // x0 cocos2d::CCString *v19; // x0 size_t v20; // x0 char *v21; // [xsp+48h] [xbp+48h] char *v22; // [xsp+48h] [xbp+48h] char *v23; // [xsp+48h] [xbp+48h] __int64 v24[2]; // [xsp+58h] [xbp+58h] BYREF void *v25; // [xsp+68h] [xbp+68h] __int64 v26[2]; // [xsp+70h] [xbp+70h] BYREF void *v27; // [xsp+80h] [xbp+80h] __int64 v28[2]; // [xsp+88h] [xbp+88h] BYREF void *v29; // [xsp+98h] [xbp+98h] __int64 v30; // [xsp+A0h] [xbp+A0h] BYREF __int64 v31; // [xsp+A8h] [xbp+A8h] void *v32; // [xsp+B0h] [xbp+B0h] v4 = (unsigned int)a2; v5 = a3; SongInfoObject = MusicDownloadManager::getSongInfoObject(this, a2); v7 = (SongInfoObject *)SongInfoObject; if ( !SongInfoObject || *(unsigned __int8 *)(SongInfoObject + 433) < v5 ) goto LABEL_3; v30 = 0; v31 = 0; v32 = nullptr; if ( (*(_BYTE *)(SongInfoObject + 368) & 1) != 0 ) { std::string::__init(&v30, *(void **)(SongInfoObject + 384), *(_QWORD *)(SongInfoObject + 376)); } else { v10 = *(_QWORD *)(SongInfoObject + 376); v30 = *(_QWORD *)(SongInfoObject + 368); v31 = v10; v32 = *(void **)(SongInfoObject + 384); } if ( (v30 & 1) != 0 ) { v11 = v31 != 0; operator delete(v32); } else { v11 = (int)(unsigned __int8)v30 >> 1 != 0; } if ( v11 ) { MusicDownloadManager::loadSongInfoFinished((cocos2d::CCArray **)this, v7); } else { LABEL_3: SongInfoKey = (const char *)MusicDownloadManager::getSongInfoKey(this, (const char *)v4); if ( !MusicDownloadManager::isDLActive(this, SongInfoKey) ) { v12 = (GameLevelManager *)MusicDownloadManager::addDLToActive(this, SongInfoKey); GameLevelManager::sharedState(v12); GameLevelManager::getBasePostString(v24); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); CString = cocos2d::CCString::getCString(v13); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&songID=%i&secret=%s", (const char *)v4, CString); v21 = (char *)cocos2d::CCString::getCString(v15); v16 = strlen(v21); std::string::append((__int64)v24, v21, v16); v26[0] = 0; v26[1] = 0; v27 = nullptr; std::string::__init(v26, "https://www.boomlings.com/database/getGJSongInfo.php", 0x34u); v17 = (char *)v24 + 1; if ( (v24[0] & 1) != 0 ) v17 = (const char *)v25; v22 = (char *)v17; v28[0] = 0; v28[1] = 0; v29 = nullptr; v18 = strlen(v17); std::string::__init(v28, v22, v18); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v4); v23 = (char *)cocos2d::CCString::getCString(v19); v30 = 0; v31 = 0; v32 = nullptr; v20 = strlen(v23); std::string::__init(&v30, v23, v20); MusicDownloadManager::ProcessHttpRequest(this, (__int64)v26, (__int64)v28, (__int64)&v30, 21); if ( (v30 & 1) != 0 ) operator delete(v32); if ( (v28[0] & 1) != 0 ) operator delete(v29); if ( (v26[0] & 1) != 0 ) operator delete(v27); if ( (v24[0] & 1) != 0 ) operator delete(v25); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source