{"type": "func", "start": 4300964304, "end": 4300964497, "name": "EditorUI::doPasteInPlace", "pseudocode": "// \n// EditorUI::doPasteInPlace from 0x1005b81d0 to 0x1005b8291 (193 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPasteInPlace @ 0x1005b81c6\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::doPasteInPlace(_QWORD *a1, unsigned __int8 a2)\n{\n  __int64 result; // rax\n  unsigned int v3; // ecx\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  std::string v6[2]; // [rsp+0h] [rbp-30h] BYREF\n\n  result = GameManager::sharedState();\n  v3 = *(unsigned __int8 *)(result + 512);\n  if ( (v3 & 1) != 0 )\n  {\n    if ( !*(_QWORD *)(result + 520) )\n      return result;\n  }\n  else if ( !(v3 >> 1) )\n  {\n    return result;\n  }\n  v4 = GameManager::sharedState();\n  if ( (*(_BYTE *)(v4 + 512) & 1) != 0 )\n    sub_10001AD30(v6, *(const void **)(v4 + 528), *(_QWORD *)(v4 + 520));\n  else\n    v6[0] = *(std::string *)(v4 + 512);\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  EditorBuildStats::noteAction(a1[180] + 14704LL);\n  EditorUI::updateButtons((__int64)a1);\n  return EditorUI::updateObjectInfoLabel((__int64)a1, (__int64)v6, v5);\n}", "assembly": "; \n; EditorUI::doPasteInPlace from 0x1005b81d0 to 0x1005b8291 (193 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPasteInPlace @ 0x1005b81c6\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, 0x1005b81d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005b81d1\npush    r14                                                            ; +0x4, 0x1005b81d4\npush    rbx                                                            ; +0x6, 0x1005b81d6\nsub     rsp, 20h                                                       ; +0x7, 0x1005b81d7\nmov     r14d, esi                                                      ; +0xb, 0x1005b81db\nmov     rbx, rdi                                                       ; +0xe, 0x1005b81de\ncall    GameManager__sharedState                                       ; +0x11, 0x1005b81e1\nmovzx   ecx, byte ptr [rax+200h]                                       ; +0x16, 0x1005b81e6\ntest    cl, 1                                                          ; +0x1d, 0x1005b81ed\njnz     short loc_1005B81FE                                            ; +0x20, 0x1005b81f0\nshr     ecx, 1                                                         ; +0x22, 0x1005b81f2\ntest    rcx, rcx                                                       ; +0x24, 0x1005b81f4\njnz     short loc_1005B820A                                            ; +0x27, 0x1005b81f7\njmp     loc_1005B8288                                                  ; +0x29, 0x1005b81f9\nmov     rcx, [rax+208h]                                                ; +0x2e, 0x1005b81fe\ntest    rcx, rcx                                                       ; +0x35, 0x1005b8205\njz      short loc_1005B8288                                            ; +0x38, 0x1005b8208\ncall    GameManager__sharedState                                       ; +0x3a, 0x1005b820a\ntest    byte ptr [rax+200h], 1                                         ; +0x3f, 0x1005b820f\njnz     short loc_1005B822F                                            ; +0x46, 0x1005b8216\nadd     rax, 200h                                                      ; +0x48, 0x1005b8218\nmov     rcx, [rax+10h]                                                 ; +0x4e, 0x1005b821e\nmov     [rbp+__p], rcx                                                 ; +0x52, 0x1005b8222\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x56, 0x1005b8226\nmovaps  [rbp+var_30], xmm0                                             ; +0x59, 0x1005b8229\njmp     short loc_1005B8246                                            ; +0x5d, 0x1005b822d\nmov     rdx, [rax+208h]                                                ; +0x5f, 0x1005b822f\nmov     rsi, [rax+210h]                                                ; +0x66, 0x1005b8236\nlea     rdi, [rbp+var_30]                                              ; +0x6d, 0x1005b823d\ncall    sub_10001AD30                                                  ; +0x71, 0x1005b8241\nmovzx   edx, r14b                                                      ; +0x76, 0x1005b8246\nlea     rsi, [rbp+var_30]                                              ; +0x7a, 0x1005b824a\nmov     rdi, rbx                                                       ; +0x7e, 0x1005b824e\nxor     ecx, ecx                                                       ; +0x81, 0x1005b8251\ncall    EditorUI__pasteObjects                                         ; +0x83, 0x1005b8253\ntest    byte ptr [rbp+var_30], 1                                       ; +0x88, 0x1005b8258\njz      short loc_1005B8267                                            ; +0x8c, 0x1005b825c\nmov     rdi, [rbp+__p]; __p                                            ; +0x8e, 0x1005b825e\ncall    __ZdlPv; operator delete(void *)                               ; +0x92, 0x1005b8262\nmov     edi, 3970h                                                     ; +0x97, 0x1005b8267\nadd     rdi, [rbx+5A0h]                                                ; +0x9c, 0x1005b826c\ncall    EditorBuildStats__noteAction                                   ; +0xa3, 0x1005b8273\nmov     rdi, rbx                                                       ; +0xa8, 0x1005b8278\ncall    EditorUI__updateButtons                                        ; +0xab, 0x1005b827b\nmov     rdi, rbx                                                       ; +0xb0, 0x1005b8280\ncall    EditorUI__updateObjectInfoLabel                                ; +0xb3, 0x1005b8283\nadd     rsp, 20h                                                       ; +0xb8, 0x1005b8288\npop     rbx                                                            ; +0xbc, 0x1005b828c\npop     r14                                                            ; +0xbd, 0x1005b828d\npop     rbp                                                            ; +0xbf, 0x1005b828f\nretn                                                                   ; +0xc0, 0x1005b8290", "xrefs": ["EditorUI::onPasteInPlace @ 0x1005b81c6"], "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"}