{"type": "func", "start": 5370568224, "end": 5370568344, "name": "EditorUI::onPaste", "pseudocode": "// \n// EditorUI::onPaste from 0x1401c5e20 to 0x1401c5e98 (120 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c23d3\n// > EditorUI::init @ 0x1401ab5ad\n// > <???> @ 0x14091a768\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:28:04 +0000\n// \n\n__int64 __fastcall EditorUI::onPaste(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rax\n  void *v4; // [rsp+40h] [rbp+18h]\n\n  result = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v4 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = qword_14090BFD0;\n  }\n  if ( *(_QWORD *)(result + 536) )\n  {\n    v3 = EditorSFXManager::sharedState();\n    EditorSFXManager::playAction(v3, 111);\n    return EditorUI::doPasteObjects(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPaste from 0x1401c5e20 to 0x1401c5e98 (120 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c23d3\n; > EditorUI::init @ 0x1401ab5ad\n; > <???> @ 0x14091a768\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:28:04 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401c5e20\nsub     rsp, 20h                                                       ; +0x2, 0x1401c5e22\nmov     rbx, rcx                                                       ; +0x6, 0x1401c5e26\nmov     rax, cs:qword_14090BFD0                                        ; +0x9, 0x1401c5e29\ntest    rax, rax                                                       ; +0x10, 0x1401c5e30\njnz     short loc_1401C5E67                                            ; +0x13, 0x1401c5e33\nmov     ecx, 6E8h; Size                                                ; +0x15, 0x1401c5e35\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1401c5e3a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x1401c5e3f\nmov     rcx, rax                                                       ; +0x24, 0x1401c5e44\ncall    GameManager__GameManager                                       ; +0x27, 0x1401c5e47\nnop                                                                    ; +0x2c, 0x1401c5e4c\nmov     cs:qword_14090BFD0, rax                                        ; +0x2d, 0x1401c5e4d\nmov     rcx, [rax]                                                     ; +0x34, 0x1401c5e54\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x1401c5e57\nmov     rcx, rax                                                       ; +0x3b, 0x1401c5e5b\ncall    rdx                                                            ; +0x3e, 0x1401c5e5e\nmov     rax, cs:qword_14090BFD0                                        ; +0x40, 0x1401c5e60\ncmp     qword ptr [rax+218h], 0                                        ; +0x47, 0x1401c5e67\njz      short loc_1401C5E92                                            ; +0x4f, 0x1401c5e6f\ncall    EditorSFXManager__sharedState                                  ; +0x51, 0x1401c5e71\nmov     rcx, rax                                                       ; +0x56, 0x1401c5e76\nmov     edx, 6Fh ; 'o'                                                 ; +0x59, 0x1401c5e79\ncall    EditorSFXManager__playAction                                   ; +0x5e, 0x1401c5e7e\nxor     edx, edx                                                       ; +0x63, 0x1401c5e83\nmov     rcx, rbx                                                       ; +0x65, 0x1401c5e85\nadd     rsp, 20h                                                       ; +0x68, 0x1401c5e88\npop     rbx                                                            ; +0x6c, 0x1401c5e8c\njmp     EditorUI__doPasteObjects                                       ; +0x6d, 0x1401c5e8d\nadd     rsp, 20h                                                       ; +0x72, 0x1401c5e92\npop     rbx                                                            ; +0x76, 0x1401c5e96\nretn                                                                   ; +0x77, 0x1401c5e97", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c23d3", "EditorUI::init @ 0x1401ab5ad", "<???> @ 0x14091a768"], "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"}