// // MusicDownloadManager::createSongsInfo from 0x57819c to 0x578340 (420 bytes) // // 2 xrefs: // > GameLevelManager::onGetOnlineLevelsCompleted @ 0x4d167a // > GameLevelManager::processOnDownloadLevelCompleted @ 0x4d9d76 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:45 +0000 // cocos2d::CCDictionary *__fastcall MusicDownloadManager::createSongsInfo( cocos2d::CCDictionary *result, unsigned __int8 *a2, int a3) { char *v3; // r6 int v4; // r4 cocos2d::CCDictionary *v5; // r10 int v6; // r3 char v7; // r3 size_t v8; // r0 cocos2d::CCArray *v9; // r11 unsigned int i; // r9 cocos2d::CCString *v11; // r0 const char *CString; // r0 const char *v13; // r6 size_t v14; // r0 int v15; // r2 int v16; // r3 int v17; // r8 int v18; // r6 _DWORD *j; // r7 int v20; // r3 int v21; // r2 cocos2d::CCString *v22; // r0 char *v23; // r0 cocos2d::CCDictionary *ArtistsInfo; // [sp+4h] [bp-38h] char *v25; // [sp+8h] [bp-34h] int v26; // [sp+1Ch] [bp-20h] BYREF int v27; // [sp+20h] [bp-1Ch] int v28; // [sp+24h] [bp-18h] int v29; // [sp+28h] [bp-14h] BYREF int v30; // [sp+2Ch] [bp-10h] int v31; // [sp+30h] [bp-Ch] v3 = (char *)a2; v4 = *a2; v5 = result; if ( (v4 & 1) != 0 ) v6 = *((_DWORD *)a2 + 1); else v6 = v4 >> 1; if ( v6 ) { std::string::basic_string(&v29, a3); ArtistsInfo = (cocos2d::CCDictionary *)MusicDownloadManager::createArtistsInfo((int)v5, (unsigned __int8 *)&v29); std::string::~string((int)&v29); v7 = *v3; v26 = 0; v27 = 0; if ( (v7 & 1) == 0 ) ++v3; v28 = 0; if ( (v7 & 1) != 0 ) v3 = *((char **)v3 + 2); v8 = strlen(v3); std::string::__init(&v26, v3, v8); v29 = 0; v30 = 0; v31 = 0; std::string::__init(&v29, "~:~", 3u); v9 = sub_56F64C(&v26, (unsigned __int8 *)&v29); std::string::~string((int)&v29); std::string::~string((int)&v26); for ( i = 0; ; ++i ) { result = (cocos2d::CCDictionary *)cocos2d::CCArray::count(v9); if ( i >= (unsigned int)result ) break; v11 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v9, i); CString = (const char *)cocos2d::CCString::getCString(v11); v26 = 0; v27 = 0; v28 = 0; v13 = CString; v14 = strlen(CString); std::string::__init(&v26, v13, v14); std::string::basic_string(&v29, (int)&v26); v17 = MusicDownloadManager::addSongObjectFromString(v5, (int)&v29, v15, v16); std::string::~string((int)&v29); if ( v17 && ArtistsInfo && *(_DWORD *)(v17 + 380) ) { v29 = 0; v30 = 0; v31 = 0; for ( j = *(_DWORD **)(v17 + 376); j; j = (_DWORD *)*j ) { v25 = (char *)j[2]; v18 = cocos2d::CCDictionary::objectForKey(ArtistsInfo, (int)v25); if ( v18 ) { if ( (v29 & 1) != 0 ) v20 = v30; else v20 = (int)(unsigned __int8)v29 >> 1; if ( v20 ) std::string::append(&v29, ","); if ( (*(_BYTE *)(v18 + 56) & 1) != 0 ) v21 = *(_DWORD *)(v18 + 64); else v21 = v18 + 57; v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i,%s", v25, v21); v23 = (char *)cocos2d::CCString::getCString(v22); std::string::append(&v29, v23); } } std::string::operator=((unsigned __int8 *)(v17 + 356), (unsigned __int8 *)&v29); std::string::~string((int)&v29); } std::string::~string((int)&v26); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source