{"type": "func", "start": 5370469264, "end": 5370469668, "name": "EditorUI::enableButton", "pseudocode": "// \n// EditorUI::enableButton from 0x1401adb90 to 0x1401add24 (404 bytes)\n// \n// 4 xrefs:\n// > EditorUI::updateCreateMenu @ 0x1401b21ce\n// > EditorUI::updateCreateMenu @ 0x1401b220e\n// > <???> @ 0x140919d60\n// > <???> @ 0x140919d6c\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 11:27:54 +0000\n// \n\n__int64 __fastcall EditorUI::enableButton(__int64 a1, int *a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rbx\n  __int64 v5; // rcx\n  __int64 *v6; // rbx\n  __int16 v7; // ax\n  int v9; // ecx\n  int v10; // ecx\n  int v11; // ecx\n  int v12; // ecx\n  bool v13; // zf\n  int *v14; // rcx\n  int v15; // eax\n  __int64 v16; // rax\n  __int64 v17; // [rsp+30h] [rbp+8h] BYREF\n  __int16 v18; // [rsp+38h] [rbp+10h] BYREF\n  char v19; // [rsp+3Ah] [rbp+12h]\n\n  v17 = a1;\n  result = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a2 + 952LL))(a2);\n  v4 = result;\n  v5 = *(_QWORD *)(result + 648);\n  if ( v5 || (v5 = *(_QWORD *)(result + 656)) != 0 )\n    result = (**(__int64 (__fastcall ***)(__int64, __int16 *))(v5 + 320))(v5 + 320, &word_14070329C);\n  if ( a2[138] >= 0 )\n  {\n    v6 = *(__int64 **)(v4 + 640);\n    LOWORD(v17) = -1;\n    BYTE2(v17) = -1;\n    if ( *((_DWORD *)v6 + 314) == 1 )\n    {\n      v7 = *((_WORD *)v6 + 524);\n      if ( !(v7 ? v7 == 1 : *((_BYTE *)v6 + 1300)) && !v6[112] )\n      {\n        v9 = *(_DWORD *)(v6[138] + 4);\n        if ( v9 != 1004 && v9 && *((_BYTE *)v6 + 1784) )\n        {\n          LOWORD(v17) = -14136;\n          BYTE2(v17) = -1;\nLABEL_29:\n          (*(void (__fastcall **)(__int64 *, __int64 *))(*v6 + 1344))(v6, &v17);\n          v16 = *v6;\n          v18 = -14136;\n          v19 = -1;\n          return (*(__int64 (__fastcall **)(__int64 *, __int16 *))(v16 + 944))(v6, &v18);\n        }\n      }\n    }\n    v10 = *((_DWORD *)v6 + 259);\n    if ( v10 > 1328 )\n    {\n      if ( v10 != 1584 )\n      {\n        v13 = v10 == 2012;\n        goto LABEL_22;\n      }\n    }\n    else if ( v10 != 1328 )\n    {\n      v11 = v10 - 918;\n      if ( v11 )\n      {\n        v12 = v11 - 1;\n        if ( v12 )\n        {\n          v13 = v12 == 408;\nLABEL_22:\n          if ( !v13 )\n          {\n            v14 = (int *)v6[138];\n            if ( !v14 )\n              goto LABEL_29;\n            v15 = *v14;\n            if ( v14[1] == *v14 || !v15 )\n              v15 = v14[1];\n            if ( v15 != 1010 )\n              goto LABEL_29;\n          }\n        }\n      }\n    }\n    LOWORD(v17) = 0;\n    BYTE2(v17) = 0;\n    goto LABEL_29;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::enableButton from 0x1401adb90 to 0x1401add24 (404 bytes)\n; \n; 4 xrefs:\n; > EditorUI::updateCreateMenu @ 0x1401b21ce\n; > EditorUI::updateCreateMenu @ 0x1401b220e\n; > <???> @ 0x140919d60\n; > <???> @ 0x140919d6c\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 11:27:54 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401adb90\nmov     [rsp+arg_0], rcx                                               ; +0x5, 0x1401adb95\npush    rdi                                                            ; +0xa, 0x1401adb9a\nsub     rsp, 20h                                                       ; +0xb, 0x1401adb9b\nmov     rax, [rdx]                                                     ; +0xf, 0x1401adb9f\nmov     rcx, rdx                                                       ; +0x12, 0x1401adba2\nmov     rdi, rdx                                                       ; +0x15, 0x1401adba5\ncall    qword ptr [rax+3B8h]                                           ; +0x18, 0x1401adba8\nmov     rbx, rax                                                       ; +0x1e, 0x1401adbae\nmov     rcx, [rax+288h]                                                ; +0x21, 0x1401adbb1\ntest    rcx, rcx                                                       ; +0x28, 0x1401adbb8\njz      short loc_1401ADBD3                                            ; +0x2b, 0x1401adbbb\nadd     rcx, 140h                                                      ; +0x2d, 0x1401adbbd\nlea     rdx, word_14070329C                                            ; +0x34, 0x1401adbc4\nmov     r8, [rcx]                                                      ; +0x3b, 0x1401adbcb\ncall    qword ptr [r8]                                                 ; +0x3e, 0x1401adbce\njmp     short loc_1401ADBF2                                            ; +0x41, 0x1401adbd1\nmov     rcx, [rax+290h]                                                ; +0x43, 0x1401adbd3\ntest    rcx, rcx                                                       ; +0x4a, 0x1401adbda\njz      short loc_1401ADBF2                                            ; +0x4d, 0x1401adbdd\nadd     rcx, 140h                                                      ; +0x4f, 0x1401adbdf\nlea     rdx, word_14070329C                                            ; +0x56, 0x1401adbe6\nmov     rax, [rcx]                                                     ; +0x5d, 0x1401adbed\ncall    qword ptr [rax]                                                ; +0x60, 0x1401adbf0\ncmp     dword ptr [rdi+228h], 0                                        ; +0x62, 0x1401adbf2\njl      loc_1401ADD19                                                  ; +0x69, 0x1401adbf9\nmov     rbx, [rbx+280h]                                                ; +0x6f, 0x1401adbff\nmovzx   eax, cs:word_14070329C                                         ; +0x76, 0x1401adc06\nmov     word ptr [rsp+28h+arg_0], ax                                   ; +0x7d, 0x1401adc0d\nmovzx   eax, cs:byte_14070329E                                         ; +0x82, 0x1401adc12\nmov     byte ptr [rsp+28h+arg_0+2], al                                 ; +0x89, 0x1401adc19\ncmp     dword ptr [rbx+4E8h], 1                                        ; +0x8d, 0x1401adc1d\njnz     short loc_1401ADC7D                                            ; +0x94, 0x1401adc24\nmovzx   eax, word ptr [rbx+418h]                                       ; +0x96, 0x1401adc26\ntest    ax, ax                                                         ; +0x9d, 0x1401adc2d\njnz     short loc_1401ADC3B                                            ; +0xa0, 0x1401adc30\nmovzx   eax, byte ptr [rbx+514h]                                       ; +0xa2, 0x1401adc32\njmp     short loc_1401ADC42                                            ; +0xa9, 0x1401adc39\ncmp     ax, 1                                                          ; +0xab, 0x1401adc3b\nsetz    al                                                             ; +0xaf, 0x1401adc3f\ntest    al, al                                                         ; +0xb2, 0x1401adc42\njnz     short loc_1401ADC7D                                            ; +0xb4, 0x1401adc44\ncmp     qword ptr [rbx+380h], 0                                        ; +0xb6, 0x1401adc46\njnz     short loc_1401ADC7D                                            ; +0xbe, 0x1401adc4e\nmov     rax, [rbx+450h]                                                ; +0xc0, 0x1401adc50\nmov     ecx, [rax+4]                                                   ; +0xc7, 0x1401adc57\ncmp     ecx, 3ECh                                                      ; +0xca, 0x1401adc5a\njz      short loc_1401ADC7D                                            ; +0xd0, 0x1401adc60\ntest    ecx, ecx                                                       ; +0xd2, 0x1401adc62\njz      short loc_1401ADC7D                                            ; +0xd4, 0x1401adc64\ncmp     byte ptr [rbx+6F8h], 0                                         ; +0xd6, 0x1401adc66\njz      short loc_1401ADC7D                                            ; +0xdd, 0x1401adc6d\nmov     word ptr [rsp+28h+arg_0], 0C8C8h                               ; +0xdf, 0x1401adc6f\nmov     byte ptr [rsp+28h+arg_0+2], 0FFh                               ; +0xe6, 0x1401adc76\njmp     short loc_1401ADCEB                                            ; +0xeb, 0x1401adc7b\nmov     ecx, [rbx+40Ch]                                                ; +0xed, 0x1401adc7d\ncmp     ecx, 530h                                                      ; +0xf3, 0x1401adc83\njg      short loc_1401ADCA2                                            ; +0xf9, 0x1401adc89\njz      short loc_1401ADCD4                                            ; +0xfb, 0x1401adc8b\nsub     ecx, 396h                                                      ; +0xfd, 0x1401adc8d\njz      short loc_1401ADCD4                                            ; +0x103, 0x1401adc93\nsub     ecx, 1                                                         ; +0x105, 0x1401adc95\njz      short loc_1401ADCD4                                            ; +0x108, 0x1401adc98\ncmp     ecx, 198h                                                      ; +0x10a, 0x1401adc9a\njmp     short loc_1401ADCB0                                            ; +0x110, 0x1401adca0\ncmp     ecx, 630h                                                      ; +0x112, 0x1401adca2\njz      short loc_1401ADCD4                                            ; +0x118, 0x1401adca8\ncmp     ecx, 7DCh                                                      ; +0x11a, 0x1401adcaa\njz      short loc_1401ADCD4                                            ; +0x120, 0x1401adcb0\nmov     rcx, [rbx+450h]                                                ; +0x122, 0x1401adcb2\ntest    rcx, rcx                                                       ; +0x129, 0x1401adcb9\njz      short loc_1401ADCEB                                            ; +0x12c, 0x1401adcbc\nmov     eax, [rcx]                                                     ; +0x12e, 0x1401adcbe\nmov     edx, [rcx+4]                                                   ; +0x130, 0x1401adcc0\ncmp     edx, eax                                                       ; +0x133, 0x1401adcc3\njz      short loc_1401ADCCB                                            ; +0x135, 0x1401adcc5\ntest    eax, eax                                                       ; +0x137, 0x1401adcc7\njnz     short loc_1401ADCCD                                            ; +0x139, 0x1401adcc9\nmov     eax, edx                                                       ; +0x13b, 0x1401adccb\ncmp     eax, 3F2h                                                      ; +0x13d, 0x1401adccd\njnz     short loc_1401ADCEB                                            ; +0x142, 0x1401adcd2\nmovzx   eax, cs:word_140703294                                         ; +0x144, 0x1401adcd4\nmov     word ptr [rsp+28h+arg_0], ax                                   ; +0x14b, 0x1401adcdb\nmovzx   eax, cs:byte_140703296                                         ; +0x150, 0x1401adce0\nmov     byte ptr [rsp+28h+arg_0+2], al                                 ; +0x157, 0x1401adce7\nmov     rax, [rbx]                                                     ; +0x15b, 0x1401adceb\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x15e, 0x1401adcee\nmov     rcx, rbx                                                       ; +0x163, 0x1401adcf3\ncall    qword ptr [rax+540h]                                           ; +0x166, 0x1401adcf6\nmov     rax, [rbx]                                                     ; +0x16c, 0x1401adcfc\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x16f, 0x1401adcff\nmov     rcx, rbx                                                       ; +0x174, 0x1401add04\nmov     [rsp+28h+arg_8], 0C8C8h                                        ; +0x177, 0x1401add07\nmov     [rsp+28h+arg_A], 0FFh                                          ; +0x17e, 0x1401add0e\ncall    qword ptr [rax+3B0h]                                           ; +0x183, 0x1401add13\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x189, 0x1401add19\nadd     rsp, 20h                                                       ; +0x18e, 0x1401add1e\npop     rdi                                                            ; +0x192, 0x1401add22\nretn                                                                   ; +0x193, 0x1401add23", "xrefs": ["EditorUI::updateCreateMenu @ 0x1401b21ce", "EditorUI::updateCreateMenu @ 0x1401b220e", "<???> @ 0x140919d60", "<???> @ 0x140919d6c"], "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"}