Function at 0x14006e890
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x10]
xor r15d, r15d
test r8, r8
je 0x14006e9e1
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov eax, select
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x40], r15b
lea rcx, [rsp + 0x40]
cmp rcx, rdx
je 0x14006e914
cmp qword [rdx + 0x18], 0x10
jb 0x14006e905
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
call fcn.140061990
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
cmp rax, 0x10
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x68], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov qword [rsp + 0x70], 1
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x68]
lea rdx, [0x14029e6d4]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14006ebc2
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14006ebb8
nop
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14006e998
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14006e970
mov rcx, qword [rsp + 0x30]
jmp 0x14006ebbb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006e9e1
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006e9dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ec3f
call fcn.1400b9f90
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14006ebff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14006ebab
mov rax, qword [rsi + 8]
mov r8, qword [rax]
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x60], 1
lea rcx, [rbp + 0x1b0]
lea rax, [rbp - 0x60]
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14006ea50
mov rax, qword [rax]
mov qword [rcx], rax
lea rcx, [rbp + 0x3c0]
lea rax, [rbp - 0x60]
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14006eac0
mov rax, qword [rax]
mov qword [rcx], rax
mov dword [rsp + 0x60], r8d
mov dword [rsp + 0x64], r15d
lea ecx, [rdi + 1]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3c0]
lea r8, [rbp + 0x1b0]
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14006ebab
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x14006eb70
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14006ebab
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x14006ebab
cmp dword [rsp + 0x38], 0
je 0x14006ebff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x14006ec19
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006ebfb
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ebf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ec3f
call fcn.1400b9f90
xor al, al
jmp 0x14006ec19
mov dword [rsp + 0x30], r15d
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400b9f70
mov rbx, qword [rsp + 0x728]
add rsp, 0x6e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401e40b0
int3