; ; EditorUI::toggleSpecialEditButtons from 0x14011a9f0 to 0x14011ad2f (831 bytes) ; ; 3 xrefs: ; > EditorUI::updateButtons @ 0x1400e1f70 ; > EditorUI::toggleEnableRotate @ 0x140110300 ; > @ 0x1406c948c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x14011a9f0 mov [rsp+arg_10], rbp ; +0x5, 0x14011a9f5 mov [rsp+arg_18], rsi ; +0xa, 0x14011a9fa push rdi ; +0xf, 0x14011a9ff push r12 ; +0x10, 0x14011aa00 push r13 ; +0x12, 0x14011aa02 push r14 ; +0x14, 0x14011aa04 push r15 ; +0x16, 0x14011aa06 sub rsp, 60h ; +0x18, 0x14011aa08 mov rax, cs:__security_cookie ; +0x1c, 0x14011aa0c xor rax, rsp ; +0x23, 0x14011aa13 mov [rsp+88h+var_30], rax ; +0x26, 0x14011aa16 mov rsi, rcx ; +0x2b, 0x14011aa1b xor r14b, r14b ; +0x2e, 0x14011aa1e mov rcx, [rcx+340h] ; +0x31, 0x14011aa21 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x38, 0x14011aa28 xor r15d, r15d ; +0x3e, 0x14011aa2e test eax, eax ; +0x41, 0x14011aa31 jz short loc_14011AA93 ; +0x43, 0x14011aa33 mov r14b, 1 ; +0x45, 0x14011aa35 mov ebx, r15d ; +0x48, 0x14011aa38 mov rcx, [rsi+340h] ; +0x4b, 0x14011aa3b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x14011aa42 test eax, eax ; +0x58, 0x14011aa48 jz short loc_14011AAC0 ; +0x5a, 0x14011aa4a mov edi, 2200001h ; +0x5c, 0x14011aa4c mov edx, ebx ; +0x61, 0x14011aa51 mov rcx, [rsi+340h] ; +0x63, 0x14011aa53 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x6a, 0x14011aa5a mov ecx, [rax+3A0h] ; +0x70, 0x14011aa60 cmp ecx, 19h ; +0x76, 0x14011aa66 ja short loc_14011AA79 ; +0x79, 0x14011aa69 bt edi, ecx ; +0x7b, 0x14011aa6b jnb short loc_14011AA79 ; +0x7e, 0x14011aa6e cmp [rax+4C6h], r15b ; +0x80, 0x14011aa70 jz short loc_14011AA8E ; +0x87, 0x14011aa77 inc ebx ; +0x89, 0x14011aa79 mov rcx, [rsi+340h] ; +0x8b, 0x14011aa7b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x92, 0x14011aa82 cmp ebx, eax ; +0x98, 0x14011aa88 jb short loc_14011AA51 ; +0x9a, 0x14011aa8a jmp short loc_14011AAC0 ; +0x9c, 0x14011aa8c xor r14b, r14b ; +0x9e, 0x14011aa8e jmp short loc_14011AAC0 ; +0xa1, 0x14011aa91 mov rax, [rsi+538h] ; +0xa3, 0x14011aa93 test rax, rax ; +0xaa, 0x14011aa9a jz short loc_14011AAC0 ; +0xad, 0x14011aa9d mov ecx, [rax+3A0h] ; +0xaf, 0x14011aa9f cmp ecx, 19h ; +0xb5, 0x14011aaa5 ja short loc_14011AABD ; +0xb8, 0x14011aaa8 mov edi, 2200001h ; +0xba, 0x14011aaaa bt edi, ecx ; +0xbf, 0x14011aaaf jnb short loc_14011AABD ; +0xc2, 0x14011aab2 cmp [rax+4C6h], r14b ; +0xc4, 0x14011aab4 jz short loc_14011AAC0 ; +0xcb, 0x14011aabb mov r14b, 1 ; +0xcd, 0x14011aabd mov ebp, r15d ; +0xd0, 0x14011aac0 lea r13, word_140529A40 ; +0xd3, 0x14011aac3 lea r12, word_140529A48 ; +0xda, 0x14011aaca mov ecx, ebp ; +0xe1, 0x14011aad1 sub ecx, 1 ; +0xe3, 0x14011aad3 jz short loc_14011AAF7 ; +0xe6, 0x14011aad6 sub ecx, 1 ; +0xe8, 0x14011aad8 jz short loc_14011AAF0 ; +0xeb, 0x14011aadb cmp ecx, 1 ; +0xed, 0x14011aadd jz short loc_14011AAE9 ; +0xf0, 0x14011aae0 mov edx, 1Bh ; +0xf2, 0x14011aae2 jmp short loc_14011AAFC ; +0xf7, 0x14011aae7 mov edx, 1Ah ; +0xf9, 0x14011aae9 jmp short loc_14011AAFC ; +0xfe, 0x14011aaee mov edx, 19h ; +0x100, 0x14011aaf0 jmp short loc_14011AAFC ; +0x105, 0x14011aaf5 mov edx, 1Ch ; +0x107, 0x14011aaf7 lea rcx, aI_11; "%i" ; +0x10c, 0x14011aafc call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x113, 0x14011ab03 mov rcx, rax ; +0x119, 0x14011ab09 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x11c, 0x14011ab0c xorps xmm0, xmm0 ; +0x122, 0x14011ab12 movups [rsp+88h+var_50], xmm0 ; +0x125, 0x14011ab15 mov [rsp+88h+var_40], r15 ; +0x12a, 0x14011ab1a mov [rsp+88h+var_38], r15 ; +0x12f, 0x14011ab1f mov r8, 0FFFFFFFFFFFFFFFFh ; +0x134, 0x14011ab24 nop dword ptr [rax+rax+00h] ; +0x13b, 0x14011ab2b inc r8 ; +0x140, 0x14011ab30 cmp byte ptr [rax+r8], 0 ; +0x143, 0x14011ab33 jnz short loc_14011AB30 ; +0x148, 0x14011ab38 mov rdx, rax ; +0x14a, 0x14011ab3a lea rcx, [rsp+88h+var_50] ; +0x14d, 0x14011ab3d call sub_14003A930 ; +0x152, 0x14011ab42 nop ; +0x157, 0x14011ab47 lea rdx, [rsp+88h+var_50] ; +0x158, 0x14011ab48 mov rcx, [rsi+2F0h] ; +0x15d, 0x14011ab4d call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x164, 0x14011ab54 mov rdi, rax ; +0x16a, 0x14011ab5a mov rdx, [rsp+88h+var_38] ; +0x16d, 0x14011ab5d cmp rdx, 0Fh ; +0x172, 0x14011ab62 jbe short loc_14011AB9A ; +0x176, 0x14011ab66 inc rdx ; +0x178, 0x14011ab68 mov rcx, qword ptr [rsp+88h+var_50] ; +0x17b, 0x14011ab6b mov rax, rcx ; +0x180, 0x14011ab70 cmp rdx, 1000h ; +0x183, 0x14011ab73 jb short loc_14011AB95 ; +0x18a, 0x14011ab7a add rdx, 27h ; ''' ; +0x18c, 0x14011ab7c mov rcx, [rcx-8]; Block ; +0x190, 0x14011ab80 sub rax, rcx ; +0x194, 0x14011ab84 add rax, 0FFFFFFFFFFFFFFF8h ; +0x197, 0x14011ab87 cmp rax, 1Fh ; +0x19b, 0x14011ab8b ja loc_14011ACB9 ; +0x19f, 0x14011ab8f call j_j_free ; +0x1a5, 0x14011ab95 mov [rsp+88h+var_40], r15 ; +0x1aa, 0x14011ab9a mov [rsp+88h+var_38], 0Fh ; +0x1af, 0x14011ab9f mov byte ptr [rsp+88h+var_50], 0 ; +0x1b8, 0x14011aba8 test rdi, rdi ; +0x1bd, 0x14011abad jz loc_14011AC52 ; +0x1c0, 0x14011abb0 mov rax, [rdi] ; +0x1c6, 0x14011abb6 mov rcx, rdi ; +0x1c9, 0x14011abb9 call qword ptr [rax+3A8h] ; +0x1cc, 0x14011abbc mov rbx, rax ; +0x1d2, 0x14011abc2 mov rdx, r12 ; +0x1d5, 0x14011abc5 test r14b, r14b ; +0x1d8, 0x14011abc8 cmovz rdx, r13 ; +0x1db, 0x14011abcb movzx ecx, word ptr [rdx] ; +0x1df, 0x14011abcf mov [rsp+88h+var_68], cx ; +0x1e2, 0x14011abd2 movzx ecx, byte ptr [rdx+2] ; +0x1e7, 0x14011abd7 mov [rsp+88h+var_66], cl ; +0x1eb, 0x14011abdb mov rcx, [rax+270h] ; +0x1ef, 0x14011abdf test rcx, rcx ; +0x1f6, 0x14011abe6 jz short loc_14011ABFC ; +0x1f9, 0x14011abe9 add rcx, 170h ; +0x1fb, 0x14011abeb mov rax, [rcx] ; +0x202, 0x14011abf2 lea rdx, [rsp+88h+var_68] ; +0x205, 0x14011abf5 call qword ptr [rax] ; +0x20a, 0x14011abfa mov rcx, [rbx+278h] ; +0x20c, 0x14011abfc test rcx, rcx ; +0x213, 0x14011ac03 jz short loc_14011AC19 ; +0x216, 0x14011ac06 add rcx, 140h ; +0x218, 0x14011ac08 mov rax, [rcx] ; +0x21f, 0x14011ac0f lea rdx, [rsp+88h+var_68] ; +0x222, 0x14011ac12 call qword ptr [rax] ; +0x227, 0x14011ac17 mov rcx, [rbx+288h] ; +0x229, 0x14011ac19 test rcx, rcx ; +0x230, 0x14011ac20 jnz short loc_14011AC31 ; +0x233, 0x14011ac23 mov rcx, [rbx+280h] ; +0x235, 0x14011ac25 test rcx, rcx ; +0x23c, 0x14011ac2c jz short loc_14011AC42 ; +0x23f, 0x14011ac2f add rcx, 140h ; +0x241, 0x14011ac31 mov rax, [rcx] ; +0x248, 0x14011ac38 lea rdx, [rsp+88h+var_68] ; +0x24b, 0x14011ac3b call qword ptr [rax] ; +0x250, 0x14011ac40 mov rax, [rdi] ; +0x252, 0x14011ac42 movzx edx, r14b ; +0x255, 0x14011ac45 mov rcx, rdi ; +0x259, 0x14011ac49 call qword ptr [rax+398h] ; +0x25c, 0x14011ac4c inc ebp ; +0x262, 0x14011ac52 cmp ebp, 4 ; +0x264, 0x14011ac54 jl loc_14011AAD1 ; +0x267, 0x14011ac57 test r14b, r14b ; +0x26d, 0x14011ac5d jz short loc_14011ACC0 ; +0x270, 0x14011ac60 mov rcx, cs:qword_1406C2ED8 ; +0x272, 0x14011ac62 test rcx, rcx ; +0x279, 0x14011ac69 jnz short loc_14011AC9D ; +0x27c, 0x14011ac6c mov ecx, 668h; Size ; +0x27e, 0x14011ac6e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x283, 0x14011ac73 mov [rsp+88h+var_58], rax ; +0x288, 0x14011ac78 mov rcx, rax ; +0x28d, 0x14011ac7d call sub_14017AB00 ; +0x290, 0x14011ac80 nop ; +0x295, 0x14011ac85 mov cs:qword_1406C2ED8, rax ; +0x296, 0x14011ac86 mov rdx, [rax] ; +0x29d, 0x14011ac8d mov rcx, rax ; +0x2a0, 0x14011ac90 call qword ptr [rdx+48h] ; +0x2a3, 0x14011ac93 mov rcx, cs:qword_1406C2ED8 ; +0x2a6, 0x14011ac96 lea rdx, a0007; "0007" ; +0x2ad, 0x14011ac9d call GameManager__getGameVariable ; +0x2b4, 0x14011aca4 test al, al ; +0x2b9, 0x14011aca9 jz short loc_14011ACFC ; +0x2bb, 0x14011acab xor edx, edx ; +0x2bd, 0x14011acad mov rcx, rsi ; +0x2bf, 0x14011acaf call EditorUI__activateRotationControl ; +0x2c2, 0x14011acb2 jmp short loc_14011ACFC ; +0x2c7, 0x14011acb7 call cs:_invalid_parameter_noinfo_noreturn ; +0x2c9, 0x14011acb9 align 20h ; +0x2cf, 0x14011acbf mov dword ptr [rsi+2A0h], 0FFFFFFFFh ; +0x2d0, 0x14011acc0 mov rcx, [rsi+2B8h] ; +0x2da, 0x14011acca mov rax, [rcx] ; +0x2e1, 0x14011acd1 call qword ptr [rax+148h] ; +0x2e4, 0x14011acd4 test al, al ; +0x2ea, 0x14011acda jz short loc_14011ACFC ; +0x2ec, 0x14011acdc mov rcx, [rsi+2B8h] ; +0x2ee, 0x14011acde mov rax, [rcx] ; +0x2f5, 0x14011ace5 xor edx, edx ; +0x2f8, 0x14011ace8 call qword ptr [rax+140h] ; +0x2fa, 0x14011acea mov rcx, [rsi+2B8h] ; +0x300, 0x14011acf0 call GJRotationControl__finishTouch ; +0x307, 0x14011acf7 mov rcx, rsi ; +0x30c, 0x14011acfc call EditorUI__updateGridNodeSize ; +0x30f, 0x14011acff mov rcx, [rsp+88h+var_30] ; +0x314, 0x14011ad04 xor rcx, rsp; StackCookie ; +0x319, 0x14011ad09 call __security_check_cookie ; +0x31c, 0x14011ad0c lea r11, [rsp+88h+var_28] ; +0x321, 0x14011ad11 mov rbx, [r11+38h] ; +0x326, 0x14011ad16 mov rbp, [r11+40h] ; +0x32a, 0x14011ad1a mov rsi, [r11+48h] ; +0x32e, 0x14011ad1e mov rsp, r11 ; +0x332, 0x14011ad22 pop r15 ; +0x335, 0x14011ad25 pop r14 ; +0x337, 0x14011ad27 pop r13 ; +0x339, 0x14011ad29 pop r12 ; +0x33b, 0x14011ad2b pop rdi ; +0x33d, 0x14011ad2d retn ; +0x33e, 0x14011ad2e