Function at 0x140006ff0
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 [0x140124d78]
mov rbx, r8
mov rsi, rdx
test rcx, rcx
jne 0x1400070a2
xor edi, edi
test rdx, rdx
je 0x1400071fb
mov eax, 0xffffffff
cmp rbx, rax
jne 0x140007042
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x140007037
mov ebx, eax
test rbx, rbx
je 0x1400071fb
lea r14, [rbx + 1]
test r14, r14
je 0x1400070a2
test rcx, rcx
jne 0x1400071df
lea rdx, [r14 + r14]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x140124d68], rax
test rax, rax
jne 0x1400070ba
mov rax, qword [0x1401243b8]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x140124530]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call fcn.14000f6b0
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 [0x140124d78], rax
test rax, rax
jne 0x1400071ce
mov rcx, qword [0x140124d68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140124d68], rax
mov rax, qword [0x14011c188]
cmp dword [rax + 0x60], edi
jne 0x140007130
cmp dword [0x140124c38], edi
jne 0x140007130
cmp byte [0x14011ea7a], dil
jne 0x140007130
mov qword [rsp + 0x28], rdi
lea r9, [0x1400f9b50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140124530]
call fcn.1400106a0
jmp 0x1400070a2
mov rsi, qword [0x140124be0]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b7ac4
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r8, [0x1400f9b50]
mov rcx, rsi
lea rdx, str.An_internal_function_call_failed.
mov rbx, rax
call fcn.14000ec80
mov qword [rbx], rax
test rax, rax
je 0x14000718f
mov rdx, qword [0x14011c188]
xor r9d, r9d
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
call fcn.14000f190
jmp 0x1400070a2
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b7abc
mov rax, qword [0x14011c188]
cmp qword [rax + 0x58], rdi
jne 0x1400070a2
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.1400a1190
jmp 0x1400070a2
mov dword [0x140124d88], r14d
mov word [rax], di
mov rcx, qword [0x140124d78]
mov r14, rcx
test rcx, rcx
je 0x1400070a2
mov r8, rbx
mov rdx, rsi
call fcn.1400cd014
mov word [r14 + rbx*2], di
cmp dword [0x140124d8c], edi
jne 0x14000721d
call fcn.1400077a0
test eax, eax
jne 0x14000721d
lea rdx, str.Cant_open_clipboard_for_writing.
call fcn.140007370
jmp 0x1400070a4
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140007270
cmp dword [0x140124d8c], edi
je 0x14000725f
cmp qword [0x140124d70], rdi
je 0x14000724c
mov rcx, qword [0x140124d60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124d8c], edi
mov qword [0x140124d60], rdi
lea rdx, [0x1400fbd48]
call fcn.140007370
jmp 0x1400070a4
mov rdx, qword [0x140124d68]
test rdx, rdx
je 0x1400072ba
mov rax, qword [0x140124d78]
test rax, rax
je 0x140007303
movzx ebx, word [rax]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d78], rdi
mov dword [0x140124d88], edi
test bx, bx
jne 0x1400072fc
mov rcx, qword [0x140124d68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140124d68], rax
cmp dword [0x140124d8c], edi
je 0x1400072f2
cmp qword [0x140124d70], rdi
je 0x1400072df
mov rcx, qword [0x140124d60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124d8c], edi
mov qword [0x140124d60], rdi
mov eax, 1
jmp 0x1400070a4
mov rdx, qword [0x140124d68]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000731c
mov qword [0x140124d68], rdi
jmp 0x1400072ba
cmp dword [0x140124d8c], edi
je 0x140007354
cmp qword [0x140124d70], rdi
je 0x140007341
mov rcx, qword [0x140124d60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124d8c], edi
mov qword [0x140124d60], rdi
lea rdx, [0x1400fbd68]
call fcn.140007370
jmp 0x1400070a4