{"type": "func", "start": 4295073280, "end": 4295073601, "name": "EditorUI::colorSelectClosed_1", "pseudocode": "// \n// EditorUI::colorSelectClosed_1 from 0x100019e00 to 0x100019f41 (321 bytes)\n// \n// 2 xrefs:\n// > sub_100019FE0 @ 0x100019fec\n// > <???> @ 0x100ab5130\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\nunsigned int *__fastcall EditorUI::colorSelectClosed_1(_QWORD *a1, unsigned int *a2)\n{\n  __int64 v3; // rax\n  unsigned int *result; // rax\n  char v5; // r14\n  __int64 v6; // rdi\n  _QWORD *v7; // r15\n  unsigned __int64 v8; // r12\n  _QWORD *v9; // r15\n  unsigned __int64 v10; // r12\n\n  v3 = a1[193];\n  if ( (unsigned int *)v3 == a2 )\n  {\n    v5 = *(_BYTE *)(v3 + 857);\n    a1[193] = 0;\n    v6 = a1[187];\n    if ( !v6 )\n    {\n      result = (unsigned int *)sub_1007FEF90(a1[112]);\n      if ( (_DWORD)result )\n      {\n        result = (unsigned int *)a1[112];\n        if ( result )\n        {\n          result = *((unsigned int **)result + 7);\n          if ( *result )\n          {\n            v9 = *((_QWORD **)result + 2);\n            v10 = (unsigned __int64)&v9[*result - 1];\n            do\n            {\n              if ( !*v9 )\n                break;\n              result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v9 + 1528LL))(\n                                         *v9,\n                                         65280);\n              ++v9;\n            }\n            while ( (unsigned __int64)v9 <= v10 );\n          }\n        }\n      }\n      goto LABEL_13;\n    }\n  }\n  else\n  {\n    result = (unsigned int *)a1[194];\n    if ( result != a2 )\n      return result;\n    v5 = *((_BYTE *)result + 730);\n    a1[194] = 0;\n    v6 = a1[187];\n    if ( !v6 )\n    {\n      result = (unsigned int *)sub_1007FEF90(a1[112]);\n      if ( (_DWORD)result )\n      {\n        result = (unsigned int *)a1[112];\n        if ( result )\n        {\n          result = *((unsigned int **)result + 7);\n          if ( *result )\n          {\n            v7 = *((_QWORD **)result + 2);\n            v8 = (unsigned __int64)&v7[*result - 1];\n            do\n            {\n              if ( !*v7 )\n                break;\n              result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v7 + 1528LL))(\n                                         *v7,\n                                         65280);\n              ++v7;\n            }\n            while ( (unsigned __int64)v7 <= v8 );\n          }\n        }\n      }\n      goto LABEL_13;\n    }\n  }\n  result = (unsigned int *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1528LL))(v6, 65280);\nLABEL_13:\n  if ( v5 )\n    return (unsigned int *)EditorUI::updateEditColorButton(a1);\n  return result;\n}", "assembly": "; \n; EditorUI::colorSelectClosed_1 from 0x100019e00 to 0x100019f41 (321 bytes)\n; \n; 2 xrefs:\n; > sub_100019FE0 @ 0x100019fec\n; > <???> @ 0x100ab5130\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, 0x100019e00\nmov     rbp, rsp                                                       ; +0x1, 0x100019e01\npush    r15                                                            ; +0x4, 0x100019e04\npush    r14                                                            ; +0x6, 0x100019e06\npush    r12                                                            ; +0x8, 0x100019e08\npush    rbx                                                            ; +0xa, 0x100019e0a\nmov     rbx, rdi                                                       ; +0xb, 0x100019e0b\nmov     rax, [rdi+608h]                                                ; +0xe, 0x100019e0e\ncmp     rax, rsi                                                       ; +0x15, 0x100019e15\njz      loc_100019EA1                                                  ; +0x18, 0x100019e18\nmov     rax, [rbx+610h]                                                ; +0x1e, 0x100019e1e\ncmp     rax, rsi                                                       ; +0x25, 0x100019e25\njnz     loc_100019EE3                                                  ; +0x28, 0x100019e28\nmovzx   r14d, byte ptr [rax+2DAh]                                      ; +0x2e, 0x100019e2e\nmov     qword ptr [rbx+610h], 0                                        ; +0x36, 0x100019e36\nmov     rdi, [rbx+5D8h]                                                ; +0x41, 0x100019e41\ntest    rdi, rdi                                                       ; +0x48, 0x100019e48\njnz     short loc_100019EC0                                            ; +0x4b, 0x100019e4b\nmov     rdi, [rbx+380h]                                                ; +0x4d, 0x100019e4d\ncall    sub_1007FEF90                                                  ; +0x54, 0x100019e54\ntest    eax, eax                                                       ; +0x59, 0x100019e59\njz      short loc_100019ECE                                            ; +0x5b, 0x100019e5b\nmov     rax, [rbx+380h]                                                ; +0x5d, 0x100019e5d\ntest    rax, rax                                                       ; +0x64, 0x100019e64\njz      short loc_100019ECE                                            ; +0x67, 0x100019e67\nmov     rax, [rax+38h]                                                 ; +0x69, 0x100019e69\nmov     ecx, [rax]                                                     ; +0x6d, 0x100019e6d\ntest    rcx, rcx                                                       ; +0x6f, 0x100019e6f\njz      short loc_100019ECE                                            ; +0x72, 0x100019e72\nmov     r15, [rax+10h]                                                 ; +0x74, 0x100019e74\nlea     r12, [r15+rcx*8]                                               ; +0x78, 0x100019e78\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x7c, 0x100019e7c\nmov     rdi, [r15]                                                     ; +0x80, 0x100019e80\ntest    rdi, rdi                                                       ; +0x83, 0x100019e83\njz      short loc_100019ECE                                            ; +0x86, 0x100019e86\nmov     rax, [rdi]                                                     ; +0x88, 0x100019e88\nmov     esi, 0FF00h                                                    ; +0x8b, 0x100019e8b\ncall    qword ptr [rax+5F8h]                                           ; +0x90, 0x100019e90\nadd     r15, 8                                                         ; +0x96, 0x100019e96\ncmp     r15, r12                                                       ; +0x9a, 0x100019e9a\njbe     short loc_100019E80                                            ; +0x9d, 0x100019e9d\njmp     short loc_100019ECE                                            ; +0x9f, 0x100019e9f\nmovzx   r14d, byte ptr [rax+359h]                                      ; +0xa1, 0x100019ea1\nmov     qword ptr [rbx+608h], 0                                        ; +0xa9, 0x100019ea9\nmov     rdi, [rbx+5D8h]                                                ; +0xb4, 0x100019eb4\ntest    rdi, rdi                                                       ; +0xbb, 0x100019ebb\njz      short loc_100019EEC                                            ; +0xbe, 0x100019ebe\nmov     rax, [rdi]                                                     ; +0xc0, 0x100019ec0\nmov     esi, 0FF00h                                                    ; +0xc3, 0x100019ec3\ncall    qword ptr [rax+5F8h]                                           ; +0xc8, 0x100019ec8\ntest    r14b, r14b                                                     ; +0xce, 0x100019ece\njz      short loc_100019EE3                                            ; +0xd1, 0x100019ed1\nmov     rdi, rbx                                                       ; +0xd3, 0x100019ed3\npop     rbx                                                            ; +0xd6, 0x100019ed6\npop     r12                                                            ; +0xd7, 0x100019ed7\npop     r14                                                            ; +0xd9, 0x100019ed9\npop     r15                                                            ; +0xdb, 0x100019edb\npop     rbp                                                            ; +0xdd, 0x100019edd\njmp     EditorUI__updateEditColorButton                                ; +0xde, 0x100019ede\npop     rbx                                                            ; +0xe3, 0x100019ee3\npop     r12                                                            ; +0xe4, 0x100019ee4\npop     r14                                                            ; +0xe6, 0x100019ee6\npop     r15                                                            ; +0xe8, 0x100019ee8\npop     rbp                                                            ; +0xea, 0x100019eea\nretn                                                                   ; +0xeb, 0x100019eeb\nmov     rdi, [rbx+380h]                                                ; +0xec, 0x100019eec\ncall    sub_1007FEF90                                                  ; +0xf3, 0x100019ef3\ntest    eax, eax                                                       ; +0xf8, 0x100019ef8\njz      short loc_100019ECE                                            ; +0xfa, 0x100019efa\nmov     rax, [rbx+380h]                                                ; +0xfc, 0x100019efc\ntest    rax, rax                                                       ; +0x103, 0x100019f03\njz      short loc_100019ECE                                            ; +0x106, 0x100019f06\nmov     rax, [rax+38h]                                                 ; +0x108, 0x100019f08\nmov     ecx, [rax]                                                     ; +0x10c, 0x100019f0c\ntest    rcx, rcx                                                       ; +0x10e, 0x100019f0e\njz      short loc_100019ECE                                            ; +0x111, 0x100019f11\nmov     r15, [rax+10h]                                                 ; +0x113, 0x100019f13\nlea     r12, [r15+rcx*8]                                               ; +0x117, 0x100019f17\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x11b, 0x100019f1b\nnop                                                                    ; +0x11f, 0x100019f1f\nmov     rdi, [r15]                                                     ; +0x120, 0x100019f20\ntest    rdi, rdi                                                       ; +0x123, 0x100019f23\njz      short loc_100019ECE                                            ; +0x126, 0x100019f26\nmov     rax, [rdi]                                                     ; +0x128, 0x100019f28\nmov     esi, 0FF00h                                                    ; +0x12b, 0x100019f2b\ncall    qword ptr [rax+5F8h]                                           ; +0x130, 0x100019f30\nadd     r15, 8                                                         ; +0x136, 0x100019f36\ncmp     r15, r12                                                       ; +0x13a, 0x100019f3a\njbe     short loc_100019F20                                            ; +0x13d, 0x100019f3d\njmp     short loc_100019ECE                                            ; +0x13f, 0x100019f3f", "xrefs": ["sub_100019FE0 @ 0x100019fec", "<???> @ 0x100ab5130"], "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"}