{"type": "func", "start": 4295158192, "end": 4295158409, "name": "EditorUI::disableButton", "pseudocode": "// \n// EditorUI::disableButton from 0x10002e9b0 to 0x10002ea89 (217 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::disableButton(EditorUI *a1, CreateMenuItem *a2)\n{\n  __int64 v3; // 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  v3 = ((__int64 (__fastcall *)(CreateMenuItem *))a2->getNormalImage)(a2);\n  v4 = v3;\n  v5 = *(__int64 **)(v3 + 640);\n  if ( v5 )\n  {\n    v10 = 127;\n    v9 = 32639;\n    v6 = *v5;\n    v7 = &v9;\n  }\n  else\n  {\n    v5 = *(__int64 **)(v3 + 648);\n    if ( !v5 )\n      goto LABEL_6;\n    v12 = 127;\n    v11 = 32639;\n    v6 = *v5;\n    v7 = &v11;\n  }\n  (*(void (__fastcall **)(__int64 *, __int16 *))(v6 + 944))(v5, v7);\nLABEL_6:\n  if ( a2->m_objectID >= 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 && GameObject::isColorObject((GameObject *)v8) && *(_BYTE *)(v8 + 1768) == 1 )\n    {\n      v14 = v16;\n      v13 = v15;\n    }\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1480LL))(v8, &v13);\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1080LL))(v8, &v15);\n  }\n}", "assembly": "; \n; EditorUI::disableButton from 0x10002e9b0 to 0x10002ea89 (217 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10002e9b0\nmov     rbp, rsp                                                       ; +0x1, 0x10002e9b1\npush    r14                                                            ; +0x4, 0x10002e9b4\npush    rbx                                                            ; +0x6, 0x10002e9b6\nsub     rsp, 10h                                                       ; +0x7, 0x10002e9b7\nmov     rbx, rsi                                                       ; +0xb, 0x10002e9bb\nmov     rax, [rsi]                                                     ; +0xe, 0x10002e9be\nmov     rdi, rsi                                                       ; +0x11, 0x10002e9c1\ncall    qword ptr [rax+420h]                                           ; +0x14, 0x10002e9c4\nmov     r14, rax                                                       ; +0x1a, 0x10002e9ca\nmov     rdi, [rax+280h]                                                ; +0x1d, 0x10002e9cd\ntest    rdi, rdi                                                       ; +0x24, 0x10002e9d4\njz      short loc_10002E9EC                                            ; +0x27, 0x10002e9d7\nmov     [rbp+var_1E], 7Fh                                              ; +0x29, 0x10002e9d9\nmov     [rbp+var_20], 7F7Fh                                            ; +0x2d, 0x10002e9dd\nmov     rax, [rdi]                                                     ; +0x33, 0x10002e9e3\nlea     rsi, [rbp+var_20]                                              ; +0x36, 0x10002e9e6\njmp     short loc_10002EA09                                            ; +0x3a, 0x10002e9ea\nmov     rdi, [r14+288h]                                                ; +0x3c, 0x10002e9ec\ntest    rdi, rdi                                                       ; +0x43, 0x10002e9f3\njz      short loc_10002EA0F                                            ; +0x46, 0x10002e9f6\nmov     [rbp+var_1A], 7Fh                                              ; +0x48, 0x10002e9f8\nmov     [rbp+var_1C], 7F7Fh                                            ; +0x4c, 0x10002e9fc\nmov     rax, [rdi]                                                     ; +0x52, 0x10002ea02\nlea     rsi, [rbp+var_1C]                                              ; +0x55, 0x10002ea05\ncall    qword ptr [rax+3B0h]                                           ; +0x59, 0x10002ea09\ncmp     dword ptr [rbx+210h], 0                                        ; +0x5f, 0x10002ea0f\njs      short loc_10002EA80                                            ; +0x66, 0x10002ea16\nmov     rbx, [r14+278h]                                                ; +0x68, 0x10002ea18\nmov     [rbp+var_16], 7Fh                                              ; +0x6f, 0x10002ea1f\nmov     [rbp+var_18], 7F7Fh                                            ; +0x73, 0x10002ea23\nmov     [rbp+var_12], 7Fh                                              ; +0x79, 0x10002ea29\nmov     [rbp+var_14], 6464h                                            ; +0x7d, 0x10002ea2d\ncmp     dword ptr [rbx+4E0h], 1                                        ; +0x83, 0x10002ea33\njnz     short loc_10002EA60                                            ; +0x8a, 0x10002ea3a\nmov     rdi, rbx                                                       ; +0x8c, 0x10002ea3c\ncall    GameObject__isColorObject                                      ; +0x8f, 0x10002ea3f\ntest    al, al                                                         ; +0x94, 0x10002ea44\njz      short loc_10002EA60                                            ; +0x96, 0x10002ea46\ncmp     byte ptr [rbx+6E8h], 1                                         ; +0x98, 0x10002ea48\njnz     short loc_10002EA60                                            ; +0x9f, 0x10002ea4f\nmovzx   eax, [rbp+var_12]                                              ; +0xa1, 0x10002ea51\nmov     [rbp+var_16], al                                               ; +0xa5, 0x10002ea55\nmovzx   eax, [rbp+var_14]                                              ; +0xa8, 0x10002ea58\nmov     [rbp+var_18], ax                                               ; +0xac, 0x10002ea5c\nmov     rax, [rbx]                                                     ; +0xb0, 0x10002ea60\nlea     rsi, [rbp+var_18]                                              ; +0xb3, 0x10002ea63\nmov     rdi, rbx                                                       ; +0xb7, 0x10002ea67\ncall    qword ptr [rax+5C8h]                                           ; +0xba, 0x10002ea6a\nmov     rax, [rbx]                                                     ; +0xc0, 0x10002ea70\nlea     rsi, [rbp+var_14]                                              ; +0xc3, 0x10002ea73\nmov     rdi, rbx                                                       ; +0xc7, 0x10002ea77\ncall    qword ptr [rax+438h]                                           ; +0xca, 0x10002ea7a\nadd     rsp, 10h                                                       ; +0xd0, 0x10002ea80\npop     rbx                                                            ; +0xd4, 0x10002ea84\npop     r14                                                            ; +0xd5, 0x10002ea85\npop     rbp                                                            ; +0xd7, 0x10002ea87\nretn                                                                   ; +0xd8, 0x10002ea88", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}