{"type": "func", "start": 4295021984, "end": 4295022251, "name": "EditorUI::enableButton", "pseudocode": "// \n// EditorUI::enableButton from 0x10000d5a0 to 0x10000d6ab (267 bytes)\n// \n// 0 xrefs:\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:50 +0000\n// \n\n__int64 __fastcall EditorUI::enableButton(__int64 a1, int *a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r14\n  __int64 v4; // rdi\n  __int64 v5; // rbx\n  int v6; // eax\n  __int16 v7; // [rsp+8h] [rbp-18h] BYREF\n  char v8; // [rsp+Ah] [rbp-16h]\n  __int16 v9; // [rsp+Ch] [rbp-14h] BYREF\n  char v10; // [rsp+Eh] [rbp-12h]\n\n  result = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a2 + 1072LL))(a2);\n  v3 = result;\n  v4 = *(_QWORD *)(result + 640);\n  if ( v4 || (v4 = *(_QWORD *)(result + 648)) != 0 )\n    result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 960LL))(v4, &unk_100A038D0);\n  if ( a2[132] >= 0 )\n  {\n    v5 = *(_QWORD *)(v3 + 632);\n    v10 = -1;\n    v9 = -1;\n    if ( *(_DWORD *)(v5 + 1248) == 1 && (unsigned __int8)GameObject::isColorObject(v5) && *(_BYTE *)(v5 + 1768) == 1 )\n    {\n      v10 = -1;\n      v9 = -14136;\nLABEL_17:\n      (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 1496LL))(v5, &v9);\n      v8 = -1;\n      v7 = -14136;\n      return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 1096LL))(v5, &v7);\n    }\n    v6 = *(_DWORD *)(v5 + 1028);\n    if ( v6 > 1583 )\n    {\n      if ( v6 == 2012 || v6 == 1584 )\n        goto LABEL_16;\n    }\n    else if ( (unsigned int)(v6 - 918) < 2 || (unsigned int)(v6 - 1327) < 2 )\n    {\n      goto LABEL_16;\n    }\n    if ( (unsigned int)GameObject::getMainColorMode(v5) != 1010 )\n      goto LABEL_17;\nLABEL_16:\n    v10 = 0;\n    v9 = 0;\n    goto LABEL_17;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::enableButton from 0x10000d5a0 to 0x10000d6ab (267 bytes)\n; \n; 0 xrefs:\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:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000d5a0\nmov     rbp, rsp                                                       ; +0x1, 0x10000d5a1\npush    r14                                                            ; +0x4, 0x10000d5a4\npush    rbx                                                            ; +0x6, 0x10000d5a6\nsub     rsp, 10h                                                       ; +0x7, 0x10000d5a7\nmov     rbx, rsi                                                       ; +0xb, 0x10000d5ab\nmov     rax, [rsi]                                                     ; +0xe, 0x10000d5ae\nmov     rdi, rsi                                                       ; +0x11, 0x10000d5b1\ncall    qword ptr [rax+430h]                                           ; +0x14, 0x10000d5b4\nmov     r14, rax                                                       ; +0x1a, 0x10000d5ba\nmov     rdi, [rax+280h]                                                ; +0x1d, 0x10000d5bd\ntest    rdi, rdi                                                       ; +0x24, 0x10000d5c4\njnz     short loc_10000D5D5                                            ; +0x27, 0x10000d5c7\nmov     rdi, [r14+288h]                                                ; +0x29, 0x10000d5c9\ntest    rdi, rdi                                                       ; +0x30, 0x10000d5d0\njz      short loc_10000D5E5                                            ; +0x33, 0x10000d5d3\nmov     rax, [rdi]                                                     ; +0x35, 0x10000d5d5\nlea     rsi, unk_100A038D0                                             ; +0x38, 0x10000d5d8\ncall    qword ptr [rax+3C0h]                                           ; +0x3f, 0x10000d5df\ncmp     dword ptr [rbx+210h], 0                                        ; +0x45, 0x10000d5e5\njs      loc_10000D6A2                                                  ; +0x4c, 0x10000d5ec\nmov     rbx, [r14+278h]                                                ; +0x52, 0x10000d5f2\nmov     [rbp+var_12], 0FFh                                             ; +0x59, 0x10000d5f9\nmov     [rbp+var_14], 0FFFFh                                           ; +0x5d, 0x10000d5fd\ncmp     dword ptr [rbx+4E0h], 1                                        ; +0x63, 0x10000d603\njnz     short loc_10000D62D                                            ; +0x6a, 0x10000d60a\nmov     rdi, rbx                                                       ; +0x6c, 0x10000d60c\ncall    GameObject__isColorObject                                      ; +0x6f, 0x10000d60f\ntest    al, al                                                         ; +0x74, 0x10000d614\njz      short loc_10000D62D                                            ; +0x76, 0x10000d616\ncmp     byte ptr [rbx+6E8h], 1                                         ; +0x78, 0x10000d618\njnz     short loc_10000D62D                                            ; +0x7f, 0x10000d61f\nmov     [rbp+var_12], 0FFh                                             ; +0x81, 0x10000d621\nmov     [rbp+var_14], 0C8C8h                                           ; +0x85, 0x10000d625\njmp     short loc_10000D678                                            ; +0x8b, 0x10000d62b\nmov     eax, [rbx+404h]                                                ; +0x8d, 0x10000d62d\ncmp     eax, 62Fh                                                      ; +0x93, 0x10000d633\njg      short loc_10000D651                                            ; +0x98, 0x10000d638\nlea     ecx, [rax-396h]                                                ; +0x9a, 0x10000d63a\ncmp     ecx, 2                                                         ; +0xa0, 0x10000d640\njb      short loc_10000D66E                                            ; +0xa3, 0x10000d643\nadd     eax, 0FFFFFAD1h                                                ; +0xa5, 0x10000d645\ncmp     eax, 2                                                         ; +0xaa, 0x10000d64a\njb      short loc_10000D66E                                            ; +0xad, 0x10000d64d\njmp     short loc_10000D65F                                            ; +0xaf, 0x10000d64f\ncmp     eax, 7DCh                                                      ; +0xb1, 0x10000d651\njz      short loc_10000D66E                                            ; +0xb6, 0x10000d656\ncmp     eax, 630h                                                      ; +0xb8, 0x10000d658\njz      short loc_10000D66E                                            ; +0xbd, 0x10000d65d\nmov     rdi, rbx                                                       ; +0xbf, 0x10000d65f\ncall    GameObject__getMainColorMode                                   ; +0xc2, 0x10000d662\ncmp     eax, 3F2h                                                      ; +0xc7, 0x10000d667\njnz     short loc_10000D678                                            ; +0xcc, 0x10000d66c\nmov     [rbp+var_12], 0                                                ; +0xce, 0x10000d66e\nmov     [rbp+var_14], 0                                                ; +0xd2, 0x10000d672\nmov     rax, [rbx]                                                     ; +0xd8, 0x10000d678\nlea     rsi, [rbp+var_14]                                              ; +0xdb, 0x10000d67b\nmov     rdi, rbx                                                       ; +0xdf, 0x10000d67f\ncall    qword ptr [rax+5D8h]                                           ; +0xe2, 0x10000d682\nmov     [rbp+var_16], 0FFh                                             ; +0xe8, 0x10000d688\nmov     [rbp+var_18], 0C8C8h                                           ; +0xec, 0x10000d68c\nmov     rax, [rbx]                                                     ; +0xf2, 0x10000d692\nlea     rsi, [rbp+var_18]                                              ; +0xf5, 0x10000d695\nmov     rdi, rbx                                                       ; +0xf9, 0x10000d699\ncall    qword ptr [rax+448h]                                           ; +0xfc, 0x10000d69c\nadd     rsp, 10h                                                       ; +0x102, 0x10000d6a2\npop     rbx                                                            ; +0x106, 0x10000d6a6\npop     r14                                                            ; +0x107, 0x10000d6a7\npop     rbp                                                            ; +0x109, 0x10000d6a9\nretn                                                                   ; +0x10a, 0x10000d6aa", "xrefs": [], "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"}