{"type": "func", "start": 5369840480, "end": 5369840596, "name": "EditorUI::onCopyState", "pseudocode": "// \n// EditorUI::onCopyState from 0x140114360 to 0x1401143d4 (116 bytes)\n// \n// 3 xrefs:\n// > EditorUI::init @ 0x1400e0fdb\n// > <???> @ 0x1406c90cc\n// > <???> @ 0x1406c90d8\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=1\nvoid EditorUI::onCopyState(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_selectedObject )\n  {\n    v3 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v4 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = qword_1406C2ED8;\n    }\n    LevelEditorLayer::copyObjectState(*(LevelEditorLayer **)(v3 + 528), a1->m_selectedObject);\n    EditorUI::updateButtons(a1);\n  }\n}", "assembly": "; \n; EditorUI::onCopyState from 0x140114360 to 0x1401143d4 (116 bytes)\n; \n; 3 xrefs:\n; > EditorUI::init @ 0x1400e0fdb\n; > <???> @ 0x1406c90cc\n; > <???> @ 0x1406c90d8\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    rbx                                                            ; +0x0, 0x140114360\nsub     rsp, 20h                                                       ; +0x2, 0x140114362\nmov     rbx, rcx                                                       ; +0x6, 0x140114366\ncmp     qword ptr [rcx+538h], 0                                        ; +0x9, 0x140114369\njz      short loc_1401143CE                                            ; +0x11, 0x140114371\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x13, 0x140114373\ntest    rcx, rcx                                                       ; +0x1a, 0x14011437a\njnz     short loc_1401143AE                                            ; +0x1d, 0x14011437d\nmov     ecx, 668h; Size                                                ; +0x1f, 0x14011437f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x24, 0x140114384\nmov     [rsp+28h+arg_0], rax                                           ; +0x29, 0x140114389\nmov     rcx, rax                                                       ; +0x2e, 0x14011438e\ncall    sub_14017AB00                                                  ; +0x31, 0x140114391\nnop                                                                    ; +0x36, 0x140114396\nmov     cs:qword_1406C2ED8, rax                                        ; +0x37, 0x140114397\nmov     rdx, [rax]                                                     ; +0x3e, 0x14011439e\nmov     rcx, rax                                                       ; +0x41, 0x1401143a1\ncall    qword ptr [rdx+48h]                                            ; +0x44, 0x1401143a4\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x47, 0x1401143a7\nmov     rdx, [rbx+538h]                                                ; +0x4e, 0x1401143ae\nmov     rcx, [rcx+210h]                                                ; +0x55, 0x1401143b5\ncall    LevelEditorLayer__copyObjectState                              ; +0x5c, 0x1401143bc\nmov     rcx, rbx                                                       ; +0x61, 0x1401143c1\nadd     rsp, 20h                                                       ; +0x64, 0x1401143c4\npop     rbx                                                            ; +0x68, 0x1401143c8\njmp     EditorUI__updateButtons                                        ; +0x69, 0x1401143c9\nadd     rsp, 20h                                                       ; +0x6e, 0x1401143ce\npop     rbx                                                            ; +0x72, 0x1401143d2\nretn                                                                   ; +0x73, 0x1401143d3", "xrefs": ["EditorUI::init @ 0x1400e0fdb", "<???> @ 0x1406c90cc", "<???> @ 0x1406c90d8"], "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"}