; ; EditorUI::toggleSpecialEditButtons from 0x1401bb050 to 0x1401bb3e0 (912 bytes) ; ; 4 xrefs: ; > EditorUI::updateButtons @ 0x1401ad313 ; > EditorUI::toggleEnableRotate @ 0x1401b37d4 ; > EditorUI::activateTransformControl @ 0x14020331c ; > @ 0x14091a468 ; ; 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:59 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401bb050 mov [rsp+arg_10], rbp ; +0x5, 0x1401bb055 push rsi ; +0xa, 0x1401bb05a push rdi ; +0xb, 0x1401bb05b push r12 ; +0xc, 0x1401bb05c push r14 ; +0xe, 0x1401bb05e push r15 ; +0x10, 0x1401bb060 sub rsp, 70h ; +0x12, 0x1401bb062 mov rax, cs:__security_cookie ; +0x16, 0x1401bb066 xor rax, rsp ; +0x1d, 0x1401bb06d mov [rsp+98h+var_30], rax ; +0x20, 0x1401bb070 movzx r15d, dl ; +0x25, 0x1401bb075 mov rsi, rcx ; +0x29, 0x1401bb079 xor r14b, r14b ; +0x2c, 0x1401bb07c mov rcx, [rcx+3B0h] ; +0x2f, 0x1401bb07f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x36, 0x1401bb086 xor r12d, r12d ; +0x3c, 0x1401bb08c test eax, eax ; +0x3f, 0x1401bb08f jz short loc_1401BB0F7 ; +0x41, 0x1401bb091 mov r14b, 1 ; +0x43, 0x1401bb093 mov ebx, r12d ; +0x46, 0x1401bb096 mov rcx, [rsi+3B0h] ; +0x49, 0x1401bb099 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50, 0x1401bb0a0 test eax, eax ; +0x56, 0x1401bb0a6 jz short loc_1401BB123 ; +0x58, 0x1401bb0a8 nop word ptr [rax+rax+00h] ; +0x5a, 0x1401bb0aa mov edx, ebx ; +0x60, 0x1401bb0b0 mov rcx, [rsi+3B0h] ; +0x62, 0x1401bb0b2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1401bb0b9 mov ecx, [rax+3A0h] ; +0x6f, 0x1401bb0bf test ecx, ecx ; +0x75, 0x1401bb0c5 jz short loc_1401BB0D4 ; +0x77, 0x1401bb0c7 add ecx, 0FFFFFFEBh ; +0x79, 0x1401bb0c9 test ecx, 0FFFFFFFBh ; +0x7c, 0x1401bb0cc jnz short loc_1401BB0DD ; +0x82, 0x1401bb0d2 cmp [rax+4C6h], r12b ; +0x84, 0x1401bb0d4 jz short loc_1401BB0F2 ; +0x8b, 0x1401bb0db inc ebx ; +0x8d, 0x1401bb0dd mov rcx, [rsi+3B0h] ; +0x8f, 0x1401bb0df call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x96, 0x1401bb0e6 cmp ebx, eax ; +0x9c, 0x1401bb0ec jb short loc_1401BB0B0 ; +0x9e, 0x1401bb0ee jmp short loc_1401BB123 ; +0xa0, 0x1401bb0f0 xor r14b, r14b ; +0xa2, 0x1401bb0f2 jmp short loc_1401BB123 ; +0xa5, 0x1401bb0f5 mov rcx, [rsi+620h] ; +0xa7, 0x1401bb0f7 test rcx, rcx ; +0xae, 0x1401bb0fe jz short loc_1401BB123 ; +0xb1, 0x1401bb101 mov eax, [rcx+3A0h] ; +0xb3, 0x1401bb103 test eax, eax ; +0xb9, 0x1401bb109 jz short loc_1401BB117 ; +0xbb, 0x1401bb10b add eax, 0FFFFFFEBh ; +0xbd, 0x1401bb10d test eax, 0FFFFFFFBh ; +0xc0, 0x1401bb110 jnz short loc_1401BB120 ; +0xc5, 0x1401bb115 cmp [rcx+4C6h], r12b ; +0xc7, 0x1401bb117 jz short loc_1401BB123 ; +0xce, 0x1401bb11e mov r14b, 1 ; +0xd0, 0x1401bb120 mov ebp, r12d ; +0xd3, 0x1401bb123 mov ecx, ebp ; +0xd6, 0x1401bb126 sub ecx, 1 ; +0xd8, 0x1401bb128 jz short loc_1401BB14C ; +0xdb, 0x1401bb12b sub ecx, 1 ; +0xdd, 0x1401bb12d jz short loc_1401BB145 ; +0xe0, 0x1401bb130 cmp ecx, 1 ; +0xe2, 0x1401bb132 jz short loc_1401BB13E ; +0xe5, 0x1401bb135 mov edx, 2Bh ; '+' ; +0xe7, 0x1401bb137 jmp short loc_1401BB151 ; +0xec, 0x1401bb13c mov edx, 2Ah ; '*' ; +0xee, 0x1401bb13e jmp short loc_1401BB151 ; +0xf3, 0x1401bb143 mov edx, 29h ; ')' ; +0xf5, 0x1401bb145 jmp short loc_1401BB151 ; +0xfa, 0x1401bb14a mov edx, 2Ch ; ',' ; +0xfc, 0x1401bb14c lea rcx, word_1406ED6F8 ; +0x101, 0x1401bb151 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x108, 0x1401bb158 mov rcx, rax ; +0x10e, 0x1401bb15e call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x111, 0x1401bb161 xorps xmm0, xmm0 ; +0x117, 0x1401bb167 movups xmmword ptr [rsp+98h+Block], xmm0 ; +0x11a, 0x1401bb16a mov [rsp+98h+var_40], r12 ; +0x11f, 0x1401bb16f mov [rsp+98h+var_38], r12 ; +0x124, 0x1401bb174 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x129, 0x1401bb179 inc r8 ; +0x130, 0x1401bb180 cmp byte ptr [rax+r8], 0 ; +0x133, 0x1401bb183 jnz short loc_1401BB180 ; +0x138, 0x1401bb188 mov rdx, rax ; +0x13a, 0x1401bb18a lea rcx, [rsp+98h+Block] ; +0x13d, 0x1401bb18d call sub_14003D230 ; +0x142, 0x1401bb192 nop ; +0x147, 0x1401bb197 lea rdx, [rsp+98h+Block] ; +0x148, 0x1401bb198 mov rcx, [rsi+360h] ; +0x14d, 0x1401bb19d 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 &) ; +0x154, 0x1401bb1a4 mov rdi, rax ; +0x15a, 0x1401bb1aa mov rdx, [rsp+98h+var_38] ; +0x15d, 0x1401bb1ad cmp rdx, 0Fh ; +0x162, 0x1401bb1b2 jbe short loc_1401BB1ED ; +0x166, 0x1401bb1b6 inc rdx ; +0x168, 0x1401bb1b8 mov r8, [rsp+98h+Block] ; +0x16b, 0x1401bb1bb mov rcx, r8 ; +0x170, 0x1401bb1c0 cmp rdx, 1000h ; +0x173, 0x1401bb1c3 jb short loc_1401BB1E5 ; +0x17a, 0x1401bb1ca add rdx, 27h ; ''' ; +0x17c, 0x1401bb1cc mov r8, [r8-8] ; +0x180, 0x1401bb1d0 sub rcx, r8 ; +0x184, 0x1401bb1d4 sub rcx, 8 ; +0x187, 0x1401bb1d7 cmp rcx, 1Fh ; +0x18b, 0x1401bb1db ja loc_1401BB342 ; +0x18f, 0x1401bb1df mov rcx, r8; Block ; +0x195, 0x1401bb1e5 call j_j_free ; +0x198, 0x1401bb1e8 mov [rsp+98h+var_40], r12 ; +0x19d, 0x1401bb1ed mov [rsp+98h+var_38], 0Fh ; +0x1a2, 0x1401bb1f2 mov byte ptr [rsp+98h+Block], 0 ; +0x1ab, 0x1401bb1fb test rdi, rdi ; +0x1b0, 0x1401bb200 jz loc_1401BB2B7 ; +0x1b3, 0x1401bb203 mov rax, [rdi] ; +0x1b9, 0x1401bb209 mov rcx, rdi ; +0x1bc, 0x1401bb20c call qword ptr [rax+3B8h] ; +0x1bf, 0x1401bb20f mov rbx, rax ; +0x1c5, 0x1401bb215 test r14b, r14b ; +0x1c8, 0x1401bb218 jz short loc_1401BB22D ; +0x1cb, 0x1401bb21b movzx eax, cs:word_14070329C ; +0x1cd, 0x1401bb21d movzx ecx, cs:byte_14070329E ; +0x1d4, 0x1401bb224 jmp short loc_1401BB23B ; +0x1db, 0x1401bb22b movzx eax, cs:word_140703290 ; +0x1dd, 0x1401bb22d movzx ecx, cs:byte_140703292 ; +0x1e4, 0x1401bb234 mov [rsp+98h+var_68], ax ; +0x1eb, 0x1401bb23b mov [rsp+98h+var_66], cl ; +0x1f0, 0x1401bb240 mov rcx, [rbx+278h] ; +0x1f4, 0x1401bb244 test rcx, rcx ; +0x1fb, 0x1401bb24b jz short loc_1401BB261 ; +0x1fe, 0x1401bb24e add rcx, 170h ; +0x200, 0x1401bb250 mov rax, [rcx] ; +0x207, 0x1401bb257 lea rdx, [rsp+98h+var_68] ; +0x20a, 0x1401bb25a call qword ptr [rax] ; +0x20f, 0x1401bb25f mov rcx, [rbx+280h] ; +0x211, 0x1401bb261 test rcx, rcx ; +0x218, 0x1401bb268 jz short loc_1401BB27E ; +0x21b, 0x1401bb26b add rcx, 140h ; +0x21d, 0x1401bb26d mov rax, [rcx] ; +0x224, 0x1401bb274 lea rdx, [rsp+98h+var_68] ; +0x227, 0x1401bb277 call qword ptr [rax] ; +0x22c, 0x1401bb27c mov rcx, [rbx+290h] ; +0x22e, 0x1401bb27e test rcx, rcx ; +0x235, 0x1401bb285 jnz short loc_1401BB296 ; +0x238, 0x1401bb288 mov rcx, [rbx+288h] ; +0x23a, 0x1401bb28a test rcx, rcx ; +0x241, 0x1401bb291 jz short loc_1401BB2A7 ; +0x244, 0x1401bb294 add rcx, 140h ; +0x246, 0x1401bb296 mov rax, [rcx] ; +0x24d, 0x1401bb29d lea rdx, [rsp+98h+var_68] ; +0x250, 0x1401bb2a0 call qword ptr [rax] ; +0x255, 0x1401bb2a5 mov rax, [rdi] ; +0x257, 0x1401bb2a7 movzx edx, r14b ; +0x25a, 0x1401bb2aa mov rcx, rdi ; +0x25e, 0x1401bb2ae call qword ptr [rax+3A8h] ; +0x261, 0x1401bb2b1 inc ebp ; +0x267, 0x1401bb2b7 cmp ebp, 4 ; +0x269, 0x1401bb2b9 jl loc_1401BB126 ; +0x26c, 0x1401bb2bc test r14b, r14b ; +0x272, 0x1401bb2c2 jz loc_1401BB358 ; +0x275, 0x1401bb2c5 mov rcx, cs:qword_14090BFD0 ; +0x27b, 0x1401bb2cb test rcx, rcx ; +0x282, 0x1401bb2d2 jnz short loc_1401BB309 ; +0x285, 0x1401bb2d5 mov ecx, 6E8h; Size ; +0x287, 0x1401bb2d7 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x28c, 0x1401bb2dc mov [rsp+98h+var_58], rax ; +0x291, 0x1401bb2e1 mov rcx, rax ; +0x296, 0x1401bb2e6 call GameManager__GameManager ; +0x299, 0x1401bb2e9 nop ; +0x29e, 0x1401bb2ee mov cs:qword_14090BFD0, rax ; +0x29f, 0x1401bb2ef mov rcx, [rax] ; +0x2a6, 0x1401bb2f6 mov rdx, [rcx+48h] ; +0x2a9, 0x1401bb2f9 mov rcx, rax ; +0x2ad, 0x1401bb2fd call rdx ; +0x2b0, 0x1401bb300 mov rcx, cs:qword_14090BFD0 ; +0x2b2, 0x1401bb302 lea rdx, a0007; "0007" ; +0x2b9, 0x1401bb309 call GameManager__getGameVariable ; +0x2c0, 0x1401bb310 test al, al ; +0x2c5, 0x1401bb315 jz loc_1401BB3B2 ; +0x2c7, 0x1401bb317 test r15b, r15b ; +0x2cd, 0x1401bb31d jnz short loc_1401BB336 ; +0x2d0, 0x1401bb320 mov rcx, [rsi+348h] ; +0x2d2, 0x1401bb322 mov rax, [rcx] ; +0x2d9, 0x1401bb329 call qword ptr [rax+158h] ; +0x2dc, 0x1401bb32c test al, al ; +0x2e2, 0x1401bb332 jnz short loc_1401BB3B2 ; +0x2e4, 0x1401bb334 xor edx, edx ; +0x2e6, 0x1401bb336 mov rcx, rsi ; +0x2e8, 0x1401bb338 call EditorUI__activateRotationControl ; +0x2eb, 0x1401bb33b jmp short loc_1401BB3B2 ; +0x2f0, 0x1401bb340 mov [rsp+98h+Reserved], r12; Reserved ; +0x2f2, 0x1401bb342 xor r9d, r9d; LineNo ; +0x2f7, 0x1401bb347 xor r8d, r8d; FileName ; +0x2fa, 0x1401bb34a xor edx, edx; FunctionName ; +0x2fd, 0x1401bb34d xor ecx, ecx; Expression ; +0x2ff, 0x1401bb34f call cs:_invoke_watson ; +0x301, 0x1401bb351 align 8 ; +0x307, 0x1401bb357 mov dword ptr [rsi+2E8h], 0FFFFFFFFh ; +0x308, 0x1401bb358 mov rcx, [rsi+328h] ; +0x312, 0x1401bb362 mov rax, [rcx] ; +0x319, 0x1401bb369 call qword ptr [rax+158h] ; +0x31c, 0x1401bb36c test al, al ; +0x322, 0x1401bb372 jz short loc_1401BB3B2 ; +0x324, 0x1401bb374 mov rcx, [rsi+328h] ; +0x326, 0x1401bb376 mov rax, [rcx] ; +0x32d, 0x1401bb37d xor edx, edx ; +0x330, 0x1401bb380 call qword ptr [rax+150h] ; +0x332, 0x1401bb382 mov rcx, [rsi+328h] ; +0x338, 0x1401bb388 call GJRotationControl__finishTouch ; +0x33f, 0x1401bb38f mov rax, [rsi+328h] ; +0x344, 0x1401bb394 mov rcx, [rax+1D0h] ; +0x34b, 0x1401bb39b test rcx, rcx ; +0x352, 0x1401bb3a2 jz short loc_1401BB3B2 ; +0x355, 0x1401bb3a5 mov rax, [rcx] ; +0x357, 0x1401bb3a7 xor edx, edx ; +0x35a, 0x1401bb3aa call qword ptr [rax+408h] ; +0x35c, 0x1401bb3ac mov rcx, rsi ; +0x362, 0x1401bb3b2 call EditorUI__updateGridNodeSize_1 ; +0x365, 0x1401bb3b5 mov rcx, [rsp+98h+var_30] ; +0x36a, 0x1401bb3ba xor rcx, rsp; StackCookie ; +0x36f, 0x1401bb3bf call __security_check_cookie ; +0x372, 0x1401bb3c2 lea r11, [rsp+98h+var_28] ; +0x377, 0x1401bb3c7 mov rbx, [r11+38h] ; +0x37c, 0x1401bb3cc mov rbp, [r11+40h] ; +0x380, 0x1401bb3d0 mov rsp, r11 ; +0x384, 0x1401bb3d4 pop r15 ; +0x387, 0x1401bb3d7 pop r14 ; +0x389, 0x1401bb3d9 pop r12 ; +0x38b, 0x1401bb3db pop rdi ; +0x38d, 0x1401bb3dd pop rsi ; +0x38e, 0x1401bb3de retn ; +0x38f, 0x1401bb3df