Function at 0x140007740
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
lea r14, [rcx + 0x2c]
mov rbx, rcx
mov rsi, r14
jne 0x1400077e1
call fcn.140007a90
test eax, eax
jne 0x1400077dd
xor edi, edi
cmp dword [r14], edi
je 0x140007794
cmp qword [rbx + 0x10], rdi
je 0x140007788
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [r14], edi
mov qword [rbx], rdi
cmp qword [rbx + 0x18], rdi
je 0x1400077ab
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x28], edi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400077be
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
lea r8, [0x1400f97e4]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x140136060]
call fcn.140064aa0
jmp 0x1400078d4
lea rsi, [rbx + 0x2c]
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor edi, edi
test eax, eax
jne 0x14000785a
cmp dword [r14], edi
je 0x140007814
cmp qword [rbx + 0x10], rdi
je 0x140007808
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
mov r14, rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [r14], edi
mov qword [rbx], rdi
cmp qword [rbx + 0x18], rdi
je 0x14000782b
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x28], edi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000783e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
lea r8, [0x1400f97e4]
lea rdx, [0x1400f9ef8]
lea rcx, [0x140136060]
call fcn.140064aa0
jmp 0x1400078d4
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x30], rbp
test rcx, rcx
je 0x1400078a8
mov rax, qword [rbx + 0x18]
xor r14b, r14b
mov rbp, rsi
test rax, rax
je 0x14000788f
cmp word [rax], di
sete r14b
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rdi
lea rbp, [rbx + 0x2c]
mov dword [rbx + 0x28], edi
mov rdx, qword [rbx + 8]
test r14b, r14b
je 0x1400078ea
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
mov rsi, rbp
cmp dword [rsi], edi
je 0x1400078ca
cmp qword [rbx + 0x10], rdi
je 0x1400078bf
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rsi], edi
mov qword [rbx], rdi
mov eax, 1
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, ntohs
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140007900
mov qword [rbx + 8], rdi
jmp 0x1400078a5
cmp dword [rsi], edi
je 0x140007923
cmp qword [rbx + 0x10], rdi
je 0x140007917
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
cmp qword [rbx + 0x18], rdi
je 0x14000793a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x28], edi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000794d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
lea r8, [0x1400f97e4]
lea rdx, [0x1400f9f18]
lea rcx, [0x140136060]
call fcn.140064aa0
jmp 0x1400078cf