{"type": "func", "start": 4300965312, "end": 4300965393, "name": "EditorUI::onCopyState", "pseudocode": "// \n// EditorUI::onCopyState from 0x1005b85c0 to 0x1005b8611 (81 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c487\n// > EditorUI::init @ 0x100006f74\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:32:42 +0000\n// \n\n__int64 __fastcall EditorUI::onCopyState(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rax\n  __int64 result; // rax\n\n  if ( *(_QWORD *)(a1 + 1496) )\n  {\n    v1 = EditorSFXManager::sharedState(a1);\n    EditorSFXManager::playAction(v1, 112, 110);\n    v2 = GameManager::sharedState();\n    LevelEditorLayer::copyObjectState(*(_QWORD **)(v2 + 552), *(_QWORD *)(a1 + 1496));\n    return EditorUI::updateButtons(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onCopyState from 0x1005b85c0 to 0x1005b8611 (81 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c487\n; > EditorUI::init @ 0x100006f74\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:32:42 +0000\n; \ncmp     qword ptr [rdi+5D8h], 0                                        ; +0x0, 0x1005b85c0\njz      short locret_1005B8610                                         ; +0x8, 0x1005b85c8\npush    rbp                                                            ; +0xa, 0x1005b85ca\nmov     rbp, rsp                                                       ; +0xb, 0x1005b85cb\npush    rbx                                                            ; +0xe, 0x1005b85ce\npush    rax                                                            ; +0xf, 0x1005b85cf\nmov     rbx, rdi                                                       ; +0x10, 0x1005b85d0\ncall    EditorSFXManager__sharedState                                  ; +0x13, 0x1005b85d3\nmov     rdi, rax                                                       ; +0x18, 0x1005b85d8\nmov     esi, 70h ; 'p'                                                 ; +0x1b, 0x1005b85db\nmov     edx, 6Eh ; 'n'                                                 ; +0x20, 0x1005b85e0\ncall    EditorSFXManager__playAction                                   ; +0x25, 0x1005b85e5\ncall    GameManager__sharedState                                       ; +0x2a, 0x1005b85ea\nmov     rdi, [rax+228h]                                                ; +0x2f, 0x1005b85ef\nmov     rsi, [rbx+5D8h]                                                ; +0x36, 0x1005b85f6\ncall    LevelEditorLayer__copyObjectState                              ; +0x3d, 0x1005b85fd\nmov     rdi, rbx                                                       ; +0x42, 0x1005b8602\nadd     rsp, 8                                                         ; +0x45, 0x1005b8605\npop     rbx                                                            ; +0x49, 0x1005b8609\npop     rbp                                                            ; +0x4a, 0x1005b860a\njmp     EditorUI__updateButtons                                        ; +0x4b, 0x1005b860b\nretn                                                                   ; +0x50, 0x1005b8610", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c487", "EditorUI::init @ 0x100006f74"], "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"}