// // EditorUI::enableButton from 0x1401adb90 to 0x1401add24 (404 bytes) // // 4 xrefs: // > EditorUI::updateCreateMenu @ 0x1401b21ce // > EditorUI::updateCreateMenu @ 0x1401b220e // > @ 0x140919d60 // > @ 0x140919d6c // // 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:54 +0000 // __int64 __fastcall EditorUI::enableButton(__int64 a1, int *a2) { __int64 result; // rax __int64 v4; // rbx __int64 v5; // rcx __int64 *v6; // rbx __int16 v7; // ax int v9; // ecx int v10; // ecx int v11; // ecx int v12; // ecx bool v13; // zf int *v14; // rcx int v15; // eax __int64 v16; // rax __int64 v17; // [rsp+30h] [rbp+8h] BYREF __int16 v18; // [rsp+38h] [rbp+10h] BYREF char v19; // [rsp+3Ah] [rbp+12h] v17 = a1; result = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a2 + 952LL))(a2); v4 = result; v5 = *(_QWORD *)(result + 648); if ( v5 || (v5 = *(_QWORD *)(result + 656)) != 0 ) result = (**(__int64 (__fastcall ***)(__int64, __int16 *))(v5 + 320))(v5 + 320, &word_14070329C); if ( a2[138] >= 0 ) { v6 = *(__int64 **)(v4 + 640); LOWORD(v17) = -1; BYTE2(v17) = -1; if ( *((_DWORD *)v6 + 314) == 1 ) { v7 = *((_WORD *)v6 + 524); if ( !(v7 ? v7 == 1 : *((_BYTE *)v6 + 1300)) && !v6[112] ) { v9 = *(_DWORD *)(v6[138] + 4); if ( v9 != 1004 && v9 && *((_BYTE *)v6 + 1784) ) { LOWORD(v17) = -14136; BYTE2(v17) = -1; LABEL_29: (*(void (__fastcall **)(__int64 *, __int64 *))(*v6 + 1344))(v6, &v17); v16 = *v6; v18 = -14136; v19 = -1; return (*(__int64 (__fastcall **)(__int64 *, __int16 *))(v16 + 944))(v6, &v18); } } } v10 = *((_DWORD *)v6 + 259); if ( v10 > 1328 ) { if ( v10 != 1584 ) { v13 = v10 == 2012; goto LABEL_22; } } else if ( v10 != 1328 ) { v11 = v10 - 918; if ( v11 ) { v12 = v11 - 1; if ( v12 ) { v13 = v12 == 408; LABEL_22: if ( !v13 ) { v14 = (int *)v6[138]; if ( !v14 ) goto LABEL_29; v15 = *v14; if ( v14[1] == *v14 || !v15 ) v15 = v14[1]; if ( v15 != 1010 ) goto LABEL_29; } } } } LOWORD(v17) = 0; BYTE2(v17) = 0; goto LABEL_29; } return result; }