{"type": "func", "start": 4295022256, "end": 4295022473, "name": "EditorUI::disableButton", "pseudocode": "// \n// EditorUI::disableButton from 0x10000d6b0 to 0x10000d789 (217 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::disableButton(__int64 a1, int *a2)\n{\n  __int64 result; // rax\n  __int64 v4; // r14\n  __int64 *v5; // rdi\n  __int64 v6; // rax\n  __int16 *v7; // rsi\n  __int64 v8; // rbx\n  __int16 v9; // [rsp+0h] [rbp-20h] BYREF\n  char v10; // [rsp+2h] [rbp-1Eh]\n  __int16 v11; // [rsp+4h] [rbp-1Ch] BYREF\n  char v12; // [rsp+6h] [rbp-1Ah]\n  __int16 v13; // [rsp+8h] [rbp-18h] BYREF\n  char v14; // [rsp+Ah] [rbp-16h]\n  __int16 v15; // [rsp+Ch] [rbp-14h] BYREF\n  char v16; // [rsp+Eh] [rbp-12h]\n\n  result = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a2 + 1072LL))(a2);\n  v4 = result;\n  v5 = *(__int64 **)(result + 640);\n  if ( v5 )\n  {\n    v10 = 127;\n    v9 = 32639;\n    v6 = *v5;\n    v7 = &v9;\n  }\n  else\n  {\n    v5 = *(__int64 **)(result + 648);\n    if ( !v5 )\n      goto LABEL_6;\n    v12 = 127;\n    v11 = 32639;\n    v6 = *v5;\n    v7 = &v11;\n  }\n  result = (*(__int64 (__fastcall **)(__int64 *, __int16 *))(v6 + 960))(v5, v7);\nLABEL_6:\n  if ( a2[132] >= 0 )\n  {\n    v8 = *(_QWORD *)(v4 + 632);\n    v14 = 127;\n    v13 = 32639;\n    v16 = 127;\n    v15 = 25700;\n    if ( *(_DWORD *)(v8 + 1248) == 1 && (unsigned __int8)GameObject::isColorObject(v8) && *(_BYTE *)(v8 + 1768) == 1 )\n    {\n      v14 = v16;\n      v13 = v15;\n    }\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1496LL))(v8, &v13);\n    return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1096LL))(v8, &v15);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::disableButton from 0x10000d6b0 to 0x10000d789 (217 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, 0x10000d6b0\nmov     rbp, rsp                                                       ; +0x1, 0x10000d6b1\npush    r14                                                            ; +0x4, 0x10000d6b4\npush    rbx                                                            ; +0x6, 0x10000d6b6\nsub     rsp, 10h                                                       ; +0x7, 0x10000d6b7\nmov     rbx, rsi                                                       ; +0xb, 0x10000d6bb\nmov     rax, [rsi]                                                     ; +0xe, 0x10000d6be\nmov     rdi, rsi                                                       ; +0x11, 0x10000d6c1\ncall    qword ptr [rax+430h]                                           ; +0x14, 0x10000d6c4\nmov     r14, rax                                                       ; +0x1a, 0x10000d6ca\nmov     rdi, [rax+280h]                                                ; +0x1d, 0x10000d6cd\ntest    rdi, rdi                                                       ; +0x24, 0x10000d6d4\njz      short loc_10000D6EC                                            ; +0x27, 0x10000d6d7\nmov     [rbp+var_1E], 7Fh                                              ; +0x29, 0x10000d6d9\nmov     [rbp+var_20], 7F7Fh                                            ; +0x2d, 0x10000d6dd\nmov     rax, [rdi]                                                     ; +0x33, 0x10000d6e3\nlea     rsi, [rbp+var_20]                                              ; +0x36, 0x10000d6e6\njmp     short loc_10000D709                                            ; +0x3a, 0x10000d6ea\nmov     rdi, [r14+288h]                                                ; +0x3c, 0x10000d6ec\ntest    rdi, rdi                                                       ; +0x43, 0x10000d6f3\njz      short loc_10000D70F                                            ; +0x46, 0x10000d6f6\nmov     [rbp+var_1A], 7Fh                                              ; +0x48, 0x10000d6f8\nmov     [rbp+var_1C], 7F7Fh                                            ; +0x4c, 0x10000d6fc\nmov     rax, [rdi]                                                     ; +0x52, 0x10000d702\nlea     rsi, [rbp+var_1C]                                              ; +0x55, 0x10000d705\ncall    qword ptr [rax+3C0h]                                           ; +0x59, 0x10000d709\ncmp     dword ptr [rbx+210h], 0                                        ; +0x5f, 0x10000d70f\njs      short loc_10000D780                                            ; +0x66, 0x10000d716\nmov     rbx, [r14+278h]                                                ; +0x68, 0x10000d718\nmov     [rbp+var_16], 7Fh                                              ; +0x6f, 0x10000d71f\nmov     [rbp+var_18], 7F7Fh                                            ; +0x73, 0x10000d723\nmov     [rbp+var_12], 7Fh                                              ; +0x79, 0x10000d729\nmov     [rbp+var_14], 6464h                                            ; +0x7d, 0x10000d72d\ncmp     dword ptr [rbx+4E0h], 1                                        ; +0x83, 0x10000d733\njnz     short loc_10000D760                                            ; +0x8a, 0x10000d73a\nmov     rdi, rbx                                                       ; +0x8c, 0x10000d73c\ncall    GameObject__isColorObject                                      ; +0x8f, 0x10000d73f\ntest    al, al                                                         ; +0x94, 0x10000d744\njz      short loc_10000D760                                            ; +0x96, 0x10000d746\ncmp     byte ptr [rbx+6E8h], 1                                         ; +0x98, 0x10000d748\njnz     short loc_10000D760                                            ; +0x9f, 0x10000d74f\nmovzx   eax, [rbp+var_12]                                              ; +0xa1, 0x10000d751\nmov     [rbp+var_16], al                                               ; +0xa5, 0x10000d755\nmovzx   eax, [rbp+var_14]                                              ; +0xa8, 0x10000d758\nmov     [rbp+var_18], ax                                               ; +0xac, 0x10000d75c\nmov     rax, [rbx]                                                     ; +0xb0, 0x10000d760\nlea     rsi, [rbp+var_18]                                              ; +0xb3, 0x10000d763\nmov     rdi, rbx                                                       ; +0xb7, 0x10000d767\ncall    qword ptr [rax+5D8h]                                           ; +0xba, 0x10000d76a\nmov     rax, [rbx]                                                     ; +0xc0, 0x10000d770\nlea     rsi, [rbp+var_14]                                              ; +0xc3, 0x10000d773\nmov     rdi, rbx                                                       ; +0xc7, 0x10000d777\ncall    qword ptr [rax+448h]                                           ; +0xca, 0x10000d77a\nadd     rsp, 10h                                                       ; +0xd0, 0x10000d780\npop     rbx                                                            ; +0xd4, 0x10000d784\npop     r14                                                            ; +0xd5, 0x10000d785\npop     rbp                                                            ; +0xd7, 0x10000d787\nretn                                                                   ; +0xd8, 0x10000d788", "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"}