; ; EditorUI::startFreeMoveTouch from 0x1401bfaf0 to 0x1401bfda8 (696 bytes) ; ; 3 xrefs: ; > EditorUI::finishTouchDelay @ 0x1401bfecd ; > EditorUI::ccTouchBegan @ 0x1401c0311 ; > @ 0x14091a660 ; ; 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:02 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x1401bfaf0 push rbp ; +0x5, 0x1401bfaf5 push rsi ; +0x6, 0x1401bfaf6 push rdi ; +0x7, 0x1401bfaf7 push r14 ; +0x8, 0x1401bfaf8 push r15 ; +0xa, 0x1401bfafa sub rsp, 20h ; +0xc, 0x1401bfafc mov rdi, rcx ; +0x10, 0x1401bfb00 lea rbx, [rcx+392h] ; +0x13, 0x1401bfb03 lea r15, [rcx+628h] ; +0x1a, 0x1401bfb0a mov byte ptr [rbx], 0 ; +0x21, 0x1401bfb11 lea r14, [rcx+5E8h] ; +0x24, 0x1401bfb14 xor esi, esi ; +0x2b, 0x1401bfb1b mov rcx, [r14] ; +0x2d, 0x1401bfb1d lea rdx, [rsp+48h+arg_0] ; +0x30, 0x1401bfb20 mov [r15], rsi ; +0x35, 0x1401bfb25 lea r8, [rdi+5F0h] ; +0x38, 0x1401bfb28 mov rcx, [rcx+10C8h] ; +0x3f, 0x1401bfb2f call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x46, 0x1401bfb36 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4c, 0x1401bfb3c mov rcx, [rax] ; +0x52, 0x1401bfb42 mov rdx, [rcx+0B0h] ; +0x55, 0x1401bfb45 mov rcx, rax ; +0x5c, 0x1401bfb4c call rdx ; +0x5f, 0x1401bfb4f cmp [rax+9Ah], sil ; +0x61, 0x1401bfb51 jz short loc_1401BFB9A ; +0x68, 0x1401bfb58 cmp [rdi+620h], rsi ; +0x6a, 0x1401bfb5a jnz short loc_1401BFB82 ; +0x71, 0x1401bfb61 mov rcx, [rdi+3B0h] ; +0x73, 0x1401bfb63 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7a, 0x1401bfb6a test eax, eax ; +0x80, 0x1401bfb70 jz short loc_1401BFB9A ; +0x82, 0x1401bfb72 lea rbx, [rdi+392h] ; +0x84, 0x1401bfb74 lea r14, [rdi+5E8h] ; +0x8b, 0x1401bfb7b xor edx, edx ; +0x92, 0x1401bfb82 mov rcx, rdi ; +0x94, 0x1401bfb84 call EditorUI__onDuplicate ; +0x97, 0x1401bfb87 mov byte ptr [rdi+2E1h], 1 ; +0x9c, 0x1401bfb8c lea r15, [rdi+628h] ; +0xa3, 0x1401bfb93 mov rcx, [rdi+3B0h] ; +0xaa, 0x1401bfb9a mov [rdi+632h], sil ; +0xb1, 0x1401bfba1 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb8, 0x1401bfba8 lea rcx, [rsp+48h+arg_8] ; +0xbe, 0x1401bfbae test eax, eax ; +0xc3, 0x1401bfbb3 jz short loc_1401BFBD5 ; +0xc5, 0x1401bfbb5 lea rdx, [rsp+48h+arg_0] ; +0xc7, 0x1401bfbb7 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xcc, 0x1401bfbbc xorps xmm2, xmm2 ; +0xd2, 0x1401bfbc2 mov rcx, rdi ; +0xd5, 0x1401bfbc5 mov rdx, rax ; +0xd8, 0x1401bfbc8 call EditorUI__findSnapObject ; +0xdb, 0x1401bfbcb jmp loc_1401BFCD0 ; +0xe0, 0x1401bfbd0 cmp [rdi+620h], rsi ; +0xe5, 0x1401bfbd5 jnz short loc_1401BFC15 ; +0xec, 0x1401bfbdc lea rdx, [rdi+5F0h] ; +0xee, 0x1401bfbde mov byte ptr [rdi+2E2h], 1 ; +0xf5, 0x1401bfbe5 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xfc, 0x1401bfbec mov rdx, rax ; +0x102, 0x1401bfbf2 mov rcx, rdi ; +0x105, 0x1401bfbf5 call EditorUI__clickOnPosition ; +0x108, 0x1401bfbf8 cmp [rbx], sil ; +0x10d, 0x1401bfbfd jz loc_1401BFCD0 ; +0x110, 0x1401bfc00 mov rax, [rdi+620h] ; +0x116, 0x1401bfc06 mov [r15], rax ; +0x11d, 0x1401bfc0d jmp loc_1401BFCD0 ; +0x120, 0x1401bfc10 mov rbx, [r14] ; +0x125, 0x1401bfc15 lea rdx, [rsp+48h+arg_0] ; +0x128, 0x1401bfc18 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x12d, 0x1401bfc1d mov rdx, rax ; +0x133, 0x1401bfc23 mov rcx, rbx ; +0x136, 0x1401bfc26 call LevelEditorLayer__objectsAtPosition ; +0x139, 0x1401bfc29 mov rcx, rax ; +0x13e, 0x1401bfc2e mov rbx, rax ; +0x141, 0x1401bfc31 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x144, 0x1401bfc34 test eax, eax ; +0x14a, 0x1401bfc3a jz short loc_1401BFC78 ; +0x14c, 0x1401bfc3c xchg ax, ax ; +0x14e, 0x1401bfc3e mov edx, esi ; +0x150, 0x1401bfc40 mov rcx, rbx ; +0x152, 0x1401bfc42 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x155, 0x1401bfc45 mov rcx, [rdi+620h] ; +0x15b, 0x1401bfc4b mov edx, [rcx+39Ch] ; +0x162, 0x1401bfc52 cmp [rax+39Ch], edx ; +0x168, 0x1401bfc58 jz short loc_1401BFC71 ; +0x16e, 0x1401bfc5e mov rcx, rbx ; +0x170, 0x1401bfc60 inc esi ; +0x173, 0x1401bfc63 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x175, 0x1401bfc65 cmp esi, eax ; +0x17b, 0x1401bfc6b jb short loc_1401BFC40 ; +0x17d, 0x1401bfc6d jmp short loc_1401BFC78 ; +0x17f, 0x1401bfc6f mov [rdi+628h], rax ; +0x181, 0x1401bfc71 cmp qword ptr [rdi+628h], 0 ; +0x188, 0x1401bfc78 jnz short loc_1401BFCD0 ; +0x190, 0x1401bfc80 cmp qword ptr [rdi+620h], 0 ; +0x192, 0x1401bfc82 jz short loc_1401BFC95 ; +0x19a, 0x1401bfc8a cmp byte ptr [rdi+38Ch], 0 ; +0x19c, 0x1401bfc8c jnz short loc_1401BFCD0 ; +0x1a3, 0x1401bfc93 lea rdx, [rdi+5F0h] ; +0x1a5, 0x1401bfc95 mov byte ptr [rdi+2E2h], 1 ; +0x1ac, 0x1401bfc9c lea rcx, [rsp+48h+arg_8] ; +0x1b3, 0x1401bfca3 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1b8, 0x1401bfca8 mov rdx, rax ; +0x1be, 0x1401bfcae mov rcx, rdi ; +0x1c1, 0x1401bfcb1 call EditorUI__clickOnPosition ; +0x1c4, 0x1401bfcb4 cmp byte ptr [rdi+392h], 0 ; +0x1c9, 0x1401bfcb9 jz short loc_1401BFCD0 ; +0x1d0, 0x1401bfcc0 mov rax, [rdi+620h] ; +0x1d2, 0x1401bfcc2 mov [rdi+628h], rax ; +0x1d9, 0x1401bfcc9 cmp byte ptr [rdi+632h], 0 ; +0x1e0, 0x1401bfcd0 jz short loc_1401BFD12 ; +0x1e7, 0x1401bfcd7 cmp qword ptr [rdi+628h], 0 ; +0x1e9, 0x1401bfcd9 jnz short loc_1401BFD12 ; +0x1f1, 0x1401bfce1 mov rcx, [rdi+3B0h] ; +0x1f3, 0x1401bfce3 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1fa, 0x1401bfcea test eax, eax ; +0x200, 0x1401bfcf0 jz short loc_1401BFD12 ; +0x202, 0x1401bfcf2 lea rdx, [rsp+48h+arg_0] ; +0x204, 0x1401bfcf4 lea rcx, [rsp+48h+arg_8] ; +0x209, 0x1401bfcf9 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x20e, 0x1401bfcfe xorps xmm2, xmm2 ; +0x214, 0x1401bfd04 mov rcx, rdi ; +0x217, 0x1401bfd07 mov rdx, rax ; +0x21a, 0x1401bfd0a call EditorUI__findSnapObject ; +0x21d, 0x1401bfd0d mov rcx, [rdi+628h] ; +0x222, 0x1401bfd12 test rcx, rcx ; +0x229, 0x1401bfd19 jz short loc_1401BFD3E ; +0x22c, 0x1401bfd1c mov byte ptr [rdi+391h], 1 ; +0x22e, 0x1401bfd1e mov rax, [rcx] ; +0x235, 0x1401bfd25 call qword ptr [rax+0C8h] ; +0x238, 0x1401bfd28 mov rdx, rax ; +0x23e, 0x1401bfd2e lea rcx, [rdi+3A8h] ; +0x241, 0x1401bfd31 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x248, 0x1401bfd38 lea rcx, [rdi+610h] ; +0x24e, 0x1401bfd3e lea rdx, [rsp+48h+arg_0] ; +0x255, 0x1401bfd45 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x25a, 0x1401bfd4a cmp byte ptr [rdi+2E1h], 0 ; +0x260, 0x1401bfd50 jnz short loc_1401BFD97 ; +0x267, 0x1401bfd57 mov r8b, 1 ; +0x269, 0x1401bfd59 mov rcx, rdi ; +0x26c, 0x1401bfd5c call EditorUI__createUndoObject ; +0x26f, 0x1401bfd5f mov rbx, rax ; +0x274, 0x1401bfd64 cmp [rdi+2D8h], rax ; +0x277, 0x1401bfd67 jz short loc_1401BFD97 ; +0x27e, 0x1401bfd6e test rax, rax ; +0x280, 0x1401bfd70 jz short loc_1401BFD7E ; +0x283, 0x1401bfd73 mov rcx, rax ; +0x285, 0x1401bfd75 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x288, 0x1401bfd78 mov rcx, [rdi+2D8h] ; +0x28e, 0x1401bfd7e test rcx, rcx ; +0x295, 0x1401bfd85 jz short loc_1401BFD90 ; +0x298, 0x1401bfd88 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x29a, 0x1401bfd8a mov [rdi+2D8h], rbx ; +0x2a0, 0x1401bfd90 mov rbx, [rsp+48h+arg_10] ; +0x2a7, 0x1401bfd97 add rsp, 20h ; +0x2ac, 0x1401bfd9c pop r15 ; +0x2b0, 0x1401bfda0 pop r14 ; +0x2b2, 0x1401bfda2 pop rdi ; +0x2b4, 0x1401bfda4 pop rsi ; +0x2b5, 0x1401bfda5 pop rbp ; +0x2b6, 0x1401bfda6 retn ; +0x2b7, 0x1401bfda7