//
// EditorWindowPopup::handleAction from 0x100901f10 to 0x100901fd9 (201 bytes)
//
// 6 xrefs:
// > ??> @ 0x100bb3888
// > ??> @ 0x100bb8be8
// > ??> @ 0x100bb9430
// > ??> @ 0x100bbdf10
// > ??> @ 0x100bbf6e8
// > ??> @ 0x100bd58c8
//
// 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 12:38:03 +0000
//
__int64 __fastcall EditorWindowPopup::handleAction(__int64 a1, __int64 a2, __int64 a3, unsigned int a4)
{
unsigned int v4; // ebx
unsigned int v5; // r15d
char v6; // al
__int64 v7; // r14
__int64 v8; // rdi
if ( *(_BYTE *)(a1 + 1095)
|| qword_100BE7A80
&& (v4 = a1, v5 = a3, v6 = sub_100495310(a1, qword_100BE7A80, a3, a4), a3 = v5, a2 = (unsigned int)a2, v6) )
{
*(_BYTE *)(a1 + 1095) = 0;
LOBYTE(v4) = 1;
if ( (_BYTE)a3 )
{
if ( (_DWORD)a2 == 20067 )
{
v7 = qword_100BE7A80;
if ( qword_100BE7A80 )
{
if ( (unsigned __int8)sub_100495310(a1, qword_100BE7A80, a3, a4) )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1160LL))(v7, 0);
}
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1528LL))(a1);
}
}
}
else
{
v8 = *(_QWORD *)(a1 + 1016);
if ( v8 )
return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v8 + 1312LL))(v8, a2, (unsigned __int8)a3);
return 0;
}
return v4;
}