{"type": "func", "start": 4300968480, "end": 4300968889, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x1005b9220 to 0x1005b93b9 (409 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060ca2f\n// > EditorUI::handleEditorAction @ 0x10060cb4d\n// > EditorCommandsPopup::onCommand @ 0x1008dedbc\n// > EditorCommandsPopup::onCommand @ 0x1008deedc\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:43 +0000\n// \n\n__int64 __fastcall EditorUI::selectAllWithDirection(__int64 a1, char a2)\n{\n  __int64 AllObjects; // r14\n  __int64 v3; // rax\n  __int64 v4; // r15\n  double v5; // xmm0_8\n  __int64 v6; // r15\n  unsigned int v7; // r12d\n  __int64 v8; // r13\n  float *v9; // rax\n  unsigned int v10; // r12d\n  __int64 v11; // r13\n  unsigned int v13; // [rsp+0h] [rbp-40h] BYREF\n  __int64 v14; // [rsp+8h] [rbp-38h] BYREF\n  double v15[6]; // [rsp+10h] [rbp-30h] BYREF\n\n  AllObjects = LevelEditorLayer::getAllObjects(*(_QWORD *)(a1 + 1440));\n  v3 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v14, v3);\n  v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL);\n  *(_QWORD *)&v5 = (unsigned int)v14;\n  *(float *)&v5 = *(float *)&v14 * 0.5;\n  sub_100278250(\n    (float *)&v13,\n    *(float *)&v14 * 0.5,\n    (float)(0.5 * *(float *)(a1 + 856)) + (float)(*((float *)&v14 + 1) * 0.5));\n  cocos2d::CCNode::convertToNodeSpace(v15, v4, &v13);\n  v6 = sub_1007FE900(v15);\n  if ( (unsigned int)sub_1007FEF90(AllObjects) )\n  {\n    if ( a2 )\n    {\n      v7 = 0;\n      do\n      {\n        v8 = sub_1007FEFE0(AllObjects, v7);\n        if ( LevelEditorLayer::validGroup(*(_QWORD *)(a1 + 1440), v8, 0) )\n        {\n          v9 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8);\n          *(_QWORD *)&v5 = LODWORD(v15[0]);\n          if ( *(float *)v15 > *v9 )\n            sub_1007FEBF0(v6, v8);\n        }\n        ++v7;\n      }\n      while ( v7 < (unsigned int)sub_1007FEF90(AllObjects) );\n    }\n    else\n    {\n      v10 = 0;\n      do\n      {\n        v11 = sub_1007FEFE0(AllObjects, v10);\n        if ( LevelEditorLayer::validGroup(*(_QWORD *)(a1 + 1440), v11, 0) )\n        {\n          *(_QWORD *)&v5 = *(unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11);\n          if ( *(float *)&v5 > *(float *)v15 )\n            sub_1007FEBF0(v6, v11);\n        }\n        ++v10;\n      }\n      while ( v10 < (unsigned int)sub_1007FEF90(AllObjects) );\n    }\n  }\n  EditorUI::processSelectObjects((_QWORD *)a1, v6, v5);\n  EditorUI::deactivateRotationControl(a1);\n  EditorUI::deactivateScaleControl(a1);\n  return sub_100611790(a1);\n}", "assembly": "; \n; EditorUI::selectAllWithDirection from 0x1005b9220 to 0x1005b93b9 (409 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060ca2f\n; > EditorUI::handleEditorAction @ 0x10060cb4d\n; > EditorCommandsPopup::onCommand @ 0x1008dedbc\n; > EditorCommandsPopup::onCommand @ 0x1008deedc\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:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005b9220\nmov     rbp, rsp                                                       ; +0x1, 0x1005b9221\npush    r15                                                            ; +0x4, 0x1005b9224\npush    r14                                                            ; +0x6, 0x1005b9226\npush    r13                                                            ; +0x8, 0x1005b9228\npush    r12                                                            ; +0xa, 0x1005b922a\npush    rbx                                                            ; +0xc, 0x1005b922c\nsub     rsp, 18h                                                       ; +0xd, 0x1005b922d\nmov     r12d, esi                                                      ; +0x11, 0x1005b9231\nmov     rbx, rdi                                                       ; +0x14, 0x1005b9234\nmov     rdi, [rdi+5A0h]                                                ; +0x17, 0x1005b9237\ncall    LevelEditorLayer__getAllObjects                                ; +0x1e, 0x1005b923e\nmov     r14, rax                                                       ; +0x23, 0x1005b9243\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x26, 0x1005b9246\nlea     rdi, [rbp+var_38]                                              ; +0x2b, 0x1005b924b\nmov     rsi, rax                                                       ; +0x2f, 0x1005b924f\ncall    cocos2d__CCDirector__getWinSize                                ; +0x32, 0x1005b9252\nmov     rax, [rbx+5A0h]                                                ; +0x37, 0x1005b9257\nmov     r15, [rax+0F50h]                                               ; +0x3e, 0x1005b925e\nmovss   xmm1, cs:dword_100A03578                                       ; +0x45, 0x1005b9265\nmovss   xmm0, [rbp+var_38]                                             ; +0x4d, 0x1005b926d\nmulss   xmm0, xmm1                                                     ; +0x52, 0x1005b9272\nmovss   xmm2, [rbp+var_34]                                             ; +0x56, 0x1005b9276\nmulss   xmm2, xmm1                                                     ; +0x5b, 0x1005b927b\nmulss   xmm1, dword ptr [rbx+358h]                                     ; +0x5f, 0x1005b927f\naddss   xmm1, xmm2                                                     ; +0x67, 0x1005b9287\nlea     r13, [rbp+var_40]                                              ; +0x6b, 0x1005b928b\nmov     rdi, r13                                                       ; +0x6f, 0x1005b928f\ncall    sub_100278250                                                  ; +0x72, 0x1005b9292\nlea     rdi, [rbp+var_30]                                              ; +0x77, 0x1005b9297\nmov     rsi, r15                                                       ; +0x7b, 0x1005b929b\nmov     rdx, r13                                                       ; +0x7e, 0x1005b929e\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x81, 0x1005b92a1\ncall    sub_1007FE900                                                  ; +0x86, 0x1005b92a6\nmov     r15, rax                                                       ; +0x8b, 0x1005b92ab\nmov     rdi, r14                                                       ; +0x8e, 0x1005b92ae\ncall    sub_1007FEF90                                                  ; +0x91, 0x1005b92b1\ntest    eax, eax                                                       ; +0x96, 0x1005b92b6\njz      loc_1005B9387                                                  ; +0x98, 0x1005b92b8\ntest    r12b, r12b                                                     ; +0x9e, 0x1005b92be\njz      short loc_1005B932B                                            ; +0xa1, 0x1005b92c1\nxor     r12d, r12d                                                     ; +0xa3, 0x1005b92c3\njmp     short loc_1005B92E4                                            ; +0xa6, 0x1005b92c6\nalign 10h                                                              ; +0xa8, 0x1005b92c8\ninc     r12d                                                           ; +0xb0, 0x1005b92d0\nmov     rdi, r14                                                       ; +0xb3, 0x1005b92d3\ncall    sub_1007FEF90                                                  ; +0xb6, 0x1005b92d6\ncmp     r12d, eax                                                      ; +0xbb, 0x1005b92db\njnb     loc_1005B9387                                                  ; +0xbe, 0x1005b92de\nmov     rdi, r14                                                       ; +0xc4, 0x1005b92e4\nmov     esi, r12d                                                      ; +0xc7, 0x1005b92e7\ncall    sub_1007FEFE0                                                  ; +0xca, 0x1005b92ea\nmov     r13, rax                                                       ; +0xcf, 0x1005b92ef\nmov     rdi, [rbx+5A0h]                                                ; +0xd2, 0x1005b92f2\nmov     rsi, rax                                                       ; +0xd9, 0x1005b92f9\nxor     edx, edx                                                       ; +0xdc, 0x1005b92fc\ncall    LevelEditorLayer__validGroup                                   ; +0xde, 0x1005b92fe\ntest    al, al                                                         ; +0xe3, 0x1005b9303\njz      short loc_1005B92D0                                            ; +0xe5, 0x1005b9305\nmov     rax, [r13+0]                                                   ; +0xe7, 0x1005b9307\nmov     rdi, r13                                                       ; +0xeb, 0x1005b930b\ncall    qword ptr [rax+0C0h]                                           ; +0xee, 0x1005b930e\nmovss   xmm0, dword ptr [rbp+var_30]                                   ; +0xf4, 0x1005b9314\nucomiss xmm0, dword ptr [rax]                                          ; +0xf9, 0x1005b9319\njbe     short loc_1005B92D0                                            ; +0xfc, 0x1005b931c\nmov     rdi, r15                                                       ; +0xfe, 0x1005b931e\nmov     rsi, r13                                                       ; +0x101, 0x1005b9321\ncall    sub_1007FEBF0                                                  ; +0x104, 0x1005b9324\njmp     short loc_1005B92D0                                            ; +0x109, 0x1005b9329\nxor     r12d, r12d                                                     ; +0x10b, 0x1005b932b\njmp     short loc_1005B9340                                            ; +0x10e, 0x1005b932e\ninc     r12d                                                           ; +0x110, 0x1005b9330\nmov     rdi, r14                                                       ; +0x113, 0x1005b9333\ncall    sub_1007FEF90                                                  ; +0x116, 0x1005b9336\ncmp     r12d, eax                                                      ; +0x11b, 0x1005b933b\njnb     short loc_1005B9387                                            ; +0x11e, 0x1005b933e\nmov     rdi, r14                                                       ; +0x120, 0x1005b9340\nmov     esi, r12d                                                      ; +0x123, 0x1005b9343\ncall    sub_1007FEFE0                                                  ; +0x126, 0x1005b9346\nmov     r13, rax                                                       ; +0x12b, 0x1005b934b\nmov     rdi, [rbx+5A0h]                                                ; +0x12e, 0x1005b934e\nmov     rsi, rax                                                       ; +0x135, 0x1005b9355\nxor     edx, edx                                                       ; +0x138, 0x1005b9358\ncall    LevelEditorLayer__validGroup                                   ; +0x13a, 0x1005b935a\ntest    al, al                                                         ; +0x13f, 0x1005b935f\njz      short loc_1005B9330                                            ; +0x141, 0x1005b9361\nmov     rax, [r13+0]                                                   ; +0x143, 0x1005b9363\nmov     rdi, r13                                                       ; +0x147, 0x1005b9367\ncall    qword ptr [rax+0C0h]                                           ; +0x14a, 0x1005b936a\nmovss   xmm0, dword ptr [rax]                                          ; +0x150, 0x1005b9370\nucomiss xmm0, dword ptr [rbp+var_30]                                   ; +0x154, 0x1005b9374\njbe     short loc_1005B9330                                            ; +0x158, 0x1005b9378\nmov     rdi, r15                                                       ; +0x15a, 0x1005b937a\nmov     rsi, r13                                                       ; +0x15d, 0x1005b937d\ncall    sub_1007FEBF0                                                  ; +0x160, 0x1005b9380\njmp     short loc_1005B9330                                            ; +0x165, 0x1005b9385\nmov     rdi, rbx                                                       ; +0x167, 0x1005b9387\nmov     rsi, r15                                                       ; +0x16a, 0x1005b938a\ncall    EditorUI__processSelectObjects                                 ; +0x16d, 0x1005b938d\nmov     rdi, rbx                                                       ; +0x172, 0x1005b9392\ncall    EditorUI__deactivateRotationControl                            ; +0x175, 0x1005b9395\nmov     rdi, rbx                                                       ; +0x17a, 0x1005b939a\ncall    EditorUI__deactivateScaleControl                               ; +0x17d, 0x1005b939d\nmov     rdi, rbx                                                       ; +0x182, 0x1005b93a2\ncall    sub_100611790                                                  ; +0x185, 0x1005b93a5\nadd     rsp, 18h                                                       ; +0x18a, 0x1005b93aa\npop     rbx                                                            ; +0x18e, 0x1005b93ae\npop     r12                                                            ; +0x18f, 0x1005b93af\npop     r13                                                            ; +0x191, 0x1005b93b1\npop     r14                                                            ; +0x193, 0x1005b93b3\npop     r15                                                            ; +0x195, 0x1005b93b5\npop     rbp                                                            ; +0x197, 0x1005b93b7\nretn                                                                   ; +0x198, 0x1005b93b8", "xrefs": ["EditorUI::handleEditorAction @ 0x10060ca2f", "EditorUI::handleEditorAction @ 0x10060cb4d", "EditorCommandsPopup::onCommand @ 0x1008dedbc", "EditorCommandsPopup::onCommand @ 0x1008deedc"], "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"}