{"type": "func", "start": 4295072256, "end": 4295072624, "name": "EditorUI::editColor", "pseudocode": "// \n// EditorUI::editColor from 0x100019a00 to 0x100019b70 (368 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onEditColor @ 0x1000093bf\n// > EditorUI::checkLiveColorSelect @ 0x1005b8f13\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:18:55 +0000\n// \n\n__int64 __fastcall EditorUI::editColor(_QWORD *a1)\n{\n  __int64 v2; // r15\n  __int64 v3; // r12\n  __int64 v4; // r14\n  __int64 result; // rax\n  __int64 v6; // rdi\n  __int64 v7; // rdi\n  _QWORD *v8; // rax\n  __int64 v9; // rdi\n  unsigned int v10; // r14d\n  __int64 v11; // rax\n  __int64 v12; // [rsp+8h] [rbp-38h] BYREF\n  __int64 v13; // [rsp+10h] [rbp-30h] BYREF\n  _QWORD v14[5]; // [rsp+18h] [rbp-28h] BYREF\n\n  v12 = 0;\n  v13 = 0;\n  v14[0] = 0;\n  EditorUI::getEditColorTargets((__int64)a1, (unsigned __int64)&v12, &v13, v14);\n  v2 = v12;\n  v3 = v13;\n  v4 = v14[0];\n  result = v14[0] | v13 | v12;\n  if ( result )\n  {\n    v6 = a1[193];\n    if ( v6 )\n    {\n      ColorSelectLiveOverlay::closeColorSelect(v6, 0);\n      a1[193] = 0;\n    }\n    v7 = a1[194];\n    if ( v7 )\n    {\n      HSVLiveOverlay::closeColorSelect(v7, 0);\n      a1[194] = 0;\n    }\n    a1[193] = 0;\n    if ( v4 )\n      v8 = (_QWORD *)ColorSelectLiveOverlay::createWithObject(v4);\n    else\n      v8 = (_QWORD *)ColorSelectLiveOverlay::createWithActions(v2, v3);\n    a1[193] = v8;\n    v8[92] = a1 + 52;\n    v8[71] = a1;\n    result = (*(__int64 (__fastcall **)(_QWORD *))(*v8 + 1312LL))(v8);\n    if ( !v4 )\n    {\n      v9 = a1[187];\n      if ( v9 )\n      {\n        return GameObject::deselectObject(v9);\n      }\n      else\n      {\n        result = sub_1007FEF90(a1[112]);\n        if ( (_DWORD)result )\n        {\n          result = sub_1007FEF90(a1[112]);\n          if ( (_DWORD)result )\n          {\n            v10 = 0;\n            do\n            {\n              v11 = sub_1007FEFE0(a1[112], v10);\n              GameObject::deselectObject(v11);\n              ++v10;\n              result = sub_1007FEF90(a1[112]);\n            }\n            while ( v10 < (unsigned int)result );\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::editColor from 0x100019a00 to 0x100019b70 (368 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onEditColor @ 0x1000093bf\n; > EditorUI::checkLiveColorSelect @ 0x1005b8f13\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:18:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x100019a00\nmov     rbp, rsp                                                       ; +0x1, 0x100019a01\npush    r15                                                            ; +0x4, 0x100019a04\npush    r14                                                            ; +0x6, 0x100019a06\npush    r12                                                            ; +0x8, 0x100019a08\npush    rbx                                                            ; +0xa, 0x100019a0a\nsub     rsp, 20h                                                       ; +0xb, 0x100019a0b\nmov     rbx, rdi                                                       ; +0xf, 0x100019a0f\nmov     [rbp+var_38], 0                                                ; +0x12, 0x100019a12\nmov     [rbp+var_30], 0                                                ; +0x1a, 0x100019a1a\nmov     [rbp+var_28], 0                                                ; +0x22, 0x100019a22\nlea     rsi, [rbp+var_38]                                              ; +0x2a, 0x100019a2a\nlea     rdx, [rbp+var_30]                                              ; +0x2e, 0x100019a2e\nlea     rcx, [rbp+var_28]                                              ; +0x32, 0x100019a32\ncall    EditorUI__getEditColorTargets                                  ; +0x36, 0x100019a36\nmov     r15, [rbp+var_38]                                              ; +0x3b, 0x100019a3b\nmov     r12, [rbp+var_30]                                              ; +0x3f, 0x100019a3f\nmov     rax, r15                                                       ; +0x43, 0x100019a43\nor      rax, r12                                                       ; +0x46, 0x100019a46\nmov     r14, [rbp+var_28]                                              ; +0x49, 0x100019a49\nor      rax, r14                                                       ; +0x4d, 0x100019a4d\njz      loc_100019AE4                                                  ; +0x50, 0x100019a50\nmov     rdi, [rbx+608h]                                                ; +0x56, 0x100019a56\ntest    rdi, rdi                                                       ; +0x5d, 0x100019a5d\njz      short loc_100019A74                                            ; +0x60, 0x100019a60\nxor     esi, esi                                                       ; +0x62, 0x100019a62\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x64, 0x100019a64\nmov     qword ptr [rbx+608h], 0                                        ; +0x69, 0x100019a69\nmov     rdi, [rbx+610h]                                                ; +0x74, 0x100019a74\ntest    rdi, rdi                                                       ; +0x7b, 0x100019a7b\njz      short loc_100019A92                                            ; +0x7e, 0x100019a7e\nxor     esi, esi                                                       ; +0x80, 0x100019a80\ncall    HSVLiveOverlay__closeColorSelect                               ; +0x82, 0x100019a82\nmov     qword ptr [rbx+610h], 0                                        ; +0x87, 0x100019a87\nmov     qword ptr [rbx+608h], 0                                        ; +0x92, 0x100019a92\ntest    r14, r14                                                       ; +0x9d, 0x100019a9d\njz      short loc_100019AAC                                            ; +0xa0, 0x100019aa0\nmov     rdi, r14                                                       ; +0xa2, 0x100019aa2\ncall    ColorSelectLiveOverlay__createWithObject                       ; +0xa5, 0x100019aa5\njmp     short loc_100019AB7                                            ; +0xaa, 0x100019aaa\nmov     rdi, r15                                                       ; +0xac, 0x100019aac\nmov     rsi, r12                                                       ; +0xaf, 0x100019aaf\ncall    ColorSelectLiveOverlay__createWithActions                      ; +0xb2, 0x100019ab2\nmov     [rbx+608h], rax                                                ; +0xb7, 0x100019ab7\nlea     rcx, [rbx+1A0h]                                                ; +0xbe, 0x100019abe\nmov     [rax+2E0h], rcx                                                ; +0xc5, 0x100019ac5\nmov     [rax+238h], rbx                                                ; +0xcc, 0x100019acc\nmov     rcx, [rax]                                                     ; +0xd3, 0x100019ad3\nmov     rdi, rax                                                       ; +0xd6, 0x100019ad6\ncall    qword ptr [rcx+520h]                                           ; +0xd9, 0x100019ad9\ntest    r14, r14                                                       ; +0xdf, 0x100019adf\njz      short loc_100019AF1                                            ; +0xe2, 0x100019ae2\nadd     rsp, 20h                                                       ; +0xe4, 0x100019ae4\npop     rbx                                                            ; +0xe8, 0x100019ae8\npop     r12                                                            ; +0xe9, 0x100019ae9\npop     r14                                                            ; +0xeb, 0x100019aeb\npop     r15                                                            ; +0xed, 0x100019aed\npop     rbp                                                            ; +0xef, 0x100019aef\nretn                                                                   ; +0xf0, 0x100019af0\nmov     rdi, [rbx+5D8h]                                                ; +0xf1, 0x100019af1\ntest    rdi, rdi                                                       ; +0xf8, 0x100019af8\njz      short loc_100019B0E                                            ; +0xfb, 0x100019afb\nadd     rsp, 20h                                                       ; +0xfd, 0x100019afd\npop     rbx                                                            ; +0x101, 0x100019b01\npop     r12                                                            ; +0x102, 0x100019b02\npop     r14                                                            ; +0x104, 0x100019b04\npop     r15                                                            ; +0x106, 0x100019b06\npop     rbp                                                            ; +0x108, 0x100019b08\njmp     GameObject__deselectObject                                     ; +0x109, 0x100019b09\nmov     rdi, [rbx+380h]                                                ; +0x10e, 0x100019b0e\ncall    sub_1007FEF90                                                  ; +0x115, 0x100019b15\ntest    eax, eax                                                       ; +0x11a, 0x100019b1a\njz      short loc_100019AE4                                            ; +0x11c, 0x100019b1c\nmov     rdi, [rbx+380h]                                                ; +0x11e, 0x100019b1e\ncall    sub_1007FEF90                                                  ; +0x125, 0x100019b25\ntest    eax, eax                                                       ; +0x12a, 0x100019b2a\njz      short loc_100019AE4                                            ; +0x12c, 0x100019b2c\nxor     r14d, r14d                                                     ; +0x12e, 0x100019b2e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x131, 0x100019b31\nmov     rdi, [rbx+380h]                                                ; +0x140, 0x100019b40\nmov     esi, r14d                                                      ; +0x147, 0x100019b47\ncall    sub_1007FEFE0                                                  ; +0x14a, 0x100019b4a\nmov     rdi, rax                                                       ; +0x14f, 0x100019b4f\ncall    GameObject__deselectObject                                     ; +0x152, 0x100019b52\ninc     r14d                                                           ; +0x157, 0x100019b57\nmov     rdi, [rbx+380h]                                                ; +0x15a, 0x100019b5a\ncall    sub_1007FEF90                                                  ; +0x161, 0x100019b61\ncmp     r14d, eax                                                      ; +0x166, 0x100019b66\njb      short loc_100019B40                                            ; +0x169, 0x100019b69\njmp     loc_100019AE4                                                  ; +0x16b, 0x100019b6b", "xrefs": ["EditorUI::onEditColor @ 0x1000093bf", "EditorUI::checkLiveColorSelect @ 0x1005b8f13"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}