{"type": "func", "start": 4300965408, "end": 4300965518, "name": "EditorUI::onPasteState", "pseudocode": "// \n// EditorUI::onPasteState from 0x1005b8620 to 0x1005b868e (110 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c558\n// > EditorUI::init @ 0x100007016\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::onPasteState(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 result; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rsi\n  __int64 v6; // rdx\n\n  v1 = a1;\n  if ( *(_QWORD *)(a1 + 1496) || (a1 = *(_QWORD *)(a1 + 896), result = sub_1007FEF90(a1), (_DWORD)result) )\n  {\n    v3 = EditorSFXManager::sharedState(a1);\n    EditorSFXManager::playAction(v3, 113, 111);\n    v4 = GameManager::sharedState();\n    v5 = *(_QWORD *)(v1 + 1496);\n    LevelEditorLayer::pasteAttributeState(*(_QWORD *)(v4 + 552), v5, *(_QWORD *)(v1 + 896));\n    return EditorUI::updateObjectInfoLabel(v1, v5, v6);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPasteState from 0x1005b8620 to 0x1005b868e (110 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c558\n; > EditorUI::init @ 0x100007016\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; \npush    rbp                                                            ; +0x0, 0x1005b8620\nmov     rbp, rsp                                                       ; +0x1, 0x1005b8621\npush    rbx                                                            ; +0x4, 0x1005b8624\npush    rax                                                            ; +0x5, 0x1005b8625\nmov     rbx, rdi                                                       ; +0x6, 0x1005b8626\ncmp     qword ptr [rdi+5D8h], 0                                        ; +0x9, 0x1005b8629\njnz     short loc_1005B8643                                            ; +0x11, 0x1005b8631\nmov     rdi, [rbx+380h]                                                ; +0x13, 0x1005b8633\ncall    sub_1007FEF90                                                  ; +0x1a, 0x1005b863a\ntest    eax, eax                                                       ; +0x1f, 0x1005b863f\njz      short loc_1005B8687                                            ; +0x21, 0x1005b8641\ncall    EditorSFXManager__sharedState                                  ; +0x23, 0x1005b8643\nmov     rdi, rax                                                       ; +0x28, 0x1005b8648\nmov     esi, 71h ; 'q'                                                 ; +0x2b, 0x1005b864b\nmov     edx, 6Fh ; 'o'                                                 ; +0x30, 0x1005b8650\ncall    EditorSFXManager__playAction                                   ; +0x35, 0x1005b8655\ncall    GameManager__sharedState                                       ; +0x3a, 0x1005b865a\nmov     rdi, [rax+228h]                                                ; +0x3f, 0x1005b865f\nmov     rsi, [rbx+5D8h]                                                ; +0x46, 0x1005b8666\nmov     rdx, [rbx+380h]                                                ; +0x4d, 0x1005b866d\ncall    LevelEditorLayer__pasteAttributeState                          ; +0x54, 0x1005b8674\nmov     rdi, rbx                                                       ; +0x59, 0x1005b8679\nadd     rsp, 8                                                         ; +0x5c, 0x1005b867c\npop     rbx                                                            ; +0x60, 0x1005b8680\npop     rbp                                                            ; +0x61, 0x1005b8681\njmp     EditorUI__updateObjectInfoLabel                                ; +0x62, 0x1005b8682\nadd     rsp, 8                                                         ; +0x67, 0x1005b8687\npop     rbx                                                            ; +0x6b, 0x1005b868b\npop     rbp                                                            ; +0x6c, 0x1005b868c\nretn                                                                   ; +0x6d, 0x1005b868d", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c558", "EditorUI::init @ 0x100007016"], "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"}