{"type": "func", "start": 4295004864, "end": 4295005000, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x1000092c0 to 0x100009348 (136 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x100006899\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:48 +0000\n// \n\n__int64 __fastcall EditorUI::onSettings(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v2; // rax\n  _QWORD *v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rdx\n\n  if ( !*(_BYTE *)(a1 + 1588) )\n  {\n    result = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 1936LL);\n    if ( !result || *(_DWORD *)(result + 1140) == 2 )\n    {\n      v2 = EditorSFXManager::sharedState(a1);\n      EditorSFXManager::playAction_1(v2, 220);\n      v3 = (_QWORD *)LevelSettingsLayer::create(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3272LL));\n      v4 = *(_QWORD *)(a1 + 1440);\n      v5 = v4 + 13992;\n      if ( !v4 )\n        v5 = 0;\n      v3[106] = v5;\n      return (*(__int64 (__fastcall **)(_QWORD *))(*v3 + 1312LL))(v3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onSettings from 0x1000092c0 to 0x100009348 (136 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x100006899\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:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000092c0\nmov     rbp, rsp                                                       ; +0x1, 0x1000092c1\npush    rbx                                                            ; +0x4, 0x1000092c4\npush    rax                                                            ; +0x5, 0x1000092c5\ncmp     byte ptr [rdi+634h], 0                                         ; +0x6, 0x1000092c6\njnz     short loc_100009341                                            ; +0xd, 0x1000092cd\nmov     rax, [rdi+5A0h]                                                ; +0xf, 0x1000092cf\nmov     rax, [rax+790h]                                                ; +0x16, 0x1000092d6\ntest    rax, rax                                                       ; +0x1d, 0x1000092dd\njz      short loc_1000092EB                                            ; +0x20, 0x1000092e0\ncmp     dword ptr [rax+474h], 2                                        ; +0x22, 0x1000092e2\njnz     short loc_100009341                                            ; +0x29, 0x1000092e9\nmov     rbx, rdi                                                       ; +0x2b, 0x1000092eb\ncall    EditorSFXManager__sharedState                                  ; +0x2e, 0x1000092ee\nmov     rdi, rax                                                       ; +0x33, 0x1000092f3\nmov     esi, 0DCh                                                      ; +0x36, 0x1000092f6\ncall    EditorSFXManager__playAction_1                                 ; +0x3b, 0x1000092fb\nmov     rsi, [rbx+5A0h]                                                ; +0x40, 0x100009300\nmov     rdi, [rsi+0CC8h]                                               ; +0x47, 0x100009307\ncall    LevelSettingsLayer__create                                     ; +0x4e, 0x10000930e\nmov     rcx, [rbx+5A0h]                                                ; +0x53, 0x100009313\nlea     rdx, [rcx+36A8h]                                               ; +0x5a, 0x10000931a\ntest    rcx, rcx                                                       ; +0x61, 0x100009321\ncmovz   rdx, rcx                                                       ; +0x64, 0x100009324\nmov     [rax+350h], rdx                                                ; +0x68, 0x100009328\nmov     rcx, [rax]                                                     ; +0x6f, 0x10000932f\nmov     rdi, rax                                                       ; +0x72, 0x100009332\nadd     rsp, 8                                                         ; +0x75, 0x100009335\npop     rbx                                                            ; +0x79, 0x100009339\npop     rbp                                                            ; +0x7a, 0x10000933a\njmp     qword ptr [rcx+520h]                                           ; +0x7b, 0x10000933b\nadd     rsp, 8                                                         ; +0x81, 0x100009341\npop     rbx                                                            ; +0x85, 0x100009345\npop     rbp                                                            ; +0x86, 0x100009346\nretn                                                                   ; +0x87, 0x100009347", "xrefs": ["EditorUI::init @ 0x100006899"], "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"}