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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x1400a82e8]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov esi, r9d
mov dword [rsp + 0x34], 0x20
mov rbx, r8
mov dword [rsp + 0x20], 4
mov edi, edx
lea r9, [rsp + 0x34]
mov r14, rcx
mov r15, 0xffffffffffffffff
mov rcx, r15
mov edx, 0xffff
mov r8d, 0x7008
call qword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
mov qword [rsp + 0x60], 1
xorps xmm1, xmm1
mov dword [rsp + 0x58], esi
xor r12d, r12d
lea rcx, [rbp - 0x78]
mov edx, edi
mov dword [rsp + 0x5c], r12d
movdqu xmmword [rsp + 0x68], xmm0
movdqu xmmword [rsp + 0x78], xmm1
call fcn.1400383b0
cmp qword [rbp - 0x60], 0x10
lea rdx, [rbp - 0x78]
lea r9, [rsp + 0x48]
mov rcx, r14
cmovae rdx, qword [rbp - 0x78]
lea r8, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14003ff67
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14003ff5e
nop word [rax + rax]
mov r8d, dword [rsi + 0xc]
xor r9d, r9d
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, r15
je 0x14003ff4c
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x3c], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsi + 0x10]
mov rcx, rdi
mov rdx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14003ffa0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14003ff3a
mov r8, qword [rbx + 0x30]
lea rdx, [rbp + 0x1c0]
mov qword [rbp - 0x48], rdi
lea rax, [rbp - 0x50]
mov dword [rbp - 0x50], 1
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 0x14003fde0
mov rcx, qword [rax]
lea rax, [rbp - 0x50]
mov qword [rdx], rcx
lea rcx, [rbp + 0x3d0]
mov edx, 4
nop dword [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 0x14003fe50
mov rax, qword [rax]
lea r9, [rbp + 0x3d0]
mov qword [rcx], rax
lea rdx, [rbp - 0x50]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r8d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1c0]
mov dword [rsp + 0x54], r12d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14003ff3a
lea rdx, [rbp - 0x50]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14003feff
lea rdx, [rbp + 0x1c0]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14003ff3a
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x40], 4
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x14003ff3a
cmp dword [rsp + 0x30], r12d
je 0x14003ffa0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14003fd20
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x14003ffcd
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ffc8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003ffc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov r15, rdi
jmp 0x14003ff67
call fcn.14006b2ac
mov rax, r15
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.14006b910
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret