{"type": "func", "start": 4295032368, "end": 4295032540, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x10000fe30 to 0x10000fedc (172 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDeleteSelected @ 0x1000082f9\n// > EditorUI::onDeleteSelected @ 0x100008400\n// > EditorUI::onDelete @ 0x10000ca19\n// > EditorUI::onDelete @ 0x10000ca9f\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 12:18:51 +0000\n// \n\n__int64 __fastcall EditorUI::shouldDeleteObject(__int64 a1, _DWORD *a2, __int64 a3)\n{\n  unsigned int v3; // ebx\n  __int64 v5; // rdi\n  __int64 v6; // rdx\n  double v7; // xmm0_8\n  int v8; // eax\n  __int64 v9; // rax\n  int v10; // eax\n\n  if ( a2 && a2[257] != 749 )\n  {\n    v5 = GameManager::sharedState(a1, a2, a3);\n    *(_QWORD *)&v7 = GameManager::getIntGameVariable(v5, \"0005\").u64[0];\n    LOBYTE(v3) = 1;\n    switch ( v8 )\n    {\n      case 0:\n        return v3;\n      case 1:\n        LOBYTE(v3) = (*(unsigned int (__fastcall **)(_DWORD *, double))(*(_QWORD *)a2 + 1800LL))(a2, v7) == 7;\n        break;\n      case 2:\n        if ( (*(unsigned int (__fastcall **)(_DWORD *, double))(*(_QWORD *)a2 + 1800LL))(a2, v7) )\n          LOBYTE(v3) = (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 25;\n        break;\n      case 3:\n        v9 = GameManager::sharedState(v5, \"0005\", v6);\n        GameManager::getIntGameVariable(v9, \"0006\");\n        LOBYTE(v3) = a2[257] == v10;\n        break;\n      default:\n        return 0;\n    }\n  }\n  else\n  {\n    return 0;\n  }\n  return v3;\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x10000fe30 to 0x10000fedc (172 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDeleteSelected @ 0x1000082f9\n; > EditorUI::onDeleteSelected @ 0x100008400\n; > EditorUI::onDelete @ 0x10000ca19\n; > EditorUI::onDelete @ 0x10000ca9f\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 12:18:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000fe30\nmov     rbp, rsp                                                       ; +0x1, 0x10000fe31\npush    r14                                                            ; +0x4, 0x10000fe34\npush    rbx                                                            ; +0x6, 0x10000fe36\ntest    rsi, rsi                                                       ; +0x7, 0x10000fe37\njz      short def_10000FE7F; jumptable 000000010000FE7F default case   ; +0xa, 0x10000fe3a\ncmp     dword ptr [rsi+404h], 2EDh                                     ; +0xc, 0x10000fe3c\njnz     short loc_10000FE51                                            ; +0x16, 0x10000fe46\nxor     ebx, ebx; jumptable 000000010000FE7F default case              ; +0x18, 0x10000fe48\nmov     eax, ebx; jumptable 000000010000FE7F case 0                    ; +0x1a, 0x10000fe4a\npop     rbx                                                            ; +0x1c, 0x10000fe4c\npop     r14                                                            ; +0x1d, 0x10000fe4d\npop     rbp                                                            ; +0x1f, 0x10000fe4f\nretn                                                                   ; +0x20, 0x10000fe50\nmov     r14, rsi                                                       ; +0x21, 0x10000fe51\ncall    GameManager__sharedState                                       ; +0x24, 0x10000fe54\nlea     rsi, a0005; \"0005\"                                             ; +0x29, 0x10000fe59\nmov     rdi, rax                                                       ; +0x30, 0x10000fe60\ncall    GameManager__getIntGameVariable                                ; +0x33, 0x10000fe63\ncmp     eax, 3; switch 4 cases                                         ; +0x38, 0x10000fe68\nja      short def_10000FE7F; jumptable 000000010000FE7F default case   ; +0x3b, 0x10000fe6b\nmov     bl, 1                                                          ; +0x3d, 0x10000fe6d\nmov     eax, eax                                                       ; +0x3f, 0x10000fe6f\nlea     rcx, jpt_10000FE7F                                             ; +0x41, 0x10000fe71\nmovsxd  rax, (jpt_10000FE7F - 10000FEDCh)[rcx+rax*4]                   ; +0x48, 0x10000fe78\nadd     rax, rcx                                                       ; +0x4c, 0x10000fe7c\njmp     rax; switch jump                                               ; +0x4f, 0x10000fe7f\nmov     rdi, r14; jumptable 000000010000FE7F case 1                    ; +0x51, 0x10000fe81\nmov     rax, [r14]                                                     ; +0x54, 0x10000fe84\ncall    qword ptr [rax+708h]                                           ; +0x57, 0x10000fe87\ncmp     eax, 7                                                         ; +0x5d, 0x10000fe8d\nsetz    bl                                                             ; +0x60, 0x10000fe90\njmp     short loc_10000FE4A; jumptable 000000010000FE7F case 0         ; +0x63, 0x10000fe93\nmov     rdi, r14; jumptable 000000010000FE7F case 2                    ; +0x65, 0x10000fe95\nmov     rax, [r14]                                                     ; +0x68, 0x10000fe98\ncall    qword ptr [rax+708h]                                           ; +0x6b, 0x10000fe9b\ntest    eax, eax                                                       ; +0x71, 0x10000fea1\njz      short loc_10000FE4A; jumptable 000000010000FE7F case 0         ; +0x73, 0x10000fea3\nmov     rdi, r14                                                       ; +0x75, 0x10000fea5\nmov     rax, [r14]                                                     ; +0x78, 0x10000fea8\ncall    qword ptr [rax+708h]                                           ; +0x7b, 0x10000feab\ncmp     eax, 19h                                                       ; +0x81, 0x10000feb1\nsetz    bl                                                             ; +0x84, 0x10000feb4\njmp     short loc_10000FE4A; jumptable 000000010000FE7F case 0         ; +0x87, 0x10000feb7\ncall    GameManager__sharedState; jumptable 000000010000FE7F case 3    ; +0x89, 0x10000feb9\nlea     rsi, a0006; \"0006\"                                             ; +0x8e, 0x10000febe\nmov     rdi, rax                                                       ; +0x95, 0x10000fec5\ncall    GameManager__getIntGameVariable                                ; +0x98, 0x10000fec8\ncmp     [r14+404h], eax                                                ; +0x9d, 0x10000fecd\nsetz    bl                                                             ; +0xa4, 0x10000fed4\njmp     loc_10000FE4A; jumptable 000000010000FE7F case 0               ; +0xa7, 0x10000fed7", "xrefs": ["EditorUI::onDeleteSelected @ 0x1000082f9", "EditorUI::onDeleteSelected @ 0x100008400", "EditorUI::onDelete @ 0x10000ca19", "EditorUI::onDelete @ 0x10000ca9f"], "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"}