Function at 0x1400070f0
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 0x1400071a2
xor edi, edi
test rdx, rdx
je 0x1400072fb
mov eax, 0xffffffff
cmp rbx, rax
jne 0x140007142
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x140007137
mov ebx, eax
test rbx, rbx
je 0x1400072fb
lea r14, [rbx + 1]
test r14, r14
je 0x1400071a2
test rcx, rcx
jne 0x1400072df
lea rdx, [r14 + r14]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x140127e68], rax
test rax, rax
jne 0x1400071ba
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.14000f880
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 0x1400072ce
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 0x140007230
cmp dword [0x140127d38], edi
jne 0x140007230
cmp byte [0x140121a8a], dil
jne 0x140007230
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.140010880
jmp 0x1400071a2
mov rsi, qword [0x140127cd8]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b9b84
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.14000eda0
mov qword [rbx], rax
test rax, rax
je 0x14000728f
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.14000f2f0
jmp 0x1400071a2
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b9b7c
mov rax, qword [0x14011f188]
cmp qword [rax + 0x58], rdi
jne 0x1400071a2
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.1400a3410
jmp 0x1400071a2
mov dword [0x140127e88], r14d
mov word [rax], di
mov rcx, qword [0x140127e78]
mov r14, rcx
test rcx, rcx
je 0x1400071a2
mov r8, rbx
mov rdx, rsi
call fcn.1400ced64
mov word [r14 + rbx*2], di
cmp dword [0x140127e8c], edi
jne 0x14000731d
call fcn.1400078a0
test eax, eax
jne 0x14000731d
lea rdx, str.Cant_open_clipboard_for_writing.
call fcn.140007470
jmp 0x1400071a4
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140007370
cmp dword [0x140127e8c], edi
je 0x14000735f
cmp qword [0x140127e70], rdi
je 0x14000734c
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.140007470
jmp 0x1400071a4
mov rdx, qword [0x140127e68]
test rdx, rdx
je 0x1400073ba
mov rbx, qword [0x140127e78]
test rbx, rbx
je 0x140007403
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 0x1400073fc
mov rcx, qword [0x140127e68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140127e68], rax
cmp dword [0x140127e8c], edi
je 0x1400073f2
cmp qword [0x140127e70], rdi
je 0x1400073df
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 0x1400071a4
mov rdx, qword [0x140127e68]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000741c
mov qword [0x140127e68], rdi
jmp 0x1400073ba
cmp dword [0x140127e8c], edi
je 0x140007454
cmp qword [0x140127e70], rdi
je 0x140007441
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.140007470
jmp 0x1400071a4