// // PlayLayer::playPracticeMusic from 0x14051a0d0 to 0x14051a364 (660 bytes) // // 4 xrefs: // > EndLevelLayer::onRestartCheckpoint @ 0x1402068dc // > PauseLayer::onPracticeMode @ 0x1404dab50 // > PlayLayer::togglePracticeMode @ 0x14051a03d // > @ 0x14092ae30 // // 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 11:33:35 +0000 // // Hidden C++ exception states: #wind=8 void PlayLayer::playPracticeMusic() { _QWORD *v0; // rbx __int64 v1; // rcx __int64 v2; // rbx __int64 v3; // rcx __int64 v4; // rcx _QWORD *v5; // rax size_t v6; // r8 _QWORD *v7; // rcx void *v8; // [rsp+30h] [rbp-68h] void *v9; // [rsp+30h] [rbp-68h] void *v10; // [rsp+30h] [rbp-68h] void *v11; // [rsp+30h] [rbp-68h] void *v12; // [rsp+38h] [rbp-60h] __int128 v13; // [rsp+40h] [rbp-58h] BYREF __int64 v14; // [rsp+50h] [rbp-48h] __int64 v15; // [rsp+58h] [rbp-40h] _QWORD v16[4]; // [rsp+60h] [rbp-38h] BYREF v0 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v12 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v0 = (_QWORD *)qword_14090BF60; } v1 = v0[69]; if ( v1 ) FMOD::ChannelControl::stop(v1); sub_14003EB60(v0 + 137); sub_14003EB60(v0 + 145); sub_14003EB60(v0 + 153); v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v8 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } if ( *(int *)(v2 + 1168) <= 0 ) goto LABEL_20; v3 = qword_14090C070; if ( !qword_14090C070 ) { v9 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v3 = qword_14090C070; } if ( !MusicDownloadManager::isSongDownloaded(v3, *(_DWORD *)(v2 + 1168)) ) *(_DWORD *)(v2 + 1168) = 0; if ( *(int *)(v2 + 1168) <= 0 ) { LABEL_20: v13 = 0; *(_QWORD *)&v13 = sub_14003D460(0x20u); v14 = 16; v15 = 31; strcpy((char *)v13, "StayInsideMe.mp3"); } else { v4 = qword_14090C070; if ( !qword_14090C070 ) { v10 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v4 = qword_14090C070; } v5 = MusicDownloadManager::pathForSong(v4, v16, *(_DWORD *)(v2 + 1168)); if ( v5[3] > 0xFu ) v5 = (_QWORD *)*v5; v13 = 0; v14 = 0; v15 = 0; v6 = -1; do ++v6; while ( *((_BYTE *)v5 + v6) ); sub_14003D230(&v13, v5, v6); sub_14003D310((__int64)v16); } v7 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v11 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v7 = (_QWORD *)qword_14090BF60; } FMODAudioEngine::playMusic(v7, (__int64)&v13, 1, 0.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source