{"type": "func", "start": 5370493888, "end": 5370493985, "name": "EditorUI::undoLastAction", "pseudocode": "// \n// EditorUI::undoLastAction from 0x1401b3bc0 to 0x1401b3c21 (97 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1401aa8d3\n// > <???> @ 0x14091a078\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:56 +0000\n// \n\n__int64 __fastcall EditorUI::undoLastAction(__int64 a1)\n{\n  __int64 v2; // rax\n\n  v2 = EditorSFXManager::sharedState();\n  EditorSFXManager::playAction(v2, 180);\n  LevelEditorLayer::undoLastAction(*(_QWORD *)(a1 + 1512));\n  EditorUI::updateButtons(a1);\n  if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 344LL))(*(_QWORD *)(a1 + 808)) )\n  {\n    *(_BYTE *)(a1 + 824) = 1;\n    EditorUI::activateRotationControl(a1, 0);\n  }\n  return EditorUI::updateSpecialUIElements(a1);\n}", "assembly": "; \n; EditorUI::undoLastAction from 0x1401b3bc0 to 0x1401b3c21 (97 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1401aa8d3\n; > <???> @ 0x14091a078\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:56 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401b3bc0\nsub     rsp, 20h                                                       ; +0x2, 0x1401b3bc2\nmov     rbx, rcx                                                       ; +0x6, 0x1401b3bc6\ncall    EditorSFXManager__sharedState                                  ; +0x9, 0x1401b3bc9\nmov     rcx, rax                                                       ; +0xe, 0x1401b3bce\nmov     edx, 0B4h                                                      ; +0x11, 0x1401b3bd1\ncall    EditorSFXManager__playAction                                   ; +0x16, 0x1401b3bd6\nmov     rcx, [rbx+5E8h]                                                ; +0x1b, 0x1401b3bdb\ncall    LevelEditorLayer__undoLastAction                               ; +0x22, 0x1401b3be2\nmov     rcx, rbx                                                       ; +0x27, 0x1401b3be7\ncall    EditorUI__updateButtons                                        ; +0x2a, 0x1401b3bea\nmov     rcx, [rbx+328h]                                                ; +0x2f, 0x1401b3bef\nmov     rax, [rcx]                                                     ; +0x36, 0x1401b3bf6\ncall    qword ptr [rax+158h]                                           ; +0x39, 0x1401b3bf9\ntest    al, al                                                         ; +0x3f, 0x1401b3bff\njz      short loc_1401B3C14                                            ; +0x41, 0x1401b3c01\nxor     edx, edx                                                       ; +0x43, 0x1401b3c03\nmov     byte ptr [rbx+338h], 1                                         ; +0x45, 0x1401b3c05\nmov     rcx, rbx                                                       ; +0x4c, 0x1401b3c0c\ncall    EditorUI__activateRotationControl                              ; +0x4f, 0x1401b3c0f\nmov     rcx, rbx                                                       ; +0x54, 0x1401b3c14\nadd     rsp, 20h                                                       ; +0x57, 0x1401b3c17\npop     rbx                                                            ; +0x5b, 0x1401b3c1b\njmp     EditorUI__updateSpecialUIElements                              ; +0x5c, 0x1401b3c1c", "xrefs": ["EditorUI::init @ 0x1401aa8d3", "<???> @ 0x14091a078"], "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"}