{"type": "func", "start": 4300963136, "end": 4300963385, "name": "EditorUI::doCopyObjects", "pseudocode": "// \n// EditorUI::doCopyObjects from 0x1005b7d40 to 0x1005b7e39 (249 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCopy @ 0x1005b7d30\n// > EditorUI::handleEditorAction @ 0x10060ccb5\n// > EditorCommandsPopup::onCommand @ 0x1008deda8\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::doCopyObjects(__int64 a1, char a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  __int64 v5; // r15\n  __int64 v6; // rax\n  std::string *v7; // r14\n  int v8; // r14d\n  std::string v9; // [rsp+0h] [rbp-30h] BYREF\n\n  result = *(_QWORD *)(a1 + 1496);\n  if ( result )\n    goto LABEL_2;\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 896));\n  if ( !(_DWORD)result )\n    return result;\n  result = *(_QWORD *)(a1 + 1496);\n  if ( result )\n  {\nLABEL_2:\n    if ( *(_DWORD *)(result + 1028) == 749 )\n      return result;\n  }\n  v4 = *(_QWORD *)(a1 + 896);\n  if ( (unsigned int)sub_1007FEF90(v4) )\n  {\n    v5 = *(_QWORD *)(a1 + 896);\n  }\n  else\n  {\n    v5 = sub_1007FE900(v4);\n    sub_1007FEBF0(v5, *(_QWORD *)(a1 + 1496));\n  }\n  EditorUI::copyObjects(&v9, a1, v5, a2, 0);\n  v6 = GameManager::sharedState();\n  v7 = (std::string *)(v6 + 512);\n  if ( (*(_BYTE *)(v6 + 512) & 1) != 0 )\n    operator delete(*(void **)(v6 + 528));\n  *v7 = v9;\n  v8 = sub_1007FEF90(*(_QWORD *)(a1 + 896));\n  *(_DWORD *)(GameManager::sharedState() + 536) = v8;\n  return EditorUI::updateButtons(a1);\n}", "assembly": "; \n; EditorUI::doCopyObjects from 0x1005b7d40 to 0x1005b7e39 (249 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCopy @ 0x1005b7d30\n; > EditorUI::handleEditorAction @ 0x10060ccb5\n; > EditorCommandsPopup::onCommand @ 0x1008deda8\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, 0x1005b7d40\nmov     rbp, rsp                                                       ; +0x1, 0x1005b7d41\npush    r15                                                            ; +0x4, 0x1005b7d44\npush    r14                                                            ; +0x6, 0x1005b7d46\npush    rbx                                                            ; +0x8, 0x1005b7d48\nsub     rsp, 18h                                                       ; +0x9, 0x1005b7d49\nmov     r14d, esi                                                      ; +0xd, 0x1005b7d4d\nmov     rbx, rdi                                                       ; +0x10, 0x1005b7d50\nmov     rax, [rdi+5D8h]                                                ; +0x13, 0x1005b7d53\ntest    rax, rax                                                       ; +0x1a, 0x1005b7d5a\njz      short loc_1005B7D88                                            ; +0x1d, 0x1005b7d5d\ncmp     dword ptr [rax+404h], 2EDh                                     ; +0x1f, 0x1005b7d5f\njz      loc_1005B7E2E                                                  ; +0x29, 0x1005b7d69\nmov     rdi, [rbx+380h]                                                ; +0x2f, 0x1005b7d6f\ncall    sub_1007FEF90                                                  ; +0x36, 0x1005b7d76\ntest    eax, eax                                                       ; +0x3b, 0x1005b7d7b\njz      short loc_1005B7DAA                                            ; +0x3d, 0x1005b7d7d\nmov     r15, [rbx+380h]                                                ; +0x3f, 0x1005b7d7f\njmp     short loc_1005B7DC1                                            ; +0x46, 0x1005b7d86\nmov     rdi, [rbx+380h]                                                ; +0x48, 0x1005b7d88\ncall    sub_1007FEF90                                                  ; +0x4f, 0x1005b7d8f\ntest    eax, eax                                                       ; +0x54, 0x1005b7d94\njz      loc_1005B7E2E                                                  ; +0x56, 0x1005b7d96\nmov     rax, [rbx+5D8h]                                                ; +0x5c, 0x1005b7d9c\ntest    rax, rax                                                       ; +0x63, 0x1005b7da3\njnz     short loc_1005B7D5F                                            ; +0x66, 0x1005b7da6\njmp     short loc_1005B7D6F                                            ; +0x68, 0x1005b7da8\ncall    sub_1007FE900                                                  ; +0x6a, 0x1005b7daa\nmov     r15, rax                                                       ; +0x6f, 0x1005b7daf\nmov     rsi, [rbx+5D8h]                                                ; +0x72, 0x1005b7db2\nmov     rdi, rax                                                       ; +0x79, 0x1005b7db9\ncall    sub_1007FEBF0                                                  ; +0x7c, 0x1005b7dbc\nmovzx   ecx, r14b                                                      ; +0x81, 0x1005b7dc1\nlea     rdi, [rbp+var_30]                                              ; +0x85, 0x1005b7dc5\nmov     rsi, rbx                                                       ; +0x89, 0x1005b7dc9\nmov     rdx, r15                                                       ; +0x8c, 0x1005b7dcc\nxor     r8d, r8d                                                       ; +0x8f, 0x1005b7dcf\ncall    EditorUI__copyObjects                                          ; +0x92, 0x1005b7dd2\ncall    GameManager__sharedState                                       ; +0x97, 0x1005b7dd7\nmov     r14, rax                                                       ; +0x9c, 0x1005b7ddc\nadd     r14, 200h                                                      ; +0x9f, 0x1005b7ddf\ntest    byte ptr [rax+200h], 1                                         ; +0xa6, 0x1005b7de6\njz      short loc_1005B7DFB                                            ; +0xad, 0x1005b7ded\nmov     rdi, [rax+210h]; __p                                           ; +0xaf, 0x1005b7def\ncall    __ZdlPv; operator delete(void *)                               ; +0xb6, 0x1005b7df6\nmov     rax, [rbp+var_20]                                              ; +0xbb, 0x1005b7dfb\nmov     [r14+10h], rax                                                 ; +0xbf, 0x1005b7dff\nmovups  xmm0, [rbp+var_30]                                             ; +0xc3, 0x1005b7e03\nmovups  xmmword ptr [r14], xmm0                                        ; +0xc7, 0x1005b7e07\nmov     rdi, [rbx+380h]                                                ; +0xcb, 0x1005b7e0b\ncall    sub_1007FEF90                                                  ; +0xd2, 0x1005b7e12\nmov     r14d, eax                                                      ; +0xd7, 0x1005b7e17\ncall    GameManager__sharedState                                       ; +0xda, 0x1005b7e1a\nmov     [rax+218h], r14d                                               ; +0xdf, 0x1005b7e1f\nmov     rdi, rbx                                                       ; +0xe6, 0x1005b7e26\ncall    EditorUI__updateButtons                                        ; +0xe9, 0x1005b7e29\nadd     rsp, 18h                                                       ; +0xee, 0x1005b7e2e\npop     rbx                                                            ; +0xf2, 0x1005b7e32\npop     r14                                                            ; +0xf3, 0x1005b7e33\npop     r15                                                            ; +0xf5, 0x1005b7e35\npop     rbp                                                            ; +0xf7, 0x1005b7e37\nretn                                                                   ; +0xf8, 0x1005b7e38", "xrefs": ["EditorUI::onCopy @ 0x1005b7d30", "EditorUI::handleEditorAction @ 0x10060ccb5", "EditorCommandsPopup::onCommand @ 0x1008deda8"], "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"}