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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140142248]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor r15d, r15d
mov dword [rsp + 0x48], 0x780001
mov r12d, 1
mov qword [rsp + 0x40], r15
mov r14, r8
mov dword [rsp + 0x4c], r12d
mov rsi, rdx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov qword [rsp + 0x58], r15
xorps xmm0, xmm0
lea rcx, [rbp - 0x70]
xorps xmm1, xmm1
lea rbx, [r12 - 2]
xor edx, edx
mov r8d, 0x208
movdqu xmmword [rsp + 0x68], xmm0
movdqu xmmword [rsp + 0x78], xmm1
call fcn.1400a5760
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.1400a5760
lea r9, [rsp + 0x40]
mov dword [rsp + 0x60], r12d
lea r8, [rsp + 0x58]
mov dword [rsp + 0x64], 6
mov rdx, rsi
mov qword [r14], r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14001db73
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x50], setsockopt
test rdi, rdi
je 0x14001db00
nop dword [rax]
mov r8d, dword [rdi + 0xc]
xor r9d, r9d
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001db73
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x20], 4
mov r8d, r12d
mov edx, 0xffff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x4c]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rdi + 0x10]
xor r9d, r9d
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x14001daa1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001daea
lea rax, [rsp + 0x50]
mov dword [rbp + 0x1a0], r15d
lea r9, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov qword [rbp - 0x68], rbx
xor edx, edx
mov dword [rbp - 0x70], r12d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
inc eax
cmp eax, r12d
jbe 0x14001daea
lea rdx, [rbp + 0x1a0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001db2a
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14001d9f0
mov rcx, qword [r14]
test rcx, rcx
je 0x14001db19
mov edx, 0x180
call fcn.140062950
mov qword [r14], 0x8123
cmp rbx, 0xffffffffffffffff
je 0x14001db79
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14001db79
mov ecx, 0x180
call fcn.140062720
mov rdi, rax
test rax, rax
je 0x14001db52
lea rcx, [rax + 8]
mov qword [rax], r15
xor edx, edx
mov r8d, 0x178
call fcn.1400a5760
jmp 0x14001db55
mov rdi, r15
mov qword [r14], rdi
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, qword [r14]
mov qword [rcx + 0x18], rax
mov rax, qword [r14]
cmp qword [rax + 0x18], r15
je 0x14001db00
mov rax, rbx
jmp 0x14001db80
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400a3970
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret