; ; EditorUI::toggleWindow from 0x1401ac780 to 0x1401acca8 (1320 bytes) ; ; 8 xrefs: ; > EditorUI::onEditorCommands @ 0x1401ac76e ; > EditorUI::onGridSizeIndicator @ 0x1401ae925 ; > EditorUI::onFindObject @ 0x1401b20de ; > EditorUI::handleEditorAction @ 0x1401c33bf ; > EditorUI::handleEditorAction @ 0x1401c38f3 ; > EditorUI::handleEditorAction @ 0x1401c3a22 ; > EditorUI::onDpadStep @ 0x1401f3fc7 ; > @ 0x140919d18 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:27:54 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x1401ac780 mov [rsp+arg_18], rsi ; +0x5, 0x1401ac785 mov [rsp+arg_8], edx ; +0xa, 0x1401ac78a push rdi ; +0xe, 0x1401ac78e sub rsp, 40h ; +0xf, 0x1401ac78f mov rdi, rcx ; +0x13, 0x1401ac793 movzx r8d, dl ; +0x16, 0x1401ac796 mov rax, 0CBF29CE484222325h ; +0x1a, 0x1401ac79a xor r8, rax ; +0x24, 0x1401ac7a4 mov r9, 100000001B3h ; +0x27, 0x1401ac7a7 imul r8, r9 ; +0x31, 0x1401ac7b1 mov eax, edx ; +0x35, 0x1401ac7b5 sar eax, 8 ; +0x37, 0x1401ac7b7 movzx ecx, al ; +0x3a, 0x1401ac7ba xor r8, rcx ; +0x3d, 0x1401ac7bd imul r8, r9 ; +0x40, 0x1401ac7c0 mov eax, edx ; +0x44, 0x1401ac7c4 sar eax, 10h ; +0x46, 0x1401ac7c6 movzx ecx, al ; +0x49, 0x1401ac7c9 xor r8, rcx ; +0x4c, 0x1401ac7cc imul r8, r9 ; +0x4f, 0x1401ac7cf mov eax, edx ; +0x53, 0x1401ac7d3 sar eax, 18h ; +0x55, 0x1401ac7d5 movzx ecx, al ; +0x58, 0x1401ac7d8 xor r8, rcx ; +0x5b, 0x1401ac7db imul r8, r9 ; +0x5e, 0x1401ac7de and r8, [rdi+288h] ; +0x62, 0x1401ac7e2 mov r9, [rdi+270h] ; +0x69, 0x1401ac7e9 mov rax, r8 ; +0x70, 0x1401ac7f0 add rax, rax ; +0x73, 0x1401ac7f3 mov rcx, [r9+rax*8+8] ; +0x76, 0x1401ac7f6 mov r10, [rdi+260h] ; +0x7b, 0x1401ac7fb cmp rcx, r10 ; +0x82, 0x1401ac802 jz short loc_1401AC823 ; +0x85, 0x1401ac805 add r8, r8 ; +0x87, 0x1401ac807 mov rax, [r9+r8*8] ; +0x8a, 0x1401ac80a cmp edx, [rcx+10h] ; +0x8e, 0x1401ac80e jz short loc_1401AC825 ; +0x91, 0x1401ac811 cmp rcx, rax ; +0x93, 0x1401ac813 jz short loc_1401AC823 ; +0x96, 0x1401ac816 mov rcx, [rcx+8] ; +0x98, 0x1401ac818 cmp edx, [rcx+10h] ; +0x9c, 0x1401ac81c jnz short loc_1401AC813 ; +0x9f, 0x1401ac81f jmp short loc_1401AC825 ; +0xa1, 0x1401ac821 xor ecx, ecx ; +0xa3, 0x1401ac823 test rcx, rcx ; +0xa5, 0x1401ac825 cmovz rcx, r10 ; +0xa8, 0x1401ac828 cmp rcx, r10 ; +0xac, 0x1401ac82c jz short loc_1401AC850 ; +0xaf, 0x1401ac82f mov rcx, [rcx+18h] ; +0xb1, 0x1401ac831 mov rax, [rcx] ; +0xb5, 0x1401ac835 xor edx, edx ; +0xb8, 0x1401ac838 call qword ptr [rax+450h] ; +0xba, 0x1401ac83a mov rbx, [rsp+48h+arg_10] ; +0xc0, 0x1401ac840 mov rsi, [rsp+48h+arg_18] ; +0xc5, 0x1401ac845 add rsp, 40h ; +0xca, 0x1401ac84a pop rdi ; +0xce, 0x1401ac84e retn ; +0xcf, 0x1401ac84f sub edx, 1 ; +0xd0, 0x1401ac850 jz loc_1401ACB5F ; +0xd3, 0x1401ac853 sub edx, 2 ; +0xd9, 0x1401ac859 jz loc_1401ACA78 ; +0xdc, 0x1401ac85c sub edx, 1 ; +0xe2, 0x1401ac862 jz loc_1401AC99B ; +0xe5, 0x1401ac865 cmp edx, 1 ; +0xeb, 0x1401ac86b jnz loc_1401ACC98 ; +0xee, 0x1401ac86e mov ecx, 480h; Size ; +0xf4, 0x1401ac874 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xf9, 0x1401ac879 mov rbx, rax ; +0xfe, 0x1401ac87e mov [rsp+48h+arg_0], rax ; +0x101, 0x1401ac881 xor edx, edx; Val ; +0x106, 0x1401ac886 mov r8d, 480h; Size ; +0x108, 0x1401ac888 mov rcx, rax; void * ; +0x10e, 0x1401ac88e call memset ; +0x111, 0x1401ac891 mov rcx, rbx ; +0x116, 0x1401ac896 call EditorWindowPopup__EditorWindowPopup ; +0x119, 0x1401ac899 lea rax, ??_7MoveStepPopup@@6B@; const MoveStepPopup::`vftable' ; +0x11e, 0x1401ac89e mov [rbx], rax ; +0x125, 0x1401ac8a5 lea rax, ??_7MoveStepPopup@@6B@_0; const MoveStepPopup::`vftable' ; +0x128, 0x1401ac8a8 mov [rbx+140h], rax ; +0x12f, 0x1401ac8af lea rax, ??_7MoveStepPopup@@6B@_1; const MoveStepPopup::`vftable' ; +0x136, 0x1401ac8b6 mov [rbx+148h], rax ; +0x13d, 0x1401ac8bd lea rax, ??_7MoveStepPopup@@6B@_2; const MoveStepPopup::`vftable' ; +0x144, 0x1401ac8c4 mov [rbx+150h], rax ; +0x14b, 0x1401ac8cb lea rax, ??_7MoveStepPopup@@6B@_3; const MoveStepPopup::`vftable' ; +0x152, 0x1401ac8d2 mov [rbx+158h], rax ; +0x159, 0x1401ac8d9 lea rax, ??_7MoveStepPopup@@6B@_4; const MoveStepPopup::`vftable' ; +0x160, 0x1401ac8e0 mov [rbx+160h], rax ; +0x167, 0x1401ac8e7 lea rax, ??_7MoveStepPopup@@6B@_5; const MoveStepPopup::`vftable' ; +0x16e, 0x1401ac8ee mov [rbx+198h], rax ; +0x175, 0x1401ac8f5 lea rax, ??_7MoveStepPopup@@6B@_6; const MoveStepPopup::`vftable' ; +0x17c, 0x1401ac8fc mov [rbx+1B0h], rax ; +0x183, 0x1401ac903 lea rax, ??_7MoveStepPopup@@6B@_7; const MoveStepPopup::`vftable' ; +0x18a, 0x1401ac90a mov [rbx+220h], rax ; +0x191, 0x1401ac911 lea rax, ??_7MoveStepPopup@@6B@_8; const MoveStepPopup::`vftable' ; +0x198, 0x1401ac918 mov [rbx+298h], rax ; +0x19f, 0x1401ac91f lea rax, ??_7MoveStepPopup@@6B@_9; const MoveStepPopup::`vftable' ; +0x1a6, 0x1401ac926 mov [rbx+2A0h], rax ; +0x1ad, 0x1401ac92d mov [rsp+48h+var_28], 5 ; +0x1b4, 0x1401ac934 movss xmm3, cs:dword_140835654 ; +0x1bc, 0x1401ac93c movss xmm2, cs:dword_14083585C ; +0x1c4, 0x1401ac944 mov word ptr [rbx+429h], 101h ; +0x1cc, 0x1401ac94c mov dword ptr [rbx+46Ch], 3F800000h ; +0x1d5, 0x1401ac955 mov dword ptr [rbx+468h], 3F19999Ah ; +0x1df, 0x1401ac95f mov dword ptr [rbx+44Ch], 2 ; +0x1e9, 0x1401ac969 mov rdx, rdi ; +0x1f3, 0x1401ac973 mov rcx, rbx ; +0x1f6, 0x1401ac976 call EditorWindowPopup__initWindow ; +0x1f9, 0x1401ac979 mov rcx, rbx ; +0x1fe, 0x1401ac97e test al, al ; +0x201, 0x1401ac981 jnz loc_1401ACC64 ; +0x203, 0x1401ac983 mov rax, [rbx] ; +0x209, 0x1401ac989 mov edx, 1 ; +0x20c, 0x1401ac98c call qword ptr [rax+8] ; +0x211, 0x1401ac991 xor ebx, ebx ; +0x214, 0x1401ac994 jmp loc_1401ACC6A ; +0x216, 0x1401ac996 mov ecx, 480h; Size ; +0x21b, 0x1401ac99b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x220, 0x1401ac9a0 mov rbx, rax ; +0x225, 0x1401ac9a5 mov [rsp+48h+arg_0], rax ; +0x228, 0x1401ac9a8 xor edx, edx; Val ; +0x22d, 0x1401ac9ad mov r8d, 480h; Size ; +0x22f, 0x1401ac9af mov rcx, rax; void * ; +0x235, 0x1401ac9b5 call memset ; +0x238, 0x1401ac9b8 mov rcx, rbx ; +0x23d, 0x1401ac9bd call EditorWindowPopup__EditorWindowPopup ; +0x240, 0x1401ac9c0 lea rax, ??_7GridSettingsLayer@@6B@; const GridSettingsLayer::`vftable' ; +0x245, 0x1401ac9c5 mov [rbx], rax ; +0x24c, 0x1401ac9cc lea rax, ??_7GridSettingsLayer@@6B@_0; const GridSettingsLayer::`vftable' ; +0x24f, 0x1401ac9cf mov [rbx+140h], rax ; +0x256, 0x1401ac9d6 lea rax, ??_7GridSettingsLayer@@6B@_1; const GridSettingsLayer::`vftable' ; +0x25d, 0x1401ac9dd mov [rbx+148h], rax ; +0x264, 0x1401ac9e4 lea rax, ??_7GridSettingsLayer@@6B@_2; const GridSettingsLayer::`vftable' ; +0x26b, 0x1401ac9eb mov [rbx+150h], rax ; +0x272, 0x1401ac9f2 lea rax, ??_7GridSettingsLayer@@6B@_3; const GridSettingsLayer::`vftable' ; +0x279, 0x1401ac9f9 mov [rbx+158h], rax ; +0x280, 0x1401aca00 lea rax, ??_7GridSettingsLayer@@6B@_4; const GridSettingsLayer::`vftable' ; +0x287, 0x1401aca07 mov [rbx+160h], rax ; +0x28e, 0x1401aca0e lea rax, ??_7GridSettingsLayer@@6B@_5; const GridSettingsLayer::`vftable' ; +0x295, 0x1401aca15 mov [rbx+198h], rax ; +0x29c, 0x1401aca1c lea rax, ??_7GridSettingsLayer@@6B@_6; const GridSettingsLayer::`vftable' ; +0x2a3, 0x1401aca23 mov [rbx+1B0h], rax ; +0x2aa, 0x1401aca2a lea rax, ??_7GridSettingsLayer@@6B@_7; const GridSettingsLayer::`vftable' ; +0x2b1, 0x1401aca31 mov [rbx+220h], rax ; +0x2b8, 0x1401aca38 lea rax, ??_7GridSettingsLayer@@6B@_8; const GridSettingsLayer::`vftable' ; +0x2bf, 0x1401aca3f mov [rbx+298h], rax ; +0x2c6, 0x1401aca46 lea rax, ??_7GridSettingsLayer@@6B@_9; const GridSettingsLayer::`vftable' ; +0x2cd, 0x1401aca4d mov [rbx+2A0h], rax ; +0x2d4, 0x1401aca54 mov [rsp+48h+var_28], 4 ; +0x2db, 0x1401aca5b movss xmm3, cs:dword_1408357B4 ; +0x2e3, 0x1401aca63 movss xmm2, cs:dword_1408359A4 ; +0x2eb, 0x1401aca6b jmp loc_1401AC94C ; +0x2f3, 0x1401aca73 mov ecx, 488h; Size ; +0x2f8, 0x1401aca78 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2fd, 0x1401aca7d mov rbx, rax ; +0x302, 0x1401aca82 mov [rsp+48h+arg_0], rax ; +0x305, 0x1401aca85 xor edx, edx; Val ; +0x30a, 0x1401aca8a mov r8d, 488h; Size ; +0x30c, 0x1401aca8c mov rcx, rax; void * ; +0x312, 0x1401aca92 call memset ; +0x315, 0x1401aca95 mov rcx, rbx ; +0x31a, 0x1401aca9a call EditorWindowPopup__EditorWindowPopup ; +0x31d, 0x1401aca9d lea rax, ??_7FindObjectPopup@@6B@; const FindObjectPopup::`vftable' ; +0x322, 0x1401acaa2 mov [rbx], rax ; +0x329, 0x1401acaa9 lea rax, ??_7FindObjectPopup@@6B@_0; const FindObjectPopup::`vftable' ; +0x32c, 0x1401acaac mov [rbx+140h], rax ; +0x333, 0x1401acab3 lea rax, ??_7FindObjectPopup@@6B@_1; const FindObjectPopup::`vftable' ; +0x33a, 0x1401acaba mov [rbx+148h], rax ; +0x341, 0x1401acac1 lea rax, ??_7FindObjectPopup@@6B@_2; const FindObjectPopup::`vftable' ; +0x348, 0x1401acac8 mov [rbx+150h], rax ; +0x34f, 0x1401acacf lea rax, ??_7FindObjectPopup@@6B@_3; const FindObjectPopup::`vftable' ; +0x356, 0x1401acad6 mov [rbx+158h], rax ; +0x35d, 0x1401acadd lea rax, ??_7FindObjectPopup@@6B@_4; const FindObjectPopup::`vftable' ; +0x364, 0x1401acae4 mov [rbx+160h], rax ; +0x36b, 0x1401acaeb lea rax, ??_7FindObjectPopup@@6B@_5; const FindObjectPopup::`vftable' ; +0x372, 0x1401acaf2 mov [rbx+198h], rax ; +0x379, 0x1401acaf9 lea rax, ??_7FindObjectPopup@@6B@_6; const FindObjectPopup::`vftable' ; +0x380, 0x1401acb00 mov [rbx+1B0h], rax ; +0x387, 0x1401acb07 lea rax, ??_7FindObjectPopup@@6B@_7; const FindObjectPopup::`vftable' ; +0x38e, 0x1401acb0e mov [rbx+220h], rax ; +0x395, 0x1401acb15 lea rax, ??_7FindObjectPopup@@6B@_8; const FindObjectPopup::`vftable' ; +0x39c, 0x1401acb1c mov [rbx+298h], rax ; +0x3a3, 0x1401acb23 lea rax, ??_7FindObjectPopup@@6B@_9; const FindObjectPopup::`vftable' ; +0x3aa, 0x1401acb2a mov [rbx+2A0h], rax ; +0x3b1, 0x1401acb31 mov dword ptr [rbx+480h], 0 ; +0x3b8, 0x1401acb38 mov [rsp+48h+var_28], 3 ; +0x3c2, 0x1401acb42 movss xmm3, cs:dword_140835778 ; +0x3ca, 0x1401acb4a movss xmm2, cs:dword_1408358F4 ; +0x3d2, 0x1401acb52 jmp loc_1401AC94C ; +0x3da, 0x1401acb5a mov ecx, 480h; Size ; +0x3df, 0x1401acb5f call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3e4, 0x1401acb64 mov rbx, rax ; +0x3e9, 0x1401acb69 mov [rsp+48h+arg_0], rax ; +0x3ec, 0x1401acb6c xor edx, edx; Val ; +0x3f1, 0x1401acb71 mov r8d, 480h; Size ; +0x3f3, 0x1401acb73 mov rcx, rax; void * ; +0x3f9, 0x1401acb79 call memset ; +0x3fc, 0x1401acb7c mov rcx, rbx ; +0x401, 0x1401acb81 call EditorWindowPopup__EditorWindowPopup ; +0x404, 0x1401acb84 lea rax, ??_7EditorCommandsPopup@@6B@; const EditorCommandsPopup::`vftable' ; +0x409, 0x1401acb89 mov [rbx], rax ; +0x410, 0x1401acb90 lea rax, ??_7EditorCommandsPopup@@6B@_0; const EditorCommandsPopup::`vftable' ; +0x413, 0x1401acb93 mov [rbx+140h], rax ; +0x41a, 0x1401acb9a lea rax, ??_7EditorCommandsPopup@@6B@_1; const EditorCommandsPopup::`vftable' ; +0x421, 0x1401acba1 mov [rbx+148h], rax ; +0x428, 0x1401acba8 lea rax, ??_7EditorCommandsPopup@@6B@_2; const EditorCommandsPopup::`vftable' ; +0x42f, 0x1401acbaf mov [rbx+150h], rax ; +0x436, 0x1401acbb6 lea rax, ??_7EditorCommandsPopup@@6B@_3; const EditorCommandsPopup::`vftable' ; +0x43d, 0x1401acbbd mov [rbx+158h], rax ; +0x444, 0x1401acbc4 lea rax, ??_7EditorCommandsPopup@@6B@_4; const EditorCommandsPopup::`vftable' ; +0x44b, 0x1401acbcb mov [rbx+160h], rax ; +0x452, 0x1401acbd2 lea rax, ??_7EditorCommandsPopup@@6B@_5; const EditorCommandsPopup::`vftable' ; +0x459, 0x1401acbd9 mov [rbx+198h], rax ; +0x460, 0x1401acbe0 lea rax, ??_7EditorCommandsPopup@@6B@_6; const EditorCommandsPopup::`vftable' ; +0x467, 0x1401acbe7 mov [rbx+1B0h], rax ; +0x46e, 0x1401acbee lea rax, ??_7EditorCommandsPopup@@6B@_7; const EditorCommandsPopup::`vftable' ; +0x475, 0x1401acbf5 mov [rbx+220h], rax ; +0x47c, 0x1401acbfc lea rax, ??_7EditorCommandsPopup@@6B@_8; const EditorCommandsPopup::`vftable' ; +0x483, 0x1401acc03 mov [rbx+298h], rax ; +0x48a, 0x1401acc0a lea rax, ??_7EditorCommandsPopup@@6B@_9; const EditorCommandsPopup::`vftable' ; +0x491, 0x1401acc11 mov [rbx+2A0h], rax ; +0x498, 0x1401acc18 mov dword ptr [rbx+458h], 42C80000h ; +0x49f, 0x1401acc1f mov dword ptr [rbx+45Ch], 42700000h ; +0x4a9, 0x1401acc29 mov dword ptr [rbx+460h], 43200000h ; +0x4b3, 0x1401acc33 mov dword ptr [rbx+464h], 43CA8000h ; +0x4bd, 0x1401acc3d mov [rsp+48h+var_28], 1 ; +0x4c7, 0x1401acc47 movss xmm3, cs:dword_14083597C ; +0x4cf, 0x1401acc4f movss xmm2, cs:dword_14083587C ; +0x4d7, 0x1401acc57 jmp loc_1401AC973 ; +0x4df, 0x1401acc5f call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x4e4, 0x1401acc64 test rbx, rbx ; +0x4ea, 0x1401acc6a jz short loc_1401ACC98 ; +0x4ed, 0x1401acc6d lea r8, [rsp+48h+arg_8] ; +0x4ef, 0x1401acc6f lea rdx, [rsp+48h+var_18] ; +0x4f4, 0x1401acc74 lea rcx, [rdi+258h] ; +0x4f9, 0x1401acc79 call sub_1400677E0 ; +0x500, 0x1401acc80 mov rdx, [rax] ; +0x505, 0x1401acc85 mov [rdx+18h], rbx ; +0x508, 0x1401acc88 mov rax, [rbx] ; +0x50c, 0x1401acc8c mov rcx, rbx ; +0x50f, 0x1401acc8f call qword ptr [rax+428h] ; +0x512, 0x1401acc92 mov rbx, [rsp+48h+arg_10] ; +0x518, 0x1401acc98 mov rsi, [rsp+48h+arg_18] ; +0x51d, 0x1401acc9d add rsp, 40h ; +0x522, 0x1401acca2 pop rdi ; +0x526, 0x1401acca6 retn ; +0x527, 0x1401acca7