{"type": "func", "start": 4300965936, "end": 4300966128, "name": "EditorUI::canSelectObject", "pseudocode": "// \n// EditorUI::canSelectObject from 0x1005b8830 to 0x1005b88f0 (192 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDelete @ 0x10000c9b6\n// > EditorUI::getCycledObject @ 0x10000fd69\n// > EditorUI::getCycledObject @ 0x10000fdb9\n// > EditorUI::selectObject @ 0x1005b8774\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:32:42 +0000\n// \n\nbool __fastcall EditorUI::canSelectObject(double a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n  unsigned int IntGameVariable; // eax\n  __int64 v8; // rax\n  int v9; // eax\n  int v10; // r14d\n  bool result; // al\n\n  v3 = GameManager::sharedState();\n  result = false;\n  if ( !(unsigned __int8)GameManager::getGameVariable(v3, \"0064\")\n    || (v4 = GameManager::sharedState(), (unsigned int)GameManager::getIntGameVariable(v4, \"0005\") != 3)\n    || (v5 = GameManager::sharedState(),\n        *(_DWORD *)(a3 + 1028) == (unsigned int)GameManager::getIntGameVariable(v5, \"0006\")) )\n  {\n    v6 = GameManager::sharedState();\n    IntGameVariable = GameManager::getIntGameVariable(v6, \"0133\");\n    if ( !IntGameVariable || (unsigned __int8)GameObject::belongsToGroup(a3, IntGameVariable) )\n    {\n      v8 = GameManager::sharedState();\n      v9 = GameManager::getIntGameVariable(v8, \"0139\");\n      if ( !v9 )\n        return true;\n      v10 = v9;\n      if ( (unsigned int)GameObject::getMainColorMode(a3) == v9\n        || (unsigned int)GameObject::getSecondaryColorMode(a3, a1) == v10 )\n      {\n        return true;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::canSelectObject from 0x1005b8830 to 0x1005b88f0 (192 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDelete @ 0x10000c9b6\n; > EditorUI::getCycledObject @ 0x10000fd69\n; > EditorUI::getCycledObject @ 0x10000fdb9\n; > EditorUI::selectObject @ 0x1005b8774\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:32:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005b8830\nmov     rbp, rsp                                                       ; +0x1, 0x1005b8831\npush    r14                                                            ; +0x4, 0x1005b8834\npush    rbx                                                            ; +0x6, 0x1005b8836\nmov     rbx, rsi                                                       ; +0x7, 0x1005b8837\ncall    GameManager__sharedState                                       ; +0xa, 0x1005b883a\nlea     rsi, a0064; \"0064\"                                             ; +0xf, 0x1005b883f\nmov     rdi, rax                                                       ; +0x16, 0x1005b8846\ncall    GameManager__getGameVariable                                   ; +0x19, 0x1005b8849\ntest    al, al                                                         ; +0x1e, 0x1005b884e\njz      short loc_1005B8887                                            ; +0x20, 0x1005b8850\ncall    GameManager__sharedState                                       ; +0x22, 0x1005b8852\nlea     rsi, a0005; \"0005\"                                             ; +0x27, 0x1005b8857\nmov     rdi, rax                                                       ; +0x2e, 0x1005b885e\ncall    GameManager__getIntGameVariable                                ; +0x31, 0x1005b8861\ncmp     eax, 3                                                         ; +0x36, 0x1005b8866\njnz     short loc_1005B8887                                            ; +0x39, 0x1005b8869\ncall    GameManager__sharedState                                       ; +0x3b, 0x1005b886b\nlea     rsi, a0006; \"0006\"                                             ; +0x40, 0x1005b8870\nmov     rdi, rax                                                       ; +0x47, 0x1005b8877\ncall    GameManager__getIntGameVariable                                ; +0x4a, 0x1005b887a\ncmp     [rbx+404h], eax                                                ; +0x4f, 0x1005b887f\njnz     short loc_1005B88E9                                            ; +0x55, 0x1005b8885\ncall    GameManager__sharedState                                       ; +0x57, 0x1005b8887\nlea     rsi, a0133; \"0133\"                                             ; +0x5c, 0x1005b888c\nmov     rdi, rax                                                       ; +0x63, 0x1005b8893\ncall    GameManager__getIntGameVariable                                ; +0x66, 0x1005b8896\ntest    eax, eax                                                       ; +0x6b, 0x1005b889b\njz      short loc_1005B88AD                                            ; +0x6d, 0x1005b889d\nmov     rdi, rbx                                                       ; +0x6f, 0x1005b889f\nmov     esi, eax                                                       ; +0x72, 0x1005b88a2\ncall    GameObject__belongsToGroup                                     ; +0x74, 0x1005b88a4\ntest    al, al                                                         ; +0x79, 0x1005b88a9\njz      short loc_1005B88E9                                            ; +0x7b, 0x1005b88ab\ncall    GameManager__sharedState                                       ; +0x7d, 0x1005b88ad\nlea     rsi, a0139; \"0139\"                                             ; +0x82, 0x1005b88b2\nmov     rdi, rax                                                       ; +0x89, 0x1005b88b9\ncall    GameManager__getIntGameVariable                                ; +0x8c, 0x1005b88bc\ntest    eax, eax                                                       ; +0x91, 0x1005b88c1\njz      short loc_1005B88E2                                            ; +0x93, 0x1005b88c3\nmov     r14d, eax                                                      ; +0x95, 0x1005b88c5\nmov     rdi, rbx                                                       ; +0x98, 0x1005b88c8\ncall    GameObject__getMainColorMode                                   ; +0x9b, 0x1005b88cb\ncmp     eax, r14d                                                      ; +0xa0, 0x1005b88d0\njz      short loc_1005B88E2                                            ; +0xa3, 0x1005b88d3\nmov     rdi, rbx                                                       ; +0xa5, 0x1005b88d5\ncall    GameObject__getSecondaryColorMode                              ; +0xa8, 0x1005b88d8\ncmp     eax, r14d                                                      ; +0xad, 0x1005b88dd\njnz     short loc_1005B88E9                                            ; +0xb0, 0x1005b88e0\nmov     al, 1                                                          ; +0xb2, 0x1005b88e2\npop     rbx                                                            ; +0xb4, 0x1005b88e4\npop     r14                                                            ; +0xb5, 0x1005b88e5\npop     rbp                                                            ; +0xb7, 0x1005b88e7\nretn                                                                   ; +0xb8, 0x1005b88e8\nxor     eax, eax                                                       ; +0xb9, 0x1005b88e9\npop     rbx                                                            ; +0xbb, 0x1005b88eb\npop     r14                                                            ; +0xbc, 0x1005b88ec\npop     rbp                                                            ; +0xbe, 0x1005b88ee\nretn                                                                   ; +0xbf, 0x1005b88ef", "xrefs": ["EditorUI::onDelete @ 0x10000c9b6", "EditorUI::getCycledObject @ 0x10000fd69", "EditorUI::getCycledObject @ 0x10000fdb9", "EditorUI::selectObject @ 0x1005b8774"], "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"}