// // MusicDownloadManager::getSongInfo from 0x1001542e8 to 0x1001544e0 (504 bytes) // // 3 xrefs: // > CustomSongWidget::onDownload @ 0x1000faa7c // > CustomSongWidget::onGetSongInfo @ 0x1000fac28 // > CustomSongWidget::processNextMultiAsset @ 0x1000fe600 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall MusicDownloadManager::getSongInfo(MusicDownloadManager *a1, int a2, bool a3) { _BOOL4 v3; // w22 SongInfoObject *SongInfoObject; // x0 SongInfoObject *v7; // x21 std::string::size_type size; // x22 cocos2d::CCString *v9; // x0 const char *CString; // x21 cocos2d::CCNode *v11; // x0 cocos2d::CCString *v12; // x0 const char *v13; // x0 cocos2d::CCString *v14; // x0 const char *v15; // x0 std::string *p_dst; // x1 cocos2d::CCString *v17; // x0 char *v18; // x0 void *__p[2]; // [xsp+38h] [xbp-88h] BYREF char v20; // [xsp+4Fh] [xbp-71h] void *v21[2]; // [xsp+50h] [xbp-70h] BYREF char v22; // [xsp+67h] [xbp-59h] void *v23[2]; // [xsp+68h] [xbp-58h] BYREF char v24; // [xsp+7Fh] [xbp-41h] std::string __dst; // [xsp+80h] [xbp-40h] BYREF v3 = a3; SongInfoObject = MusicDownloadManager::getSongInfoObject(a1, a2); if ( SongInfoObject ) { v7 = SongInfoObject; if ( !v3 || SongInfoObject->m_verified ) { if ( SongInfoObject->m_songUrl.m_data.m_short.shortStorage.__elems_[22] < 0 ) sub_1000097D0( &__dst, (void *)SongInfoObject->m_songUrl.m_data.m_long.capacitym1, SongInfoObject->m_songUrl.m_data.m_long.size); else __dst = (std::string)SongInfoObject->m_songUrl; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = SHIBYTE(__dst.__r_.__value_.__r.__words[2]); else size = __dst.__r_.__value_.__l.__size_; if ( (SHIBYTE(__dst.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 ) { operator delete(__dst.__r_.__value_.__l.__data_); if ( size ) goto LABEL_12; } else if ( size ) { LABEL_12: MusicDownloadManager::loadSongInfoFinished(a1, v7); return; } } } v9 = (cocos2d::CCString *)sub_100268F4C("i_%i", a2); CString = cocos2d::CCString::getCString(v9); if ( !MusicDownloadManager::getDLObject(a1, CString) ) { v11 = cocos2d::CCNode::create(); MusicDownloadManager::addDLToActive(a1, CString, v11); GameLevelManager::sharedState(); GameLevelManager::getBasePostString(&__dst); v12 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); v13 = cocos2d::CCString::getCString(v12); v14 = (cocos2d::CCString *)sub_100268F4C("&songID=%i&secret=%s", a2, v13); v15 = cocos2d::CCString::getCString(v14); std::string::append(&__dst, v15); sub_100009900(v23, "https://www.boomlings.com/database/getGJSongInfo.php"); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_dst = &__dst; else p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0]; sub_100009900(v21, (char *)p_dst); v17 = (cocos2d::CCString *)sub_100268F4C("%i", a2); v18 = (char *)cocos2d::CCString::getCString(v17); sub_100009900(__p, v18); MusicDownloadManager::ProcessHttpRequest( a1, (const std::string::value_type *)v23, (char *)v21, (const std::string::value_type *)__p, 19); if ( v20 < 0 ) operator delete(__p[0]); if ( v22 < 0 ) operator delete(v21[0]); if ( v24 < 0 ) operator delete(v23[0]); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source