Function at 0x14005ed90
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1e0
mov rsi, rdx
mov rdi, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x40]
mov rbx, r9
movzx ebp, r8w
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14005edcf
mov eax, 0xffffdcd8
jmp 0x14005ee25
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x14005eff2
shr ax, 8
cmp al, 1
jne 0x14005eff2
mov qword [rsp + 0x1f0], r14
mov r8d, reloc.WS2_32.dll_recvfrom
mov r14d, 2
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x14005ee3e
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffdcd8
mov r14, qword [rsp + 0x1f0]
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
movzx ecx, bp
mov word [rdi], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
cmp qword [rsi + 0x18], 0xf
jbe 0x14005ee59
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rdi + 4], eax
mov r8d, 0x1006
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp qword [rbx + 0x18], 0xf
mov r14, rax
jbe 0x14005eea2
mov rbx, qword [rbx]
xor esi, esi
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov dword [rax], esi
lea r8d, [rsi + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
cmp rbx, qword [rsp + 0x38]
jne 0x14005eecd
lea rcx, str.invalid_stoll_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [r14], 0x22
jne 0x14005eee1
lea rcx, str.stoll_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov dword [rdi + 0x428], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x428]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rdi + 0x42c], eax
mov dword [rdi + 0x430], esi
mov dword [rdi + 0x434], 0xaf3c2828
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rdi + 0x10]
cmp eax, 0xffffffff
jne 0x14005ef47
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x62
jmp 0x14005ee1d
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
lea rdx, [rdi + 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8d, 0x410
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x14005efb3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rdi + 0x10]
cmp eax, 0x274c
jne 0x14005ef9d
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffdcdb
jmp 0x14005ee1d
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x63
jmp 0x14005ee1d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [rdi + 0x434]
cmp dword [rdi + 0x24], eax
je 0x14005efda
mov esi, 0xffffdcdc
mov eax, esi
jmp 0x14005ee1d
mov ecx, dword [rdi + 0x430]
mov eax, 0xffffdcdd
cmp dword [rdi + 0x20], ecx
cmovne esi, eax
mov eax, esi
jmp 0x14005ee1d
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffdcd9
jmp 0x14005ee25