{"type": "func", "start": 4295013808, "end": 4295014058, "name": "EditorUI::onShowUIBtn", "pseudocode": "// \n// EditorUI::onShowUIBtn from 0x10000b5b0 to 0x10000b6aa (250 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x100007b1e\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:49 +0000\n// \n\nvoid __fastcall EditorUI::onShowUIBtn(__int64 a1)\n{\n  bool v2; // r14\n  __int64 v3; // rdi\n  __int64 *v4; // rdi\n  __int64 v5; // rax\n  _BOOL8 v6; // rsi\n  bool v7; // al\n  __int64 v8; // rax\n\n  if ( *(_BYTE *)(a1 + 1588) )\n    return;\n  *(_WORD *)(a1 + 1589) = 0;\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 904) + 344LL))(\n    *(_QWORD *)(a1 + 904),\n    *(_DWORD *)(a1 + 1436) == 1);\n  EditorUI::updateDeleteButtons(a1);\n  v2 = 0;\n  EditorUI::updateCreateMenu(a1, 0);\n  if ( !*(_BYTE *)(a1 + 1589) )\n    v2 = *(_DWORD *)(a1 + 1436) == 3;\n  v3 = *(_QWORD *)(a1 + 1592);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 344LL))(v3, v2);\n    v4 = *(__int64 **)(a1 + 832);\n    if ( v4 )\n    {\n      v5 = *v4;\n      v6 = 0;\nLABEL_9:\n      (*(void (__fastcall **)(__int64 *, _BOOL8))(v5 + 344))(v4, v6);\n    }\n  }\n  else\n  {\n    v4 = *(__int64 **)(a1 + 832);\n    if ( v4 )\n    {\n      v5 = *v4;\n      v6 = v2;\n      goto LABEL_9;\n    }\n  }\n  if ( *(_BYTE *)(a1 + 1589) )\n    v7 = 0;\n  else\n    v7 = *(_DWORD *)(a1 + 1436) == 4;\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1384) + 344LL))(*(_QWORD *)(a1 + 1384), v7);\n  EditorUI::showUI(a1, 1);\n  v8 = EditorSFXManager::sharedState(a1);\n  EditorSFXManager::playAction(v8, 194, 189);\n}", "assembly": "; \n; EditorUI::onShowUIBtn from 0x10000b5b0 to 0x10000b6aa (250 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x100007b1e\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:49 +0000\n; \ncmp     byte ptr [rdi+634h], 0                                         ; +0x0, 0x10000b5b0\njz      short loc_10000B5BA                                            ; +0x7, 0x10000b5b7\nretn                                                                   ; +0x9, 0x10000b5b9\npush    rbp                                                            ; +0xa, 0x10000b5ba\nmov     rbp, rsp                                                       ; +0xb, 0x10000b5bb\npush    r14                                                            ; +0xe, 0x10000b5be\npush    rbx                                                            ; +0x10, 0x10000b5c0\nmov     rbx, rdi                                                       ; +0x11, 0x10000b5c1\nmov     word ptr [rdi+635h], 0                                         ; +0x14, 0x10000b5c4\nmov     rdi, [rdi+388h]                                                ; +0x1d, 0x10000b5cd\nxor     esi, esi                                                       ; +0x24, 0x10000b5d4\ncmp     dword ptr [rbx+59Ch], 1                                        ; +0x26, 0x10000b5d6\nsetz    sil                                                            ; +0x2d, 0x10000b5dd\nmov     rax, [rdi]                                                     ; +0x31, 0x10000b5e1\ncall    qword ptr [rax+158h]                                           ; +0x34, 0x10000b5e4\nmov     rdi, rbx                                                       ; +0x3a, 0x10000b5ea\ncall    EditorUI__updateDeleteButtons                                  ; +0x3d, 0x10000b5ed\nxor     r14d, r14d                                                     ; +0x42, 0x10000b5f2\nmov     rdi, rbx                                                       ; +0x45, 0x10000b5f5\nxor     esi, esi                                                       ; +0x48, 0x10000b5f8\ncall    EditorUI__updateCreateMenu                                     ; +0x4a, 0x10000b5fa\ncmp     byte ptr [rbx+635h], 0                                         ; +0x4f, 0x10000b5ff\njnz     short loc_10000B613                                            ; +0x56, 0x10000b606\ncmp     dword ptr [rbx+59Ch], 3                                        ; +0x58, 0x10000b608\nsetz    r14b                                                           ; +0x5f, 0x10000b60f\nmov     rdi, [rbx+638h]                                                ; +0x63, 0x10000b613\ntest    rdi, rdi                                                       ; +0x6a, 0x10000b61a\njz      short loc_10000B63F                                            ; +0x6d, 0x10000b61d\nmov     rax, [rdi]                                                     ; +0x6f, 0x10000b61f\nmovzx   esi, r14b                                                      ; +0x72, 0x10000b622\ncall    qword ptr [rax+158h]                                           ; +0x76, 0x10000b626\nmov     rdi, [rbx+340h]                                                ; +0x7c, 0x10000b62c\ntest    rdi, rdi                                                       ; +0x83, 0x10000b633\njz      short loc_10000B658                                            ; +0x86, 0x10000b636\nmov     rax, [rdi]                                                     ; +0x88, 0x10000b638\nxor     esi, esi                                                       ; +0x8b, 0x10000b63b\njmp     short loc_10000B652                                            ; +0x8d, 0x10000b63d\nmov     rdi, [rbx+340h]                                                ; +0x8f, 0x10000b63f\ntest    rdi, rdi                                                       ; +0x96, 0x10000b646\njz      short loc_10000B658                                            ; +0x99, 0x10000b649\nmov     rax, [rdi]                                                     ; +0x9b, 0x10000b64b\nmovzx   esi, r14b                                                      ; +0x9e, 0x10000b64e\ncall    qword ptr [rax+158h]                                           ; +0xa2, 0x10000b652\nmov     rdi, [rbx+568h]                                                ; +0xa8, 0x10000b658\ncmp     byte ptr [rbx+635h], 0                                         ; +0xaf, 0x10000b65f\njz      short loc_10000B66C                                            ; +0xb6, 0x10000b666\nxor     eax, eax                                                       ; +0xb8, 0x10000b668\njmp     short loc_10000B676                                            ; +0xba, 0x10000b66a\ncmp     dword ptr [rbx+59Ch], 4                                        ; +0xbc, 0x10000b66c\nsetz    al                                                             ; +0xc3, 0x10000b673\nmov     rcx, [rdi]                                                     ; +0xc6, 0x10000b676\nmovzx   esi, al                                                        ; +0xc9, 0x10000b679\ncall    qword ptr [rcx+158h]                                           ; +0xcc, 0x10000b67c\nmov     rdi, rbx                                                       ; +0xd2, 0x10000b682\nmov     esi, 1                                                         ; +0xd5, 0x10000b685\ncall    EditorUI__showUI                                               ; +0xda, 0x10000b68a\ncall    EditorSFXManager__sharedState                                  ; +0xdf, 0x10000b68f\nmov     rdi, rax                                                       ; +0xe4, 0x10000b694\nmov     esi, 0C2h                                                      ; +0xe7, 0x10000b697\nmov     edx, 0BDh                                                      ; +0xec, 0x10000b69c\npop     rbx                                                            ; +0xf1, 0x10000b6a1\npop     r14                                                            ; +0xf2, 0x10000b6a2\npop     rbp                                                            ; +0xf4, 0x10000b6a4\njmp     EditorSFXManager__playAction                                   ; +0xf5, 0x10000b6a5", "xrefs": ["EditorUI::init @ 0x100007b1e"], "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"}