{"type": "func", "start": 4295213200, "end": 4295213392, "name": "EditorUI::canSelectObject", "pseudocode": "// \n// EditorUI::canSelectObject from 0x10003c090 to 0x10003c150 (192 bytes)\n// \n// 3 xrefs:\n// > EditorUI::selectObject @ 0x10002e794\n// > EditorUI::getCycledObject @ 0x100032736\n// > EditorUI::getCycledObject @ 0x100032786\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::canSelectObject(EditorUI *a1, GameObject *a2)\n{\n  GameManager *v2; // rax\n  GameManager *v3; // rax\n  GameManager *v4; // rax\n  GameManager *v5; // rax\n  int IntGameVariable; // eax\n  GameManager *v7; // rax\n  int v8; // eax\n  int v9; // r14d\n  bool result; // al\n\n  v2 = GameManager::sharedState();\n  result = false;\n  if ( !GameManager::getGameVariable(v2, \"0064\")\n    || (v3 = GameManager::sharedState(), GameManager::getIntGameVariable(v3, \"0005\") != 3)\n    || (v4 = GameManager::sharedState(), a2->m_objectID == GameManager::getIntGameVariable(v4, \"0006\")) )\n  {\n    v5 = GameManager::sharedState();\n    IntGameVariable = GameManager::getIntGameVariable(v5, \"0133\");\n    if ( !IntGameVariable || GameObject::belongsToGroup(a2, IntGameVariable) )\n    {\n      v7 = GameManager::sharedState();\n      v8 = GameManager::getIntGameVariable(v7, \"0139\");\n      if ( !v8 )\n        return true;\n      v9 = v8;\n      if ( GameObject::getMainColorMode(a2) == v8 || GameObject::getSecondaryColorMode(a2) == v9 )\n        return true;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::canSelectObject from 0x10003c090 to 0x10003c150 (192 bytes)\n; \n; 3 xrefs:\n; > EditorUI::selectObject @ 0x10002e794\n; > EditorUI::getCycledObject @ 0x100032736\n; > EditorUI::getCycledObject @ 0x100032786\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, 0x10003c090\nmov     rbp, rsp                                                       ; +0x1, 0x10003c091\npush    r14                                                            ; +0x4, 0x10003c094\npush    rbx                                                            ; +0x6, 0x10003c096\nmov     rbx, rsi                                                       ; +0x7, 0x10003c097\ncall    GameManager__sharedState                                       ; +0xa, 0x10003c09a\nlea     rsi, a0064; \"0064\"                                             ; +0xf, 0x10003c09f\nmov     rdi, rax                                                       ; +0x16, 0x10003c0a6\ncall    GameManager__getGameVariable                                   ; +0x19, 0x10003c0a9\ntest    al, al                                                         ; +0x1e, 0x10003c0ae\njz      short loc_10003C0E7                                            ; +0x20, 0x10003c0b0\ncall    GameManager__sharedState                                       ; +0x22, 0x10003c0b2\nlea     rsi, a0005; \"0005\"                                             ; +0x27, 0x10003c0b7\nmov     rdi, rax                                                       ; +0x2e, 0x10003c0be\ncall    GameManager__getIntGameVariable                                ; +0x31, 0x10003c0c1\ncmp     eax, 3                                                         ; +0x36, 0x10003c0c6\njnz     short loc_10003C0E7                                            ; +0x39, 0x10003c0c9\ncall    GameManager__sharedState                                       ; +0x3b, 0x10003c0cb\nlea     rsi, a0006; \"0006\"                                             ; +0x40, 0x10003c0d0\nmov     rdi, rax                                                       ; +0x47, 0x10003c0d7\ncall    GameManager__getIntGameVariable                                ; +0x4a, 0x10003c0da\ncmp     [rbx+404h], eax                                                ; +0x4f, 0x10003c0df\njnz     short loc_10003C149                                            ; +0x55, 0x10003c0e5\ncall    GameManager__sharedState                                       ; +0x57, 0x10003c0e7\nlea     rsi, a0133; \"0133\"                                             ; +0x5c, 0x10003c0ec\nmov     rdi, rax                                                       ; +0x63, 0x10003c0f3\ncall    GameManager__getIntGameVariable                                ; +0x66, 0x10003c0f6\ntest    eax, eax                                                       ; +0x6b, 0x10003c0fb\njz      short loc_10003C10D                                            ; +0x6d, 0x10003c0fd\nmov     rdi, rbx                                                       ; +0x6f, 0x10003c0ff\nmov     esi, eax                                                       ; +0x72, 0x10003c102\ncall    GameObject__belongsToGroup                                     ; +0x74, 0x10003c104\ntest    al, al                                                         ; +0x79, 0x10003c109\njz      short loc_10003C149                                            ; +0x7b, 0x10003c10b\ncall    GameManager__sharedState                                       ; +0x7d, 0x10003c10d\nlea     rsi, a0139; \"0139\"                                             ; +0x82, 0x10003c112\nmov     rdi, rax                                                       ; +0x89, 0x10003c119\ncall    GameManager__getIntGameVariable                                ; +0x8c, 0x10003c11c\ntest    eax, eax                                                       ; +0x91, 0x10003c121\njz      short loc_10003C142                                            ; +0x93, 0x10003c123\nmov     r14d, eax                                                      ; +0x95, 0x10003c125\nmov     rdi, rbx                                                       ; +0x98, 0x10003c128\ncall    GameObject__getMainColorMode                                   ; +0x9b, 0x10003c12b\ncmp     eax, r14d                                                      ; +0xa0, 0x10003c130\njz      short loc_10003C142                                            ; +0xa3, 0x10003c133\nmov     rdi, rbx                                                       ; +0xa5, 0x10003c135\ncall    GameObject__getSecondaryColorMode                              ; +0xa8, 0x10003c138\ncmp     eax, r14d                                                      ; +0xad, 0x10003c13d\njnz     short loc_10003C149                                            ; +0xb0, 0x10003c140\nmov     al, 1                                                          ; +0xb2, 0x10003c142\npop     rbx                                                            ; +0xb4, 0x10003c144\npop     r14                                                            ; +0xb5, 0x10003c145\npop     rbp                                                            ; +0xb7, 0x10003c147\nretn                                                                   ; +0xb8, 0x10003c148\nxor     eax, eax                                                       ; +0xb9, 0x10003c149\npop     rbx                                                            ; +0xbb, 0x10003c14b\npop     r14                                                            ; +0xbc, 0x10003c14c\npop     rbp                                                            ; +0xbe, 0x10003c14e\nretn                                                                   ; +0xbf, 0x10003c14f", "xrefs": ["EditorUI::selectObject @ 0x10002e794", "EditorUI::getCycledObject @ 0x100032736", "EditorUI::getCycledObject @ 0x100032786"], "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"}