Function at 0x140086bf0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
push rbx
push rdi
push r13
push r14
sub rsp, 0x68
mov qword [rax + 8], rbp
mov rbp, rcx
or rcx, 0xffffffffffffffff
mov qword [rax + 0x10], rsi
mov rsi, qword [rbp + 0x708]
lea r13, [0x1400a89b8]
mov qword [rax + 0x18], r12
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
mov ecx, dword [rbp + 0x71c]
cmp edi, 0xffffffff
jne 0x140086c42
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x140086c95
mov r12d, dword [rbp + 0x710]
cmp edi, r12d
jl 0x140086c95
nop
add dword [rbp + 0x710], ecx
mov eax, dword [rbp + 0x710]
cmp edi, eax
jge 0x140086c50
add eax, eax
movsxd rcx, eax
call sub.msvcrt.dll_malloc
test r12d, r12d
mov qword [rbp + 0x708], rax
jle 0x140086c95
test rax, rax
je 0x140086c8d
lea ecx, [r12 + r12]
mov rdx, rsi
movsxd r8, ecx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rsi
call sub.msvcrt.dll_free
test rsi, rsi
jne 0x140086ca9
mov rax, qword [rbp + 0x708]
test rax, rax
je 0x140086ca9
mov word [rax], si
test edi, edi
jle 0x140086cc2
mov rcx, qword [rbp + 0x708]
movsxd r8, edi
mov rdx, r13
add r8, r8
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x708]
movsxd rcx, edi
mov r14d, 0x2000
mov word [rax + rcx*2], 0
mov dword [rbp + 0x714], edi
mov rax, qword [rbp + 0x6d0]
mov dword [rbp + 0x71c], r14d
cmp dword [rax + 0xa5c], 0
je 0x140086d08
mov rcx, qword [rbp + 0x6d8]
lea rdx, [rbp + 0x708]
call fcn.14009fd30
mov r12, qword [rbp + 0x6d8]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [r12 + 0x310]
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
sub esi, 1
js 0x140086dcb
mov qword [rsp + 0x60], r15
xor r15d, r15d
nop
cmp dword [r12 + 0x3b0], r15d
mov rcx, qword [r12 + 0x310]
mov edi, 2
cmovne edi, r14d
lea r9, [rsp + 0x20]
mov edx, 0x104b
xor r8d, r8d
mov dword [rsp + 0x20], InitCommonControls
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r15d
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140086dbd
test dword [rsp + 0x2c], edi
je 0x140086dbd
mov rax, qword [r12]
mov rdi, qword [rsp + 0x48]
mov rcx, r12
call qword [rax]
lea rdx, [rbp + 0x708]
mov rcx, qword [rax]
mov eax, dword [r12 + 8]
imul eax, edi
movsxd r8, eax
add r8, rcx
mov rcx, qword [rbp + 0x6d8]
call fcn.14009f0e0
sub esi, 1
jns 0x140086d40
mov r15, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x6d8]
mov rcx, qword [rcx + 0x310]
call qword [sym.imp.USER32.dll_SetFocus]
mov rax, qword [rbp + 0x708]
mov rcx, qword [rbp + 0x210]
test rax, rax
cmovne r13, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
mov r12, qword [rsp + 0xa0]
test eax, eax
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
je 0x140086e7e
call qword [sym.imp.USER32.dll_EmptyClipboard]
test r13, r13
je 0x140086e78
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
movsxd rbx, ecx
mov ecx, r14d
add rbx, rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rdi, rax
je 0x140086e78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbx
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rbx
ret