; ; EditorUI::activateScaleControl from 0x140202bc0 to 0x140202dcd (525 bytes) ; ; 7 xrefs: ; > EditorUI::handleEditorAction @ 0x1401c4197 ; > EditorUI::createMoveMenu @ 0x1401f2b37 ; > EditorUI::createMoveMenu @ 0x1401f2c67 ; > @ 0x1408a3f60 ; > @ 0x1408a3f70 ; > @ 0x14091af3c ; > @ 0x14091af48 ; ; 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:14 +0000 ; push rbx ; +0x0, 0x140202bc0 push rbp ; +0x2, 0x140202bc2 push rsi ; +0x3, 0x140202bc3 push r14 ; +0x4, 0x140202bc4 sub rsp, 28h ; +0x6, 0x140202bc6 mov rsi, rcx ; +0xa, 0x140202bca lea rbx, [rcx+620h] ; +0xd, 0x140202bcd mov rcx, [rcx+3B0h] ; +0x14, 0x140202bd4 mov r14, rdx ; +0x1b, 0x140202bdb call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1e, 0x140202bde test eax, eax ; +0x24, 0x140202be4 jnz short loc_140202BF2 ; +0x26, 0x140202be6 cmp qword ptr [rbx], 0 ; +0x28, 0x140202be8 jz loc_140202DC3 ; +0x2c, 0x140202bec mov [rsp+48h+arg_8], rdi ; +0x32, 0x140202bf2 mov [rsp+48h+arg_18], r12 ; +0x37, 0x140202bf7 mov [rsp+48h+var_28], r15 ; +0x3c, 0x140202bfc call EditorSFXManager__sharedState ; +0x41, 0x140202c01 mov rcx, rax ; +0x46, 0x140202c06 mov edx, 0BDh ; +0x49, 0x140202c09 call EditorSFXManager__playAction ; +0x4e, 0x140202c0e mov rcx, rsi ; +0x53, 0x140202c13 call EditorUI__deactivateTransformControl ; +0x56, 0x140202c16 mov rcx, [rsi+340h] ; +0x5b, 0x140202c1b lea rdi, [rsi+3B0h] ; +0x62, 0x140202c22 lea r12, [rsi+340h] ; +0x69, 0x140202c29 mov rax, [rcx] ; +0x70, 0x140202c30 call qword ptr [rax+158h] ; +0x73, 0x140202c33 test al, al ; +0x79, 0x140202c39 jz short loc_140202C7A ; +0x7b, 0x140202c3b mov rax, [r14] ; +0x7d, 0x140202c3d mov rcx, r14 ; +0x80, 0x140202c40 call qword ptr [rax+38h] ; +0x83, 0x140202c43 mov rcx, [rsi+340h] ; +0x86, 0x140202c46 mov edi, eax ; +0x8d, 0x140202c4d mov ebx, [rcx+250h] ; +0x8f, 0x140202c4f mov rcx, rsi ; +0x95, 0x140202c55 call EditorUI__deactivateScaleControl ; +0x98, 0x140202c58 cmp edi, ebx ; +0x9d, 0x140202c5d jz loc_140202DB4 ; +0x9f, 0x140202c5f lea rdi, [rsi+3B0h] ; +0xa5, 0x140202c65 lea rbx, [rsi+620h] ; +0xac, 0x140202c6c lea r12, [rsi+340h] ; +0xb3, 0x140202c73 mov rcx, [rsi+340h] ; +0xba, 0x140202c7a mov rax, [rcx] ; +0xc1, 0x140202c81 call qword ptr [rax+158h] ; +0xc4, 0x140202c84 test al, al ; +0xca, 0x140202c8a jz short loc_140202C9D ; +0xcc, 0x140202c8c cmp byte ptr [rsi+338h], 0 ; +0xce, 0x140202c8e jz loc_140202DB4 ; +0xd5, 0x140202c95 jmp short loc_140202CA4 ; +0xdb, 0x140202c9b lea rdi, [rsi+3B0h] ; +0xdd, 0x140202c9d movzx eax, cs:word_1407033DC ; +0xe4, 0x140202ca4 mov rcx, r14 ; +0xeb, 0x140202cab mov [rsp+48h+arg_0], ax ; +0xee, 0x140202cae movzx eax, cs:byte_1407033DE ; +0xf3, 0x140202cb3 mov [rsp+48h+arg_2], al ; +0xfa, 0x140202cba mov rax, [r14] ; +0xfe, 0x140202cbe call qword ptr [rax+38h] ; +0x101, 0x140202cc1 lea r8, [rsp+48h+arg_0] ; +0x104, 0x140202cc4 mov rcx, rsi ; +0x109, 0x140202cc9 mov edx, eax ; +0x10c, 0x140202ccc call EditorUI__updateEditButtonColor ; +0x10e, 0x140202cce mov rcx, [rdi] ; +0x113, 0x140202cd3 mov byte ptr [rsi+338h], 0 ; +0x116, 0x140202cd6 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11d, 0x140202cdd test eax, eax ; +0x123, 0x140202ce3 jz short loc_140202CF9 ; +0x125, 0x140202ce5 mov r8, [rdi] ; +0x127, 0x140202ce7 lea rdx, [rsp+48h+arg_0] ; +0x12a, 0x140202cea xor r9d, r9d ; +0x12f, 0x140202cef call EditorUI__getGroupCenter ; +0x132, 0x140202cf2 jmp short loc_140202D05 ; +0x137, 0x140202cf7 mov rcx, [rbx] ; +0x139, 0x140202cf9 mov rax, [rcx] ; +0x13c, 0x140202cfc call qword ptr [rax+0C8h] ; +0x13f, 0x140202cff mov rdx, rax ; +0x145, 0x140202d05 lea rcx, [rsi+330h] ; +0x148, 0x140202d08 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x14f, 0x140202d0f mov rax, [r14] ; +0x155, 0x140202d15 mov rcx, r14 ; +0x158, 0x140202d18 mov rbx, [r12] ; +0x15b, 0x140202d1b call qword ptr [rax+38h] ; +0x15f, 0x140202d1f movss xmm2, cs:dword_140835674 ; +0x162, 0x140202d22 lea rcx, [rsp+48h+arg_10] ; +0x16a, 0x140202d2a xorps xmm1, xmm1 ; +0x16f, 0x140202d2f mov [rbx+250h], eax ; +0x172, 0x140202d32 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x178, 0x140202d38 mov r8, rax ; +0x17e, 0x140202d3e lea rdx, [rsp+48h+arg_0] ; +0x181, 0x140202d41 lea rcx, [rsi+330h] ; +0x186, 0x140202d46 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x18d, 0x140202d4d mov rcx, [r12] ; +0x193, 0x140202d53 lea rdx, [rsp+48h+arg_0] ; +0x197, 0x140202d57 mov rax, [rcx] ; +0x19c, 0x140202d5c call qword ptr [rax+0B8h] ; +0x19f, 0x140202d5f mov rax, [rsi+5E8h] ; +0x1a5, 0x140202d65 mov rdi, [r12] ; +0x1ac, 0x140202d6c mov rcx, [rax+10C8h] ; +0x1b0, 0x140202d70 mov rbx, [rdi] ; +0x1b7, 0x140202d77 mov rax, [rcx] ; +0x1ba, 0x140202d7a call qword ptr [rax+0A8h] ; +0x1bd, 0x140202d7d movss xmm1, cs:flt_140835080 ; +0x1c3, 0x140202d83 mov rcx, rdi ; +0x1cb, 0x140202d8b divss xmm1, xmm0 ; +0x1ce, 0x140202d8e call qword ptr [rbx+0A0h] ; +0x1d2, 0x140202d92 mov rcx, [r12] ; +0x1d8, 0x140202d98 mov dl, 1 ; +0x1dc, 0x140202d9c mov rax, [rcx] ; +0x1de, 0x140202d9e call qword ptr [rax+150h] ; +0x1e1, 0x140202da1 lea rcx, [rsi+1B0h] ; +0x1e7, 0x140202da7 mov rax, [rcx] ; +0x1ee, 0x140202dae call qword ptr [rax+28h] ; +0x1f1, 0x140202db1 mov r12, [rsp+48h+arg_18] ; +0x1f4, 0x140202db4 mov rdi, [rsp+48h+arg_8] ; +0x1f9, 0x140202db9 mov r15, [rsp+48h+var_28] ; +0x1fe, 0x140202dbe add rsp, 28h ; +0x203, 0x140202dc3 pop r14 ; +0x207, 0x140202dc7 pop rsi ; +0x209, 0x140202dc9 pop rbp ; +0x20a, 0x140202dca pop rbx ; +0x20b, 0x140202dcb retn ; +0x20c, 0x140202dcc