Function at 0x140008440
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x60], 0
mov r8d, select
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x58], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x58], 0xffffffffffffffff
jne 0x1400084a9
xor eax, eax
jmp 0x140008739
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x50]
mov edx, 0x9800000c
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 0xfffffffb
mov edx, 0xffff
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 4
mov edx, 0xffff
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x60], rax
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0xc8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
inc eax
cdqe
mov rcx, rax
call fcn.14000e5d4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0xc8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14000e564
cmp qword [rsp + 0x70], 0
jne 0x140008671
xor eax, eax
jmp 0x140008739
mov eax, 2
mov word [rsp + 0x90], ax
movzx ecx, word [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x92], ax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x94], eax
mov r8d, gethostbyname
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140008735
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x90]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140008725
cmp dword [rsp + 0x58], 0xffffffff
jne 0x14000871b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140008725
mov dword [rsp + 0x5c], 0
jmp 0x14000872d
mov dword [rsp + 0x5c], 1
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14000e220
add rsp, 0xb8
ret