// // MusicDownloadManager::moveCustomSFXObject from 0x140489ec0 to 0x14048a02f (367 bytes) // // 2 xrefs: // > SFXBrowser::sfxFolderPicked @ 0x14061c658 // > @ 0x140928d00 // // 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:48 +0000 // char __fastcall MusicDownloadManager::moveCustomSFXObject(__int64 a1, int a2, int a3) { __int64 v3; // r14 cocos2d::CCDictionary *v5; // rcx int v6; // edi struct cocos2d::CCObject *v7; // rbx cocos2d::CCDictionary *v8; // rcx struct cocos2d::CCObject *v9; // rbp struct cocos2d::CCObject *v10; // rax cocos2d::CCDictionary *v11; // rcx __int64 v12; // rdx cocos2d::CCDictionary *v13; // rcx struct cocos2d::CCObject *v14; // rax cocos2d::CCDictionary *v15; // rcx __int64 v16; // rdx cocos2d::CCArray *v17; // rcx v3 = a3; if ( a2 <= 1 ) return 0; v5 = *(cocos2d::CCDictionary **)(a1 + 920); v6 = 0; v7 = v5 ? cocos2d::CCDictionary::objectForKey(v5, a2) : nullptr; v8 = *(cocos2d::CCDictionary **)(a1 + 920); if ( v8 && (int)v3 > 0 ) v9 = cocos2d::CCDictionary::objectForKey(v8, v3); else v9 = nullptr; if ( !v7 || !v9 || !*((_BYTE *)v9 + 72) ) return 0; if ( *((_DWORD *)v7 + 15) != (_DWORD)v3 ) { if ( *((_BYTE *)v7 + 72) ) { v10 = v9; do { if ( *((_DWORD *)v10 + 19) == 1 || v6 >= 100 ) break; if ( v10 == v7 ) return 0; v11 = *(cocos2d::CCDictionary **)(a1 + 920); if ( !v11 ) break; v12 = *((int *)v10 + 15); if ( (int)v12 <= 0 ) break; v10 = cocos2d::CCDictionary::objectForKey(v11, v12); ++v6; } while ( v10 ); } v13 = *(cocos2d::CCDictionary **)(a1 + 920); if ( v13 ) { if ( *((int *)v7 + 15) > 0 ) { v14 = cocos2d::CCDictionary::objectForKey(v13, *((int *)v7 + 15)); if ( v14 ) { if ( *((_BYTE *)v14 + 72) || (v15 = *(cocos2d::CCDictionary **)(a1 + 920)) != nullptr && (v16 = *((int *)v14 + 15), (int)v16 > 0) && (v14 = cocos2d::CCDictionary::objectForKey(v15, v16)) != nullptr && *((_BYTE *)v14 + 72) ) { v17 = *((cocos2d::CCArray **)v14 + 22); if ( v17 ) cocos2d::CCArray::removeObject(v17, v7, 1); } } } } cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v9 + 22), v7); *((_DWORD *)v7 + 15) = v3; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source