; ; EditorUI::handleAction from 0x1401c1bf0 to 0x1401c1ecd (733 bytes) ; ; 2 xrefs: ; > @ 0x140751670 ; > @ 0x14091a6cc ; ; 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:28:03 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1401c1bf0 mov [rsp+arg_8], rsi ; +0x5, 0x1401c1bf5 push rdi ; +0xa, 0x1401c1bfa sub rsp, 30h ; +0xb, 0x1401c1bfb movaps [rsp+38h+var_18], xmm6 ; +0xf, 0x1401c1bff movaps xmm6, xmm3 ; +0x14, 0x1401c1c04 movzx edi, r8b ; +0x17, 0x1401c1c07 mov esi, edx ; +0x1b, 0x1401c1c0b mov rbx, rcx ; +0x1d, 0x1401c1c0d test r8b, r8b ; +0x20, 0x1401c1c10 jz loc_1401C1CC9; jumptable 00000001401C1CC7 cases 20001,20002,20031-20034,20041-20048,20063-20066,20095-20110,20114,20115,20174-20181 ; +0x23, 0x1401c1c13 mov rcx, [rcx+1E8h] ; +0x29, 0x1401c1c19 mov rax, [rcx] ; +0x30, 0x1401c1c20 call qword ptr [rax+158h] ; +0x33, 0x1401c1c23 test al, al ; +0x39, 0x1401c1c29 jz short loc_1401C1C41 ; +0x3b, 0x1401c1c2b mov rcx, [rbx+1E8h] ; +0x3d, 0x1401c1c2d call GJScaleControl__applyFocusedInput ; +0x44, 0x1401c1c34 test al, al ; +0x49, 0x1401c1c39 jnz def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x4b, 0x1401c1c3b mov rcx, [rbx+1D0h] ; +0x51, 0x1401c1c41 mov rax, [rcx] ; +0x58, 0x1401c1c48 call qword ptr [rax+158h] ; +0x5b, 0x1401c1c4b test al, al ; +0x61, 0x1401c1c51 jz short loc_1401C1C7D ; +0x63, 0x1401c1c53 mov rcx, [rbx+1D0h] ; +0x65, 0x1401c1c55 mov rax, [rcx+1D0h] ; +0x6c, 0x1401c1c5c test rax, rax ; +0x73, 0x1401c1c63 jz short loc_1401C1C7D ; +0x76, 0x1401c1c66 cmp byte ptr [rax+1D4h], 0 ; +0x78, 0x1401c1c68 jz short loc_1401C1C7D ; +0x7f, 0x1401c1c6f xor edx, edx ; +0x81, 0x1401c1c71 call GJRotationControl__onApplyAngle ; +0x83, 0x1401c1c73 jmp def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x88, 0x1401c1c78 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8d, 0x1401c1c7d mov rcx, [rax] ; +0x93, 0x1401c1c83 mov rdx, [rcx+0B0h] ; +0x96, 0x1401c1c86 mov rcx, rax ; +0x9d, 0x1401c1c8d call rdx ; +0xa0, 0x1401c1c90 cmp byte ptr [rax+9Dh], 0 ; +0xa2, 0x1401c1c92 jz short loc_1401C1CC9; jumptable 00000001401C1CC7 cases 20001,20002,20031-20034,20041-20048,20063-20066,20095-20110,20114,20115,20174-20181 ; +0xa9, 0x1401c1c99 lea eax, [rsi-4E21h]; switch 181 cases ; +0xab, 0x1401c1c9b cmp eax, 0B4h ; +0xb1, 0x1401c1ca1 ja def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0xb6, 0x1401c1ca6 lea rdx, cs:140000000h ; +0xbc, 0x1401c1cac cdqe ; +0xc3, 0x1401c1cb3 movzx eax, ds:(byte_1401C1E18 - 140000000h)[rdx+rax] ; +0xc5, 0x1401c1cb5 mov ecx, ds:(jpt_1401C1CC7 - 140000000h)[rdx+rax*4] ; +0xcd, 0x1401c1cbd add rcx, rdx ; +0xd4, 0x1401c1cc4 jmp rcx; switch jump ; +0xd7, 0x1401c1cc7 mov ecx, esi; jumptable 00000001401C1CC7 cases 20001,20002,20031-20034,20041-20048,20063-20066,20095-20110,20114,20115,20174-20181 ; +0xd9, 0x1401c1cc9 sub ecx, 4E63h ; +0xdb, 0x1401c1ccb jz loc_1401C1DE6 ; +0xe1, 0x1401c1cd1 sub ecx, 1 ; +0xe7, 0x1401c1cd7 jz loc_1401C1D6C ; +0xea, 0x1401c1cda sub ecx, 1 ; +0xf0, 0x1401c1ce0 jz short loc_1401C1D22 ; +0xf3, 0x1401c1ce3 cmp ecx, 12h ; +0xf5, 0x1401c1ce5 jnz short loc_1401C1D29 ; +0xf8, 0x1401c1ce8 test dil, dil ; +0xfa, 0x1401c1cea jz def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0xfd, 0x1401c1ced mov rcx, [rbx+490h] ; +0x103, 0x1401c1cf3 mov eax, [rcx+89Ch] ; +0x10a, 0x1401c1cfa cmp eax, 1 ; +0x110, 0x1401c1d00 jnz short loc_1401C1D0F ; +0x113, 0x1401c1d03 call LevelEditorLayer__onPausePlaytest ; +0x115, 0x1401c1d05 jmp def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x11a, 0x1401c1d0a cmp eax, 2 ; +0x11f, 0x1401c1d0f jnz def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x122, 0x1401c1d12 call LevelEditorLayer__onResumePlaytest ; +0x128, 0x1401c1d18 jmp def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x12d, 0x1401c1d1d mov [rbx+188h], dil ; +0x132, 0x1401c1d22 mov rax, [rbx+490h] ; +0x139, 0x1401c1d29 lea rcx, [rbx-158h] ; +0x140, 0x1401c1d30 movaps xmm3, xmm6 ; +0x147, 0x1401c1d37 movzx r8d, dil ; +0x14a, 0x1401c1d3a mov edx, esi ; +0x14e, 0x1401c1d3e cmp dword ptr [rax+89Ch], 1 ; +0x150, 0x1401c1d40 jnz short loc_1401C1D62 ; +0x157, 0x1401c1d47 mov rcx, [rax+3640h] ; +0x159, 0x1401c1d49 add rcx, 220h ; +0x160, 0x1401c1d50 mov rax, [rcx] ; +0x167, 0x1401c1d57 call qword ptr [rax+10h] ; +0x16a, 0x1401c1d5a jmp loc_1401C1DFB ; +0x16d, 0x1401c1d5d call EditorUI__handleEditorAction ; +0x172, 0x1401c1d62 jmp loc_1401C1DFB ; +0x177, 0x1401c1d67 test dil, dil ; +0x17c, 0x1401c1d6c jz def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x17f, 0x1401c1d6f mov rax, [rbx+490h] ; +0x185, 0x1401c1d75 add rbx, 0FFFFFFFFFFFFFEA8h ; +0x18c, 0x1401c1d7c cmp dword ptr [rax+89Ch], 0 ; +0x193, 0x1401c1d83 jnz short loc_1401C1DA1 ; +0x19a, 0x1401c1d8a cmp dword ptr [rbx+2F0h], 0FFFFFFFFh ; +0x19c, 0x1401c1d8c jnz short def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x1a3, 0x1401c1d93 xor edx, edx ; +0x1a5, 0x1401c1d95 mov rcx, rbx ; +0x1a7, 0x1401c1d97 call EditorUI__onPlaytest ; +0x1aa, 0x1401c1d9a jmp short def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x1af, 0x1401c1d9f call EditorSFXManager__sharedState ; +0x1b1, 0x1401c1da1 mov rcx, rax ; +0x1b6, 0x1401c1da6 mov edx, 0D3h ; +0x1b9, 0x1401c1da9 call EditorSFXManager__playAction ; +0x1be, 0x1401c1dae mov dl, 1 ; +0x1c3, 0x1401c1db3 mov rcx, rbx ; +0x1c5, 0x1401c1db5 call EditorUI__showUI ; +0x1c8, 0x1401c1db8 cmp byte ptr [rbx+298h], 0 ; +0x1cd, 0x1401c1dbd jz short loc_1401C1DD0 ; +0x1d4, 0x1401c1dc4 xor edx, edx ; +0x1d6, 0x1401c1dc6 mov rcx, rbx ; +0x1d8, 0x1401c1dc8 call EditorUI__onPlayback ; +0x1db, 0x1401c1dcb mov rcx, [rbx+5E8h] ; +0x1e0, 0x1401c1dd0 call LevelEditorLayer__onStopPlaytest ; +0x1e7, 0x1401c1dd7 mov rcx, rbx ; +0x1ec, 0x1401c1ddc call EditorUI__playtestStopped ; +0x1ef, 0x1401c1ddf jmp short def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x1f4, 0x1401c1de4 test dil, dil ; +0x1f6, 0x1401c1de6 jz short def_1401C1CC7; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x1f9, 0x1401c1de9 lea rcx, [rbx-158h] ; +0x1fb, 0x1401c1deb xor edx, edx ; +0x202, 0x1401c1df2 call EditorUI__onPause ; +0x204, 0x1401c1df4 mov al, 1; jumptable 00000001401C1CC7 default case, cases 20003-20030,20035-20040,20049-20062,20067-20094,20111-20113,20116-20173 ; +0x209, 0x1401c1df9 mov rbx, [rsp+38h+arg_0] ; +0x20b, 0x1401c1dfb mov rsi, [rsp+38h+arg_8] ; +0x210, 0x1401c1e00 movaps xmm6, [rsp+38h+var_18] ; +0x215, 0x1401c1e05 add rsp, 30h ; +0x21a, 0x1401c1e0a pop rdi ; +0x21e, 0x1401c1e0e retn ; +0x21f, 0x1401c1e0f dd offset loc_1401C1CC9 - 140000000h; jump table for switch statement ; +0x220, 0x1401c1e10 db 0, 0, 1, 1; indirect table for switch statement ; +0x228, 0x1401c1e18