Function at 0x1400070c0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x140127e78]
mov rbx, r8
mov rsi, rdx
test rcx, rcx
jne 0x140007172
xor edi, edi
test rdx, rdx
je 0x1400072cb
mov eax, 0xffffffff
cmp rbx, rax
jne 0x140007112
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x140007107
mov ebx, eax
test rbx, rbx
je 0x1400072cb
lea r14, [rbx + 1]
test r14, r14
je 0x140007172
test rcx, rcx
jne 0x1400072af
lea rdx, [r14 + r14]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x140127e68], rax
test rax, rax
jne 0x14000718a
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.14000f850
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [0x140127e78], rax
test rax, rax
jne 0x14000729e
mov rcx, qword [0x140127e68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140127e68], rax
mov rax, qword [0x14011f188]
cmp dword [rax + 0x60], edi
jne 0x140007200
cmp dword [0x140127d38], edi
jne 0x140007200
cmp byte [0x140121a8a], dil
jne 0x140007200
mov qword [rsp + 0x28], rdi
lea r9, [0x1400fbbd0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140127620]
call fcn.140010850
jmp 0x140007172
mov rsi, qword [0x140127cd8]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b9c34
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r8, [0x1400fbbd0]
mov rcx, rsi
lea rdx, str.An_internal_function_call_failed.
mov rbx, rax
call fcn.14000ed70
mov qword [rbx], rax
test rax, rax
je 0x14000725f
mov rdx, qword [0x14011f188]
xor r9d, r9d
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
call fcn.14000f2c0
jmp 0x140007172
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b9c2c
mov rax, qword [0x14011f188]
cmp qword [rax + 0x58], rdi
jne 0x140007172
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.1400a34c0
jmp 0x140007172
mov dword [0x140127e88], r14d
mov word [rax], di
mov rcx, qword [0x140127e78]
mov r14, rcx
test rcx, rcx
je 0x140007172
mov r8, rbx
mov rdx, rsi
call fcn.1400cee14
mov word [r14 + rbx*2], di
cmp dword [0x140127e8c], edi
jne 0x1400072ed
call fcn.140007870
test eax, eax
jne 0x1400072ed
lea rdx, str.Cant_open_clipboard_for_writing.
call fcn.140007440
jmp 0x140007174
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140007340
cmp dword [0x140127e8c], edi
je 0x14000732f
cmp qword [0x140127e70], rdi
je 0x14000731c
mov rcx, qword [0x140127e60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140127e8c], edi
mov qword [0x140127e60], rdi
lea rdx, [0x1400fddc8]
call fcn.140007440
jmp 0x140007174
mov rdx, qword [0x140127e68]
test rdx, rdx
je 0x14000738a
mov rbx, qword [0x140127e78]
test rbx, rbx
je 0x1400073d3
movzx ebx, word [rbx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e78], rdi
mov dword [0x140127e88], edi
test bx, bx
jne 0x1400073cc
mov rcx, qword [0x140127e68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140127e68], rax
cmp dword [0x140127e8c], edi
je 0x1400073c2
cmp qword [0x140127e70], rdi
je 0x1400073af
mov rcx, qword [0x140127e60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140127e8c], edi
mov qword [0x140127e60], rdi
mov eax, 1
jmp 0x140007174
mov rdx, qword [0x140127e68]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400073ec
mov qword [0x140127e68], rdi
jmp 0x14000738a
cmp dword [0x140127e8c], edi
je 0x140007424
cmp qword [0x140127e70], rdi
je 0x140007411
mov rcx, qword [0x140127e60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140127e70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140127e8c], edi
mov qword [0x140127e60], rdi
lea rdx, [0x1400fdde8]
call fcn.140007440
jmp 0x140007174