Function at 0x14005f270
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 + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
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
jne 0x14005f488
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x14005f481
shr ax, 8
cmp al, 1
jne 0x14005f481
mov r14d, 2
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x14005f488
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 0x14005f30c
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 0x14005f355
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 0x14005f380
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 0x14005f394
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 0x14005f3f4
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x62
jmp 0x14005f48d
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 0x14005f44e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rdi + 0x10]
cmp eax, 0x274c
jne 0x14005f441
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffdcdb
jmp 0x14005f48d
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x63
jmp 0x14005f48d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rdi + 0x434]
cmp dword [rdi + 0x24], eax
je 0x14005f46c
mov esi, 0xffffdcdc
mov eax, esi
jmp 0x14005f48d
mov ecx, dword [rdi + 0x430]
mov eax, 0xffffdcdd
cmp dword [rdi + 0x20], ecx
cmovne esi, eax
mov eax, esi
jmp 0x14005f48d
mov eax, 0xffffdcd9
jmp 0x14005f48d
mov eax, 0xffffdcd8
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret