// // EditorUI::editColor from 0x100019a00 to 0x100019b70 (368 bytes) // // 2 xrefs: // > EditorUI::onEditColor @ 0x1000093bf // > EditorUI::checkLiveColorSelect @ 0x1005b8f13 // // 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:18:55 +0000 // __int64 __fastcall EditorUI::editColor(_QWORD *a1) { __int64 v2; // r15 __int64 v3; // r12 __int64 v4; // r14 __int64 result; // rax __int64 v6; // rdi __int64 v7; // rdi _QWORD *v8; // rax __int64 v9; // rdi unsigned int v10; // r14d __int64 v11; // rax __int64 v12; // [rsp+8h] [rbp-38h] BYREF __int64 v13; // [rsp+10h] [rbp-30h] BYREF _QWORD v14[5]; // [rsp+18h] [rbp-28h] BYREF v12 = 0; v13 = 0; v14[0] = 0; EditorUI::getEditColorTargets((__int64)a1, (unsigned __int64)&v12, &v13, v14); v2 = v12; v3 = v13; v4 = v14[0]; result = v14[0] | v13 | v12; if ( result ) { v6 = a1[193]; if ( v6 ) { ColorSelectLiveOverlay::closeColorSelect(v6, 0); a1[193] = 0; } v7 = a1[194]; if ( v7 ) { HSVLiveOverlay::closeColorSelect(v7, 0); a1[194] = 0; } a1[193] = 0; if ( v4 ) v8 = (_QWORD *)ColorSelectLiveOverlay::createWithObject(v4); else v8 = (_QWORD *)ColorSelectLiveOverlay::createWithActions(v2, v3); a1[193] = v8; v8[92] = a1 + 52; v8[71] = a1; result = (*(__int64 (__fastcall **)(_QWORD *))(*v8 + 1312LL))(v8); if ( !v4 ) { v9 = a1[187]; if ( v9 ) { return GameObject::deselectObject(v9); } else { result = sub_1007FEF90(a1[112]); if ( (_DWORD)result ) { result = sub_1007FEF90(a1[112]); if ( (_DWORD)result ) { v10 = 0; do { v11 = sub_1007FEFE0(a1[112], v10); GameObject::deselectObject(v11); ++v10; result = sub_1007FEF90(a1[112]); } while ( v10 < (unsigned int)result ); } } } } } return result; }