{"type": "func", "start": 5370036640, "end": 5370036853, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x1401441a0 to 0x140144275 (213 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x140141fc5\n// > CustomizeObjectLayer::onBreakApart @ 0x140143cb5\n// > CustomizeObjectLayer::keyBackClicked @ 0x140144289\n// > CustomizeObjectSettingsPopup::onClose @ 0x1401447b9\n// > CustomizeObjectLayer::init @ 0x14013f766\n// > <???> @ 0x1409174c8\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=2\n__int64 __fastcall CustomizeObjectLayer::onClose(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rcx\n  __int64 v4; // rdx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  *(_QWORD *)(*(_QWORD *)(a1 + 816) + 600LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 816) + 1032LL))(*(_QWORD *)(a1 + 816), 0);\n  v2 = *(_QWORD *)(a1 + 824);\n  if ( v2 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1032LL))(v2, 0);\n    *(_QWORD *)(*(_QWORD *)(a1 + 824) + 600LL) = 0;\n  }\n  v3 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v3 = qword_14090BFD0;\n  }\n  *(_DWORD *)(v3 + 1004) = *(_DWORD *)(a1 + 748);\n  EditorUI::updateObjectInfoLabel(*(_QWORD *)(*(_QWORD *)(v3 + 568) + 14904LL));\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v4) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v4);\n}", "assembly": "; \n; CustomizeObjectLayer::onClose from 0x1401441a0 to 0x140144275 (213 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x140141fc5\n; > CustomizeObjectLayer::onBreakApart @ 0x140143cb5\n; > CustomizeObjectLayer::keyBackClicked @ 0x140144289\n; > CustomizeObjectSettingsPopup::onClose @ 0x1401447b9\n; > CustomizeObjectLayer::init @ 0x14013f766\n; > <???> @ 0x1409174c8\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, 0x1401441a0\nsub     rsp, 20h                                                       ; +0x2, 0x1401441a2\nmov     rbx, rcx                                                       ; +0x6, 0x1401441a6\nmov     rax, [rcx+330h]                                                ; +0x9, 0x1401441a9\nmov     qword ptr [rax+258h], 0                                        ; +0x10, 0x1401441b0\nmov     rcx, [rcx+330h]                                                ; +0x1b, 0x1401441bb\nmov     rax, [rcx]                                                     ; +0x22, 0x1401441c2\nxor     edx, edx                                                       ; +0x25, 0x1401441c5\ncall    qword ptr [rax+408h]                                           ; +0x27, 0x1401441c7\nmov     rcx, [rbx+338h]                                                ; +0x2d, 0x1401441cd\ntest    rcx, rcx                                                       ; +0x34, 0x1401441d4\njz      short loc_1401441F6                                            ; +0x37, 0x1401441d7\nmov     rax, [rcx]                                                     ; +0x39, 0x1401441d9\nxor     edx, edx                                                       ; +0x3c, 0x1401441dc\ncall    qword ptr [rax+408h]                                           ; +0x3e, 0x1401441de\nmov     rax, [rbx+338h]                                                ; +0x44, 0x1401441e4\nmov     qword ptr [rax+258h], 0                                        ; +0x4b, 0x1401441eb\nmov     rcx, cs:qword_14090BFD0                                        ; +0x56, 0x1401441f6\ntest    rcx, rcx                                                       ; +0x5d, 0x1401441fd\njnz     short loc_140144234                                            ; +0x60, 0x140144200\nmov     ecx, 6E8h; Size                                                ; +0x62, 0x140144202\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x67, 0x140144207\nmov     [rsp+28h+arg_0], rax                                           ; +0x6c, 0x14014420c\nmov     rcx, rax                                                       ; +0x71, 0x140144211\ncall    GameManager__GameManager                                       ; +0x74, 0x140144214\nnop                                                                    ; +0x79, 0x140144219\nmov     cs:qword_14090BFD0, rax                                        ; +0x7a, 0x14014421a\nmov     rcx, [rax]                                                     ; +0x81, 0x140144221\nmov     rdx, [rcx+48h]                                                 ; +0x84, 0x140144224\nmov     rcx, rax                                                       ; +0x88, 0x140144228\ncall    rdx                                                            ; +0x8b, 0x14014422b\nmov     rcx, cs:qword_14090BFD0                                        ; +0x8d, 0x14014422d\nmov     eax, [rbx+2ECh]                                                ; +0x94, 0x140144234\nmov     [rcx+3ECh], eax                                                ; +0x9a, 0x14014423a\nmov     rcx, [rcx+238h]                                                ; +0xa0, 0x140144240\nmov     rcx, [rcx+3A38h]                                               ; +0xa7, 0x140144247\ncall    EditorUI__updateObjectInfoLabel                                ; +0xae, 0x14014424e\nmov     rax, [rbx]                                                     ; +0xb3, 0x140144253\nxor     edx, edx                                                       ; +0xb6, 0x140144256\nmov     rcx, rbx                                                       ; +0xb8, 0x140144258\ncall    qword ptr [rax+3E0h]                                           ; +0xbb, 0x14014425b\nmov     rax, [rbx]                                                     ; +0xc1, 0x140144261\nmov     dl, 1                                                          ; +0xc4, 0x140144264\nmov     rcx, rbx                                                       ; +0xc6, 0x140144266\nadd     rsp, 20h                                                       ; +0xc9, 0x140144269\npop     rbx                                                            ; +0xcd, 0x14014426d\njmp     qword ptr [rax+208h]                                           ; +0xce, 0x14014426e", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x140141fc5", "CustomizeObjectLayer::onBreakApart @ 0x140143cb5", "CustomizeObjectLayer::keyBackClicked @ 0x140144289", "CustomizeObjectSettingsPopup::onClose @ 0x1401447b9", "CustomizeObjectLayer::init @ 0x14013f766", "<???> @ 0x1409174c8"], "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"}