Function at 0x18021e140
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 [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
cmp qword [rcx + 0xb0], 0
jne 0x18021e1b7
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x18021e50c
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 0x18021e50c
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 0x18021e4ba
lea ecx, [rdi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x18021e4b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18021e4b4
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18021e212
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 0x18021e432
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 0x18021e29d
mov r8, qword [r14 + 0xa0]
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x18021e2bf
mov rax, r8
nop dword [rax]
cmp word [rax], dx
je 0x18021e2fb
add rax, 2
sub rcx, 1
jne 0x18021e2b0
lea rax, [rbp - 0x11]
cmp rsi, 8
cmovae rax, r15
movzx r9d, word [r9 + rax]
mov rcx, qword [rbp + 0x1f]
cmp rcx, r13
jae 0x18021e311
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 0x18021e31d
test rax, rax
je 0x18021e2bf
sub rax, r8
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x18021e2bf
mov r12b, 1
jmp 0x18021e321
lea rcx, [rbp + 0xf]
call fcn.1800328a0
xor r10d, r10d
mov r13, qword [rbp + 0x27]
inc edi
mov ecx, edi
cmp rcx, qword [rbp - 1]
jb 0x18021e270
test r12b, r12b
je 0x18021e432
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 0x18021e35b
mov rbx, qword [rbp + 0xf]
jmp 0x18021e462
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 0x18021e405
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 0x18021e3be
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x31], rax
jmp 0x18021e405
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 0x18021e3f8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x31], rax
jmp 0x18021e405
mov qword [rbp - 0x31], 0
mov dil, 1
jmp 0x18021e408
xor dil, dil
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rbp - 0x39]
test dil, dil
je 0x18021e45e
lea r8, [r14 + 0xe0]
lea rdx, [r14 + 0xc0]
mov rcx, qword [r14 + 8]
call fcn.18022e980
jmp 0x18021e436
mov rbx, qword [rbp + 0xf]
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x18021e45e
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 0x18021e4a0
lea rdx, [r13*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18021e498
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021e498
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180388460
xor edi, edi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], di
jmp 0x18021e4be
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r15, qword [rbp - 0x11]
cmp rsi, 8
jb 0x18021e4fc
lea rdx, [rsi*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18021e4f4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021e4f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.180388460
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.180388400
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