; ; EditorUI::assignNewGroups from 0x1401b8e70 to 0x1401b90a8 (568 bytes) ; ; 5 xrefs: ; > EditorCommandsPopup::onCommand @ 0x14017dc70 ; > EditorCommandsPopup::onCommand @ 0x14017dc88 ; > EditorUI::handleEditorAction @ 0x1401c355a ; > EditorUI::handleEditorAction @ 0x1401c3573 ; > @ 0x14091a360 ; ; 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_0], rbx ; +0x0, 0x1401b8e70 mov [rsp+arg_8], rbp ; +0x5, 0x1401b8e75 mov [rsp+arg_10], rsi ; +0xa, 0x1401b8e7a push rdi ; +0xf, 0x1401b8e7f push r12 ; +0x10, 0x1401b8e80 push r13 ; +0x12, 0x1401b8e82 push r14 ; +0x14, 0x1401b8e84 push r15 ; +0x16, 0x1401b8e86 sub rsp, 70h ; +0x18, 0x1401b8e88 movzx esi, dl ; +0x1c, 0x1401b8e8c mov rbp, rcx ; +0x1f, 0x1401b8e8f cmp qword ptr [rcx+620h], 0 ; +0x22, 0x1401b8e92 jnz short loc_1401B8EB1 ; +0x2a, 0x1401b8e9a mov rcx, [rcx+3B0h] ; +0x2c, 0x1401b8e9c call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x33, 0x1401b8ea3 test eax, eax ; +0x39, 0x1401b8ea9 jz loc_1401B9074 ; +0x3b, 0x1401b8eab call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x41, 0x1401b8eb1 mov rbx, rax ; +0x47, 0x1401b8eb7 mov rdx, [rbp+620h] ; +0x4a, 0x1401b8eba mov rcx, rax ; +0x51, 0x1401b8ec1 test rdx, rdx ; +0x54, 0x1401b8ec4 jz short loc_1401B8ED1 ; +0x57, 0x1401b8ec7 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x59, 0x1401b8ec9 jmp short loc_1401B8EDE ; +0x5f, 0x1401b8ecf mov rdx, [rbp+3B0h] ; +0x61, 0x1401b8ed1 call cs:?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x68, 0x1401b8ed8 mov rax, [rbx+38h] ; +0x6e, 0x1401b8ede mov edx, [rax]; NumOfElements ; +0x72, 0x1401b8ee2 mov rcx, [rax+10h]; Base ; +0x74, 0x1401b8ee4 mov r8d, 8; SizeOfElements ; +0x78, 0x1401b8ee8 test sil, sil ; +0x7e, 0x1401b8eee lea r9, sub_14019F1C0 ; +0x81, 0x1401b8ef1 jnz short loc_1401B8F01 ; +0x88, 0x1401b8ef8 lea r9, sub_14019F170; CompareFunction ; +0x8a, 0x1401b8efa call cs:qsort ; +0x91, 0x1401b8f01 test rbx, rbx ; +0x97, 0x1401b8f07 jz loc_1401B906C ; +0x9a, 0x1401b8f0a mov rdi, [rbx+38h] ; +0xa0, 0x1401b8f10 mov eax, [rdi] ; +0xa4, 0x1401b8f14 test eax, eax ; +0xa6, 0x1401b8f16 jz loc_1401B906C ; +0xa8, 0x1401b8f18 mov rdi, [rdi+10h] ; +0xae, 0x1401b8f1e lea r12, [rax-1] ; +0xb2, 0x1401b8f22 lea r12, [rdi+r12*8] ; +0xb6, 0x1401b8f26 cmp rdi, r12 ; +0xba, 0x1401b8f2a ja loc_1401B906C ; +0xbd, 0x1401b8f2d xor r13d, r13d ; +0xc3, 0x1401b8f33 nop word ptr [rax+rax+00000000h] ; +0xc6, 0x1401b8f36 mov r14, [rdi] ; +0xd0, 0x1401b8f40 test r14, r14 ; +0xd3, 0x1401b8f43 jz loc_1401B906C ; +0xd6, 0x1401b8f46 mov [rsp+98h+var_58], r13 ; +0xdc, 0x1401b8f4c mov ecx, 18h; Size ; +0xe1, 0x1401b8f51 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xe6, 0x1401b8f56 mov [rax], rax ; +0xeb, 0x1401b8f5b mov [rax+8], rax ; +0xee, 0x1401b8f5e mov [rsp+98h+Block], rax ; +0xf2, 0x1401b8f62 xorps xmm0, xmm0 ; +0xf7, 0x1401b8f67 movdqu [rsp+98h+var_50], xmm0 ; +0xfa, 0x1401b8f6a mov [rsp+98h+var_40], r13 ; +0x100, 0x1401b8f70 mov [rsp+98h+var_38], 7 ; +0x105, 0x1401b8f75 mov [rsp+98h+var_30], 8 ; +0x10e, 0x1401b8f7e mov [rsp+98h+var_68], 3F800000h ; +0x117, 0x1401b8f87 mov r8, rax ; +0x11f, 0x1401b8f8f mov edx, 10h ; +0x122, 0x1401b8f92 lea rcx, [rsp+98h+var_50] ; +0x127, 0x1401b8f97 call sub_14003F200 ; +0x12c, 0x1401b8f9c nop ; +0x131, 0x1401b8fa1 lea rdx, [rsp+98h+var_68] ; +0x132, 0x1401b8fa2 mov rcx, [rbp+5E8h] ; +0x137, 0x1401b8fa7 call LevelEditorLayer__getNextFreeGroupID ; +0x13e, 0x1401b8fae mov r15d, eax ; +0x143, 0x1401b8fb3 mov rcx, qword ptr [rsp+98h+var_50] ; +0x146, 0x1401b8fb6 test rcx, rcx ; +0x14b, 0x1401b8fbb jz short loc_1401B8FF6 ; +0x14e, 0x1401b8fbe mov rdx, [rsp+98h+var_40] ; +0x150, 0x1401b8fc0 sub rdx, rcx ; +0x155, 0x1401b8fc5 and rdx, 0FFFFFFFFFFFFFFF8h ; +0x158, 0x1401b8fc8 mov rax, rcx ; +0x15c, 0x1401b8fcc cmp rdx, 1000h ; +0x15f, 0x1401b8fcf jb short loc_1401B8FF1 ; +0x166, 0x1401b8fd6 add rdx, 27h ; ''' ; +0x168, 0x1401b8fd8 mov rcx, [rcx-8]; Block ; +0x16c, 0x1401b8fdc sub rax, rcx ; +0x170, 0x1401b8fe0 sub rax, 8 ; +0x173, 0x1401b8fe3 cmp rax, 1Fh ; +0x177, 0x1401b8fe7 ja loc_1401B9092 ; +0x17b, 0x1401b8feb call j_j_free ; +0x181, 0x1401b8ff1 mov rsi, [rsp+98h+Block] ; +0x186, 0x1401b8ff6 mov rax, [rsi+8] ; +0x18b, 0x1401b8ffb mov [rax], r13 ; +0x18f, 0x1401b8fff mov rcx, [rsi]; Block ; +0x192, 0x1401b9002 test rcx, rcx ; +0x195, 0x1401b9005 jz short loc_1401B9025 ; +0x198, 0x1401b9008 nop word ptr [rax+rax+00h] ; +0x19a, 0x1401b900a mov rbx, [rcx] ; +0x1a0, 0x1401b9010 mov edx, 18h ; +0x1a3, 0x1401b9013 call j_j_free ; +0x1a8, 0x1401b9018 mov rcx, rbx ; +0x1ad, 0x1401b901d test rbx, rbx ; +0x1b0, 0x1401b9020 jnz short loc_1401B9010 ; +0x1b3, 0x1401b9023 mov edx, 18h ; +0x1b5, 0x1401b9025 mov rcx, rsi; Block ; +0x1ba, 0x1401b902a call j_j_free ; +0x1bd, 0x1401b902d mov rax, [r14] ; +0x1c2, 0x1401b9032 mov edx, r15d ; +0x1c5, 0x1401b9035 mov rcx, r14 ; +0x1c8, 0x1401b9038 call qword ptr [rax+5A8h] ; +0x1cb, 0x1401b903b cmp eax, 1 ; +0x1d1, 0x1401b9041 jnz short loc_1401B905F ; +0x1d4, 0x1401b9044 mov rcx, [rbp+5E8h] ; +0x1d6, 0x1401b9046 mov rax, [rcx] ; +0x1dd, 0x1401b904d xor r9d, r9d ; +0x1e0, 0x1401b9050 mov r8d, r15d ; +0x1e3, 0x1401b9053 mov rdx, r14 ; +0x1e6, 0x1401b9056 call qword ptr [rax+4B0h] ; +0x1e9, 0x1401b9059 add rdi, 8 ; +0x1ef, 0x1401b905f cmp rdi, r12 ; +0x1f3, 0x1401b9063 jbe loc_1401B8F40 ; +0x1f6, 0x1401b9066 mov rcx, rbp ; +0x1fc, 0x1401b906c call EditorUI__updateObjectInfoLabel ; +0x1ff, 0x1401b906f lea r11, [rsp+98h+var_28] ; +0x204, 0x1401b9074 mov rbx, [r11+30h] ; +0x209, 0x1401b9079 mov rbp, [r11+38h] ; +0x20d, 0x1401b907d mov rsi, [r11+40h] ; +0x211, 0x1401b9081 mov rsp, r11 ; +0x215, 0x1401b9085 pop r15 ; +0x218, 0x1401b9088 pop r14 ; +0x21a, 0x1401b908a pop r13 ; +0x21c, 0x1401b908c pop r12 ; +0x21e, 0x1401b908e pop rdi ; +0x220, 0x1401b9090 retn ; +0x221, 0x1401b9091 mov [rsp+98h+Reserved], r13; Reserved ; +0x222, 0x1401b9092 xor r9d, r9d; LineNo ; +0x227, 0x1401b9097 xor r8d, r8d; FileName ; +0x22a, 0x1401b909a xor edx, edx; FunctionName ; +0x22d, 0x1401b909d xor ecx, ecx; Expression ; +0x22f, 0x1401b909f call cs:_invoke_watson ; +0x231, 0x1401b90a1 db 0CCh ; +0x237, 0x1401b90a7