Function at 0x18003be60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r8
mov r13, rdx
mov r14, rcx
cmp dword [rcx], 0
jne 0x18003bcae
cmp qword [rdx], 0
je 0x18003be3b
lea rcx, [rsp + 0x48]
call fcn.18003b890
nop
mov rcx, rbx
call qword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
test eax, eax
je 0x18003bd98
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, ebx
cmp dword [r14], ebx
je 0x18003bd92
mov rbp, r14
mov rdi, r13
cmp esi, 0x100
jge 0x18003bd92
cmp dword [0x1801df0a0], ebx
je 0x18003bd27
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
lea r9, str.RestoreClipBoard_1___d____d____08x_
lea r8, str.IMHookAPI
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
mov rdx, qword [rdi]
test rdx, rdx
je 0x18003bd7f
mov ecx, dword [rbp]
call qword [sym.imp.USER32.dll_SetClipboardData]
mov r12, rax
test rax, rax
jne 0x18003bd52
movsxd rcx, esi
lea rdx, [r13 + rcx*8]
lea rcx, [rsp + 0x48]
call fcn.18003bc50
cmp dword [0x1801df0a0], ebx
je 0x18003bd7c
mov qword [rsp + 0x20], r12
lea r9, str.RestoreClipBoard_2___08x_
lea r8, str.IMHookAPI
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
mov qword [rdi], rbx
inc esi
add rdi, 8
add rbp, 4
cmp dword [rbp], ebx
jne 0x18003bce3
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rsp + 0x48]
call fcn.18003b8b0
mov edi, eax
test eax, eax
jle 0x18003bdcb
nop dword [rax + rax]
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.18003ba70
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
inc ebx
cmp ebx, edi
jl 0x18003bdb0
lea rcx, [rsp + 0x48]
call fcn.18003bc40
mov r11d, dword [0x1801c958c]
cmp r11d, 0x8000000
je 0x18003bdee
cmp r11d, 0x80
jne 0x18003bdff
mov edx, 1
lea rcx, [0x1801ceb10]
call fcn.18003f4a0
mov rdx, r13
mov rcx, r14
call fcn.180039400
cmp dword [0x1801df0a0], 0
je 0x18003be31
lea r9, str._HOOKAPI__DEALPEEKMESSAGE__restore_clipboard_is_done__
lea r8, str.IMHookAPI
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
nop
lea rcx, [rsp + 0x48]
call fcn.18003ba80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
push rbx
sub rsp, 0x70
mov eax, dword [0x1801c958c]
cmp eax, 2
je 0x18003bf5d
cmp eax, 1
je 0x18003bf5d
cmp eax, 0x1000
je 0x18003bf5d
cmp eax, 0x800
je 0x18003bf5d
cmp eax, 0x80000
je 0x18003bf5d
cmp eax, 0x80
jne 0x18003bf2e
mov rcx, qword [0x1801c9580]
lea rdx, [0x1801cd398]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [0x1801cd3a4]
mov rcx, qword [0x1801c9580]
sub ebx, dword [0x1801cd39c]
sub ebx, 0x3c
call qword [sym.imp.USER32.dll_SetFocus]
mov edx, ebx
mov ecx, SafeArrayCreate
call qword [sym.imp.USER32.dll_SetCaretPos]
cmp dword [0x1801df0a0], 0
je 0x18003c000
mov rax, qword [0x1801c9580]
mov dword [rsp + 0x30], ebx
lea r9, str.Restore_ALI___x____d____d_
lea r8, str.IMHookAPI
lea rcx, [0x1801de7b8]
or edx, 0xffffffff
mov dword [rsp + 0x28], SafeArrayCreate
mov qword [rsp + 0x20], rax
call fcn.18008da50
jmp 0x18003c000
cmp eax, 0x8000000
je 0x18003c000
mov rcx, qword [0x1801cd3b0]
call qword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [0x1801cd3ac]
mov ecx, dword [0x1801cd3a8]
call qword [sym.imp.USER32.dll_SetCaretPos]
jmp 0x18003c000
mov ecx, dword [0x1801cd3a4]
xor eax, eax
sub ecx, dword [0x1801cd39c]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
sub ecx, 0x3c
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
shl ecx, 0x10
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801c9578]
add ecx, 0xc
mov dword [rsp + 0x48], 0x201
mov qword [rsp + 0x50], 1
movsxd rbx, ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r11, qword [0x1801c9578]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r11
mov dword [rsp + 0x48], 0x202
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rbx
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r8, qword [0x1801c9578]
lea rdx, [0x1801cd7c0]
lea rcx, [0x1801cd3c0]
add rsp, 0x70
pop rbx
jmp 0x18003bc70