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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov edi, r9d
mov dword [rsp + 0x30], 0x20
mov rbx, r8
mov dword [rsp + 0x20], 4
mov esi, edx
lea r9, [rsp + 0x30]
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 + 0x78], 1
xorps xmm1, xmm1
mov dword [rsp + 0x70], edi
xor r12d, r12d
lea rcx, [rsp + 0x50]
mov edx, esi
mov dword [rsp + 0x74], r12d
movdqu xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
call fcn.14001a290
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov rcx, r14
cmovae rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140008101
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1400080f8
nop word [rax + rax]
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, r15
je 0x1400080e6
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rax
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 0x140008159
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400080d4
mov r8, qword [rbx + 0x30]
lea rdx, [rbp + 0x1b0]
mov qword [rbp - 0x58], rdi
lea rax, [rbp - 0x60]
mov dword [rbp - 0x60], 1
mov ecx, 4
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 0x140007f70
mov rcx, qword [rax]
lea rax, [rbp - 0x60]
mov qword [rdx], rcx
lea rcx, [rbp + 0x3c0]
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 0x140007fe0
mov rax, qword [rax]
lea r9, [rbp + 0x3c0]
mov qword [rcx], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], r8d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1b0]
mov dword [rsp + 0x4c], r12d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1400080d4
lea rdx, [rbp - 0x60]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14000808f
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400080d4
lea rax, [rsp + 0x38]
mov dword [rbp + 0x618], r12d
lea r9, [rbp + 0x618]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x38], 4
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x1400080d4
cmp dword [rbp + 0x618], r12d
je 0x140008159
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 0x140007ef0
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000813a
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008135
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008181
call fcn.140064b64
lea r11, [rsp + 0x6d0]
mov rax, r15
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x3c], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov r15, rdi
jmp 0x140008101
call fcn.140085a9c
int3