{"type": "func", "start": 5369651968, "end": 5369652263, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x1400e6300 to 0x1400e6427 (295 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onDelete @ 0x1400e5e95\n// > EditorUI::onDelete @ 0x1400e5f73\n// > EditorUI::onDeleteSelected @ 0x1400e64a5\n// > EditorUI::onDeleteSelected @ 0x1400e66b4\n// > <???> @ 0x1406c8cf4\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=2\nbool EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2)\n{\n  GameManager *v3; // rcx\n  int IntGameVariable; // eax\n  int v5; // eax\n  int v6; // eax\n  GameManager *v7; // rcx\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  if ( !a2 || a2->m_objectID == 749 )\n    return 0;\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v9 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  IntGameVariable = GameManager::getIntGameVariable(v3, \"0005\");\n  if ( !IntGameVariable )\n    return 1;\n  v5 = IntGameVariable - 1;\n  if ( !v5 )\n    return a2->getType(a2) == Decoration;\n  v6 = v5 - 1;\n  if ( !v6 )\n    return a2->getType(a2) == Solid || a2->getType(a2) == Slope;\n  if ( v6 != 1 )\n    return 0;\n  v7 = (GameManager *)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    v7 = (GameManager *)qword_1406C2ED8;\n  }\n  return a2->m_objectID == GameManager::getIntGameVariable(v7, \"0006\");\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x1400e6300 to 0x1400e6427 (295 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onDelete @ 0x1400e5e95\n; > EditorUI::onDelete @ 0x1400e5f73\n; > EditorUI::onDeleteSelected @ 0x1400e64a5\n; > EditorUI::onDeleteSelected @ 0x1400e66b4\n; > <???> @ 0x1406c8cf4\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_0], rcx                                               ; +0x0, 0x1400e6300\npush    rbx                                                            ; +0x5, 0x1400e6305\nsub     rsp, 20h                                                       ; +0x6, 0x1400e6306\nmov     rbx, rdx                                                       ; +0xa, 0x1400e630a\ntest    rdx, rdx                                                       ; +0xd, 0x1400e630d\njz      loc_1400E63FF                                                  ; +0x10, 0x1400e6310\ncmp     dword ptr [rdx+40Ch], 2EDh                                     ; +0x16, 0x1400e6316\njz      loc_1400E63FF                                                  ; +0x20, 0x1400e6320\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x26, 0x1400e6326\ntest    rcx, rcx                                                       ; +0x2d, 0x1400e632d\njnz     short loc_1400E6361                                            ; +0x30, 0x1400e6330\nmov     ecx, 668h; Size                                                ; +0x32, 0x1400e6332\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x37, 0x1400e6337\nmov     [rsp+28h+arg_0], rax                                           ; +0x3c, 0x1400e633c\nmov     rcx, rax                                                       ; +0x41, 0x1400e6341\ncall    sub_14017AB00                                                  ; +0x44, 0x1400e6344\nnop                                                                    ; +0x49, 0x1400e6349\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4a, 0x1400e634a\nmov     rdx, [rax]                                                     ; +0x51, 0x1400e6351\nmov     rcx, rax                                                       ; +0x54, 0x1400e6354\ncall    qword ptr [rdx+48h]                                            ; +0x57, 0x1400e6357\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5a, 0x1400e635a\nlea     rdx, a0005; \"0005\"                                             ; +0x61, 0x1400e6361\ncall    GameManager__getIntGameVariable                                ; +0x68, 0x1400e6368\ntest    eax, eax                                                       ; +0x6d, 0x1400e636d\njz      loc_1400E641F                                                  ; +0x6f, 0x1400e636f\nsub     eax, 1                                                         ; +0x75, 0x1400e6375\njz      loc_1400E6407                                                  ; +0x78, 0x1400e6378\nsub     eax, 1                                                         ; +0x7e, 0x1400e637e\njz      short loc_1400E63DE                                            ; +0x81, 0x1400e6381\ncmp     eax, 1                                                         ; +0x83, 0x1400e6383\njnz     short loc_1400E63FF                                            ; +0x86, 0x1400e6386\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x88, 0x1400e6388\ntest    rcx, rcx                                                       ; +0x8f, 0x1400e638f\njnz     short loc_1400E63C3                                            ; +0x92, 0x1400e6392\nmov     ecx, 668h; Size                                                ; +0x94, 0x1400e6394\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x99, 0x1400e6399\nmov     [rsp+28h+arg_0], rax                                           ; +0x9e, 0x1400e639e\nmov     rcx, rax                                                       ; +0xa3, 0x1400e63a3\ncall    sub_14017AB00                                                  ; +0xa6, 0x1400e63a6\nnop                                                                    ; +0xab, 0x1400e63ab\nmov     cs:qword_1406C2ED8, rax                                        ; +0xac, 0x1400e63ac\nmov     rdx, [rax]                                                     ; +0xb3, 0x1400e63b3\nmov     rcx, rax                                                       ; +0xb6, 0x1400e63b6\ncall    qword ptr [rdx+48h]                                            ; +0xb9, 0x1400e63b9\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xbc, 0x1400e63bc\nlea     rdx, a0006; \"0006\"                                             ; +0xc3, 0x1400e63c3\ncall    GameManager__getIntGameVariable                                ; +0xca, 0x1400e63ca\ncmp     [rbx+40Ch], eax                                                ; +0xcf, 0x1400e63cf\nsetz    al                                                             ; +0xd5, 0x1400e63d5\nadd     rsp, 20h                                                       ; +0xd8, 0x1400e63d8\npop     rbx                                                            ; +0xdc, 0x1400e63dc\nretn                                                                   ; +0xdd, 0x1400e63dd\nmov     rax, [rbx]                                                     ; +0xde, 0x1400e63de\nmov     rcx, rbx                                                       ; +0xe1, 0x1400e63e1\ncall    qword ptr [rax+660h]                                           ; +0xe4, 0x1400e63e4\ntest    eax, eax                                                       ; +0xea, 0x1400e63ea\njz      short loc_1400E641F                                            ; +0xec, 0x1400e63ec\nmov     rax, [rbx]                                                     ; +0xee, 0x1400e63ee\nmov     rcx, rbx                                                       ; +0xf1, 0x1400e63f1\ncall    qword ptr [rax+660h]                                           ; +0xf4, 0x1400e63f4\ncmp     eax, 19h                                                       ; +0xfa, 0x1400e63fa\njz      short loc_1400E641F                                            ; +0xfd, 0x1400e63fd\nxor     al, al                                                         ; +0xff, 0x1400e63ff\nadd     rsp, 20h                                                       ; +0x101, 0x1400e6401\npop     rbx                                                            ; +0x105, 0x1400e6405\nretn                                                                   ; +0x106, 0x1400e6406\nmov     rax, [rbx]                                                     ; +0x107, 0x1400e6407\nmov     rcx, rbx                                                       ; +0x10a, 0x1400e640a\ncall    qword ptr [rax+660h]                                           ; +0x10d, 0x1400e640d\ncmp     eax, 7                                                         ; +0x113, 0x1400e6413\nsetz    al                                                             ; +0x116, 0x1400e6416\nadd     rsp, 20h                                                       ; +0x119, 0x1400e6419\npop     rbx                                                            ; +0x11d, 0x1400e641d\nretn                                                                   ; +0x11e, 0x1400e641e\nmov     al, 1                                                          ; +0x11f, 0x1400e641f\nadd     rsp, 20h                                                       ; +0x121, 0x1400e6421\npop     rbx                                                            ; +0x125, 0x1400e6425\nretn                                                                   ; +0x126, 0x1400e6426", "xrefs": ["EditorUI::onDelete @ 0x1400e5e95", "EditorUI::onDelete @ 0x1400e5f73", "EditorUI::onDeleteSelected @ 0x1400e64a5", "EditorUI::onDeleteSelected @ 0x1400e66b4", "<???> @ 0x1406c8cf4"], "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"}