Function at 0x1400a42a0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
call fcn.140007710
test eax, eax
jne 0x1400a4340
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], 0
jne 0x1400a430c
cmp dword [0x14012cd88], 0
jne 0x1400a430c
cmp byte [0x140126ada], 0
jne 0x1400a430c
xor edi, edi
lea r9, [0x140100be0]
mov qword [rsp + 0x28], rdi
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x14012c670]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 9]
call fcn.140010320
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor edi, edi
lea r8, [0x140100be0]
mov qword [rsp + 0x28], rdi
lea rdx, str.Cant_open_clipboard_for_writing.
xor r9d, r9d
mov dword [rsp + 0x20], 9
lea rcx, [0x14012c670]
call fcn.14000ef70
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r15, [rsi + rbx]
xor edi, edi
lea rbx, [rsi + 4]
cmp rbx, r15
ja 0x1400a4402
mov r12d, dword [rsi]
test r12d, r12d
je 0x1400a4402
mov rbp, rbx
add rbx, 4
cmp rbx, r15
ja 0x1400a4402
mov ebp, dword [rbp]
mov rsi, rbx
add rbx, rbp
cmp rbx, r15
ja 0x1400a4402
mov eax, edi
test ebp, ebp
mov ecx, 0x42
sete al
lea edx, [rax + rbp]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1400a451c
test ebp, ebp
je 0x1400a43e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400a4460
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call fcn.1400e16d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, r14
mov ecx, r12d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r15
jbe 0x1400a4372
cmp dword [0x14012cedc], edi
je 0x1400a443a
cmp qword [0x14012cec0], rdi
je 0x1400a4427
mov rcx, qword [0x14012ceb0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14012cec0], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14012cedc], edi
mov qword [0x14012ceb0], rdi
mov eax, 1
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x14012cedc], edi
je 0x1400a44a1
cmp qword [0x14012cec0], rdi
je 0x1400a448e
mov rcx, qword [0x14012ceb0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14012cec0], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14012cedc], edi
mov qword [0x14012ceb0], rdi
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], edi
jne 0x1400a44ed
cmp dword [0x14012cd88], edi
jne 0x1400a44ed
cmp byte [0x140126ada], dil
jne 0x1400a44ed
mov qword [rsp + 0x28], rdi
lea r9, [0x140100be0]
mov r8d, 9
mov qword [rsp + 0x20], rdi
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x14012c670]
call fcn.140010320
jmp 0x1400a443f
mov qword [rsp + 0x28], rdi
lea r8, [0x140100be0]
xor r9d, r9d
mov dword [rsp + 0x20], 9
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x14012c670]
call fcn.14000ef70
jmp 0x1400a443f
cmp dword [0x14012cedc], edi
je 0x1400a4554
cmp qword [0x14012cec0], rdi
je 0x1400a4541
mov rcx, qword [0x14012ceb0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14012cec0], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14012cedc], edi
mov qword [0x14012ceb0], rdi
mov rax, qword [0x14012c4e8]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x14012c670]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call fcn.14000f460
jmp 0x1400a443f