; ; EditorUI::updateCreateMenu from 0x10002e270 to 0x10002e73e (1230 bytes) ; ; 6 xrefs: ; > EditorUI::setupCreateMenu @ 0x10002a526 ; > EditorUI::resetUI @ 0x10002a696 ; > EditorUI::clickOnPosition @ 0x10002db48 ; > EditorUI::orderUpCustomItem @ 0x1000315ca ; > EditorUI::orderDownCustomItem @ 0x100031687 ; > EditorUI::onCreateButton @ 0x1000347f2 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x10002e270 mov rbp, rsp ; +0x1, 0x10002e271 push r15 ; +0x4, 0x10002e274 push r14 ; +0x6, 0x10002e276 push r13 ; +0x8, 0x10002e278 push r12 ; +0xa, 0x10002e27a push rbx ; +0xc, 0x10002e27c sub rsp, 18h ; +0xd, 0x10002e27d mov rbx, rdi ; +0x11, 0x10002e281 cmp dword ptr [rdi+4E0h], 2 ; +0x14, 0x10002e284 mov rdi, [rdi+2E0h] ; +0x1b, 0x10002e28b mov rax, [rdi] ; +0x22, 0x10002e292 mov rax, [rax+148h] ; +0x25, 0x10002e295 jnz loc_10002E42B ; +0x2c, 0x10002e29c mov [rbp+var_34], esi ; +0x32, 0x10002e2a2 mov esi, 1 ; +0x35, 0x10002e2a5 call rax ; +0x3a, 0x10002e2aa mov rdi, [rbx+430h] ; +0x3c, 0x10002e2ac mov rax, [rdi] ; +0x43, 0x10002e2b3 mov esi, 1 ; +0x46, 0x10002e2b6 call qword ptr [rax+148h] ; +0x4b, 0x10002e2bb mov [rbp+var_40], rbx ; +0x51, 0x10002e2c1 mov r15, [rbx+4C8h] ; +0x55, 0x10002e2c5 mov rdi, r15 ; +0x5c, 0x10002e2cc call sub_100720070 ; +0x5f, 0x10002e2cf test eax, eax ; +0x64, 0x10002e2d4 jz loc_10002E452 ; +0x66, 0x10002e2d6 xor r12d, r12d ; +0x6c, 0x10002e2dc lea r13, unk_100815540 ; +0x6f, 0x10002e2df jmp short loc_10002E338 ; +0x76, 0x10002e2e6 align 10h ; +0x78, 0x10002e2e8 mov [rbp+var_2A], 0 ; +0x80, 0x10002e2f0 mov [rbp+var_2C], 0 ; +0x84, 0x10002e2f4 mov rax, [r14] ; +0x8a, 0x10002e2fa mov rdi, r14 ; +0x8d, 0x10002e2fd lea rsi, [rbp+var_2C] ; +0x90, 0x10002e300 call qword ptr [rax+5C8h] ; +0x94, 0x10002e304 mov [rbp+var_2E], 0FFh ; +0x9a, 0x10002e30a mov [rbp+var_30], 0C8C8h ; +0x9e, 0x10002e30e mov rax, [r14] ; +0xa4, 0x10002e314 mov rdi, r14 ; +0xa7, 0x10002e317 lea rsi, [rbp+var_30] ; +0xaa, 0x10002e31a call qword ptr [rax+438h] ; +0xae, 0x10002e31e inc r12d ; +0xb4, 0x10002e324 mov rdi, r15 ; +0xb7, 0x10002e327 call sub_100720070 ; +0xba, 0x10002e32a cmp r12d, eax ; +0xbf, 0x10002e32f jnb loc_10002E452 ; +0xc2, 0x10002e332 mov rdi, r15 ; +0xc8, 0x10002e338 mov esi, r12d ; +0xcb, 0x10002e33b call sub_1007200C0 ; +0xce, 0x10002e33e mov r14, rax ; +0xd3, 0x10002e343 mov rax, [rax] ; +0xd6, 0x10002e346 mov rdi, r14 ; +0xd9, 0x10002e349 call qword ptr [rax+420h] ; +0xdc, 0x10002e34c mov rbx, rax ; +0xe2, 0x10002e352 mov rdi, [rax+280h] ; +0xe5, 0x10002e355 test rdi, rdi ; +0xec, 0x10002e35c jnz short loc_10002E36D ; +0xef, 0x10002e35f mov rdi, [rbx+288h] ; +0xf1, 0x10002e361 test rdi, rdi ; +0xf8, 0x10002e368 jz short loc_10002E379 ; +0xfb, 0x10002e36b mov rax, [rdi] ; +0xfd, 0x10002e36d mov rsi, r13 ; +0x100, 0x10002e370 call qword ptr [rax+3B0h] ; +0x103, 0x10002e373 cmp dword ptr [r14+210h], 0 ; +0x109, 0x10002e379 js short loc_10002E324 ; +0x111, 0x10002e381 mov r14, [rbx+278h] ; +0x113, 0x10002e383 mov [rbp+var_2A], 0FFh ; +0x11a, 0x10002e38a mov [rbp+var_2C], 0FFFFh ; +0x11e, 0x10002e38e cmp dword ptr [r14+4E0h], 1 ; +0x124, 0x10002e394 jnz short loc_10002E3D0 ; +0x12c, 0x10002e39c mov rdi, r14 ; +0x12e, 0x10002e39e call GameObject__isColorObject ; +0x131, 0x10002e3a1 test al, al ; +0x136, 0x10002e3a6 jz short loc_10002E3D0 ; +0x138, 0x10002e3a8 cmp byte ptr [r14+6E8h], 1 ; +0x13a, 0x10002e3aa jnz short loc_10002E3D0 ; +0x142, 0x10002e3b2 mov [rbp+var_2A], 0FFh ; +0x144, 0x10002e3b4 mov [rbp+var_2C], 0C8C8h ; +0x148, 0x10002e3b8 jmp loc_10002E2FA ; +0x14e, 0x10002e3be align 10h ; +0x153, 0x10002e3c3 mov eax, [r14+404h] ; +0x160, 0x10002e3d0 cmp eax, 62Fh ; +0x167, 0x10002e3d7 jg short loc_10002E3FD ; +0x16c, 0x10002e3dc lea ecx, [rax-396h] ; +0x16e, 0x10002e3de cmp ecx, 2 ; +0x174, 0x10002e3e4 jb loc_10002E2F0 ; +0x177, 0x10002e3e7 add eax, 0FFFFFAD1h ; +0x17d, 0x10002e3ed cmp eax, 2 ; +0x182, 0x10002e3f2 jb loc_10002E2F0 ; +0x185, 0x10002e3f5 jmp short loc_10002E413 ; +0x18b, 0x10002e3fb cmp eax, 7DCh ; +0x18d, 0x10002e3fd jz loc_10002E2F0 ; +0x192, 0x10002e402 cmp eax, 630h ; +0x198, 0x10002e408 jz loc_10002E2F0 ; +0x19d, 0x10002e40d mov rdi, r14 ; +0x1a3, 0x10002e413 call GameObject__getMainColorMode ; +0x1a6, 0x10002e416 cmp eax, 3F2h ; +0x1ab, 0x10002e41b jz loc_10002E2F0 ; +0x1b0, 0x10002e420 jmp loc_10002E2FA ; +0x1b6, 0x10002e426 xor esi, esi ; +0x1bb, 0x10002e42b call rax ; +0x1bd, 0x10002e42d mov rdi, [rbx+430h] ; +0x1bf, 0x10002e42f mov rax, [rdi] ; +0x1c6, 0x10002e436 mov rax, [rax+148h] ; +0x1c9, 0x10002e439 xor esi, esi ; +0x1d0, 0x10002e440 add rsp, 18h ; +0x1d2, 0x10002e442 pop rbx ; +0x1d6, 0x10002e446 pop r12 ; +0x1d7, 0x10002e447 pop r13 ; +0x1d9, 0x10002e449 pop r14 ; +0x1db, 0x10002e44b pop r15 ; +0x1dd, 0x10002e44d pop rbp ; +0x1df, 0x10002e44f jmp rax ; +0x1e0, 0x10002e450 mov rax, [rbp+var_40] ; +0x1e2, 0x10002e452 mov r15, [rax+4D0h] ; +0x1e6, 0x10002e456 mov rdi, r15 ; +0x1ed, 0x10002e45d call sub_100720070 ; +0x1f0, 0x10002e460 test eax, eax ; +0x1f5, 0x10002e465 jz loc_10002E5BB ; +0x1f7, 0x10002e467 xor r12d, r12d ; +0x1fd, 0x10002e46d lea r14, unk_100815540 ; +0x200, 0x10002e470 jmp short loc_10002E4CA ; +0x207, 0x10002e477 align 20h ; +0x209, 0x10002e479 mov [rbp+var_2A], 0 ; +0x210, 0x10002e480 mov [rbp+var_2C], 0 ; +0x214, 0x10002e484 mov rax, [r13+0] ; +0x21a, 0x10002e48a mov rdi, r13 ; +0x21e, 0x10002e48e lea rsi, [rbp+var_2C] ; +0x221, 0x10002e491 call qword ptr [rax+5C8h] ; +0x225, 0x10002e495 mov [rbp+var_2E], 0FFh ; +0x22b, 0x10002e49b mov [rbp+var_30], 0C8C8h ; +0x22f, 0x10002e49f mov rax, [r13+0] ; +0x235, 0x10002e4a5 mov rdi, r13 ; +0x239, 0x10002e4a9 lea rsi, [rbp+var_30] ; +0x23c, 0x10002e4ac call qword ptr [rax+438h] ; +0x240, 0x10002e4b0 inc r12d ; +0x246, 0x10002e4b6 mov rdi, r15 ; +0x249, 0x10002e4b9 call sub_100720070 ; +0x24c, 0x10002e4bc cmp r12d, eax ; +0x251, 0x10002e4c1 jnb loc_10002E5BB ; +0x254, 0x10002e4c4 mov rdi, r15 ; +0x25a, 0x10002e4ca mov esi, r12d ; +0x25d, 0x10002e4cd call sub_1007200C0 ; +0x260, 0x10002e4d0 mov r13, rax ; +0x265, 0x10002e4d5 mov rax, [rax] ; +0x268, 0x10002e4d8 mov rdi, r13 ; +0x26b, 0x10002e4db call qword ptr [rax+420h] ; +0x26e, 0x10002e4de mov rbx, rax ; +0x274, 0x10002e4e4 mov rdi, [rax+280h] ; +0x277, 0x10002e4e7 test rdi, rdi ; +0x27e, 0x10002e4ee jnz short loc_10002E4FF ; +0x281, 0x10002e4f1 mov rdi, [rbx+288h] ; +0x283, 0x10002e4f3 test rdi, rdi ; +0x28a, 0x10002e4fa jz short loc_10002E50B ; +0x28d, 0x10002e4fd mov rax, [rdi] ; +0x28f, 0x10002e4ff mov rsi, r14 ; +0x292, 0x10002e502 call qword ptr [rax+3B0h] ; +0x295, 0x10002e505 cmp dword ptr [r13+210h], 0 ; +0x29b, 0x10002e50b js short loc_10002E4B6 ; +0x2a3, 0x10002e513 mov r13, [rbx+278h] ; +0x2a5, 0x10002e515 mov [rbp+var_2A], 0FFh ; +0x2ac, 0x10002e51c mov [rbp+var_2C], 0FFFFh ; +0x2b0, 0x10002e520 cmp dword ptr [r13+4E0h], 1 ; +0x2b6, 0x10002e526 jnz short loc_10002E560 ; +0x2be, 0x10002e52e mov rdi, r13 ; +0x2c0, 0x10002e530 call GameObject__isColorObject ; +0x2c3, 0x10002e533 test al, al ; +0x2c8, 0x10002e538 jz short loc_10002E560 ; +0x2ca, 0x10002e53a cmp byte ptr [r13+6E8h], 0 ; +0x2cc, 0x10002e53c jz short loc_10002E560 ; +0x2d4, 0x10002e544 mov [rbp+var_2A], 0FFh ; +0x2d6, 0x10002e546 mov [rbp+var_2C], 0C8C8h ; +0x2da, 0x10002e54a jmp loc_10002E48A ; +0x2e0, 0x10002e550 align 20h ; +0x2e5, 0x10002e555 mov eax, [r13+404h] ; +0x2f0, 0x10002e560 cmp eax, 62Fh ; +0x2f7, 0x10002e567 jg short loc_10002E58D ; +0x2fc, 0x10002e56c lea ecx, [rax-396h] ; +0x2fe, 0x10002e56e cmp ecx, 2 ; +0x304, 0x10002e574 jb loc_10002E480 ; +0x307, 0x10002e577 add eax, 0FFFFFAD1h ; +0x30d, 0x10002e57d cmp eax, 2 ; +0x312, 0x10002e582 jb loc_10002E480 ; +0x315, 0x10002e585 jmp short loc_10002E5A3 ; +0x31b, 0x10002e58b cmp eax, 7DCh ; +0x31d, 0x10002e58d jz loc_10002E480 ; +0x322, 0x10002e592 cmp eax, 630h ; +0x328, 0x10002e598 jz loc_10002E480 ; +0x32d, 0x10002e59d mov rdi, r13 ; +0x333, 0x10002e5a3 call GameObject__getMainColorMode ; +0x336, 0x10002e5a6 cmp eax, 3F2h ; +0x33b, 0x10002e5ab jz loc_10002E480 ; +0x340, 0x10002e5b0 jmp loc_10002E48A ; +0x346, 0x10002e5b6 mov r15, [rbp+var_40] ; +0x34b, 0x10002e5bb mov r14, [r15+4C8h] ; +0x34f, 0x10002e5bf mov rdi, r14 ; +0x356, 0x10002e5c6 call sub_100720070 ; +0x359, 0x10002e5c9 test eax, eax ; +0x35e, 0x10002e5ce jz short loc_10002E607 ; +0x360, 0x10002e5d0 xor ebx, ebx ; +0x362, 0x10002e5d2 nop word ptr [rax+rax+00000000h] ; +0x364, 0x10002e5d4 mov rdi, r14 ; +0x370, 0x10002e5e0 mov esi, ebx ; +0x373, 0x10002e5e3 call sub_1007200C0 ; +0x375, 0x10002e5e5 mov ecx, [rax+210h] ; +0x37a, 0x10002e5ea cmp ecx, [r15+4C0h] ; +0x380, 0x10002e5f0 jz short loc_10002E64C ; +0x387, 0x10002e5f7 inc ebx ; +0x389, 0x10002e5f9 mov rdi, r14 ; +0x38b, 0x10002e5fb call sub_100720070 ; +0x38e, 0x10002e5fe cmp ebx, eax ; +0x393, 0x10002e603 jb short loc_10002E5E0 ; +0x395, 0x10002e605 mov r14, [r15+4D0h] ; +0x397, 0x10002e607 mov rdi, r14 ; +0x39e, 0x10002e60e call sub_100720070 ; +0x3a1, 0x10002e611 test eax, eax ; +0x3a6, 0x10002e616 jz loc_10002E72F ; +0x3a8, 0x10002e618 xor ebx, ebx ; +0x3ae, 0x10002e61e mov rdi, r14 ; +0x3b0, 0x10002e620 mov esi, ebx ; +0x3b3, 0x10002e623 call sub_1007200C0 ; +0x3b5, 0x10002e625 mov ecx, [rax+210h] ; +0x3ba, 0x10002e62a cmp ecx, [r15+4C0h] ; +0x3c0, 0x10002e630 jz short loc_10002E64C ; +0x3c7, 0x10002e637 inc ebx ; +0x3c9, 0x10002e639 mov rdi, r14 ; +0x3cb, 0x10002e63b call sub_100720070 ; +0x3ce, 0x10002e63e cmp ebx, eax ; +0x3d3, 0x10002e643 jb short loc_10002E620 ; +0x3d5, 0x10002e645 jmp loc_10002E72F ; +0x3d7, 0x10002e647 mov rcx, [rax] ; +0x3dc, 0x10002e64c mov rbx, rax ; +0x3df, 0x10002e64f mov rdi, rax ; +0x3e2, 0x10002e652 call qword ptr [rcx+420h] ; +0x3e5, 0x10002e655 mov r14, rax ; +0x3eb, 0x10002e65b mov rdi, [rax+280h] ; +0x3ee, 0x10002e65e test rdi, rdi ; +0x3f5, 0x10002e665 jnz short loc_10002E676 ; +0x3f8, 0x10002e668 mov rdi, [r14+288h] ; +0x3fa, 0x10002e66a test rdi, rdi ; +0x401, 0x10002e671 jz short loc_10002E68D ; +0x404, 0x10002e674 mov [rbp+var_2A], 7Fh ; +0x406, 0x10002e676 mov [rbp+var_2C], 7F7Fh ; +0x40a, 0x10002e67a mov rax, [rdi] ; +0x410, 0x10002e680 lea rsi, [rbp+var_2C] ; +0x413, 0x10002e683 call qword ptr [rax+3B0h] ; +0x417, 0x10002e687 mov rax, rbx ; +0x41d, 0x10002e68d cmp dword ptr [rbx+210h], 0 ; +0x420, 0x10002e690 js short loc_10002E706 ; +0x427, 0x10002e697 mov r14, [r14+278h] ; +0x429, 0x10002e699 mov [rbp+var_2A], 7Fh ; +0x430, 0x10002e6a0 mov [rbp+var_2C], 7F7Fh ; +0x434, 0x10002e6a4 mov [rbp+var_2E], 7Fh ; +0x43a, 0x10002e6aa mov [rbp+var_30], 6464h ; +0x43e, 0x10002e6ae cmp dword ptr [r14+4E0h], 1 ; +0x444, 0x10002e6b4 jnz short loc_10002E6E3 ; +0x44c, 0x10002e6bc mov rdi, r14 ; +0x44e, 0x10002e6be call GameObject__isColorObject ; +0x451, 0x10002e6c1 test al, al ; +0x456, 0x10002e6c6 jz short loc_10002E6E3 ; +0x458, 0x10002e6c8 cmp byte ptr [r14+6E8h], 1 ; +0x45a, 0x10002e6ca jnz short loc_10002E6E3 ; +0x462, 0x10002e6d2 movzx eax, [rbp+var_2E] ; +0x464, 0x10002e6d4 mov [rbp+var_2A], al ; +0x468, 0x10002e6d8 movzx eax, [rbp+var_30] ; +0x46b, 0x10002e6db mov [rbp+var_2C], ax ; +0x46f, 0x10002e6df mov rax, [r14] ; +0x473, 0x10002e6e3 lea rsi, [rbp+var_2C] ; +0x476, 0x10002e6e6 mov rdi, r14 ; +0x47a, 0x10002e6ea call qword ptr [rax+5C8h] ; +0x47d, 0x10002e6ed mov rax, [r14] ; +0x483, 0x10002e6f3 lea rsi, [rbp+var_30] ; +0x486, 0x10002e6f6 mov rdi, r14 ; +0x48a, 0x10002e6fa call qword ptr [rax+438h] ; +0x48d, 0x10002e6fd mov rax, rbx ; +0x493, 0x10002e703 cmp byte ptr [rbp+var_34], 0 ; +0x496, 0x10002e706 jz short loc_10002E72F ; +0x49a, 0x10002e70a mov esi, [rax+218h] ; +0x49c, 0x10002e70c mov rdi, r15 ; +0x4a2, 0x10002e712 mov rbx, rax ; +0x4a5, 0x10002e715 call EditorUI__selectBuildTab ; +0x4a8, 0x10002e718 mov rdi, [r15+2E0h] ; +0x4ad, 0x10002e71d mov esi, [rbx+214h] ; +0x4b4, 0x10002e724 call EditButtonBar__goToPage ; +0x4ba, 0x10002e72a add rsp, 18h ; +0x4bf, 0x10002e72f pop rbx ; +0x4c3, 0x10002e733 pop r12 ; +0x4c4, 0x10002e734 pop r13 ; +0x4c6, 0x10002e736 pop r14 ; +0x4c8, 0x10002e738 pop r15 ; +0x4ca, 0x10002e73a pop rbp ; +0x4cc, 0x10002e73c retn ; +0x4cd, 0x10002e73d