; ; EditorUI::onCreate from 0x10002e160 to 0x10002e265 (261 bytes) ; ; 1 xrefs: ; > EditorUI::clickOnPosition @ 0x10002daf0 ; ; 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, 0x10002e160 mov rbp, rsp ; +0x1, 0x10002e161 push r14 ; +0x4, 0x10002e164 push rbx ; +0x6, 0x10002e166 mov r14d, [rdi+4C0h] ; +0x7, 0x10002e167 test r14d, r14d ; +0xe, 0x10002e16e jz loc_10002E250 ; +0x11, 0x10002e171 mov rbx, rdi ; +0x17, 0x10002e177 mov rax, [rdi+4E8h] ; +0x1a, 0x10002e17a mov ecx, [rax+3688h] ; +0x21, 0x10002e181 sub ecx, [rax+368Ch] ; +0x27, 0x10002e187 cmp ecx, 13880h ; +0x2d, 0x10002e18d jl short loc_10002E1B8 ; +0x33, 0x10002e193 cmp r14d, 1Fh ; +0x35, 0x10002e195 jz short loc_10002E1FE ; +0x39, 0x10002e199 mov rcx, [rax+790h] ; +0x3b, 0x10002e19b cmp byte ptr [rcx+441h], 0 ; +0x42, 0x10002e1a2 jnz short loc_10002E1C0 ; +0x49, 0x10002e1a9 mov rdi, rbx ; +0x4b, 0x10002e1ab call EditorUI__showMaxError ; +0x4e, 0x10002e1ae jmp loc_10002E250 ; +0x53, 0x10002e1b3 cmp ecx, 9C40h ; +0x58, 0x10002e1b8 jl short loc_10002E1DA ; +0x5e, 0x10002e1be cmp r14d, 1Fh ; +0x60, 0x10002e1c0 jz short loc_10002E1FE ; +0x64, 0x10002e1c4 mov rcx, [rax+790h] ; +0x66, 0x10002e1c6 cmp byte ptr [rcx+440h], 0 ; +0x6d, 0x10002e1cd jz loc_10002E25B ; +0x74, 0x10002e1d4 cmp r14d, 531h ; +0x7a, 0x10002e1da jnz short loc_10002E1FE ; +0x81, 0x10002e1e1 mov ecx, [rax+3614h] ; +0x83, 0x10002e1e3 sub ecx, [rax+3618h] ; +0x89, 0x10002e1e9 cmp ecx, 3 ; +0x8f, 0x10002e1ef jl short loc_10002E1FE ; +0x92, 0x10002e1f2 mov rdi, rbx ; +0x94, 0x10002e1f4 call EditorUI__showMaxCoinError ; +0x97, 0x10002e1f7 jmp short loc_10002E250 ; +0x9c, 0x10002e1fc cmp qword ptr [rbx+520h], 0 ; +0x9e, 0x10002e1fe jnz short loc_10002E218 ; +0xa6, 0x10002e206 mov rdi, [rbx+328h] ; +0xa8, 0x10002e208 call sub_100720070 ; +0xaf, 0x10002e20f test eax, eax ; +0xb4, 0x10002e214 jz short loc_10002E242 ; +0xb6, 0x10002e216 mov rdi, rbx ; +0xb8, 0x10002e218 call EditorUI__getSelectedObjects ; +0xbb, 0x10002e21b mov rdi, rax ; +0xc0, 0x10002e220 mov esi, 6 ; +0xc3, 0x10002e223 call UndoObject__createWithArray ; +0xc8, 0x10002e228 mov byte ptr [rax+50h], 1 ; +0xcd, 0x10002e22d mov rdi, [rbx+4E8h] ; +0xd1, 0x10002e231 mov rsi, rax ; +0xd8, 0x10002e238 xor edx, edx ; +0xdb, 0x10002e23b call LevelEditorLayer__addToUndoList ; +0xdd, 0x10002e23d mov esi, [rbx+4C0h] ; +0xe2, 0x10002e242 mov rdi, rbx ; +0xe8, 0x10002e248 call EditorUI__onCreateObject ; +0xeb, 0x10002e24b test r14d, r14d ; +0xf0, 0x10002e250 setnz al ; +0xf3, 0x10002e253 pop rbx ; +0xf6, 0x10002e256 pop r14 ; +0xf7, 0x10002e257 pop rbp ; +0xf9, 0x10002e259 retn ; +0xfa, 0x10002e25a mov rdi, rbx ; +0xfb, 0x10002e25b call EditorUI__showMaxBasicError ; +0xfe, 0x10002e25e jmp short loc_10002E250 ; +0x103, 0x10002e263