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

Disassembly:
mov r11, rsp
push rbp
push r14
lea rbp, [r11 - 0x618]
sub rsp, 0x708
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov qword [r11 + 0x10], rbx
lea r9, [rsp + 0x3c]
mov qword [r11 + 0x18], rsi
mov ebx, edx
mov qword [r11 - 0x18], rdi
mov r14, 0xffffffffffffffff
mov qword [r11 - 0x20], r12
mov rdi, rcx
mov qword [r11 - 0x28], r15
mov edx, 0xffff
mov r15, r8
mov dword [rsp + 0x3c], 0x20
mov r8d, 0x7008
mov dword [rsp + 0x20], 4
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
mov qword [rbp - 0x80], 1
xorps xmm1, xmm1
lea rcx, [rsp + 0x58]
xor r12d, r12d
mov edx, ebx
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rsp + 0x78], r12
movdqu xmmword [rbp - 0x68], xmm1
call fcn.140001340
cmp qword [rsp + 0x70], 0x10
lea rdx, [rsp + 0x58]
lea r9, [rsp + 0x30]
mov rcx, rdi
cmovae rdx, qword [rsp + 0x58]
lea r8, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140014cff
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140014cf6
nop word [rax + rax]
mov r8d, dword [rdi + 0xc]
xor r9d, r9d
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, r14
jne 0x140014ac4
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, r14
je 0x140014ce4
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], 1
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rdi + 0x10]
mov rcx, rbx
mov rdx, qword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140014d7d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140014cd2
mov rax, qword [r15 + 8]
lea rcx, [rbp + 0x1c0]
mov qword [rbp - 0x48], rbx
mov edx, 4
mov dword [rbp - 0x50], 1
mov r8, qword [rax]
lea rax, [rbp - 0x50]
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140014b60
mov rax, qword [rax]
lea rdx, [rbp + 0x3d0]
mov qword [rcx], rax
lea rax, [rbp - 0x50]
mov ecx, 4
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140014bd0
mov rcx, qword [rax]
mov qword [rdx], rcx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x54], r12d
lea rax, [rsp + 0x50]
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3d0]
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_select]
movsxd rsi, eax
test eax, eax
jns 0x140014c69
call fcn.140031494
cmp dword [rax], 4
je 0x140014c33
test rsi, rsi
jle 0x140014cd2
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140014c93
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140014cd2
lea rax, [rsp + 0x48]
mov dword [rsp + 0x38], r12d
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x48], 4
mov r8d, 0x1007
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x140014cd2
cmp dword [rsp + 0x38], r12d
je 0x140014d7d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140014a80
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x6f0]
mov r12, qword [rsp + 0x6f8]
mov rdi, qword [rsp + 0x700]
mov rsi, qword [rsp + 0x730]
mov rbx, qword [rsp + 0x728]
cmp rdx, 0x10
jb 0x140014d60
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014d5b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014da8
call fcn.1400269cc
mov rax, r14
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140026970
add rsp, 0x708
pop r14
pop rbp
ret
lea r8, [rsp + 0x4c]
mov dword [rsp + 0x4c], r12d
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov r14, rbx
jmp 0x140014cff
call fcn.14002d218
int3