// // MusicDownloadManager::pathForSFXFolder from 0x140484a20 to 0x140484b70 (336 bytes) // // 6 xrefs: // > EditorSFXManager::downloadAllMissing @ 0x14018c1c8 // > MusicDownloadManager::pathForSFX @ 0x140484b9c // > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x14048fb65 // > MusicDownloadManager::parseSFXLibrary @ 0x14048fc7d // > SetupSFXPopup::onClose @ 0x1405ddb62 // > @ 0x140928af0 // // 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 // _QWORD *__fastcall MusicDownloadManager::pathForSFXFolder(__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 + 520), (unsigned __int8 *)v11) ) { sub_140044D80(a2, "sfx/", 4u); } 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