{"type": "func", "start": 4300963424, "end": 4300963510, "name": "EditorUI::onPaste", "pseudocode": "// \n// EditorUI::onPaste from 0x1005b7e60 to 0x1005b7eb6 (86 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c609\n// > EditorUI::init @ 0x100006bb7\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::onPaste(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int v2; // ecx\n  __int64 v3; // rax\n\n  result = GameManager::sharedState();\n  v2 = *(unsigned __int8 *)(result + 512);\n  if ( (v2 & 1) == 0 )\n  {\n    if ( !(v2 >> 1) )\n      return result;\n    goto LABEL_3;\n  }\n  if ( *(_QWORD *)(result + 520) )\n  {\nLABEL_3:\n    v3 = EditorSFXManager::sharedState(a1);\n    EditorSFXManager::playAction_1(v3, 111);\n    return EditorUI::doPasteObjects(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPaste from 0x1005b7e60 to 0x1005b7eb6 (86 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c609\n; > EditorUI::init @ 0x100006bb7\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, 0x1005b7e60\nmov     rbp, rsp                                                       ; +0x1, 0x1005b7e61\npush    rbx                                                            ; +0x4, 0x1005b7e64\npush    rax                                                            ; +0x5, 0x1005b7e65\nmov     rbx, rdi                                                       ; +0x6, 0x1005b7e66\ncall    GameManager__sharedState                                       ; +0x9, 0x1005b7e69\nmovzx   ecx, byte ptr [rax+200h]                                       ; +0xe, 0x1005b7e6e\ntest    cl, 1                                                          ; +0x15, 0x1005b7e75\njnz     short loc_1005B7EA3                                            ; +0x18, 0x1005b7e78\nshr     ecx, 1                                                         ; +0x1a, 0x1005b7e7a\ntest    rcx, rcx                                                       ; +0x1c, 0x1005b7e7c\njz      short loc_1005B7EAF                                            ; +0x1f, 0x1005b7e7f\ncall    EditorSFXManager__sharedState                                  ; +0x21, 0x1005b7e81\nmov     rdi, rax                                                       ; +0x26, 0x1005b7e86\nmov     esi, 6Fh ; 'o'                                                 ; +0x29, 0x1005b7e89\ncall    EditorSFXManager__playAction_1                                 ; +0x2e, 0x1005b7e8e\nmov     rdi, rbx                                                       ; +0x33, 0x1005b7e93\nxor     esi, esi                                                       ; +0x36, 0x1005b7e96\nadd     rsp, 8                                                         ; +0x38, 0x1005b7e98\npop     rbx                                                            ; +0x3c, 0x1005b7e9c\npop     rbp                                                            ; +0x3d, 0x1005b7e9d\njmp     EditorUI__doPasteObjects                                       ; +0x3e, 0x1005b7e9e\nmov     rcx, [rax+208h]                                                ; +0x43, 0x1005b7ea3\ntest    rcx, rcx                                                       ; +0x4a, 0x1005b7eaa\njnz     short loc_1005B7E81                                            ; +0x4d, 0x1005b7ead\nadd     rsp, 8                                                         ; +0x4f, 0x1005b7eaf\npop     rbx                                                            ; +0x53, 0x1005b7eb3\npop     rbp                                                            ; +0x54, 0x1005b7eb4\nretn                                                                   ; +0x55, 0x1005b7eb5", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c609", "EditorUI::init @ 0x100006bb7"], "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"}