Function at 0x1400a0710
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
call fcn.140007870
test eax, eax
jne 0x1400a0822
mov rax, qword [0x14011f188]
cmp dword [rax + 0x60], 0
jne 0x1400a077c
cmp dword [0x140127d30], 0
jne 0x1400a077c
cmp byte [0x140121a8a], 0
jne 0x1400a077c
xor edi, edi
lea r9, [0x1400fbbd0]
mov qword [rsp + 0x28], rdi
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x140127620]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 9]
call fcn.140010840
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rsi, qword [0x140127cd0]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b9e64
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea r8, [0x1400fbbd0]
mov rcx, rsi
lea rdx, str.Cant_open_clipboard_for_writing.
mov rbx, rax
call fcn.14000ed60
mov qword [rbx], rax
test rax, rax
je 0x1400a07e0
mov rdx, qword [0x14011f188]
xor edi, edi
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
lea r9d, [rdi + 9]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
jmp fcn.14000f2b0
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b9e5c
mov rax, qword [0x14011f188]
xor edi, edi
cmp qword [rax + 0x58], rdi
jne 0x1400a0818
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, str.Out_of_memory.__The_current_thread_will_exit.
mov edx, 0x10000
call fcn.1400a36c0
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], 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 0x1400a08e4
mov r12d, dword [rsi]
test r12d, r12d
je 0x1400a08e4
mov rbp, rbx
add rbx, 4
cmp rbx, r15
ja 0x1400a08e4
mov ebp, dword [rbp]
mov rsi, rbx
add rbx, rbp
cmp rbx, r15
ja 0x1400a08e4
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 0x1400a0a72
test ebp, ebp
je 0x1400a08cb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400a0942
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call fcn.1400bbc40
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 0x1400a0854
cmp dword [0x140127e84], edi
je 0x1400a091c
cmp qword [0x140127e68], rdi
je 0x1400a0909
mov rcx, qword [0x140127e58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e68], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140127e84], edi
mov qword [0x140127e58], rdi
mov eax, 1
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x78]
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 [0x140127e84], edi
je 0x1400a0983
cmp qword [0x140127e68], rdi
je 0x1400a0970
mov rcx, qword [0x140127e58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e68], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140127e84], edi
mov qword [0x140127e58], rdi
mov rax, qword [0x14011f188]
cmp dword [rax + 0x60], edi
jne 0x1400a09d1
cmp dword [0x140127d30], edi
jne 0x1400a09d1
cmp byte [0x140121a8a], dil
jne 0x1400a09d1
mov qword [rsp + 0x28], rdi
lea r9, [0x1400fbbd0]
mov r8d, 9
mov qword [rsp + 0x20], rdi
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140127620]
call fcn.140010840
mov edi, eax
jmp 0x1400a0921
mov rsi, qword [0x140127cd0]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b9e64
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea r8, [0x1400fbbd0]
mov rcx, rsi
lea rdx, str.An_internal_function_call_failed.
mov rbx, rax
call fcn.14000ed60
mov qword [rbx], rax
test rax, rax
je 0x1400a0a35
mov rdx, qword [0x14011f188]
mov r9d, 9
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
call fcn.14000f2b0
mov edi, eax
jmp 0x1400a0921
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b9e5c
mov rax, qword [0x14011f188]
cmp qword [rax + 0x58], rdi
jne 0x1400a0a6b
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, str.Out_of_memory.__The_current_thread_will_exit.
mov edx, 0x10000
call fcn.1400a36c0
mov eax, edi
jmp 0x1400a0921
cmp dword [0x140127e84], edi
je 0x1400a0aaa
cmp qword [0x140127e68], rdi
je 0x1400a0a97
mov rcx, qword [0x140127e58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e68], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140127e84], edi
mov qword [0x140127e58], rdi
mov rax, qword [0x140127498]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x140127620]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call fcn.14000f840
jmp 0x1400a0921