Function at 0x140007140
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x140132208], 0
mov rbx, r8
mov rdi, rdx
jne 0x1400071e2
xor ebp, ebp
test rdx, rdx
je 0x1400072c9
mov eax, 0xffffffff
cmp rbx, rax
jne 0x14000718b
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bp
jne 0x140007180
mov ebx, eax
test rbx, rbx
je 0x1400072c9
lea rsi, [rbx + 1]
test rsi, rsi
je 0x1400071e2
lea rdx, [rsi + rsi]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x1401321f8], rax
test rax, rax
jne 0x1400071f9
mov rax, qword [0x140131838]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x1401319c0]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
call fcn.14000fec0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [0x140132208], rax
test rax, rax
jne 0x14000729e
mov rcx, qword [0x1401321f8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [0x14012bd85], bpl
mov qword [0x1401321f8], rax
jne 0x1400071e2
mov rax, qword [0x140129398]
cmp dword [rax + 0x60], ebp
jne 0x140007273
cmp dword [0x1401320c8], ebp
jne 0x140007273
cmp byte [0x14012bd0a], bpl
jne 0x140007273
lea r9, [0x140104c70]
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1401319c0]
call fcn.140010e80
jmp 0x1400071e2
mov qword [rsp + 0x28], rbp
lea r8, [0x140104c70]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1401319c0]
call fcn.14000f7a0
jmp 0x1400071e2
mov dword [0x140132218], esi
mov word [rax], bp
mov rsi, qword [0x140132208]
test rsi, rsi
je 0x1400071e2
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400d6d74
mov word [rsi + rbx*2], bp
cmp dword [0x14013221c], ebp
jne 0x1400072eb
call fcn.140007760
test eax, eax
jne 0x1400072eb
lea rdx, str.Cant_open_clipboard_for_writing.
call fcn.140007440
jmp 0x1400071e4
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14000733e
cmp dword [0x14013221c], ebp
je 0x14000732d
cmp qword [0x140132200], rbp
je 0x14000731a
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], ebp
mov qword [0x1401321f0], rbp
lea rdx, [0x140107008]
call fcn.140007440
jmp 0x1400071e4
mov rdx, qword [0x1401321f8]
test rdx, rdx
je 0x140007388
mov rbx, qword [0x140132208]
test rbx, rbx
je 0x1400073d1
movzx ebx, word [rbx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132208], rbp
mov dword [0x140132218], ebp
test bx, bx
jne 0x1400073ca
mov rcx, qword [0x1401321f8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x1401321f8], rax
cmp dword [0x14013221c], ebp
je 0x1400073c0
cmp qword [0x140132200], rbp
je 0x1400073ad
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], ebp
mov qword [0x1401321f0], rbp
mov eax, 1
jmp 0x1400071e4
mov rdx, qword [0x1401321f8]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400073ea
mov qword [0x1401321f8], rbp
jmp 0x140007388
cmp dword [0x14013221c], ebp
je 0x140007422
cmp qword [0x140132200], rbp
je 0x14000740f
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], ebp
mov qword [0x1401321f0], rbp
lea rdx, [0x140107028]
call fcn.140007440
jmp 0x1400071e4