; ; EditorUI::onDuplicate from 0x1005b5da0 to 0x1005b5f3a (410 bytes) ; ; 3 xrefs: ; > EditorUI::startFreeMoveTouch @ 0x10060998e ; > EditorUI::handleEditorAction @ 0x10060c6a2 ; > EditorUI::init @ 0x100006a9e ; ; 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:32:41 +0000 ; push rbp ; +0x0, 0x1005b5da0 mov rbp, rsp ; +0x1, 0x1005b5da1 push r14 ; +0x4, 0x1005b5da4 push rbx ; +0x6, 0x1005b5da6 sub rsp, 30h ; +0x7, 0x1005b5da7 mov rbx, rdi ; +0xb, 0x1005b5dab cmp qword ptr [rdi+5D8h], 0 ; +0xe, 0x1005b5dae jnz short loc_1005B5DCC ; +0x16, 0x1005b5db6 mov rdi, [rbx+380h] ; +0x18, 0x1005b5db8 call sub_1007FEF90 ; +0x1f, 0x1005b5dbf test eax, eax ; +0x24, 0x1005b5dc4 jz loc_1005B5F31 ; +0x26, 0x1005b5dc6 call EditorSFXManager__sharedState ; +0x2c, 0x1005b5dcc mov rdi, rax ; +0x31, 0x1005b5dd1 mov esi, 67h ; 'g' ; +0x34, 0x1005b5dd4 call EditorSFXManager__playAction_1 ; +0x39, 0x1005b5dd9 mov rax, [rbx+5A0h] ; +0x3e, 0x1005b5dde mov r14d, [rax+37C0h] ; +0x45, 0x1005b5de5 sub r14d, [rax+37C4h] ; +0x4c, 0x1005b5dec mov rdi, [rbx+380h] ; +0x53, 0x1005b5df3 call sub_1007FEF90 ; +0x5a, 0x1005b5dfa add eax, r14d ; +0x5f, 0x1005b5dff cmp eax, 13881h ; +0x62, 0x1005b5e02 jl short loc_1005B5E30 ; +0x67, 0x1005b5e07 mov rax, [rbx+5A0h] ; +0x69, 0x1005b5e09 mov rax, [rax+790h] ; +0x70, 0x1005b5e10 cmp byte ptr [rax+4B1h], 0 ; +0x77, 0x1005b5e17 jnz short loc_1005B5E45 ; +0x7e, 0x1005b5e1e mov rdi, rbx ; +0x80, 0x1005b5e20 add rsp, 30h ; +0x83, 0x1005b5e23 pop rbx ; +0x87, 0x1005b5e27 pop r14 ; +0x88, 0x1005b5e28 pop rbp ; +0x8a, 0x1005b5e2a jmp EditorUI__showMaxError ; +0x8b, 0x1005b5e2b cmp eax, 9C41h ; +0x90, 0x1005b5e30 jl short loc_1005B5E4E ; +0x95, 0x1005b5e35 mov rax, [rbx+5A0h] ; +0x97, 0x1005b5e37 mov rax, [rax+790h] ; +0x9e, 0x1005b5e3e cmp byte ptr [rax+4B0h], 0 ; +0xa5, 0x1005b5e45 jz short loc_1005B5E67 ; +0xac, 0x1005b5e4c mov rdi, [rbx+380h] ; +0xae, 0x1005b5e4e call sub_1007FEF90 ; +0xb5, 0x1005b5e55 test eax, eax ; +0xba, 0x1005b5e5a jz short loc_1005B5E77 ; +0xbc, 0x1005b5e5c mov r14, [rbx+380h] ; +0xbe, 0x1005b5e5e jmp short loc_1005B5E8E ; +0xc5, 0x1005b5e65 mov rdi, rbx ; +0xc7, 0x1005b5e67 add rsp, 30h ; +0xca, 0x1005b5e6a pop rbx ; +0xce, 0x1005b5e6e pop r14 ; +0xcf, 0x1005b5e6f pop rbp ; +0xd1, 0x1005b5e71 jmp EditorUI__showMaxBasicError ; +0xd2, 0x1005b5e72 call sub_1007FE900 ; +0xd7, 0x1005b5e77 mov r14, rax ; +0xdc, 0x1005b5e7c mov rsi, [rbx+5D8h] ; +0xdf, 0x1005b5e7f mov rdi, rax ; +0xe6, 0x1005b5e86 call sub_1007FEBF0 ; +0xe9, 0x1005b5e89 lea rdi, [rbp+var_28] ; +0xee, 0x1005b5e8e mov rsi, rbx ; +0xf2, 0x1005b5e92 mov rdx, r14 ; +0xf5, 0x1005b5e95 xor ecx, ecx ; +0xf8, 0x1005b5e98 xor r8d, r8d ; +0xfa, 0x1005b5e9a call EditorUI__copyObjects ; +0xfd, 0x1005b5e9d mov rax, [rbx+5A0h] ; +0x102, 0x1005b5ea2 mov byte ptr [rax+3748h], 1 ; +0x109, 0x1005b5ea9 test byte ptr [rbp+var_28], 1 ; +0x110, 0x1005b5eb0 jnz short loc_1005B5EC8 ; +0x114, 0x1005b5eb4 mov rax, [rbp+var_18] ; +0x116, 0x1005b5eb6 mov [rbp+__p], rax ; +0x11a, 0x1005b5eba movups xmm0, [rbp+var_28] ; +0x11e, 0x1005b5ebe movaps [rbp+var_40], xmm0 ; +0x122, 0x1005b5ec2 jmp short loc_1005B5ED9 ; +0x126, 0x1005b5ec6 mov rdx, qword ptr [rbp+var_28+8] ; +0x128, 0x1005b5ec8 mov rsi, [rbp+var_18] ; +0x12c, 0x1005b5ecc lea rdi, [rbp+var_40] ; +0x130, 0x1005b5ed0 call sub_10001AD30 ; +0x134, 0x1005b5ed4 lea rsi, [rbp+var_40] ; +0x139, 0x1005b5ed9 mov rdi, rbx ; +0x13d, 0x1005b5edd xor edx, edx ; +0x140, 0x1005b5ee0 xor ecx, ecx ; +0x142, 0x1005b5ee2 call EditorUI__pasteObjects ; +0x144, 0x1005b5ee4 test byte ptr [rbp+var_40], 1 ; +0x149, 0x1005b5ee9 jz short loc_1005B5EF8 ; +0x14d, 0x1005b5eed mov rdi, [rbp+__p]; __p ; +0x14f, 0x1005b5eef call __ZdlPv; operator delete(void *) ; +0x153, 0x1005b5ef3 mov rdi, [rbx+5A0h] ; +0x158, 0x1005b5ef8 mov byte ptr [rdi+3748h], 0 ; +0x15f, 0x1005b5eff add rdi, 3970h ; +0x166, 0x1005b5f06 call EditorBuildStats__noteAction ; +0x16d, 0x1005b5f0d mov rdi, rbx ; +0x172, 0x1005b5f12 call EditorUI__updateButtons ; +0x175, 0x1005b5f15 mov rdi, rbx ; +0x17a, 0x1005b5f1a call EditorUI__updateObjectInfoLabel ; +0x17d, 0x1005b5f1d test byte ptr [rbp+var_28], 1 ; +0x182, 0x1005b5f22 jz short loc_1005B5F31 ; +0x186, 0x1005b5f26 mov rdi, [rbp+var_18]; __p ; +0x188, 0x1005b5f28 call __ZdlPv; operator delete(void *) ; +0x18c, 0x1005b5f2c add rsp, 30h ; +0x191, 0x1005b5f31 pop rbx ; +0x195, 0x1005b5f35 pop r14 ; +0x196, 0x1005b5f36 pop rbp ; +0x198, 0x1005b5f38 retn ; +0x199, 0x1005b5f39