{"type": "func", "start": 4295222352, "end": 4295222525, "name": "EditorUI::doPasteInPlace", "pseudocode": "// \n// EditorUI::doPasteInPlace from 0x10003e450 to 0x10003e4fd (173 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPasteInPlace @ 0x10003e447\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::doPasteInPlace(EditorUI *a1, bool a2)\n{\n  double v2; // xmm0_8\n  GameManager *v3; // rax\n  unsigned int sizex2; // ecx\n  GameManager *v5; // rax\n  std::string v6[2]; // [rsp+0h] [rbp-30h] BYREF\n\n  v3 = GameManager::sharedState();\n  sizex2 = v3->m_editorClipboard.m_data.m_short.sizex2;\n  if ( (sizex2 & 1) != 0 )\n  {\n    if ( !v3->m_editorClipboard.m_data.m_long.size )\n      return;\n  }\n  else if ( !(sizex2 >> 1) )\n  {\n    return;\n  }\n  v5 = GameManager::sharedState();\n  if ( (v5->m_editorClipboard.m_data.m_short.sizex2 & 1) != 0 )\n    sub_100006B70(v6, v5->m_editorClipboard.m_data.m_long.longStorage, v5->m_editorClipboard.m_data.m_long.size, v2);\n  else\n    v6[0] = (std::string)v5->m_editorClipboard;\n  EditorUI::pasteObjects(a1, v6, a2, 0);\n  if ( (*(_BYTE *)&v6[0].__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v6[0].__r_.__value_.__l.__data_);\n  EditorUI::updateButtons(a1);\n  EditorUI::updateObjectInfoLabel(a1);\n}", "assembly": "; \n; EditorUI::doPasteInPlace from 0x10003e450 to 0x10003e4fd (173 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPasteInPlace @ 0x10003e447\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10003e450\nmov     rbp, rsp                                                       ; +0x1, 0x10003e451\npush    r14                                                            ; +0x4, 0x10003e454\npush    rbx                                                            ; +0x6, 0x10003e456\nsub     rsp, 20h                                                       ; +0x7, 0x10003e457\nmov     r14d, esi                                                      ; +0xb, 0x10003e45b\nmov     rbx, rdi                                                       ; +0xe, 0x10003e45e\ncall    GameManager__sharedState                                       ; +0x11, 0x10003e461\nmovzx   ecx, byte ptr [rax+1D8h]                                       ; +0x16, 0x10003e466\ntest    cl, 1                                                          ; +0x1d, 0x10003e46d\njnz     short loc_10003E47B                                            ; +0x20, 0x10003e470\nshr     ecx, 1                                                         ; +0x22, 0x10003e472\ntest    rcx, rcx                                                       ; +0x24, 0x10003e474\njnz     short loc_10003E487                                            ; +0x27, 0x10003e477\njmp     short loc_10003E4F4                                            ; +0x29, 0x10003e479\nmov     rcx, [rax+1E0h]                                                ; +0x2b, 0x10003e47b\ntest    rcx, rcx                                                       ; +0x32, 0x10003e482\njz      short loc_10003E4F4                                            ; +0x35, 0x10003e485\ncall    GameManager__sharedState                                       ; +0x37, 0x10003e487\ntest    byte ptr [rax+1D8h], 1                                         ; +0x3c, 0x10003e48c\njnz     short loc_10003E4AC                                            ; +0x43, 0x10003e493\nadd     rax, 1D8h                                                      ; +0x45, 0x10003e495\nmov     rcx, [rax+10h]                                                 ; +0x4b, 0x10003e49b\nmov     [rbp+__p], rcx                                                 ; +0x4f, 0x10003e49f\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x53, 0x10003e4a3\nmovaps  [rbp+var_30], xmm0                                             ; +0x56, 0x10003e4a6\njmp     short loc_10003E4C3                                            ; +0x5a, 0x10003e4aa\nmov     rdx, [rax+1E0h]                                                ; +0x5c, 0x10003e4ac\nmov     rsi, [rax+1E8h]                                                ; +0x63, 0x10003e4b3\nlea     rdi, [rbp+var_30]                                              ; +0x6a, 0x10003e4ba\ncall    sub_100006B70                                                  ; +0x6e, 0x10003e4be\nmovzx   edx, r14b                                                      ; +0x73, 0x10003e4c3\nlea     rsi, [rbp+var_30]                                              ; +0x77, 0x10003e4c7\nmov     rdi, rbx                                                       ; +0x7b, 0x10003e4cb\nxor     ecx, ecx                                                       ; +0x7e, 0x10003e4ce\ncall    EditorUI__pasteObjects                                         ; +0x80, 0x10003e4d0\ntest    byte ptr [rbp+var_30], 1                                       ; +0x85, 0x10003e4d5\njz      short loc_10003E4E4                                            ; +0x89, 0x10003e4d9\nmov     rdi, [rbp+__p]; __p                                            ; +0x8b, 0x10003e4db\ncall    __ZdlPv; operator delete(void *)                               ; +0x8f, 0x10003e4df\nmov     rdi, rbx                                                       ; +0x94, 0x10003e4e4\ncall    EditorUI__updateButtons                                        ; +0x97, 0x10003e4e7\nmov     rdi, rbx                                                       ; +0x9c, 0x10003e4ec\ncall    EditorUI__updateObjectInfoLabel                                ; +0x9f, 0x10003e4ef\nadd     rsp, 20h                                                       ; +0xa4, 0x10003e4f4\npop     rbx                                                            ; +0xa8, 0x10003e4f8\npop     r14                                                            ; +0xa9, 0x10003e4f9\npop     rbp                                                            ; +0xab, 0x10003e4fb\nretn                                                                   ; +0xac, 0x10003e4fc", "xrefs": ["EditorUI::onPasteInPlace @ 0x10003e447"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}