Function at 0x18001fe40
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x30]
mov rax, qword [0x180046f28]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x1800e32d9]
call fcn.180031cb0
mov dword [rbp], 0
mov eax, 0xffff
mov word [rbp + 8], ax
lea rax, [rbp + 0xa]
mov rdi, rax
xor eax, eax
mov ecx, select
rep stosb byte [rdi], al
mov dword [rbp + 0x18], 1
mov dword [rbp + 0x1c], 0xffffffff
mov eax, 1
imul rax, rax, 0
mov qword [rbp + 0x218], rax
cmp qword [rbp + 0x218], 0xc8
jae 0x18001febd
jmp 0x18001fec2
call fcn.180031688
lea rax, [0x1800ae700]
mov rcx, qword [rbp + 0x218]
mov byte [rax + rcx], 0
lea rdx, [rbp + 0x30]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], 0
je 0x18001ff21
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x24], eax
mov ecx, dword [rbp + 0x24]
call fcn.180020720
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x24]
lea r8, str.TCP_IP_stack_initialization_failed_n_error_code:__i__s_n
mov edx, 0xc7
lea rcx, [0x1800ae700]
call fcn.180020620
xor al, al
jmp 0x18002023b
lea rcx, [fcn.18001fd70]
call fcn.180032194
cmp qword [rbp + 0x250], 0
je 0x18001ff43
mov rcx, qword [rbp + 0x250]
call fcn.180020260
call fcn.180024b40
mov dword [rbp + 0x1d0], eax
cmp dword [rbp + 0x1d0], 0
jne 0x18001ffb4
call fcn.180020450
mov dword [rbp + 0x1d0], eax
cmp dword [rbp + 0x1d0], 0xffffffff
jne 0x18001ffa9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x24], eax
mov ecx, dword [rbp + 0x24]
call fcn.180020720
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x24]
lea r8, str.Get_host_address_failed_n_error_code:__i__s_n
mov edx, 0xc7
lea rcx, [0x1800ae700]
call fcn.180020620
call fcn.18001fd70
xor al, al
jmp 0x18002023b
mov ecx, dword [rbp + 0x1d0]
call fcn.180025580
movzx eax, byte [0x18004bec8]
test eax, eax
je 0x18001fff5
mov ecx, dword [rbp + 0x1d0]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp + 0x220], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, qword [rbp + 0x220]
mov r8, rcx
lea rdx, str.IP_Address:__s_n
mov rcx, rax
call fcn.180001270
call fcn.180024b70
test eax, eax
jne 0x180020009
mov ecx, dword [rbp + 0x1d0]
call fcn.1800205a0
movzx eax, byte [0x18004bec8]
test eax, eax
je 0x1800200b2
call fcn.180024b70
mov dword [rbp + 0x1d4], eax
mov ecx, dword [rbp + 0x1d4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp + 0x220], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, qword [rbp + 0x220]
mov r8, rcx
lea rdx, str.IP_Broadcast_Address:__s_n
mov rcx, rax
call fcn.180001270
call fcn.180024d30
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbp + 0x220], eax
call fcn.180024d30
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbp + 0x224], eax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov ecx, dword [rbp + 0x220]
mov r9d, ecx
mov ecx, dword [rbp + 0x224]
mov r8d, ecx
lea rdx, str.UDP_Port:_0x_04X___hu__n
mov rcx, rax
call fcn.180001270
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rbp + 0x1c], eax
mov ecx, dword [rbp + 0x1c]
call fcn.180025610
cmp dword [rbp + 0x1c], 0
jge 0x1800200fd
lea r8, str.bip:_failed_to_allocate_a_socket._n
mov edx, 0xc7
lea rcx, [0x1800ae700]
call fcn.180020620
call fcn.18001fd70
xor al, al
jmp 0x18002023b
movsxd rax, dword [rbp + 0x1c]
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x18]
mov r8d, 4
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp], eax
cmp dword [rbp], 0
jge 0x18002014e
lea r8, str.bip:_failed_to_set_REUSEADDR_socket_option._n
mov edx, 0xc7
lea rcx, [0x1800ae700]
call fcn.180020620
call fcn.18001fd70
xor al, al
jmp 0x18002023b
movsxd rax, dword [rbp + 0x1c]
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x18]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp], eax
cmp dword [rbp], 0
jge 0x18002019f
lea r8, str.bip:_failed_to_set_BROADCAST_socket_option._n
mov edx, 0xc7
lea rcx, [0x1800ae700]
call fcn.180020620
call fcn.18001fd70
xor al, al
jmp 0x18002023b
mov eax, 2
mov word [rbp + 8], ax
mov eax, dword [rbp + 0x1d0]
mov dword [rbp + 0xc], eax
call fcn.180024d30
mov word [rbp + 0xa], ax
mov r8d, 8
xor edx, edx
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
movsxd rax, dword [rbp + 0x1c]
mov r8d, setsockopt
lea rdx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp], eax
cmp dword [rbp], 0
jge 0x180020239
call fcn.180024d30
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbp + 0x220], eax
mov ecx, dword [rbp + 0xc]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [rbp + 0x220]
mov dword [rsp + 0x20], ecx
mov r9, rax
lea r8, str.bip:_failed_to_bind_to__s_port__hu_n
mov edx, 0xc7
lea rcx, [0x1800ae700]
call fcn.180020620
call fcn.18001fd70
xor al, al
jmp 0x18002023b
mov al, 1
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.180031560
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret