// // EditorUI::onShowUIBtn from 0x1401b3d10 to 0x1401b3e15 (261 bytes) // // 2 xrefs: // > EditorUI::init @ 0x1401ac40a // > @ 0x14091a0b4 // // 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:27:57 +0000 // void __fastcall EditorUI::onShowUIBtn(__int64 a1, __int64 a2) { bool v3; // zf __int64 v4; // rdx __int64 v5; // rcx __int64 v6; // rcx __int64 v7; // rdx _QWORD *v8; // rbx bool hasSoundsForAction; // al int v10; // edx if ( *(_BYTE *)(a1 + 1660) ) return; v3 = *(_DWORD *)(a1 + 1508) == 1; *(_WORD *)(a1 + 1661) = 0; LOBYTE(a2) = v3; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 952) + 336LL))(*(_QWORD *)(a1 + 952), a2); EditorUI::updateDeleteButtons(a1); EditorUI::updateCreateMenu(a1, 0); LOBYTE(v4) = !*(_BYTE *)(a1 + 1661) && *(_DWORD *)(a1 + 1508) == 3; v5 = *(_QWORD *)(a1 + 1664); if ( v5 ) { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 336LL))(v5, v4); v6 = *(_QWORD *)(a1 + 880); if ( !v6 ) goto LABEL_11; v4 = 0; } else { v6 = *(_QWORD *)(a1 + 880); if ( !v6 ) goto LABEL_11; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 336LL))(v6, v4); LABEL_11: if ( *(_BYTE *)(a1 + 1661) || *(_DWORD *)(a1 + 1508) != 4 ) v4 = 0; else LOBYTE(v4) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1432) + 336LL))(*(_QWORD *)(a1 + 1432), v4); LOBYTE(v7) = 1; EditorUI::showUI(a1, v7); v8 = (_QWORD *)EditorSFXManager::sharedState(); hasSoundsForAction = EditorSFXManager::hasSoundsForAction(v8, 194); v10 = 194; if ( !hasSoundsForAction ) v10 = 189; EditorSFXManager::playAction((__int64)v8, v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source