// // CustomSongWidget::onMore from 0x7429d8 to 0x74359c (3012 bytes) // // 3 xrefs: // > @ 0x76bc0 // > CustomSongWidget::init @ 0x745ca4 // > @ 0x122bf58 // // 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 CustomSongWidget::onMore(CustomSongWidget *a1, cocos2d::CCObject *a2) { SongInfoObject *m_songInfoObject; // x19 MusicDownloadManager *v3; // x0 SongInfoObject *SongInfoObject; // x20 void *v5; // x0 void *v6; // x0 __int64 v7; // x27 void *v8; // x0 unsigned __int64 v9; // x27 double v10; // d0 cocos2d::CCString *v11; // x0 size_t v12; // x0 char *v13; // x1 char *v14; // x0 double v15; // d0 cocos2d::CCString *v16; // x0 size_t v17; // x0 char *v18; // x0 char *v19; // x1 unsigned int m_songID; // w28 __int64 v21; // x20 void *v22; // x0 void *v23; // x0 void *v24; // x0 void *v25; // x0 void *v26; // x0 void *v27; // x0 void *v28; // x0 void *v29; // x0 char *v30; // x0 void *v31; // x0 void *v32; // x0 SongInfoLayer *v33; // x0 cocos2d::CCString *v34; // x0 size_t v35; // x0 MusicDownloadManager *v36; // x0 MusicArtistObject *MusicArtistForID; // x26 unsigned int *v38; // x1 int v39; // w2 unsigned int *v40; // x1 int v41; // w2 unsigned int *v42; // x1 int v43; // w2 unsigned int *v44; // x1 cocos2d::CCString *v45; // x0 size_t v46; // x0 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 unsigned int *v61; // x1 int v62; // w2 unsigned int *v63; // x1 int v64; // w2 unsigned int *v65; // x1 int v66; // w2 unsigned int *v67; // x1 int v68; // w2 unsigned int *v69; // x1 unsigned int *v70; // x1 int v71; // w2 unsigned int *v72; // x1 int v73; // w2 std::string v74; // [xsp+0h] [xbp-10h] const char *v75; // [xsp+78h] [xbp+68h] const char *v76; // [xsp+78h] [xbp+68h] const char *v77; // [xsp+78h] [xbp+68h] const char *CString; // [xsp+78h] [xbp+68h] __int64 v79; // [xsp+88h] [xbp+78h] BYREF __int64 v80; // [xsp+90h] [xbp+80h] BYREF char *v81; // [xsp+98h] [xbp+88h] BYREF __int64 v82; // [xsp+A0h] [xbp+90h] BYREF __int64 v83; // [xsp+A8h] [xbp+98h] BYREF char *v84; // [xsp+B0h] [xbp+A0h] BYREF char *v85; // [xsp+B8h] [xbp+A8h] BYREF __int64 v86; // [xsp+C0h] [xbp+B0h] BYREF char *v87; // [xsp+C8h] [xbp+B8h] BYREF char *v88; // [xsp+D0h] [xbp+C0h] BYREF __int64 v89; // [xsp+D8h] [xbp+C8h] BYREF __int64 v90; // [xsp+E0h] [xbp+D0h] BYREF __int64 v91; // [xsp+E8h] [xbp+D8h] BYREF __int64 v92; // [xsp+F0h] [xbp+E0h] BYREF __int64 v93; // [xsp+F8h] [xbp+E8h] BYREF __int64 v94; // [xsp+100h] [xbp+F0h] BYREF __int64 v95; // [xsp+108h] [xbp+F8h] BYREF __int64 v96; // [xsp+110h] [xbp+100h] BYREF m_songInfoObject = a1->m_songInfoObject; if ( !m_songInfoObject ) return; if ( a1->m_isRobtopSong ) { v33 = SongInfoLayer::create(m_songInfoObject->m_songID); v33->show(v33); return; } v3 = MusicDownloadManager::sharedState(); SongInfoObject = MusicDownloadManager::getSongInfoObject(v3, m_songInfoObject->m_songID); if ( !SongInfoObject ) SongInfoObject = m_songInfoObject; sub_D153B8((int)&v79, &byte_F288A0); sub_D153B8((int)&v80, &byte_F288A0); sub_D18D28(&v82); if ( *(_QWORD *)(v82 - 24) <= 1u ) sub_D153B8((int)&v81, &byte_F288A0); else sub_D18D28(&v81); v5 = (void *)(v82 - 24); if ( (__int64 *)(v82 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(v82 - 8); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(v82 - 8); *(_DWORD *)(v82 - 8) = v50 - 1; } if ( v50 <= 0 ) operator delete(v5); } sub_D18D28(&v83); v6 = (void *)(v83 - 24); v7 = *(_QWORD *)(v83 - 24); if ( (__int64 *)(v83 - 24) == &qword_124B6B0 ) goto LABEL_9; if ( &pthread_create ) { v40 = (unsigned int *)(v83 - 8); do v41 = __ldaxr(v40); while ( __stlxr(v41 - 1, v40) ); } else { v41 = *(_DWORD *)(v83 - 8); *(_DWORD *)(v83 - 8) = v41 - 1; } if ( v41 > 0 ) { LABEL_9: if ( v7 ) goto LABEL_45; LABEL_10: if ( SongInfoObject->m_nongType == 1 ) { sub_D18D28(&v85); sub_D163D4(&v79, &v85); v13 = v85; v14 = v85 - 24; if ( v85 - 24 == (char *)&qword_124B6B0 ) goto LABEL_14; if ( &pthread_create ) { v44 = (unsigned int *)(v85 - 8); do v43 = __ldaxr(v44); while ( __stlxr(v43 - 1, v44) ); goto LABEL_114; } } else { sub_D18D28(&v86); v8 = (void *)(v86 - 24); v9 = *(_QWORD *)(v86 - 24); if ( (__int64 *)(v86 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)(v86 - 8); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *(_DWORD *)(v86 - 8); *(_DWORD *)(v86 - 8) = v71 - 1; } if ( v71 <= 0 ) operator delete(v8); } if ( v9 <= 1 ) { v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://www.newgrounds.com/audio/listen/%i", (const char *)(unsigned int)SongInfoObject->m_songID); CString = cocos2d::CCString::getCString(v45); v46 = strlen(CString); sub_D1798C(&v79, CString, v46); goto LABEL_14; } *(_QWORD *)&v10 = sub_D18D28(&v87).n128_u64[0]; v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://www.youtube.com/watch?v=%s", v87, v10); v75 = cocos2d::CCString::getCString(v11); v12 = strlen(v75); sub_D1798C(&v79, v75, v12); v13 = v87; v14 = v87 - 24; if ( v87 - 24 == (char *)&qword_124B6B0 ) goto LABEL_14; if ( &pthread_create ) { v69 = (unsigned int *)(v87 - 8); do v43 = __ldaxr(v69); while ( __stlxr(v43 - 1, v69) ); goto LABEL_114; } } LABEL_139: v43 = *((_DWORD *)v13 - 2); *((_DWORD *)v13 - 2) = v43 - 1; goto LABEL_114; } operator delete(v6); if ( !v7 ) goto LABEL_10; LABEL_45: sub_D18D28(&v84); sub_D163D4(&v79, &v84); v13 = v84; v14 = v84 - 24; if ( v84 - 24 == (char *)&qword_124B6B0 ) goto LABEL_14; if ( !&pthread_create ) goto LABEL_139; v42 = (unsigned int *)(v84 - 8); do v43 = __ldaxr(v42); while ( __stlxr(v43 - 1, v42) ); LABEL_114: if ( v43 <= 0 ) operator delete(v14); LABEL_14: if ( SongInfoObject->m_songID <= 9999999 ) { *(_QWORD *)&v15 = sub_D18D28(&v88).n128_u64[0]; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://%s.newgrounds.com/audio", v88, v15); v76 = cocos2d::CCString::getCString(v16); v17 = strlen(v76); sub_D1798C(&v80, v76, v17); v18 = v88 - 24; if ( v88 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v72 = (unsigned int *)(v88 - 8); do v73 = __ldaxr(v72); while ( __stlxr(v73 - 1, v72) ); } else { v73 = *((_DWORD *)v88 - 2); *((_DWORD *)v88 - 2) = v73 - 1; } if ( v73 <= 0 ) operator delete(v18); } LABEL_16: v19 = v81; if ( !*((_QWORD *)v81 - 3) ) goto LABEL_17; goto LABEL_30; } v36 = MusicDownloadManager::sharedState(); MusicArtistForID = MusicDownloadManager::getMusicArtistForID(v36, SongInfoObject->m_artistID); if ( !MusicArtistForID ) goto LABEL_16; sub_D18EA8(&v80, &MusicArtistForID->m_artistURL); v19 = v81; if ( !*((_QWORD *)v81 - 3) ) { sub_D18EA8(&v81, &MusicArtistForID->m_artistYouTube); goto LABEL_16; } LABEL_30: v34 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://www.youtube.com/channel/%s", v19); v77 = cocos2d::CCString::getCString(v34); v35 = strlen(v77); sub_D1798C(&v81, v77, v35); LABEL_17: SongInfoObject::getArtistNames(&v89, SongInfoObject, 0); sub_D18D28(&v90); sub_D18D28(&v92); sub_D18D28(&v93); sub_D18D28(&v94); sub_D18D28(&v95); sub_D153B8((int)&v96, &byte_F288A0); m_songID = SongInfoObject->m_songID; SongInfoObject::getTagsString(&v91, SongInfoObject, 0); LODWORD(v74.m_data.m_data) = SongInfoObject->m_nongType; v21 = ((__int64 (__fastcall *)(SongInfoLayer *__hidden, std::string, std::string, std::string, std::string, std::string, std::string, int, std::string))SongInfoLayer::create)( (SongInfoLayer *)&v90, (std::string)&v92, (std::string)&v93, (std::string)&v94, (std::string)&v95, (std::string)&v96, (std::string)m_songID, (int)&v91, v74); v22 = (void *)(v91 - 24); if ( (__int64 *)(v91 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v67 = (unsigned int *)(v91 - 8); do v68 = __ldaxr(v67); while ( __stlxr(v68 - 1, v67) ); } else { v68 = *(_DWORD *)(v91 - 8); *(_DWORD *)(v91 - 8) = v68 - 1; } if ( v68 <= 0 ) operator delete(v22); } v23 = (void *)(v96 - 24); if ( (__int64 *)(v96 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v65 = (unsigned int *)(v96 - 8); do v66 = __ldaxr(v65); while ( __stlxr(v66 - 1, v65) ); } else { v66 = *(_DWORD *)(v96 - 8); *(_DWORD *)(v96 - 8) = v66 - 1; } if ( v66 <= 0 ) operator delete(v23); } v24 = (void *)(v95 - 24); if ( (__int64 *)(v95 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v63 = (unsigned int *)(v95 - 8); do v64 = __ldaxr(v63); while ( __stlxr(v64 - 1, v63) ); } else { v64 = *(_DWORD *)(v95 - 8); *(_DWORD *)(v95 - 8) = v64 - 1; } if ( v64 <= 0 ) operator delete(v24); } v25 = (void *)(v94 - 24); if ( (__int64 *)(v94 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v61 = (unsigned int *)(v94 - 8); do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = *(_DWORD *)(v94 - 8); *(_DWORD *)(v94 - 8) = v62 - 1; } if ( v62 <= 0 ) operator delete(v25); } v26 = (void *)(v93 - 24); if ( (__int64 *)(v93 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)(v93 - 8); do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = *(_DWORD *)(v93 - 8); *(_DWORD *)(v93 - 8) = v60 - 1; } if ( v60 <= 0 ) operator delete(v26); } v27 = (void *)(v92 - 24); if ( (__int64 *)(v92 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(v92 - 8); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *(_DWORD *)(v92 - 8); *(_DWORD *)(v92 - 8) = v58 - 1; } if ( v58 <= 0 ) operator delete(v27); } v28 = (void *)(v90 - 24); if ( (__int64 *)(v90 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(v90 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(v90 - 8); *(_DWORD *)(v90 - 8) = v56 - 1; } if ( v56 <= 0 ) operator delete(v28); } (*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 1288LL))(v21); v29 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(v89 - 8); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v54 - 1; } if ( v54 <= 0 ) operator delete(v29); } v30 = v81 - 24; if ( v81 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(v81 - 8); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *((_DWORD *)v81 - 2); *((_DWORD *)v81 - 2) = v52 - 1; } if ( v52 <= 0 ) operator delete(v30); } v31 = (void *)(v80 - 24); if ( (__int64 *)(v80 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(v80 - 8); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(v80 - 8); *(_DWORD *)(v80 - 8) = v48 - 1; } if ( v48 <= 0 ) operator delete(v31); } v32 = (void *)(v79 - 24); if ( (__int64 *)(v79 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v38 = (unsigned int *)(v79 - 8); do v39 = __ldaxr(v38); while ( __stlxr(v39 - 1, v38) ); } else { v39 = *(_DWORD *)(v79 - 8); *(_DWORD *)(v79 - 8) = v39 - 1; } if ( v39 <= 0 ) operator delete(v32); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source