{"type": "func", "start": 4295174144, "end": 4295174316, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x100032800 to 0x1000328ac (172 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDeleteSelected @ 0x10000c1b9\n// > EditorUI::onDeleteSelected @ 0x10000c265\n// > EditorUI::onDelete @ 0x10002dddf\n// > EditorUI::onDelete @ 0x10002df0a\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\nbool __fastcall EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2)\n{\n  bool v2; // bl\n  GameManager *v4; // rax\n  GameManager *v5; // rax\n\n  if ( !a2 || a2->m_objectID == 749 )\n    return 0;\n  v4 = GameManager::sharedState();\n  v2 = 1;\n  switch ( GameManager::getIntGameVariable(v4, \"0005\") )\n  {\n    case 0:\n      return v2;\n    case 1:\n      v2 = ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 7;\n      break;\n    case 2:\n      if ( ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) )\n        v2 = ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 25;\n      break;\n    case 3:\n      v5 = GameManager::sharedState();\n      v2 = a2->m_objectID == GameManager::getIntGameVariable(v5, \"0006\");\n      break;\n    default:\n      return 0;\n  }\n  return v2;\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x100032800 to 0x1000328ac (172 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDeleteSelected @ 0x10000c1b9\n; > EditorUI::onDeleteSelected @ 0x10000c265\n; > EditorUI::onDelete @ 0x10002dddf\n; > EditorUI::onDelete @ 0x10002df0a\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    rbp                                                            ; +0x0, 0x100032800\nmov     rbp, rsp                                                       ; +0x1, 0x100032801\npush    r14                                                            ; +0x4, 0x100032804\npush    rbx                                                            ; +0x6, 0x100032806\ntest    rsi, rsi                                                       ; +0x7, 0x100032807\njz      short def_10003284F; jumptable 000000010003284F default case   ; +0xa, 0x10003280a\ncmp     dword ptr [rsi+404h], 2EDh                                     ; +0xc, 0x10003280c\njnz     short loc_100032821                                            ; +0x16, 0x100032816\nxor     ebx, ebx; jumptable 000000010003284F default case              ; +0x18, 0x100032818\nmov     eax, ebx; jumptable 000000010003284F case 0                    ; +0x1a, 0x10003281a\npop     rbx                                                            ; +0x1c, 0x10003281c\npop     r14                                                            ; +0x1d, 0x10003281d\npop     rbp                                                            ; +0x1f, 0x10003281f\nretn                                                                   ; +0x20, 0x100032820\nmov     r14, rsi                                                       ; +0x21, 0x100032821\ncall    GameManager__sharedState                                       ; +0x24, 0x100032824\nlea     rsi, a0005; \"0005\"                                             ; +0x29, 0x100032829\nmov     rdi, rax                                                       ; +0x30, 0x100032830\ncall    GameManager__getIntGameVariable                                ; +0x33, 0x100032833\ncmp     eax, 3; switch 4 cases                                         ; +0x38, 0x100032838\nja      short def_10003284F; jumptable 000000010003284F default case   ; +0x3b, 0x10003283b\nmov     bl, 1                                                          ; +0x3d, 0x10003283d\nmov     eax, eax                                                       ; +0x3f, 0x10003283f\nlea     rcx, jpt_10003284F                                             ; +0x41, 0x100032841\nmovsxd  rax, (jpt_10003284F - 1000328ACh)[rcx+rax*4]                   ; +0x48, 0x100032848\nadd     rax, rcx                                                       ; +0x4c, 0x10003284c\njmp     rax; switch jump                                               ; +0x4f, 0x10003284f\nmov     rdi, r14; jumptable 000000010003284F case 1                    ; +0x51, 0x100032851\nmov     rax, [r14]                                                     ; +0x54, 0x100032854\ncall    qword ptr [rax+6F8h]                                           ; +0x57, 0x100032857\ncmp     eax, 7                                                         ; +0x5d, 0x10003285d\nsetz    bl                                                             ; +0x60, 0x100032860\njmp     short loc_10003281A; jumptable 000000010003284F case 0         ; +0x63, 0x100032863\nmov     rdi, r14; jumptable 000000010003284F case 2                    ; +0x65, 0x100032865\nmov     rax, [r14]                                                     ; +0x68, 0x100032868\ncall    qword ptr [rax+6F8h]                                           ; +0x6b, 0x10003286b\ntest    eax, eax                                                       ; +0x71, 0x100032871\njz      short loc_10003281A; jumptable 000000010003284F case 0         ; +0x73, 0x100032873\nmov     rdi, r14                                                       ; +0x75, 0x100032875\nmov     rax, [r14]                                                     ; +0x78, 0x100032878\ncall    qword ptr [rax+6F8h]                                           ; +0x7b, 0x10003287b\ncmp     eax, 19h                                                       ; +0x81, 0x100032881\nsetz    bl                                                             ; +0x84, 0x100032884\njmp     short loc_10003281A; jumptable 000000010003284F case 0         ; +0x87, 0x100032887\ncall    GameManager__sharedState; jumptable 000000010003284F case 3    ; +0x89, 0x100032889\nlea     rsi, a0006; \"0006\"                                             ; +0x8e, 0x10003288e\nmov     rdi, rax                                                       ; +0x95, 0x100032895\ncall    GameManager__getIntGameVariable                                ; +0x98, 0x100032898\ncmp     [r14+404h], eax                                                ; +0x9d, 0x10003289d\nsetz    bl                                                             ; +0xa4, 0x1000328a4\njmp     loc_10003281A; jumptable 000000010003284F case 0               ; +0xa7, 0x1000328a7", "xrefs": ["EditorUI::onDeleteSelected @ 0x10000c1b9", "EditorUI::onDeleteSelected @ 0x10000c265", "EditorUI::onDelete @ 0x10002dddf", "EditorUI::onDelete @ 0x10002df0a"], "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"}