Function at 0x18021db80
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 [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
cmp qword [rcx + 0xb0], 0
jne 0x18021dbf7
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x18021df4c
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 0x18021df4c
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 0x18021defa
lea ecx, [rdi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x18021def4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18021def4
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18021dc52
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.180004e70
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 0x18021de72
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 0x18021dcdd
mov r8, qword [r14 + 0xa0]
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x18021dcff
mov rax, r8
nop dword [rax]
cmp word [rax], dx
je 0x18021dd3b
add rax, 2
sub rcx, 1
jne 0x18021dcf0
lea rax, [rbp - 0x11]
cmp rsi, 8
cmovae rax, r15
movzx r9d, word [r9 + rax]
mov rcx, qword [rbp + 0x1f]
cmp rcx, r13
jae 0x18021dd51
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 0x18021dd5d
test rax, rax
je 0x18021dcff
sub rax, r8
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x18021dcff
mov r12b, 1
jmp 0x18021dd61
lea rcx, [rbp + 0xf]
call fcn.180032810
xor r10d, r10d
mov r13, qword [rbp + 0x27]
inc edi
mov ecx, edi
cmp rcx, qword [rbp - 1]
jb 0x18021dcb0
test r12b, r12b
je 0x18021de72
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 0x18021dd9b
mov rbx, qword [rbp + 0xf]
jmp 0x18021dea2
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 0x18021de45
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 0x18021ddfe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x31], rax
jmp 0x18021de45
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 0x18021de38
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x31], rax
jmp 0x18021de45
mov qword [rbp - 0x31], 0
mov dil, 1
jmp 0x18021de48
xor dil, dil
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rbp - 0x39]
test dil, dil
je 0x18021de9e
lea r8, [r14 + 0xe0]
lea rdx, [r14 + 0xc0]
mov rcx, qword [r14 + 8]
call fcn.18022c190
jmp 0x18021de76
mov rbx, qword [rbp + 0xf]
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x18021de9e
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 0x18021dee0
lea rdx, [r13*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18021ded8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021ded8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180385c70
xor edi, edi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], di
jmp 0x18021defe
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r15, qword [rbp - 0x11]
cmp rsi, 8
jb 0x18021df3c
lea rdx, [rsi*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18021df34
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021df34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.180385c70
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.180385c10
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