Function at 0x180015780
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 - 0x57]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, rcx
mov qword [rbp - 0x41], rcx
xor r15d, r15d
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 0xf], r15
mov r12d, 7
mov qword [rbp + 0x17], r12
mov word [rbp - 1], r15w
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180015a30
lea ecx, [r15 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x180015a2a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x180015a2a
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180015820
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.180007980
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov rdi, r15
mov qword [rbp - 0x11], r15
mov esi, 7
mov qword [rbp - 9], rsi
mov word [rbp - 0x21], r15w
mov ebx, r15d
mov r12, qword [rbp + 0x17]
mov r14, qword [rbp - 1]
mov r15, qword [rbp + 0xf]
test r15, r15
je 0x1800158d3
xor edx, edx
mov ecx, edx
nop dword [rax + rax]
lea rax, [rbp - 1]
cmp r12, 8
cmovae rax, r14
movzx r9d, word [rax + rcx*2]
cmp rdi, rsi
jae 0x1800158b7
lea rax, [rdi + 1]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x21]
cmp rsi, 8
cmovae rax, qword [rbp - 0x21]
mov word [rax + rdi*2], r9w
mov word [rax + rdi*2 + 2], dx
jmp 0x1800158c2
lea rcx, [rbp - 0x21]
call fcn.180015d20
xor edx, edx
inc ebx
mov ecx, ebx
mov rsi, qword [rbp - 9]
mov rdi, qword [rbp - 0x11]
cmp rcx, r15
jb 0x180015880
mov rcx, qword [r13 + 8]
mov byte [rbp - 0x51], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [rbp - 0x51], al
mov r15, qword [rbp - 0x21]
test al, al
jne 0x1800158f6
jmp 0x1800159d6
lea r13, [rbp - 0x21]
cmp rsi, 8
cmovae r13, r15
lea rdi, [rdi*2 + 2]
mov qword [rbp - 0x49], 0
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180015997
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x31], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x180015951
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x49], rax
jmp 0x180015997
mov r8, rdi
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x18001598b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbp - 0x49], rax
jmp 0x180015997
mov qword [rbp - 0x49], 0
mov bl, 1
jmp 0x180015999
xor bl, bl
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rbp - 0x51]
test bl, bl
je 0x1800159d6
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x1800159d6
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]
nop
cmp rsi, 8
jb 0x180015a14
lea rdx, [rsi*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x180015a0c
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015a0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1800c8534
xor r15d, r15d
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r15w
jmp 0x180015a34
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r14, qword [rbp - 1]
cmp r12, 8
jb 0x180015a72
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x180015a6a
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015a6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1800c8534
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800c8510
lea r11, [rsp + 0xb0]
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