{"type": "func", "start": 5370567840, "end": 5370568219, "name": "EditorUI::doCopyObjects", "pseudocode": "// \n// EditorUI::doCopyObjects from 0x1401c5ca0 to 0x1401c5e1b (379 bytes)\n// \n// 5 xrefs:\n// > EditorCommandsPopup::onCommand @ 0x14017dca0\n// > EditorUI::handleEditorAction @ 0x1401c23ba\n// > EditorUI::handleEditorAction @ 0x1401c358c\n// > EditorUI::onCopy @ 0x1401c5c90\n// > <???> @ 0x14091a75c\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// Hidden C++ exception states: #wind=3\nint __fastcall EditorUI::doCopyObjects(__int64 a1, char a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  cocos2d::CCArray *v6; // rbx\n  _QWORD *v7; // rbx\n  __int64 v8; // rcx\n  __int64 v9; // rbx\n  void *v11; // [rsp+30h] [rbp-38h]\n  void *v12; // [rsp+30h] [rbp-38h]\n  _QWORD v13[4]; // [rsp+38h] [rbp-30h] BYREF\n\n  if ( *(_QWORD *)(a1 + 1568) || (LODWORD(v4) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)), (_DWORD)v4) )\n  {\n    v4 = *(_QWORD *)(a1 + 1568);\n    if ( !v4 || *(_DWORD *)(v4 + 1036) != 749 )\n    {\n      if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) )\n      {\n        v6 = *(cocos2d::CCArray **)(a1 + 944);\n      }\n      else\n      {\n        v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);\n        cocos2d::CCArray::addObject(v6, *(struct cocos2d::CCObject **)(a1 + 1568));\n      }\n      v7 = EditorUI::copyObjects(a1, v13, (__int64)v6, a2, 0);\n      v8 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v11 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v11);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v8 = qword_14090BFD0;\n      }\n      sub_140059C40(v8 + 520, (__int64)v7);\n      sub_14003D310((__int64)v13);\n      v9 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v12 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v12);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v9 = qword_14090BFD0;\n      }\n      *(_DWORD *)(v9 + 552) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n      LODWORD(v4) = EditorUI::updateButtons(a1);\n    }\n  }\n  return v4;\n}", "assembly": "; \n; EditorUI::doCopyObjects from 0x1401c5ca0 to 0x1401c5e1b (379 bytes)\n; \n; 5 xrefs:\n; > EditorCommandsPopup::onCommand @ 0x14017dca0\n; > EditorUI::handleEditorAction @ 0x1401c23ba\n; > EditorUI::handleEditorAction @ 0x1401c358c\n; > EditorUI::onCopy @ 0x1401c5c90\n; > <???> @ 0x14091a75c\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; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401c5ca0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1401c5ca5\npush    rdi                                                            ; +0xa, 0x1401c5caa\nsub     rsp, 60h                                                       ; +0xb, 0x1401c5cab\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1401c5caf\nxor     rax, rsp                                                       ; +0x16, 0x1401c5cb6\nmov     [rsp+68h+var_10], rax                                          ; +0x19, 0x1401c5cb9\nmovzx   esi, dl                                                        ; +0x1e, 0x1401c5cbe\nmov     rdi, rcx                                                       ; +0x21, 0x1401c5cc1\ncmp     qword ptr [rcx+620h], 0                                        ; +0x24, 0x1401c5cc4\njnz     short loc_1401C5CE3                                            ; +0x2c, 0x1401c5ccc\nmov     rcx, [rcx+3B0h]                                                ; +0x2e, 0x1401c5cce\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x35, 0x1401c5cd5\ntest    eax, eax                                                       ; +0x3b, 0x1401c5cdb\njz      loc_1401C5DFC                                                  ; +0x3d, 0x1401c5cdd\nmov     rax, [rdi+620h]                                                ; +0x43, 0x1401c5ce3\ntest    rax, rax                                                       ; +0x4a, 0x1401c5cea\njz      short loc_1401C5CFF                                            ; +0x4d, 0x1401c5ced\ncmp     dword ptr [rax+40Ch], 2EDh                                     ; +0x4f, 0x1401c5cef\njz      loc_1401C5DFC                                                  ; +0x59, 0x1401c5cf9\nmov     rcx, [rdi+3B0h]                                                ; +0x5f, 0x1401c5cff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x66, 0x1401c5d06\ntest    eax, eax                                                       ; +0x6c, 0x1401c5d0c\njnz     short loc_1401C5D2B                                            ; +0x6e, 0x1401c5d0e\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x70, 0x1401c5d10\nmov     rbx, rax                                                       ; +0x76, 0x1401c5d16\nmov     rdx, [rdi+620h]                                                ; +0x79, 0x1401c5d19\nmov     rcx, rax                                                       ; +0x80, 0x1401c5d20\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x83, 0x1401c5d23\njmp     short loc_1401C5D32                                            ; +0x89, 0x1401c5d29\nmov     rbx, [rdi+3B0h]                                                ; +0x8b, 0x1401c5d2b\nmov     [rsp+68h+var_48], 0                                            ; +0x92, 0x1401c5d32\nmovzx   r9d, sil                                                       ; +0x97, 0x1401c5d37\nmov     r8, rbx                                                        ; +0x9b, 0x1401c5d3b\nlea     rdx, [rsp+68h+var_30]                                          ; +0x9e, 0x1401c5d3e\nmov     rcx, rdi                                                       ; +0xa3, 0x1401c5d43\ncall    EditorUI__copyObjects                                          ; +0xa6, 0x1401c5d46\nmov     rbx, rax                                                       ; +0xab, 0x1401c5d4b\nmov     rcx, cs:qword_14090BFD0                                        ; +0xae, 0x1401c5d4e\ntest    rcx, rcx                                                       ; +0xb5, 0x1401c5d55\njnz     short loc_1401C5D8C                                            ; +0xb8, 0x1401c5d58\nmov     ecx, 6E8h; Size                                                ; +0xba, 0x1401c5d5a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbf, 0x1401c5d5f\nmov     [rsp+68h+var_38], rax                                          ; +0xc4, 0x1401c5d64\nmov     rcx, rax                                                       ; +0xc9, 0x1401c5d69\ncall    GameManager__GameManager                                       ; +0xcc, 0x1401c5d6c\nnop                                                                    ; +0xd1, 0x1401c5d71\nmov     cs:qword_14090BFD0, rax                                        ; +0xd2, 0x1401c5d72\nmov     rcx, [rax]                                                     ; +0xd9, 0x1401c5d79\nmov     rdx, [rcx+48h]                                                 ; +0xdc, 0x1401c5d7c\nmov     rcx, rax                                                       ; +0xe0, 0x1401c5d80\ncall    rdx                                                            ; +0xe3, 0x1401c5d83\nmov     rcx, cs:qword_14090BFD0                                        ; +0xe5, 0x1401c5d85\nadd     rcx, 208h                                                      ; +0xec, 0x1401c5d8c\nmov     rdx, rbx                                                       ; +0xf3, 0x1401c5d93\ncall    sub_140059C40                                                  ; +0xf6, 0x1401c5d96\nnop                                                                    ; +0xfb, 0x1401c5d9b\nlea     rcx, [rsp+68h+var_30]                                          ; +0xfc, 0x1401c5d9c\ncall    sub_14003D310                                                  ; +0x101, 0x1401c5da1\nmov     rbx, cs:qword_14090BFD0                                        ; +0x106, 0x1401c5da6\ntest    rbx, rbx                                                       ; +0x10d, 0x1401c5dad\njnz     short loc_1401C5DE1                                            ; +0x110, 0x1401c5db0\nmov     ecx, 6E8h; Size                                                ; +0x112, 0x1401c5db2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x117, 0x1401c5db7\nmov     [rsp+68h+var_38], rax                                          ; +0x11c, 0x1401c5dbc\nmov     rcx, rax                                                       ; +0x121, 0x1401c5dc1\ncall    GameManager__GameManager                                       ; +0x124, 0x1401c5dc4\nnop                                                                    ; +0x129, 0x1401c5dc9\nmov     cs:qword_14090BFD0, rax                                        ; +0x12a, 0x1401c5dca\nmov     rdx, [rax]                                                     ; +0x131, 0x1401c5dd1\nmov     rcx, rax                                                       ; +0x134, 0x1401c5dd4\ncall    qword ptr [rdx+48h]                                            ; +0x137, 0x1401c5dd7\nmov     rbx, cs:qword_14090BFD0                                        ; +0x13a, 0x1401c5dda\nmov     rcx, [rdi+3B0h]                                                ; +0x141, 0x1401c5de1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x148, 0x1401c5de8\nmov     [rbx+228h], eax                                                ; +0x14e, 0x1401c5dee\nmov     rcx, rdi                                                       ; +0x154, 0x1401c5df4\ncall    EditorUI__updateButtons                                        ; +0x157, 0x1401c5df7\nmov     rcx, [rsp+68h+var_10]                                          ; +0x15c, 0x1401c5dfc\nxor     rcx, rsp; StackCookie                                          ; +0x161, 0x1401c5e01\ncall    __security_check_cookie                                        ; +0x164, 0x1401c5e04\nlea     r11, [rsp+68h+var_8]                                           ; +0x169, 0x1401c5e09\nmov     rbx, [r11+20h]                                                 ; +0x16e, 0x1401c5e0e\nmov     rsi, [r11+28h]                                                 ; +0x172, 0x1401c5e12\nmov     rsp, r11                                                       ; +0x176, 0x1401c5e16\npop     rdi                                                            ; +0x179, 0x1401c5e19\nretn                                                                   ; +0x17a, 0x1401c5e1a", "xrefs": ["EditorCommandsPopup::onCommand @ 0x14017dca0", "EditorUI::handleEditorAction @ 0x1401c23ba", "EditorUI::handleEditorAction @ 0x1401c358c", "EditorUI::onCopy @ 0x1401c5c90", "<???> @ 0x14091a75c"], "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"}