Function at 0x14009ea50
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
call fcn.140007840
test eax, eax
jne 0x14009eb67
mov rax, qword [0x14011c188]
cmp dword [rax + 0x60], 0
jne 0x14009eabe
cmp dword [0x140124cb8], 0
jne 0x14009eabe
cmp byte [0x14011ea7a], 0
jne 0x14009eabe
xor edi, edi
lea r9, [0x1400f9b70]
mov qword [rsp + 0x28], rdi
lea rdx, [0x1400fbd20]
lea rcx, [0x1401245b0]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 9]
call fcn.1400106f0
mov edi, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rsi, qword [0x140124c60]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b8374
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea r8, [0x1400f9b70]
mov rcx, rsi
lea rdx, [0x1400fbd20]
mov rbx, rax
call fcn.14000ecc0
mov qword [rbx], rax
test rax, rax
je 0x14009eb25
mov rdx, qword [0x14011c188]
xor edi, edi
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
lea r9d, [rdi + 9]
call fcn.14000f1d0
mov edi, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b836c
mov rax, qword [0x14011c188]
xor edi, edi
cmp qword [rax + 0x58], rdi
jne 0x14009eb5d
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [0x1400fd3d0]
mov edx, 0x10000
call fcn.1400a1a40
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 0x14009ec2f
nop dword [rax]
mov r12d, dword [rsi]
test r12d, r12d
je 0x14009ec2f
mov rax, rbx
add rbx, 4
cmp rbx, r15
ja 0x14009ec2f
mov ebp, dword [rax]
mov rsi, rbx
add rbx, rbp
cmp rbx, r15
ja 0x14009ec2f
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 0x14009edbd
test ebp, ebp
je 0x14009ec16
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14009ec8d
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call fcn.1400ba140
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 0x14009eba0
cmp dword [0x140124e0c], edi
je 0x14009ec67
cmp qword [0x140124df0], rdi
je 0x14009ec54
mov rcx, qword [0x140124de0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124df0], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124e0c], edi
mov qword [0x140124de0], 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 [0x140124e0c], edi
je 0x14009ecce
cmp qword [0x140124df0], rdi
je 0x14009ecbb
mov rcx, qword [0x140124de0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124df0], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124e0c], edi
mov qword [0x140124de0], rdi
mov rax, qword [0x14011c188]
cmp dword [rax + 0x60], edi
jne 0x14009ed1c
cmp dword [0x140124cb8], edi
jne 0x14009ed1c
cmp byte [0x14011ea7a], dil
jne 0x14009ed1c
mov qword [rsp + 0x28], rdi
lea r9, [0x1400f9b70]
mov r8d, 9
mov qword [rsp + 0x20], rdi
lea rdx, [0x1400fbcd0]
lea rcx, [0x1401245b0]
call fcn.1400106f0
mov edi, eax
jmp 0x14009ec6c
mov rsi, qword [0x140124c60]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b8374
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea r8, [0x1400f9b70]
mov rcx, rsi
lea rdx, [0x1400fbcd0]
mov rbx, rax
call fcn.14000ecc0
mov qword [rbx], rax
test rax, rax
je 0x14009ed80
mov rdx, qword [0x14011c188]
mov r9d, 9
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
call fcn.14000f1d0
mov edi, eax
jmp 0x14009ec6c
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b836c
mov rax, qword [0x14011c188]
cmp qword [rax + 0x58], rdi
jne 0x14009edb6
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [0x1400fd3d0]
mov edx, 0x10000
call fcn.1400a1a40
mov eax, edi
jmp 0x14009ec6c
cmp dword [0x140124e0c], edi
je 0x14009edf5
cmp qword [0x140124df0], rdi
je 0x14009ede2
mov rcx, qword [0x140124de0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124df0], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124e0c], edi
mov qword [0x140124de0], rdi
mov rax, qword [0x140124438]
lea rdx, [0x1400fd9b0]
mov qword [rsp + 0x28], rax
lea rcx, [0x1401245b0]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call fcn.14000f6f0
jmp 0x14009ec6c