{"type": "func", "start": 5369835936, "end": 5369836312, "name": "EditorUI::doCopyObjects", "pseudocode": "// \n// EditorUI::doCopyObjects from 0x1401131a0 to 0x140113318 (376 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::onCopyWColor @ 0x1400dcd30\n// > EditorUI::onCopy @ 0x140113192\n// > EditorUI::keyDown @ 0x140125516\n// > <???> @ 0x1406c9090\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\n// Hidden C++ exception states: #wind=3\nvoid EditorUI::doCopyObjects(EditorUI *a1, bool a2)\n{\n  GameObject *m_selectedObject; // rax\n  __int64 v5; // rcx\n  cocos2d::CCArray *m_selectedObjects; // rbx\n  _QWORD *v7; // rbx\n  __int64 v8; // rcx\n  __int64 v9; // rbx\n  void *v10; // [rsp+30h] [rbp-38h]\n  void *v11; // [rsp+30h] [rbp-38h]\n  _QWORD v12[4]; // [rsp+38h] [rbp-30h] BYREF\n\n  if ( a1->m_selectedObject || cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObject = a1->m_selectedObject;\n    if ( !m_selectedObject || m_selectedObject->m_objectID != 749 )\n    {\n      if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n      {\n        m_selectedObjects = a1->m_selectedObjects;\n      }\n      else\n      {\n        m_selectedObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);\n        cocos2d::CCArray::addObject(m_selectedObjects, a1->m_selectedObject);\n      }\n      v7 = EditorUI::copyObjects((__int64)a1, v12, (__int64)m_selectedObjects, a2, 0);\n      v8 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v10 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v10);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v8 = qword_1406C2ED8;\n      }\n      sub_140051590(v8 + 480, (__int64)v7);\n      sub_14003A830((__int64)v12);\n      v9 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v11 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v11);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v9 = qword_1406C2ED8;\n      }\n      *(_DWORD *)(v9 + 512) = cocos2d::CCArray::count(a1->m_selectedObjects);\n      EditorUI::updateButtons(a1);\n    }\n  }\n}", "assembly": "; \n; EditorUI::doCopyObjects from 0x1401131a0 to 0x140113318 (376 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::onCopyWColor @ 0x1400dcd30\n; > EditorUI::onCopy @ 0x140113192\n; > EditorUI::keyDown @ 0x140125516\n; > <???> @ 0x1406c9090\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401131a0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1401131a5\npush    rdi                                                            ; +0xa, 0x1401131aa\nsub     rsp, 60h                                                       ; +0xb, 0x1401131ab\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1401131af\nxor     rax, rsp                                                       ; +0x16, 0x1401131b6\nmov     [rsp+68h+var_10], rax                                          ; +0x19, 0x1401131b9\nmovzx   esi, dl                                                        ; +0x1e, 0x1401131be\nmov     rdi, rcx                                                       ; +0x21, 0x1401131c1\ncmp     qword ptr [rcx+538h], 0                                        ; +0x24, 0x1401131c4\njnz     short loc_1401131E3                                            ; +0x2c, 0x1401131cc\nmov     rcx, [rcx+340h]                                                ; +0x2e, 0x1401131ce\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x35, 0x1401131d5\ntest    eax, eax                                                       ; +0x3b, 0x1401131db\njz      loc_1401132F9                                                  ; +0x3d, 0x1401131dd\nmov     rax, [rdi+538h]                                                ; +0x43, 0x1401131e3\ntest    rax, rax                                                       ; +0x4a, 0x1401131ea\njz      short loc_1401131FF                                            ; +0x4d, 0x1401131ed\ncmp     dword ptr [rax+40Ch], 2EDh                                     ; +0x4f, 0x1401131ef\njz      loc_1401132F9                                                  ; +0x59, 0x1401131f9\nmov     rcx, [rdi+340h]                                                ; +0x5f, 0x1401131ff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x66, 0x140113206\ntest    eax, eax                                                       ; +0x6c, 0x14011320c\njnz     short loc_14011322B                                            ; +0x6e, 0x14011320e\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x70, 0x140113210\nmov     rbx, rax                                                       ; +0x76, 0x140113216\nmov     rdx, [rdi+538h]                                                ; +0x79, 0x140113219\nmov     rcx, rax                                                       ; +0x80, 0x140113220\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x83, 0x140113223\njmp     short loc_140113232                                            ; +0x89, 0x140113229\nmov     rbx, [rdi+340h]                                                ; +0x8b, 0x14011322b\nmov     [rsp+68h+var_48], 0                                            ; +0x92, 0x140113232\nmovzx   r9d, sil                                                       ; +0x97, 0x140113237\nmov     r8, rbx                                                        ; +0x9b, 0x14011323b\nlea     rdx, [rsp+68h+var_30]                                          ; +0x9e, 0x14011323e\nmov     rcx, rdi                                                       ; +0xa3, 0x140113243\ncall    EditorUI__copyObjects                                          ; +0xa6, 0x140113246\nmov     rbx, rax                                                       ; +0xab, 0x14011324b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xae, 0x14011324e\ntest    rcx, rcx                                                       ; +0xb5, 0x140113255\njnz     short loc_140113289                                            ; +0xb8, 0x140113258\nmov     ecx, 668h; Size                                                ; +0xba, 0x14011325a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbf, 0x14011325f\nmov     [rsp+68h+var_38], rax                                          ; +0xc4, 0x140113264\nmov     rcx, rax                                                       ; +0xc9, 0x140113269\ncall    sub_14017AB00                                                  ; +0xcc, 0x14011326c\nnop                                                                    ; +0xd1, 0x140113271\nmov     cs:qword_1406C2ED8, rax                                        ; +0xd2, 0x140113272\nmov     rdx, [rax]                                                     ; +0xd9, 0x140113279\nmov     rcx, rax                                                       ; +0xdc, 0x14011327c\ncall    qword ptr [rdx+48h]                                            ; +0xdf, 0x14011327f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xe2, 0x140113282\nadd     rcx, 1E0h                                                      ; +0xe9, 0x140113289\nmov     rdx, rbx                                                       ; +0xf0, 0x140113290\ncall    sub_140051590                                                  ; +0xf3, 0x140113293\nnop                                                                    ; +0xf8, 0x140113298\nlea     rcx, [rsp+68h+var_30]                                          ; +0xf9, 0x140113299\ncall    sub_14003A830                                                  ; +0xfe, 0x14011329e\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x103, 0x1401132a3\ntest    rbx, rbx                                                       ; +0x10a, 0x1401132aa\njnz     short loc_1401132DE                                            ; +0x10d, 0x1401132ad\nmov     ecx, 668h; Size                                                ; +0x10f, 0x1401132af\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x114, 0x1401132b4\nmov     [rsp+68h+var_38], rax                                          ; +0x119, 0x1401132b9\nmov     rcx, rax                                                       ; +0x11e, 0x1401132be\ncall    sub_14017AB00                                                  ; +0x121, 0x1401132c1\nnop                                                                    ; +0x126, 0x1401132c6\nmov     cs:qword_1406C2ED8, rax                                        ; +0x127, 0x1401132c7\nmov     rdx, [rax]                                                     ; +0x12e, 0x1401132ce\nmov     rcx, rax                                                       ; +0x131, 0x1401132d1\ncall    qword ptr [rdx+48h]                                            ; +0x134, 0x1401132d4\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x137, 0x1401132d7\nmov     rcx, [rdi+340h]                                                ; +0x13e, 0x1401132de\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x145, 0x1401132e5\nmov     [rbx+200h], eax                                                ; +0x14b, 0x1401132eb\nmov     rcx, rdi                                                       ; +0x151, 0x1401132f1\ncall    EditorUI__updateButtons                                        ; +0x154, 0x1401132f4\nmov     rcx, [rsp+68h+var_10]                                          ; +0x159, 0x1401132f9\nxor     rcx, rsp; StackCookie                                          ; +0x15e, 0x1401132fe\ncall    __security_check_cookie                                        ; +0x161, 0x140113301\nlea     r11, [rsp+68h+var_8]                                           ; +0x166, 0x140113306\nmov     rbx, [r11+20h]                                                 ; +0x16b, 0x14011330b\nmov     rsi, [r11+28h]                                                 ; +0x16f, 0x14011330f\nmov     rsp, r11                                                       ; +0x173, 0x140113313\npop     rdi                                                            ; +0x176, 0x140113316\nretn                                                                   ; +0x177, 0x140113317", "xrefs": ["EditorPauseLayer::onCopyWColor @ 0x1400dcd30", "EditorUI::onCopy @ 0x140113192", "EditorUI::keyDown @ 0x140125516", "<???> @ 0x1406c9090"], "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"}