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

Disassembly:
jmp 0x140018780
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov rdi, rsp
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [0x1400c53c0]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x50], 0
mov r8d, send
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x110]
mov qword [rcx + 0x58], rax
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x58], 0xffffffffffffffff
jne 0x140018801
xor eax, eax
jmp 0x140018abe
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x64]
mov edx, 0x9800000c
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0xfffffffb
mov edx, 0xffff
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 4
mov edx, 0xffff
mov rax, qword [rsp + 0x110]
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 + 0x110]
mov qword [rcx + 0x60], rax
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x118]
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 + 0x118]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xa0]
inc eax
cdqe
mov rcx, rax
call fcn.140026db0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x118]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140026ed0
cmp qword [rsp + 0x98], 0
jne 0x1400189eb
xor eax, eax
jmp 0x140018abe
mov eax, 2
mov word [rsp + 0xb8], ax
movzx ecx, word [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xba], ax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0xbc], eax
mov r8d, gethostbyname
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x60]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140018aba
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xb8]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 0
je 0x140018aa4
cmp dword [rsp + 0xd4], 0xffffffff
jne 0x140018a97
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140018aa4
mov dword [rsp + 0xf0], 0
jmp 0x140018aaf
mov dword [rsp + 0xf0], 1
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400290a0
mov rax, rdi
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14002a4b0
add rsp, 0x100
pop rdi
ret