Function at 0x1400a8de0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
call fcn.140007760
test eax, eax
jne 0x1400a8e91
cmp byte [0x14012bd85], al
je 0x1400a8e0f
xor edi, edi
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [0x140129398]
cmp dword [rax + 0x60], 0
jne 0x1400a8e5d
cmp dword [0x1401320c8], 0
jne 0x1400a8e5d
cmp byte [0x14012bd0a], 0
jne 0x1400a8e5d
xor edi, edi
lea r9, [0x140104c70]
mov r8d, 9
mov qword [rsp + 0x20], rdi
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x1401319c0]
call fcn.140010e80
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor edi, edi
lea r8, [0x140104c70]
mov qword [rsp + 0x28], rdi
lea rdx, str.Cant_open_clipboard_for_writing.
xor r9d, r9d
mov dword [rsp + 0x20], 9
lea rcx, [0x1401319c0]
call fcn.14000f7a0
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 0x1400a8f53
mov r12d, dword [rsi]
test r12d, r12d
je 0x1400a8f53
mov rbp, rbx
add rbx, 4
cmp rbx, r15
ja 0x1400a8f53
mov ebp, dword [rbp]
mov rsi, rbx
add rbx, rbp
cmp rbx, r15
ja 0x1400a8f53
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 0x1400a9077
test ebp, ebp
je 0x1400a8f3a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400a8fb1
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call fcn.1400e5b10
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 0x1400a8ec3
cmp dword [0x14013221c], edi
je 0x1400a8f8b
cmp qword [0x140132200], rdi
je 0x1400a8f78
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], edi
mov qword [0x1401321f0], 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 [0x14013221c], edi
je 0x1400a8ff2
cmp qword [0x140132200], rdi
je 0x1400a8fdf
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], edi
mov qword [0x1401321f0], rdi
cmp byte [0x14012bd85], dil
jne 0x1400a9070
mov rax, qword [0x140129398]
cmp dword [rax + 0x60], edi
jne 0x1400a9044
cmp dword [0x1401320c8], edi
jne 0x1400a9044
cmp byte [0x14012bd0a], dil
jne 0x1400a9044
lea r9, [0x140104c70]
mov qword [rsp + 0x20], rdi
mov r8d, 9
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1401319c0]
call fcn.140010e80
mov edi, eax
jmp 0x1400a8f90
mov qword [rsp + 0x28], rdi
lea r8, [0x140104c70]
xor r9d, r9d
mov dword [rsp + 0x20], 9
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1401319c0]
call fcn.14000f7a0
mov edi, eax
mov eax, edi
jmp 0x1400a8f90
cmp dword [0x14013221c], edi
je 0x1400a90af
cmp qword [0x140132200], rdi
je 0x1400a909c
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], edi
mov qword [0x1401321f0], rdi
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], rdi
xor r8d, r8d
call fcn.14000fec0
jmp 0x1400a8f90