{"type": "func", "start": 5370573968, "end": 5370574221, "name": "EditorUI::selectObject", "pseudocode": "// \n// EditorUI::selectObject from 0x1401c7490 to 0x1401c758d (253 bytes)\n// \n// 9 xrefs:\n// > EditorUI::clickOnPosition @ 0x1401adb51\n// > EditorUI::onCreateObject @ 0x1401b2db6\n// > EditorUI::createGradientFromSelection @ 0x1401b9fea\n// > EditorUI::ccTouchEnded @ 0x1401c17c3\n// > EditorUI::pasteObjects @ 0x1401c6eb5\n// > EditorUI::selectObjects @ 0x1401c7d8e\n// > EditorUI::findObject @ 0x1401c94a6\n// > <???> @ 0x14091a7c8\n// > <???> @ 0x14091a7d4\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 11:28:05 +0000\n// \n\n__int64 __fastcall EditorUI::selectObject(__int64 a1, int *a2, char a3)\n{\n  __int64 result; // rax\n  cocos2d::CCArray *v6; // rax\n  struct cocos2d::CCArray *v7; // rax\n  __int16 v8; // [rsp+40h] [rbp+18h] BYREF\n  char v9; // [rsp+42h] [rbp+1Ah]\n\n  if ( a3 || (result = EditorUI::canSelectObject(a1, a2), (_BYTE)result) )\n  {\n    if ( *(_BYTE *)(a1 + 915)\n      && !*(_BYTE *)(a1 + 916)\n      && a2[220] > 0\n      && (v6 = cocos2d::CCDictionary::objectForKey(\n                 *(cocos2d::CCDictionary **)(*(_QWORD *)(a1 + 1512) + 4256LL),\n                 a2[220])) != nullptr\n      && cocos2d::CCArray::count(v6) > 1 )\n    {\n      EditorUI::deselectAll(a1);\n      v7 = cocos2d::CCArray::createWithObject((struct cocos2d::CCObject *)a2);\n      return EditorUI::selectObjects(a1, v7, 0);\n    }\n    else\n    {\n      *(_BYTE *)(a1 + 914) = 1;\n      EditorUI::deselectAll(a1);\n      v8 = -256;\n      v9 = 0;\n      *(_QWORD *)(a1 + 1568) = a2;\n      (*(void (__fastcall **)(int *, __int16 *))(*(_QWORD *)a2 + 1376LL))(a2, &v8);\n      *(_DWORD *)(*(_QWORD *)(a1 + 1568) + 1144LL) = *(_DWORD *)(a1 + 1612);\n      *(_BYTE *)(a1 + 824) = 1;\n      return EditorUI::checkLiveColorSelect(a1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::selectObject from 0x1401c7490 to 0x1401c758d (253 bytes)\n; \n; 9 xrefs:\n; > EditorUI::clickOnPosition @ 0x1401adb51\n; > EditorUI::onCreateObject @ 0x1401b2db6\n; > EditorUI::createGradientFromSelection @ 0x1401b9fea\n; > EditorUI::ccTouchEnded @ 0x1401c17c3\n; > EditorUI::pasteObjects @ 0x1401c6eb5\n; > EditorUI::selectObjects @ 0x1401c7d8e\n; > EditorUI::findObject @ 0x1401c94a6\n; > <???> @ 0x14091a7c8\n; > <???> @ 0x14091a7d4\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 11:28:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401c7490\npush    rdi                                                            ; +0x5, 0x1401c7495\nsub     rsp, 20h                                                       ; +0x6, 0x1401c7496\nmov     rdi, rdx                                                       ; +0xa, 0x1401c749a\nmov     rbx, rcx                                                       ; +0xd, 0x1401c749d\ntest    r8b, r8b                                                       ; +0x10, 0x1401c74a0\njnz     short loc_1401C74B2                                            ; +0x13, 0x1401c74a3\ncall    EditorUI__canSelectObject                                      ; +0x15, 0x1401c74a5\ntest    al, al                                                         ; +0x1a, 0x1401c74aa\njz      loc_1401C7582                                                  ; +0x1c, 0x1401c74ac\ncmp     byte ptr [rbx+393h], 0                                         ; +0x22, 0x1401c74b2\njz      short loc_1401C7522                                            ; +0x29, 0x1401c74b9\ncmp     byte ptr [rbx+394h], 0                                         ; +0x2b, 0x1401c74bb\njnz     short loc_1401C7522                                            ; +0x32, 0x1401c74c2\nmovsxd  rax, dword ptr [rdi+370h]                                      ; +0x34, 0x1401c74c4\ntest    eax, eax                                                       ; +0x3b, 0x1401c74cb\njle     short loc_1401C7522                                            ; +0x3d, 0x1401c74cd\nmov     rcx, [rbx+5E8h]                                                ; +0x3f, 0x1401c74cf\nmov     rdx, rax                                                       ; +0x46, 0x1401c74d6\nmov     rcx, [rcx+10A0h]                                               ; +0x49, 0x1401c74d9\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x50, 0x1401c74e0\ntest    rax, rax                                                       ; +0x56, 0x1401c74e6\njz      short loc_1401C7522                                            ; +0x59, 0x1401c74e9\nmov     rcx, rax                                                       ; +0x5b, 0x1401c74eb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5e, 0x1401c74ee\ncmp     eax, 1                                                         ; +0x64, 0x1401c74f4\njbe     short loc_1401C7522                                            ; +0x67, 0x1401c74f7\nmov     rcx, rbx                                                       ; +0x69, 0x1401c74f9\ncall    EditorUI__deselectAll                                          ; +0x6c, 0x1401c74fc\nmov     rcx, rdi                                                       ; +0x71, 0x1401c7501\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x74, 0x1401c7504\nxor     r8d, r8d                                                       ; +0x7a, 0x1401c750a\nmov     rcx, rbx                                                       ; +0x7d, 0x1401c750d\nmov     rdx, rax                                                       ; +0x80, 0x1401c7510\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x1401c7513\nadd     rsp, 20h                                                       ; +0x88, 0x1401c7518\npop     rdi                                                            ; +0x8c, 0x1401c751c\njmp     EditorUI__selectObjects                                        ; +0x8d, 0x1401c751d\nmov     rcx, rbx                                                       ; +0x92, 0x1401c7522\nmov     byte ptr [rbx+392h], 1                                         ; +0x95, 0x1401c7525\ncall    EditorUI__deselectAll                                          ; +0x9c, 0x1401c752c\nmovzx   eax, cs:word_1407032A4                                         ; +0xa1, 0x1401c7531\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xa8, 0x1401c7538\nmov     [rsp+28h+arg_10], ax                                           ; +0xad, 0x1401c753d\nmov     rcx, rdi                                                       ; +0xb2, 0x1401c7542\nmovzx   eax, cs:byte_1407032A6                                         ; +0xb5, 0x1401c7545\nmov     [rsp+28h+arg_12], al                                           ; +0xbc, 0x1401c754c\nmov     [rbx+620h], rdi                                                ; +0xc0, 0x1401c7550\nmov     rax, [rdi]                                                     ; +0xc7, 0x1401c7557\ncall    qword ptr [rax+560h]                                           ; +0xca, 0x1401c755a\nmov     rcx, [rbx+620h]                                                ; +0xd0, 0x1401c7560\nmov     eax, [rbx+64Ch]                                                ; +0xd7, 0x1401c7567\nmov     [rcx+478h], eax                                                ; +0xdd, 0x1401c756d\nmov     rcx, rbx                                                       ; +0xe3, 0x1401c7573\nmov     byte ptr [rbx+338h], 1                                         ; +0xe6, 0x1401c7576\ncall    EditorUI__checkLiveColorSelect                                 ; +0xed, 0x1401c757d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf2, 0x1401c7582\nadd     rsp, 20h                                                       ; +0xf7, 0x1401c7587\npop     rdi                                                            ; +0xfb, 0x1401c758b\nretn                                                                   ; +0xfc, 0x1401c758c", "xrefs": ["EditorUI::clickOnPosition @ 0x1401adb51", "EditorUI::onCreateObject @ 0x1401b2db6", "EditorUI::createGradientFromSelection @ 0x1401b9fea", "EditorUI::ccTouchEnded @ 0x1401c17c3", "EditorUI::pasteObjects @ 0x1401c6eb5", "EditorUI::selectObjects @ 0x1401c7d8e", "EditorUI::findObject @ 0x1401c94a6", "<???> @ 0x14091a7c8", "<???> @ 0x14091a7d4"], "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"}