{"type": "func", "start": 5370028208, "end": 5370028303, "name": "CustomizeObjectLayer::onCopy", "pseudocode": "// \n// CustomizeObjectLayer::onCopy from 0x1401420b0 to 0x14014210f (95 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::init @ 0x140141a4d\n// > <???> @ 0x140917330\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:27:10 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CustomizeObjectLayer::onCopy(__int64 a1)\n{\n  __int64 v2; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v4 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  return LevelEditorLayer::copyObjectState(*(_QWORD *)(v2 + 568), *(_QWORD *)(a1 + 688));\n}", "assembly": "; \n; CustomizeObjectLayer::onCopy from 0x1401420b0 to 0x14014210f (95 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::init @ 0x140141a4d\n; > <???> @ 0x140917330\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:27:10 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401420b0\nsub     rsp, 20h                                                       ; +0x2, 0x1401420b2\nmov     rbx, rcx                                                       ; +0x6, 0x1401420b6\nmov     rcx, cs:qword_14090BFD0                                        ; +0x9, 0x1401420b9\ntest    rcx, rcx                                                       ; +0x10, 0x1401420c0\njnz     short loc_1401420F7                                            ; +0x13, 0x1401420c3\nmov     ecx, 6E8h; Size                                                ; +0x15, 0x1401420c5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1401420ca\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1401420cf\nmov     rcx, rax                                                       ; +0x24, 0x1401420d4\ncall    GameManager__GameManager                                       ; +0x27, 0x1401420d7\nnop                                                                    ; +0x2c, 0x1401420dc\nmov     cs:qword_14090BFD0, rax                                        ; +0x2d, 0x1401420dd\nmov     rcx, [rax]                                                     ; +0x34, 0x1401420e4\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x1401420e7\nmov     rcx, rax                                                       ; +0x3b, 0x1401420eb\ncall    rdx                                                            ; +0x3e, 0x1401420ee\nmov     rcx, cs:qword_14090BFD0                                        ; +0x40, 0x1401420f0\nmov     rdx, [rbx+2B0h]                                                ; +0x47, 0x1401420f7\nmov     rcx, [rcx+238h]                                                ; +0x4e, 0x1401420fe\nadd     rsp, 20h                                                       ; +0x55, 0x140142105\npop     rbx                                                            ; +0x59, 0x140142109\njmp     LevelEditorLayer__copyObjectState                              ; +0x5a, 0x14014210a", "xrefs": ["CustomizeObjectLayer::init @ 0x140141a4d", "<???> @ 0x140917330"], "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"}