{"type": "func", "start": 4295034832, "end": 4295034961, "name": "EditorUI::onUpdateDeleteFilter", "pseudocode": "// \n// EditorUI::onUpdateDeleteFilter from 0x1000107d0 to 0x100010851 (129 bytes)\n// \n// 3 xrefs:\n// > EditorUI::setupDeleteMenu @ 0x10063b763\n// > EditorUI::setupDeleteMenu @ 0x10063b7fd\n// > EditorUI::setupDeleteMenu @ 0x10063b96d\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:52 +0000\n// \n\n__int64 __fastcall EditorUI::onUpdateDeleteFilter(__int64 a1, __int64 a2)\n{\n  unsigned int v3; // eax\n  __int64 v4; // rdx\n  unsigned int v5; // r14d\n  __int64 v6; // rax\n  const std::string::value_type *v7; // rsi\n  __int64 v8; // rdi\n  __int64 v9; // rdx\n  __int64 v11; // r14\n  __int64 v12; // rax\n  __int64 v13; // rdx\n  __int64 v14; // rax\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( v3 >= 3 )\n  {\n    if ( v3 != 3 )\n      return EditorUI::updateDeleteButtons(a1);\n    v11 = *(_QWORD *)(a1 + 1496);\n    v12 = GameManager::sharedState(a2, a2, v4);\n    v7 = \"0005\";\n    v8 = v12;\n    if ( v11 )\n    {\n      GameManager::setIntGameVariable(v12, \"0005\", 3);\n      v14 = GameManager::sharedState(v8, \"0005\", v13);\n      v9 = *(unsigned int *)(v11 + 1028);\n      v7 = \"0006\";\n      v8 = v14;\n    }\n    else\n    {\n      v9 = 0;\n    }\n  }\n  else\n  {\n    v5 = v3;\n    v6 = GameManager::sharedState(a2, a2, v4);\n    v7 = \"0005\";\n    v8 = v6;\n    v9 = v5;\n  }\n  GameManager::setIntGameVariable(v8, v7, v9);\n  return EditorUI::updateDeleteButtons(a1);\n}", "assembly": "; \n; EditorUI::onUpdateDeleteFilter from 0x1000107d0 to 0x100010851 (129 bytes)\n; \n; 3 xrefs:\n; > EditorUI::setupDeleteMenu @ 0x10063b763\n; > EditorUI::setupDeleteMenu @ 0x10063b7fd\n; > EditorUI::setupDeleteMenu @ 0x10063b96d\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:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000107d0\nmov     rbp, rsp                                                       ; +0x1, 0x1000107d1\npush    r14                                                            ; +0x4, 0x1000107d4\npush    rbx                                                            ; +0x6, 0x1000107d6\nmov     rbx, rdi                                                       ; +0x7, 0x1000107d7\nmov     rax, [rsi]                                                     ; +0xa, 0x1000107da\nmov     rdi, rsi                                                       ; +0xd, 0x1000107dd\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1000107e0\ncmp     eax, 3                                                         ; +0x13, 0x1000107e3\njnb     short loc_10001080E                                            ; +0x16, 0x1000107e6\nmov     r14d, eax                                                      ; +0x18, 0x1000107e8\ncall    GameManager__sharedState                                       ; +0x1b, 0x1000107eb\nlea     rsi, a0005; \"0005\"                                             ; +0x20, 0x1000107f0\nmov     rdi, rax                                                       ; +0x27, 0x1000107f7\nmov     edx, r14d                                                      ; +0x2a, 0x1000107fa\ncall    GameManager__setIntGameVariable                                ; +0x2d, 0x1000107fd\nmov     rdi, rbx                                                       ; +0x32, 0x100010802\npop     rbx                                                            ; +0x35, 0x100010805\npop     r14                                                            ; +0x36, 0x100010806\npop     rbp                                                            ; +0x38, 0x100010808\njmp     EditorUI__updateDeleteButtons                                  ; +0x39, 0x100010809\njnz     short loc_100010802                                            ; +0x3e, 0x10001080e\nmov     r14, [rbx+5D8h]                                                ; +0x40, 0x100010810\ncall    GameManager__sharedState                                       ; +0x47, 0x100010817\nlea     rsi, a0005; \"0005\"                                             ; +0x4c, 0x10001081c\nmov     rdi, rax                                                       ; +0x53, 0x100010823\ntest    r14, r14                                                       ; +0x56, 0x100010826\njz      short loc_10001084D                                            ; +0x59, 0x100010829\nmov     edx, 3                                                         ; +0x5b, 0x10001082b\ncall    GameManager__setIntGameVariable                                ; +0x60, 0x100010830\ncall    GameManager__sharedState                                       ; +0x65, 0x100010835\nmov     edx, [r14+404h]                                                ; +0x6a, 0x10001083a\nlea     rsi, a0006; \"0006\"                                             ; +0x71, 0x100010841\nmov     rdi, rax                                                       ; +0x78, 0x100010848\njmp     short loc_1000107FD                                            ; +0x7b, 0x10001084b\nxor     edx, edx                                                       ; +0x7d, 0x10001084d\njmp     short loc_1000107FD                                            ; +0x7f, 0x10001084f", "xrefs": ["EditorUI::setupDeleteMenu @ 0x10063b763", "EditorUI::setupDeleteMenu @ 0x10063b7fd", "EditorUI::setupDeleteMenu @ 0x10063b96d"], "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"}