// // MusicDownloadManager::pathForSongFolder from 0x1404846e0 to 0x140484830 (336 bytes) // // 4 xrefs: // > MusicDownloadManager::pathForSong @ 0x14048485c // > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x14048ce20 // > MusicDownloadManager::parseMusicLibrary @ 0x14048cf52 // > @ 0x140928acc // // 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:32:46 +0000 // // Hidden C++ exception states: #wind=2 _QWORD *__fastcall MusicDownloadManager::pathForSongFolder(__int64 a1, _QWORD *a2, int a3) { __int64 v4; // rcx __int64 v5; // rcx __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v11[2]; // [rsp+28h] [rbp-40h] BYREF _BYTE v12[32]; // [rsp+38h] [rbp-30h] BYREF v11[1] = (__int64)a2; *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 15; *(_BYTE *)a2 = 0; LODWORD(v11[0]) = a3; if ( sub_140066B50((_QWORD *)(a1 + 584), (unsigned __int8 *)v11) ) { sub_140044D80(a2, "songs/", 6u); } else { v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v11[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v11[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } if ( GameManager::getGameVariable(v4, "0033") ) { v6 = cocos2d::CCFileUtils::sharedFileUtils(v5); v7 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 144LL))(v6, v12); sub_140059C40((__int64)a2, v7); sub_14003D310((__int64)v12); sub_140044D80(a2, "Resources\\", 0xAu); } else { v8 = cocos2d::CCFileUtils::sharedFileUtils(v5); v9 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 136LL))(v8, v12); sub_140059C40((__int64)a2, v9); sub_14003D310((__int64)v12); } } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source