Function at 0x180059e50
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1800f8370]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
call fcn.1800197e0
nop
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x180059f73
mov byte [rsp + 0x80], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0xc8], eax
mov edx, dword [rsp + 0xc8]
lea rcx, [rsp + 0xf0]
call fcn.18001db00
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x58]
lea rdx, str.create_udp_socket_error:
lea rcx, [rsp + 0x150]
call fcn.18000df20
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.18000e300
lea rcx, [rsp + 0x150]
call fcn.180007220
nop
lea rcx, [rsp + 0xf0]
call fcn.180007220
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x198]
call fcn.180019730
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x80]
call fcn.180019c50
mov rax, qword [rsp + 0x198]
jmp 0x18005a15a
mov dword [rsp + 0x40], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [rsp + 0xe0], ax
mov rax, qword [rsp + 0x190]
movzx ecx, word [rax + 0x102]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xe2], ax
mov rax, qword [rsp + 0x190]
add rax, 0xe0
mov rcx, rax
call fcn.18000ab90
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0xe4], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x18005a0f8
mov byte [rsp + 0x80], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0xc8], eax
mov edx, dword [rsp + 0xc8]
lea rcx, [rsp + 0x110]
call fcn.18001db00
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x48]
lea rdx, str.bind_error:
lea rcx, [rsp + 0x130]
call fcn.18000df20
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
call fcn.18000e300
lea rcx, [rsp + 0x130]
call fcn.180007220
nop
lea rcx, [rsp + 0x110]
call fcn.180007220
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x198]
call fcn.180019730
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x80]
call fcn.180019c50
mov rax, qword [rsp + 0x198]
jmp 0x18005a15a
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x40], rcx
mov byte [rsp + 0x80], 1
lea rdx, [0x1800ce841]
lea rcx, [rsp + 0x88]
call fcn.18000e3f0
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x198]
call fcn.180019730
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x80]
call fcn.180019c50
mov rax, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18007e510
add rsp, 0x188
ret