Function at 0x14027afc0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rax, qword [r8 + 0xe8]
mov r12, r8
mov qword [rsp + 0x20], rax
mov ebp, ecx
test ecx, ecx
jne 0x14027b111
mov rbx, qword [r8 + 0x20]
xor r14d, r14d
xor r15d, r15d
test rbx, rbx
je 0x14027b0f4
mov rcx, qword [rbx + 0x18]
xor edx, edx
test rcx, rcx
je 0x14027b010
call sub.msvcrt.dll_wcslen
lea rdx, [rax + 1]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x14027b028
mov r13d, 0x1c
cmp eax, 0x17
je 0x14027b02e
jmp 0x14027b0eb
mov r13d, 0x10
cmp qword [rbx + 0x20], 0
je 0x14027b0eb
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14027b0eb
cmp rax, r13
jb 0x14027b0eb
mov rax, qword [0x14037a0e0]
mov qword [rsp + 0x28], rdx
lea rcx, [r13 + rdx + 0x30]
call qword [rax]
test rax, rax
je 0x14027b20b
mov ecx, dword [rbx]
mov rdx, qword [rsp + 0x28]
lea r8, [rax + 0x30]
mov rsi, qword [rbx + 0x20]
mov rdi, r8
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0x10], r13d
mov dword [rax + 0xc], ecx
mov rcx, r13
mov qword [rax + 0x18], 0
mov qword [rax + 0x28], 0
mov qword [rax + 0x20], r8
rep movsb byte [rdi], byte [rsi]
test rdx, rdx
je 0x14027b0d8
mov qword [rax + 0x18], rdi
mov r10, qword [rbx + 0x18]
mov r8, qword [rax + 0x18]
mov r10w, word [r10 + rcx*2]
mov byte [r8 + rcx], r10b
inc rcx
cmp rdx, rcx
jne 0x14027b0b7
mov rcx, qword [rax + 0x18]
mov byte [rcx + rdx], 0
test r15, r15
cmove r15, rax
test r14, r14
je 0x14027b0e8
mov qword [r14 + 0x28], rax
mov r14, rax
mov rbx, qword [rbx + 0x40]
jmp 0x14027aff3
test r15, r15
jne 0x14027b109
mov ecx, 0x2af9
mov ebp, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12 + 0xb0], r15
mov rcx, qword [r12 + 0x20]
test rcx, rcx
je 0x14027b12d
mov rax, qword [0x14037a060]
call qword [rax]
mov qword [r12 + 0x20], 0
test ebp, ebp
je 0x14027b15c
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
test eax, eax
je 0x14027b146
call rbx
mov ebp, eax
test eax, eax
je 0x14027b150
mov dword [r12 + 0xa8], ebp
jmp 0x14027b15c
mov dword [r12 + 0xa8], 8
mov rcx, qword [r12 + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [r12 + 0x80], 0
je 0x14027b1aa
mov rcx, qword [r12 + 0x78]
call rbx
mov rcx, r12
call fcn.14025a1c0
mov rax, qword [0x14037a0d0]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rcx, qword [r12 + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x14027b1e3
xor r9d, r9d
mov byte [rsp + 0x3f], 1
lea rdx, [rsp + 0x3f]
mov r8d, 1
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14027b1e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r12 + 0xa8], eax
mov rcx, qword [r12 + 0x78]
mov dword [r12 + 0x80], 1
call rbx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x14027b220
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14027b220
mov rcx, r15
mov ebp, 8
xor r15d, r15d
call fcn.140232e20
jmp 0x14027b109
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret