Function at 0x18021d8f0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
cmp qword [rcx + 0xb0], 0
jne 0x18021d967
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x18021dcbc
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x20], rax
mov r9, qword [rdx + 0x10]
mov r8d, dword [rdx + 8]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x18021dcbc
xor edi, edi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], rdi
mov qword [rbp - 1], rdi
mov esi, 7
mov qword [rbp + 7], rsi
mov word [rbp - 0x11], di
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18021dc6a
lea ecx, [rdi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x18021dc64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18021dc64
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18021d9c2
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.180004ea0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x1f], rdi
mov r13d, 7
mov qword [rbp + 0x27], r13
mov word [rbp + 0xf], di
xor r12b, r12b
mov r15, qword [rbp - 0x11]
cmp qword [rbp - 1], 0
jbe 0x18021dbe2
xor r10d, r10d
mov ecx, r10d
mov rsi, qword [rbp + 7]
nop
lea rax, [rbp - 0x11]
cmp rsi, 8
cmovae rax, r15
lea r9, [rcx + rcx]
movzx edx, word [r9 + rax]
lea r8, [r14 + 0xa0]
cmp qword [r14 + 0xb8], 8
jb 0x18021da4d
mov r8, qword [r14 + 0xa0]
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x18021da6f
mov rax, r8
nop dword [rax]
cmp word [rax], dx
je 0x18021daab
add rax, 2
sub rcx, 1
jne 0x18021da60
lea rax, [rbp - 0x11]
cmp rsi, 8
cmovae rax, r15
movzx r9d, word [r9 + rax]
mov rcx, qword [rbp + 0x1f]
cmp rcx, r13
jae 0x18021dac1
lea rax, [rcx + 1]
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0xf]
cmp r13, 8
cmovae rax, qword [rbp + 0xf]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r10w
jmp 0x18021dacd
test rax, rax
je 0x18021da6f
sub rax, r8
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x18021da6f
mov r12b, 1
jmp 0x18021dad1
lea rcx, [rbp + 0xf]
call fcn.180032180
xor r10d, r10d
mov r13, qword [rbp + 0x27]
inc edi
mov ecx, edi
cmp rcx, qword [rbp - 1]
jb 0x18021da20
test r12b, r12b
je 0x18021dbe2
mov rcx, qword [r14 + 8]
mov byte [rbp - 0x39], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [rbp - 0x39], al
test al, al
jne 0x18021db0b
mov rbx, qword [rbp + 0xf]
jmp 0x18021dc12
lea rsi, [rbp + 0xf]
mov rbx, qword [rbp + 0xf]
cmp r13, 8
cmovae rsi, rbx
mov rax, qword [rbp + 0x1f]
lea r12, [rax*2 + 2]
mov qword [rbp - 0x31], 0
mov rdx, r12
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18021dbb5
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x21], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x18021db6e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x31], rax
jmp 0x18021dbb5
mov r8, r12
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x18021dba8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x31], rax
jmp 0x18021dbb5
mov qword [rbp - 0x31], 0
mov dil, 1
jmp 0x18021dbb8
xor dil, dil
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rbp - 0x39]
test dil, dil
je 0x18021dc0e
lea r8, [r14 + 0xe0]
lea rdx, [r14 + 0xc0]
mov rcx, qword [r14 + 8]
call fcn.18022e110
jmp 0x18021dbe6
mov rbx, qword [rbp + 0xf]
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x18021dc0e
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x20], rax
mov r9, qword [rcx + 0x10]
mov r8d, dword [rcx + 8]
mov rdx, qword [r14 + 8]
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_CallWindowProcW]
mov rsi, qword [rbp + 7]
cmp r13, 8
jb 0x18021dc50
lea rdx, [r13*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18021dc48
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021dc48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180386950
xor edi, edi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], di
jmp 0x18021dc6e
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r15, qword [rbp - 0x11]
cmp rsi, 8
jb 0x18021dcac
lea rdx, [rsi*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18021dca4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021dca4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.180386950
mov qword [rbp - 1], rdi
mov qword [rbp + 7], 7
mov word [rbp - 0x11], di
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret