; ; EditorUI::onTargetIDChange from 0x1401beea0 to 0x1401bf00a (362 bytes) ; ; 5 xrefs: ; > EditorUI::handleEditorAction @ 0x1401c36ca ; > EditorUI::handleEditorAction @ 0x1401c36e8 ; > @ 0x1408a24d4 ; > @ 0x1408a2510 ; > @ 0x14091a540 ; ; 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 ; push rbx ; +0x0, 0x1401beea0 push r14 ; +0x2, 0x1401beea2 sub rsp, 28h ; +0x4, 0x1401beea4 mov rax, [rcx+620h] ; +0x8, 0x1401beea8 mov r14d, edx ; +0xf, 0x1401beeaf test rax, rax ; +0x12, 0x1401beeb2 jz short loc_1401BEEC5 ; +0x15, 0x1401beeb5 mov rcx, rax ; +0x17, 0x1401beeb7 call cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x1a, 0x1401beeba mov rbx, rax ; +0x20, 0x1401beec0 jmp short loc_1401BEECC ; +0x23, 0x1401beec3 mov rbx, [rcx+3B0h] ; +0x25, 0x1401beec5 mov rcx, rbx ; +0x2c, 0x1401beecc call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x1401beecf test eax, eax ; +0x35, 0x1401beed5 jz loc_1401BF002 ; +0x37, 0x1401beed7 mov [rsp+38h+arg_10], rdi ; +0x3d, 0x1401beedd mov rcx, rbx ; +0x42, 0x1401beee2 mov [rsp+38h+var_18], r15 ; +0x45, 0x1401beee5 xor r15d, r15d ; +0x4a, 0x1401beeea mov edi, r15d ; +0x4d, 0x1401beeed call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50, 0x1401beef0 test eax, eax ; +0x56, 0x1401beef6 jz short loc_1401BEF2A ; +0x58, 0x1401beef8 nop word ptr [rax+rax+00h] ; +0x5a, 0x1401beefa mov edx, edi ; +0x60, 0x1401bef00 mov rcx, rbx ; +0x62, 0x1401bef02 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x65, 0x1401bef05 mov rcx, rax ; +0x6b, 0x1401bef0b call GameObject__isTrigger ; +0x6e, 0x1401bef0e test al, al ; +0x73, 0x1401bef13 jz loc_1401BEFF8 ; +0x75, 0x1401bef15 mov rcx, rbx ; +0x7b, 0x1401bef1b inc edi ; +0x7e, 0x1401bef1e call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x80, 0x1401bef20 cmp edi, eax ; +0x86, 0x1401bef26 jb short loc_1401BEF00 ; +0x88, 0x1401bef28 mov rcx, rbx ; +0x8a, 0x1401bef2a mov edi, r15d ; +0x8d, 0x1401bef2d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x90, 0x1401bef30 test eax, eax ; +0x96, 0x1401bef36 jz loc_1401BEFF8 ; +0x98, 0x1401bef38 mov [rsp+38h+arg_8], rsi ; +0x9e, 0x1401bef3e mov [rsp+38h+arg_18], r12 ; +0xa3, 0x1401bef43 mov r12d, 270Fh ; +0xa8, 0x1401bef48 mov [rsp+38h+arg_0], rbp ; +0xae, 0x1401bef4e mov edx, edi ; +0xb3, 0x1401bef53 mov rcx, rbx ; +0xb5, 0x1401bef55 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb8, 0x1401bef58 mov rcx, rax ; +0xbe, 0x1401bef5e mov rsi, rax ; +0xc1, 0x1401bef61 call GameObject__isTrigger ; +0xc4, 0x1401bef64 test al, al ; +0xc9, 0x1401bef69 jz short loc_1401BEFD6 ; +0xcb, 0x1401bef6b mov eax, [rsi+5C8h] ; +0xcd, 0x1401bef6d test eax, eax ; +0xd3, 0x1401bef73 jle short loc_1401BEFD6 ; +0xd5, 0x1401bef75 lea ecx, [rax+r14] ; +0xd7, 0x1401bef77 mov edx, 3E7h ; +0xdb, 0x1401bef7b mov rax, [rsi] ; +0xe0, 0x1401bef80 test ecx, ecx ; +0xe3, 0x1401bef83 cmovs ecx, r15d ; +0xe5, 0x1401bef85 cmp ecx, r12d ; +0xe9, 0x1401bef89 cmovg ecx, r12d ; +0xec, 0x1401bef8c mov [rsi+5C8h], ecx ; +0xf0, 0x1401bef90 mov rcx, rsi ; +0xf6, 0x1401bef96 call qword ptr [rax+1D8h] ; +0xf9, 0x1401bef99 mov rbp, rax ; +0xff, 0x1401bef9f test rax, rax ; +0x102, 0x1401befa2 jz short loc_1401BEFD6 ; +0x105, 0x1401befa5 mov edx, [rsi+5C8h] ; +0x107, 0x1401befa7 lea rcx, word_1406ED6F8 ; +0x10d, 0x1401befad call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x114, 0x1401befb4 mov rcx, rax ; +0x11a, 0x1401befba call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x11d, 0x1401befbd lea rcx, [rbp+168h] ; +0x123, 0x1401befc3 mov rdx, [rcx] ; +0x12a, 0x1401befca mov r8, [rdx] ; +0x12d, 0x1401befcd mov rdx, rax ; +0x130, 0x1401befd0 call r8 ; +0x133, 0x1401befd3 mov rcx, rbx ; +0x136, 0x1401befd6 inc edi ; +0x139, 0x1401befd9 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13b, 0x1401befdb cmp edi, eax ; +0x141, 0x1401befe1 jb loc_1401BEF53 ; +0x143, 0x1401befe3 mov r12, [rsp+38h+arg_18] ; +0x149, 0x1401befe9 mov rsi, [rsp+38h+arg_8] ; +0x14e, 0x1401befee mov rbp, [rsp+38h+arg_0] ; +0x153, 0x1401beff3 mov rdi, [rsp+38h+arg_10] ; +0x158, 0x1401beff8 mov r15, [rsp+38h+var_18] ; +0x15d, 0x1401beffd add rsp, 28h ; +0x162, 0x1401bf002 pop r14 ; +0x166, 0x1401bf006 pop rbx ; +0x168, 0x1401bf008 retn ; +0x169, 0x1401bf009