Function at 0x140007040
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
jne 0x1400070d0
call fcn.140007380
test eax, eax
jne 0x1400070d0
xor edi, edi
cmp dword [rbx + 0x2c], edi
je 0x140007082
cmp qword [rbx + 0x10], rdi
je 0x140007076
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 0x140007099
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 0x1400070ac
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
lea r8, [0x1400fb87c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x140136640]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400515e0
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor edi, edi
test eax, eax
jne 0x14000714e
cmp dword [rbx + 0x2c], edi
je 0x140007100
cmp qword [rbx + 0x10], rdi
je 0x1400070f4
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 0x140007117
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 0x14000712a
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
lea r8, [0x1400fb87c]
lea rdx, [0x1400fbe38]
lea rcx, [0x140136640]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400515e0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140007197
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rsi
xor sil, sil
test rax, rax
je 0x14000717c
cmp word [rax], di
sete sil
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x28], edi
mov rdx, qword [rbx + 8]
test sil, sil
mov rsi, qword [rsp + 0x30]
je 0x1400071cb
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp dword [rbx + 0x2c], edi
je 0x1400071bb
cmp qword [rbx + 0x10], rdi
je 0x1400071af
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
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, ntohs
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400071e1
mov qword [rbx + 8], rdi
jmp 0x140007197
cmp dword [rbx + 0x2c], edi
je 0x140007205
cmp qword [rbx + 0x10], rdi
je 0x1400071f9
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 0x14000721c
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 0x14000722f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
lea r8, [0x1400fb87c]
lea rdx, [0x1400fbe58]
lea rcx, [0x140136640]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400515e0