// // SFXBrowser::onBatchDelete from 0x14061c940 to 0x14061cbb7 (631 bytes) // // 2 xrefs: // > SFXBrowser::init @ 0x1406185be // > @ 0x1409302a8 // // 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:35:21 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall SFXBrowser::onBatchDelete(__int64 a1, __int64 a2) { int v3; // ebp char v4; // si __int64 *v5; // rdi __int64 v6; // rbx __int64 v7; // rdx cocos2d::CCDictionary *v8; // rcx struct cocos2d::CCObject *v9; // rax cocos2d::CCString *v10; // rax const char *CString; // rax size_t v12; // r8 __int64 v13; // rax cocos2d::CCObject *v14; // rbx _QWORD *v15; // rbx void *v16; // rcx __int128 v17; // [rsp+50h] [rbp-68h] BYREF __int64 v18; // [rsp+60h] [rbp-58h] __int64 v19; // [rsp+68h] [rbp-50h] char v20[32]; // [rsp+70h] [rbp-48h] BYREF __int64 *v21; // [rsp+C0h] [rbp+8h] BYREF void *v22; // [rsp+D0h] [rbp+18h] if ( *(_QWORD *)(a1 + 1016) ) { v3 = 0; v4 = 0; v5 = *(__int64 **)(a1 + 1008); v6 = *v5; v21 = (__int64 *)v6; if ( (__int64 *)v6 == v5 ) goto LABEL_19; do { if ( !qword_14090C070 ) { v22 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); } v7 = *(int *)(v6 + 28); v8 = *(cocos2d::CCDictionary **)(qword_14090C070 + 920); if ( v8 ) { if ( (int)v7 > 0 ) { v9 = cocos2d::CCDictionary::objectForKey(v8, v7); if ( v9 ) { ++v3; if ( *((_BYTE *)v9 + 72) ) { if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)v9 + 22)) ) v4 = 1; } } } } sub_1400BD5E0((__int64 *)&v21); v5 = *(__int64 **)(a1 + 1008); v6 = (__int64)v21; } while ( v21 != v5 ); if ( !v3 ) { LABEL_19: v15 = (_QWORD *)v5[1]; while ( !*((_BYTE *)v15 + 25) ) { sub_1400BD500(a1 + 1008, a1 + 1008, v15[2]); v16 = v15; v15 = (_QWORD *)*v15; j_j_free(v16); } v5[1] = (__int64)v5; *v5 = (__int64)v5; v5[2] = (__int64)v5; *(_QWORD *)(a1 + 1016) = 0; SFXBrowser::updateSelectionUI(a1, a2); } else if ( v3 > 1 || v4 ) { v10 = cocos2d::CCString::createWithFormat("Delete %i selected?", v3); CString = cocos2d::CCString::getCString(v10); v17 = 0; v18 = 0; v19 = 0; v12 = -1; do ++v12; while ( CString[v12] ); sub_14003D230(&v17, CString, v12); v21 = (__int64 *)&v17; v13 = sub_14003F4F0((__int64)v20, (__int64)&v17); v14 = FLAlertLayer::create( (int)a1 + 696, (int)"Delete SFX", v13, (__int64)"Cancel", (__int64)"Delete", 1133903872, 0, 0, 1065353216); sub_14003D310((__int64)&v17); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v14 + 64LL))(v14, 10); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v14 + 1064LL))(v14); } else { SFXBrowser::executeBatchDelete(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source