; ; EditorUI::editGroup from 0x1401be710 to 0x1401bea92 (898 bytes) ; ; 3 xrefs: ; > EditorUI::handleEditorAction @ 0x1401c437b ; > EditorUI::init @ 0x1401ab8dc ; > @ 0x14091a4ec ; ; 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_8], rbx ; +0x0, 0x1401be710 mov [rsp+arg_10], rbp ; +0x5, 0x1401be715 push rsi ; +0xa, 0x1401be71a push rdi ; +0xb, 0x1401be71b push r14 ; +0xc, 0x1401be71c sub rsp, 70h ; +0xe, 0x1401be71e mov rbp, rcx ; +0x12, 0x1401be722 lea rdi, [rcx+3B0h] ; +0x15, 0x1401be725 cmp qword ptr [rcx+620h], 0 ; +0x1c, 0x1401be72c jnz short loc_1401BE747 ; +0x24, 0x1401be734 mov rcx, [rdi] ; +0x26, 0x1401be736 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x29, 0x1401be739 test eax, eax ; +0x2f, 0x1401be73f jz loc_1401BEA7D ; +0x31, 0x1401be741 mov rdx, [rbp+5E8h] ; +0x37, 0x1401be747 inc dword ptr [rdx+3C40h] ; +0x3e, 0x1401be74e mov ecx, [rdx+3C90h] ; +0x44, 0x1401be754 xor r14d, r14d ; +0x4a, 0x1401be75a test ecx, ecx ; +0x4d, 0x1401be75d js short loc_1401BE790 ; +0x4f, 0x1401be75f mov eax, [rdx+3C50h] ; +0x51, 0x1401be761 sub eax, ecx ; +0x57, 0x1401be767 mov ecx, r14d ; +0x59, 0x1401be769 cmp eax, 1 ; +0x5c, 0x1401be76c jle short loc_1401BE77F ; +0x5f, 0x1401be76f cmp ecx, 7 ; +0x61, 0x1401be771 jge short loc_1401BE77F ; +0x64, 0x1401be774 shr eax, 1 ; +0x66, 0x1401be776 inc ecx ; +0x68, 0x1401be778 cmp eax, 1 ; +0x6a, 0x1401be77a ja short loc_1401BE771 ; +0x6d, 0x1401be77d movsxd rax, ecx ; +0x6f, 0x1401be77f inc dword ptr [rdx+rax*4+3C70h] ; +0x72, 0x1401be782 lea rdi, [rbp+3B0h] ; +0x79, 0x1401be789 mov eax, [rdx+3C50h] ; +0x80, 0x1401be790 mov [rdx+3C90h], eax ; +0x86, 0x1401be796 call EditorSFXManager__sharedState ; +0x8c, 0x1401be79c mov rbx, rax ; +0x91, 0x1401be7a1 mov edx, 6Ch ; 'l' ; +0x94, 0x1401be7a4 mov rcx, rax ; +0x99, 0x1401be7a9 call EditorSFXManager__hasSoundsForAction ; +0x9c, 0x1401be7ac movzx edx, al ; +0xa1, 0x1401be7b1 add edx, 6Bh ; 'k' ; +0xa4, 0x1401be7b4 mov rcx, rbx ; +0xa7, 0x1401be7b7 call EditorSFXManager__playAction ; +0xaa, 0x1401be7ba mov rbx, [rdi] ; +0xaf, 0x1401be7bf mov rdi, [rbp+620h] ; +0xb2, 0x1401be7c2 mov ecx, 360h; Size ; +0xb9, 0x1401be7c9 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xbe, 0x1401be7ce mov rsi, rax ; +0xc3, 0x1401be7d3 mov [rsp+88h+arg_0], rax ; +0xc6, 0x1401be7d6 mov rcx, rax ; +0xce, 0x1401be7de call FLAlertLayer__FLAlertLayer ; +0xd1, 0x1401be7e1 lea rax, ??_7SetGroupIDLayer@@6B@; const SetGroupIDLayer::`vftable' ; +0xd6, 0x1401be7e6 mov [rsi], rax ; +0xdd, 0x1401be7ed lea rax, ??_7SetGroupIDLayer@@6B@_0; const SetGroupIDLayer::`vftable' ; +0xe0, 0x1401be7f0 mov [rsi+140h], rax ; +0xe7, 0x1401be7f7 lea rax, ??_7SetGroupIDLayer@@6B@_1; const SetGroupIDLayer::`vftable' ; +0xee, 0x1401be7fe mov [rsi+148h], rax ; +0xf5, 0x1401be805 lea rax, ??_7SetGroupIDLayer@@6B@_2; const SetGroupIDLayer::`vftable' ; +0xfc, 0x1401be80c mov [rsi+150h], rax ; +0x103, 0x1401be813 lea rax, ??_7SetGroupIDLayer@@6B@_3; const SetGroupIDLayer::`vftable' ; +0x10a, 0x1401be81a mov [rsi+158h], rax ; +0x111, 0x1401be821 lea rax, ??_7SetGroupIDLayer@@6B@_4; const SetGroupIDLayer::`vftable' ; +0x118, 0x1401be828 mov [rsi+160h], rax ; +0x11f, 0x1401be82f lea rax, ??_7SetGroupIDLayer@@6B@_5; const SetGroupIDLayer::`vftable' ; +0x126, 0x1401be836 mov [rsi+198h], rax ; +0x12d, 0x1401be83d lea rax, ??_7SetGroupIDLayer@@6B@_6; const SetGroupIDLayer::`vftable' ; +0x134, 0x1401be844 mov [rsi+1B0h], rax ; +0x13b, 0x1401be84b lea rax, ??_7SetGroupIDLayer@@6B@_7; const SetGroupIDLayer::`vftable' ; +0x142, 0x1401be852 mov [rsi+220h], rax ; +0x149, 0x1401be859 lea rax, ??_7SetGroupIDLayer@@6B@_8; const SetGroupIDLayer::`vftable' ; +0x150, 0x1401be860 mov [rsi+298h], rax ; +0x157, 0x1401be867 mov [rsi+2A0h], r14 ; +0x15e, 0x1401be86e mov [rsi+2A8h], r14 ; +0x165, 0x1401be875 mov [rsi+2C0h], r14 ; +0x16c, 0x1401be87c mov [rsi+2C8h], r14 ; +0x173, 0x1401be883 mov [rsi+2D0h], r14 ; +0x17a, 0x1401be88a mov [rsi+2D8h], r14 ; +0x181, 0x1401be891 mov [rsi+2E0h], r14 ; +0x188, 0x1401be898 mov [rsi+2E8h], r14 ; +0x18f, 0x1401be89f mov byte ptr [rsi+2F0h], 0 ; +0x196, 0x1401be8a6 mov [rsi+2F4h], r14d ; +0x19d, 0x1401be8ad mov byte ptr [rsi+2F8h], 0 ; +0x1a4, 0x1401be8b4 mov [rsi+2FCh], r14 ; +0x1ab, 0x1401be8bb mov [rsi+304h], r14d ; +0x1b2, 0x1401be8c2 mov dword ptr [rsi+308h], 0FFFFFC18h ; +0x1b9, 0x1401be8c9 mov [rsi+30Ch], r14d ; +0x1c3, 0x1401be8d3 mov byte ptr [rsi+310h], 1 ; +0x1ca, 0x1401be8da mov [rsi+314h], r14 ; +0x1d1, 0x1401be8e1 mov word ptr [rsi+31Ch], 0 ; +0x1d8, 0x1401be8e8 mov byte ptr [rsi+31Eh], 0 ; +0x1e1, 0x1401be8f1 mov byte ptr [rsi+324h], 0 ; +0x1e8, 0x1401be8f8 mov word ptr [rsi+326h], 0 ; +0x1ef, 0x1401be8ff mov [rsi+328h], r14d ; +0x1f8, 0x1401be908 mov [rsi+330h], r14 ; +0x1ff, 0x1401be90f mov [rsi+338h], r14 ; +0x206, 0x1401be916 mov [rsi+340h], r14 ; +0x20d, 0x1401be91d mov [rsi+348h], r14 ; +0x214, 0x1401be924 mov byte ptr [rsi+350h], 0 ; +0x21b, 0x1401be92b mov [rsi+358h], r14 ; +0x222, 0x1401be932 mov r8, rbx ; +0x229, 0x1401be939 mov rdx, rdi ; +0x22c, 0x1401be93c mov rcx, rsi ; +0x22f, 0x1401be93f call SetGroupIDLayer__init ; +0x232, 0x1401be942 mov rcx, rsi ; +0x237, 0x1401be947 test al, al ; +0x23a, 0x1401be94a jz short loc_1401BE956 ; +0x23c, 0x1401be94c call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x23e, 0x1401be94e jmp short loc_1401BE964 ; +0x244, 0x1401be954 mov rax, [rsi] ; +0x246, 0x1401be956 mov edx, 1 ; +0x249, 0x1401be959 call qword ptr [rax+8] ; +0x24e, 0x1401be95e mov rsi, r14 ; +0x251, 0x1401be961 mov [rsp+88h+var_48], r14 ; +0x254, 0x1401be964 mov ecx, 18h; Size ; +0x259, 0x1401be969 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x25e, 0x1401be96e mov [rax], rax ; +0x263, 0x1401be973 mov [rax+8], rax ; +0x266, 0x1401be976 mov [rsp+88h+var_50], rax ; +0x26a, 0x1401be97a xorps xmm0, xmm0 ; +0x26f, 0x1401be97f movdqu xmmword ptr [rsp+88h+Block], xmm0 ; +0x272, 0x1401be982 mov [rsp+88h+var_30], r14 ; +0x278, 0x1401be988 mov [rsp+88h+var_28], 7 ; +0x27d, 0x1401be98d mov [rsp+88h+var_20], 8 ; +0x286, 0x1401be996 mov [rsp+88h+var_58], 3F800000h ; +0x28f, 0x1401be99f mov r8, rax ; +0x297, 0x1401be9a7 mov edx, 10h ; +0x29a, 0x1401be9aa lea rcx, [rsp+88h+Block] ; +0x29f, 0x1401be9af call sub_14003F200 ; +0x2a4, 0x1401be9b4 nop ; +0x2a9, 0x1401be9b9 lea rdx, [rsp+88h+var_58] ; +0x2aa, 0x1401be9ba mov rcx, [rbp+5E8h] ; +0x2af, 0x1401be9bf call LevelEditorLayer__getNextFreeGroupID ; +0x2b6, 0x1401be9c6 mov ebp, eax ; +0x2bb, 0x1401be9cb mov rcx, [rsp+88h+Block]; Block ; +0x2bd, 0x1401be9cd test rcx, rcx ; +0x2c2, 0x1401be9d2 jz short loc_1401BEA1F ; +0x2c5, 0x1401be9d5 mov rdx, [rsp+88h+var_30] ; +0x2c7, 0x1401be9d7 sub rdx, rcx ; +0x2cc, 0x1401be9dc and rdx, 0FFFFFFFFFFFFFFF8h ; +0x2cf, 0x1401be9df mov rax, rcx ; +0x2d3, 0x1401be9e3 cmp rdx, 1000h ; +0x2d6, 0x1401be9e6 jb short loc_1401BEA1A ; +0x2dd, 0x1401be9ed add rdx, 27h ; ''' ; +0x2df, 0x1401be9ef mov rcx, [rcx-8] ; +0x2e3, 0x1401be9f3 sub rax, rcx ; +0x2e7, 0x1401be9f7 sub rax, 8 ; +0x2ea, 0x1401be9fa cmp rax, 1Fh ; +0x2ee, 0x1401be9fe jbe short loc_1401BEA1A ; +0x2f2, 0x1401bea02 mov [rsp+88h+Reserved], r14; Reserved ; +0x2f4, 0x1401bea04 xor r9d, r9d; LineNo ; +0x2f9, 0x1401bea09 xor r8d, r8d; FileName ; +0x2fc, 0x1401bea0c xor edx, edx; FunctionName ; +0x2ff, 0x1401bea0f xor ecx, ecx; Expression ; +0x301, 0x1401bea11 call cs:_invoke_watson ; +0x303, 0x1401bea13 align 2 ; +0x309, 0x1401bea19 call j_j_free ; +0x30a, 0x1401bea1a mov rdi, [rsp+88h+var_50] ; +0x30f, 0x1401bea1f mov rax, [rdi+8] ; +0x314, 0x1401bea24 mov [rax], r14 ; +0x318, 0x1401bea28 mov rcx, [rdi]; Block ; +0x31b, 0x1401bea2b test rcx, rcx ; +0x31e, 0x1401bea2e jz short loc_1401BEA48 ; +0x321, 0x1401bea31 mov rbx, [rcx] ; +0x323, 0x1401bea33 mov edx, 18h ; +0x326, 0x1401bea36 call j_j_free ; +0x32b, 0x1401bea3b mov rcx, rbx ; +0x330, 0x1401bea40 test rbx, rbx ; +0x333, 0x1401bea43 jnz short loc_1401BEA33 ; +0x336, 0x1401bea46 mov edx, 18h ; +0x338, 0x1401bea48 mov rcx, rdi; Block ; +0x33d, 0x1401bea4d call j_j_free ; +0x340, 0x1401bea50 mov [rsi+328h], ebp ; +0x345, 0x1401bea55 mov rax, [rsi] ; +0x34b, 0x1401bea5b mov rdx, [rax+428h] ; +0x34e, 0x1401bea5e lea rax, FLAlertLayer__show ; +0x355, 0x1401bea65 mov rcx, rsi ; +0x35c, 0x1401bea6c cmp rdx, rax ; +0x35f, 0x1401bea6f jnz short loc_1401BEA7B ; +0x362, 0x1401bea72 call FLAlertLayer__show ; +0x364, 0x1401bea74 jmp short loc_1401BEA7D ; +0x369, 0x1401bea79 call rdx ; +0x36b, 0x1401bea7b lea r11, [rsp+88h+var_18] ; +0x36d, 0x1401bea7d mov rbx, [r11+28h] ; +0x372, 0x1401bea82 mov rbp, [r11+30h] ; +0x376, 0x1401bea86 mov rsp, r11 ; +0x37a, 0x1401bea8a pop r14 ; +0x37d, 0x1401bea8d pop rdi ; +0x37f, 0x1401bea8f pop rsi ; +0x380, 0x1401bea90 retn ; +0x381, 0x1401bea91