; ; EditorUI::editButtonUsable from 0x1000179c0 to 0x100017e0c (1100 bytes) ; ; 3 xrefs: ; > EditorUI::editObject @ 0x100009407 ; > EditorUI::updateButtons @ 0x10000ad74 ; > EditorUI::toggleEditObjectButton @ 0x10000bea1 ; ; 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 12:18:55 +0000 ; push rbp ; +0x0, 0x1000179c0 mov rbp, rsp ; +0x1, 0x1000179c1 push r15 ; +0x4, 0x1000179c4 push r14 ; +0x6, 0x1000179c6 push r12 ; +0x8, 0x1000179c8 push rbx ; +0xa, 0x1000179ca mov rbx, rdi ; +0xb, 0x1000179cb mov rax, [rdi+5D8h] ; +0xe, 0x1000179ce test rax, rax ; +0x15, 0x1000179d5 jz short loc_100017A55 ; +0x18, 0x1000179d8 mov r12d, [rax+404h] ; +0x1a, 0x1000179da mov r14b, 1 ; +0x21, 0x1000179e1 cmp r12d, 0B52h ; +0x24, 0x1000179e4 jg short loc_100017A32 ; +0x2b, 0x1000179eb cmp r12d, 5EFh ; +0x2d, 0x1000179ed jg loc_100017ABF ; +0x34, 0x1000179f4 cmp r12d, 293h ; +0x3a, 0x1000179fa jg loc_100017B0C ; +0x41, 0x100017a01 cmp r12d, 8Dh ; +0x47, 0x100017a07 jg loc_100017B53 ; +0x4e, 0x100017a0e add r12d, 0FFFFFFF4h; switch 100 cases ; +0x54, 0x100017a14 cmp r12d, 63h ; +0x58, 0x100017a18 ja def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x5c, 0x100017a1c lea rax, jpt_100017A30 ; +0x62, 0x100017a22 movsxd rcx, (jpt_100017A30 - 100017E0Ch)[rax+r12*4] ; +0x69, 0x100017a29 add rcx, rax ; +0x6d, 0x100017a2d jmp rcx; switch jump ; +0x70, 0x100017a30 lea eax, [r12-0B53h]; switch 135 cases ; +0x72, 0x100017a32 cmp eax, 86h ; +0x7a, 0x100017a3a ja def_100017A53; jumptable 0000000100017A53 default case ; +0x7f, 0x100017a3f lea rcx, jpt_100017A53 ; +0x85, 0x100017a45 movsxd rax, (jpt_100017A53 - 1000183A8h)[rcx+rax*4] ; +0x8c, 0x100017a4c add rax, rcx ; +0x90, 0x100017a50 jmp rax; switch jump ; +0x93, 0x100017a53 mov r14, [rbx+380h] ; +0x95, 0x100017a55 test r14, r14 ; +0x9c, 0x100017a5c jz def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x9f, 0x100017a5f mov rdi, r14 ; +0xa5, 0x100017a65 call sub_1007FEF90 ; +0xa8, 0x100017a68 test eax, eax ; +0xad, 0x100017a6d jz def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0xaf, 0x100017a6f xor r15d, r15d ; +0xb5, 0x100017a75 mov r12d, 0FFFFFFFFh ; +0xb8, 0x100017a78 jmp short loc_100017A9B ; +0xbe, 0x100017a7e mov r12d, [rax+404h] ; +0xc0, 0x100017a80 inc r15d ; +0xc7, 0x100017a87 mov rdi, r14 ; +0xca, 0x100017a8a call sub_1007FEF90 ; +0xcd, 0x100017a8d cmp r15d, eax ; +0xd2, 0x100017a92 jnb loc_1000179E1 ; +0xd5, 0x100017a95 mov rdi, r14 ; +0xdb, 0x100017a9b mov esi, r15d ; +0xde, 0x100017a9e call sub_1007FEFE0 ; +0xe1, 0x100017aa1 test r12d, r12d ; +0xe6, 0x100017aa6 jz short loc_100017A87 ; +0xe9, 0x100017aa9 cmp r12d, 0FFFFFFFFh ; +0xeb, 0x100017aab jz short loc_100017A80 ; +0xef, 0x100017aaf cmp [rax+404h], r12d ; +0xf1, 0x100017ab1 jz short loc_100017A87 ; +0xf8, 0x100017ab8 xor r12d, r12d ; +0xfa, 0x100017aba jmp short loc_100017A87 ; +0xfd, 0x100017abd lea eax, [r12-713h]; switch 259 cases ; +0xff, 0x100017abf cmp eax, 102h ; +0x107, 0x100017ac7 ja def_100017AE0; jumptable 0000000100017AE0 default case ; +0x10c, 0x100017acc lea rcx, jpt_100017AE0 ; +0x112, 0x100017ad2 movsxd rax, (jpt_100017AE0 - 100017F9Ch)[rcx+rax*4] ; +0x119, 0x100017ad9 add rax, rcx ; +0x11d, 0x100017add jmp rax; switch jump ; +0x120, 0x100017ae0 add r12d, 0FFFFF1F0h; jumptable 0000000100017A53 default case ; +0x122, 0x100017ae2 cmp r12d, 3Fh ; '?' ; +0x129, 0x100017ae9 ja def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x12d, 0x100017aed mov rax, 0F0802F00001EF3FDh ; +0x133, 0x100017af3 bt rax, r12 ; +0x13d, 0x100017afd jb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x141, 0x100017b01 jmp def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x147, 0x100017b07 cmp r12d, 3EDh ; +0x14c, 0x100017b0c jg short loc_100017B8E ; +0x153, 0x100017b13 lea eax, [r12-2CDh] ; +0x155, 0x100017b15 cmp eax, 1Ch ; +0x15d, 0x100017b1d jbe loc_100017D83 ; +0x160, 0x100017b20 lea eax, [r12-383h] ; +0x166, 0x100017b26 cmp eax, 10h ; +0x16e, 0x100017b2e ja short loc_100017B41 ; +0x171, 0x100017b31 mov ecx, 10007h ; +0x173, 0x100017b33 bt ecx, eax ; +0x178, 0x100017b38 jb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x17b, 0x100017b3b cmp r12d, 294h ; +0x181, 0x100017b41 jz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x188, 0x100017b48 jmp def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x18e, 0x100017b4e lea eax, [r12-0C8h] ; +0x193, 0x100017b53 cmp eax, 15h ; +0x19b, 0x100017b5b ja short loc_100017B6E ; +0x19e, 0x100017b5e mov ecx, 20000Fh ; +0x1a0, 0x100017b60 bt ecx, eax ; +0x1a5, 0x100017b65 jb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x1a8, 0x100017b68 lea eax, [r12-11Eh] ; +0x1ae, 0x100017b6e cmp eax, 2 ; +0x1b6, 0x100017b76 jb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x1b9, 0x100017b79 cmp r12d, 8Eh ; +0x1bf, 0x100017b7f jz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x1c6, 0x100017b86 jmp short def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x1cc, 0x100017b8c lea eax, [r12-533h] ; +0x1ce, 0x100017b8e cmp eax, 10h ; +0x1d6, 0x100017b96 jbe loc_100017DEE ; +0x1d9, 0x100017b99 lea eax, [r12-3EEh] ; +0x1df, 0x100017b9f cmp eax, 2Bh ; '+' ; +0x1e7, 0x100017ba7 ja short loc_100017BC0 ; +0x1ea, 0x100017baa mov rcx, 80000000003h ; +0x1ec, 0x100017bac bt rcx, rax ; +0x1f6, 0x100017bb6 jb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x1fa, 0x100017bba cmp r12d, 4F4h ; +0x200, 0x100017bc0 jz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x207, 0x100017bc7 jmp short def_100017A30; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x20d, 0x100017bcd lea eax, [r12-631h]; jumptable 0000000100017AE0 default case ; +0x20f, 0x100017bcf cmp eax, 1Fh ; +0x217, 0x100017bd7 ja short loc_100017BEA ; +0x21a, 0x100017bda mov ecx, 9C000401h ; +0x21c, 0x100017bdc bt ecx, eax ; +0x221, 0x100017be1 jb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x224, 0x100017be4 cmp r12d, 5F0h ; +0x22a, 0x100017bea jz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x231, 0x100017bf1 mov rdi, [rbx+5D8h]; jumptable 0000000100017A30 default case, cases 14-28,34-46,48-104,106-110 ; +0x237, 0x100017bf7 test rdi, rdi ; +0x23e, 0x100017bfe jz short loc_100017C2C ; +0x241, 0x100017c01 call GameObject__isBasicTrigger ; +0x243, 0x100017c03 mov r14b, 1 ; +0x248, 0x100017c08 test al, al ; +0x24b, 0x100017c0b jnz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x24d, 0x100017c0d mov rdi, [rbx+5D8h] ; +0x253, 0x100017c13 test rdi, rdi ; +0x25a, 0x100017c1a jz short loc_100017C2C ; +0x25d, 0x100017c1d call GameObject__canChangeCustomColor ; +0x25f, 0x100017c1f test al, al ; +0x264, 0x100017c24 jnz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x266, 0x100017c26 mov rdi, [rbx+380h] ; +0x26c, 0x100017c2c call sub_1007FEF90 ; +0x273, 0x100017c33 test eax, eax ; +0x278, 0x100017c38 jz short loc_100017C83 ; +0x27a, 0x100017c3a mov rdi, [rbx+380h] ; +0x27c, 0x100017c3c call sub_1007FEF90 ; +0x283, 0x100017c43 test eax, eax ; +0x288, 0x100017c48 jz short loc_100017C83 ; +0x28a, 0x100017c4a xor r14d, r14d ; +0x28c, 0x100017c4c nop ; +0x28f, 0x100017c4f mov rdi, [rbx+380h] ; +0x290, 0x100017c50 mov esi, r14d ; +0x297, 0x100017c57 call sub_1007FEFE0 ; +0x29a, 0x100017c5a mov rdi, rax ; +0x29f, 0x100017c5f call GameObject__canChangeCustomColor ; +0x2a2, 0x100017c62 test al, al ; +0x2a7, 0x100017c67 jnz loc_100017DE9 ; +0x2a9, 0x100017c69 inc r14d ; +0x2af, 0x100017c6f mov rdi, [rbx+380h] ; +0x2b2, 0x100017c72 call sub_1007FEF90 ; +0x2b9, 0x100017c79 cmp r14d, eax ; +0x2be, 0x100017c7e jb short loc_100017C50 ; +0x2c1, 0x100017c81 mov rdi, [rbx+380h] ; +0x2c3, 0x100017c83 call sub_1007FEF90 ; +0x2ca, 0x100017c8a test eax, eax ; +0x2cf, 0x100017c8f jz loc_100017D20 ; +0x2d1, 0x100017c91 mov rdi, [rbx+380h] ; +0x2d7, 0x100017c97 call sub_1007FEF90 ; +0x2de, 0x100017c9e mov r14b, 1 ; +0x2e3, 0x100017ca3 test eax, eax ; +0x2e6, 0x100017ca6 jz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x2e8, 0x100017ca8 xor r15d, r15d ; +0x2ee, 0x100017cae mov r12d, 10003h ; +0x2f1, 0x100017cb1 jmp short loc_100017CD8 ; +0x2f7, 0x100017cb7 align 20h ; +0x2f9, 0x100017cb9 inc r15d ; +0x300, 0x100017cc0 mov rdi, [rbx+380h] ; +0x303, 0x100017cc3 call sub_1007FEF90 ; +0x30a, 0x100017cca cmp r15d, eax ; +0x30f, 0x100017ccf jnb loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x312, 0x100017cd2 mov rdi, [rbx+380h] ; +0x318, 0x100017cd8 mov esi, r15d ; +0x31f, 0x100017cdf call sub_1007FEFE0 ; +0x322, 0x100017ce2 mov eax, [rax+404h] ; +0x327, 0x100017ce7 cmp eax, 382h ; +0x32d, 0x100017ced jg short loc_100017D10 ; +0x332, 0x100017cf2 lea ecx, [rax-1Dh] ; +0x334, 0x100017cf4 cmp ecx, 2 ; +0x337, 0x100017cf7 jb short loc_100017CC0 ; +0x33a, 0x100017cfa cmp eax, 69h ; 'i' ; +0x33c, 0x100017cfc jz short loc_100017CC0 ; +0x33f, 0x100017cff cmp eax, 2E8h ; +0x341, 0x100017d01 jz short loc_100017CC0 ; +0x346, 0x100017d06 jmp short loc_100017D20 ; +0x348, 0x100017d08 align 10h ; +0x34a, 0x100017d0a add eax, 0FFFFFC7Dh ; +0x350, 0x100017d10 cmp eax, 10h ; +0x355, 0x100017d15 ja short loc_100017D20 ; +0x358, 0x100017d18 bt r12d, eax ; +0x35a, 0x100017d1a jb short loc_100017CC0 ; +0x35e, 0x100017d1e mov rdi, [rbx+380h] ; +0x360, 0x100017d20 call sub_1007FEF90 ; +0x367, 0x100017d27 test eax, eax ; +0x36c, 0x100017d2c jz short loc_100017D92 ; +0x36e, 0x100017d2e mov rdi, [rbx+380h] ; +0x370, 0x100017d30 call sub_1007FEF90 ; +0x377, 0x100017d37 mov r14b, 1 ; +0x37c, 0x100017d3c test eax, eax ; +0x37f, 0x100017d3f jz loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x381, 0x100017d41 xor r15d, r15d ; +0x387, 0x100017d47 mov r12d, 0FFFFF442h ; +0x38a, 0x100017d4a mov rdi, [rbx+380h] ; +0x390, 0x100017d50 mov esi, r15d ; +0x397, 0x100017d57 call sub_1007FEFE0 ; +0x39a, 0x100017d5a mov eax, [rax+404h] ; +0x39f, 0x100017d5f add eax, r12d ; +0x3a5, 0x100017d65 cmp eax, 5 ; +0x3a8, 0x100017d68 jnb short loc_100017D92 ; +0x3ab, 0x100017d6b inc r15d ; +0x3ad, 0x100017d6d mov rdi, [rbx+380h] ; +0x3b0, 0x100017d70 call sub_1007FEF90 ; +0x3b7, 0x100017d77 cmp r15d, eax ; +0x3bc, 0x100017d7c jb short loc_100017D50 ; +0x3bf, 0x100017d7f jmp short loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x3c1, 0x100017d81 mov ecx, 1C000003h ; +0x3c3, 0x100017d83 bt ecx, eax ; +0x3c8, 0x100017d88 jb short loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x3cb, 0x100017d8b jmp loc_100017B26 ; +0x3cd, 0x100017d8d mov rdi, [rbx+380h] ; +0x3d2, 0x100017d92 call sub_1007FEF90 ; +0x3d9, 0x100017d99 test eax, eax ; +0x3de, 0x100017d9e jz short loc_100017DFD ; +0x3e0, 0x100017da0 mov rdi, [rbx+380h] ; +0x3e2, 0x100017da2 call sub_1007FEF90 ; +0x3e9, 0x100017da9 test eax, eax ; +0x3ee, 0x100017dae jz short loc_100017DE9 ; +0x3f0, 0x100017db0 xor r15d, r15d ; +0x3f2, 0x100017db2 mov rdi, [rbx+380h] ; +0x3f5, 0x100017db5 mov esi, r15d ; +0x3fc, 0x100017dbc call sub_1007FEFE0 ; +0x3ff, 0x100017dbf mov rdi, rax ; +0x404, 0x100017dc4 call GameObject__isSpawnableTrigger ; +0x407, 0x100017dc7 mov r14d, eax ; +0x40c, 0x100017dcc test al, al ; +0x40f, 0x100017dcf jz short loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x411, 0x100017dd1 inc r15d ; +0x413, 0x100017dd3 mov rdi, [rbx+380h] ; +0x416, 0x100017dd6 call sub_1007FEF90 ; +0x41d, 0x100017ddd cmp r15d, eax ; +0x422, 0x100017de2 jb short loc_100017DB5 ; +0x425, 0x100017de5 jmp short loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x427, 0x100017de7 mov r14b, 1 ; +0x429, 0x100017de9 jmp short loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x42c, 0x100017dec mov ecx, 18009h ; +0x42e, 0x100017dee bt ecx, eax ; +0x433, 0x100017df3 jb short loc_100017E00; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x436, 0x100017df6 jmp loc_100017B9F ; +0x438, 0x100017df8 xor r14d, r14d ; +0x43d, 0x100017dfd mov eax, r14d; jumptable 0000000100017A30 cases 12,13,29-33,47,105,111 ; +0x440, 0x100017e00 pop rbx ; +0x443, 0x100017e03 pop r12 ; +0x444, 0x100017e04 pop r14 ; +0x446, 0x100017e06 pop r15 ; +0x448, 0x100017e08 pop rbp ; +0x44a, 0x100017e0a retn ; +0x44b, 0x100017e0b