Function at 0x18002081c
Capabilities:
Create udp socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x60], 0xb5367df1
mov rdi, rcx
mov dword [rsp + 0x64], 0x11cfcbac
mov dword [rsp + 0x68], 0x8000ca95
mov r13d, 0x80
mov dword [rsp + 0x6c], 0x92a1485f
lea eax, [rbx + 2]
mov dword [rsp + 0x70], 0x25a207b9
mov edx, eax
mov dword [rsp + 0x74], 0x4660ddf3
mov ecx, eax
mov dword [rsp + 0x78], 0xe576e98e
lea r8d, [rbx + 0x11]
mov dword [rsp + 0x7c], 0x3e06748c
mov dword [rbp - 0x80], 0xa441e712
mov dword [rbp - 0x7c], 0x43ca754f
mov dword [rbp - 0x78], 0xee0da784
mov dword [rbp - 0x74], 0x6d60cf44
mov dword [rbp - 0x70], 0xf689d7c8
mov dword [rbp - 0x6c], 0x436b6f1f
mov dword [rbp - 0x68], 0x4fe5538a
mov dword [rbp - 0x64], 0x22c351e3
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18003efd2
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
lea rax, [rdi + 8]
mov qword [rsp + 0x30], rcx
lea r9d, [rbx + 0x10]
mov dword [rsp + 0x28], 8
lea r8, [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov edx, 0xc8000006
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x18003f016
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
lea rax, [rdi + 0x10]
mov qword [rsp + 0x30], rcx
lea r9d, [rbx + 0x10]
mov dword [rsp + 0x28], 8
lea r8, [rsp + 0x70]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov edx, 0xc8000006
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x18003f058
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rcx
lea r9d, [rbx + 0x10]
mov dword [rsp + 0x28], 8
lea r8, [rbp - 0x80]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov edx, 0xc8000006
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x18003f072
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
lea rax, [rdi + 0x20]
mov qword [rsp + 0x30], rcx
lea r9d, [rbx + 0x10]
mov dword [rsp + 0x28], 8
lea r8, [rbp - 0x70]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov edx, 0xc8000006
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x18003f08c
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x11]
mov rcx, rsi
lea r8d, [rbx + 2]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18003f09f
or dword [rdi], 4
mov edx, setsockopt
mov dword [rsp + 0x58], 1
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18003f0e3
or dword [rdi], 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180028c10
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c75], 0x40
je 0x180020a6a
lea r9, str._data__UDP_send_segmentation_helper_socket_failed_to_open__0x_x
mov dword [rsp + 0x20], eax
or r8, 0xffffffffffffffff
lea rcx, [rbp - 0x60]
mov rdx, r13
call fcn.180042088
lea r8, [rbp - 0x60]
lea rdx, [0x180056d08]
call fcn.1800417fc
nop
jmp 0x180020a6a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c70], 4
mov edi, eax
je 0x18003f03f
lea r9, str.SIO_GET_EXTENSION_FUNCTION_POINTER__AcceptEx_
jmp 0x18003f037
lea r9, str.SIO_GET_EXTENSION_FUNCTION_POINTER__WSARecvMsg_
mov r8d, edi
call fcn.18004176c
test edi, edi
jg 0x18003f04a
mov ebx, edi
jmp 0x180020a61
movzx ebx, di
or ebx, 0x80070000
jmp 0x180020a61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c70], 4
mov edi, eax
je 0x18003f03f
lea r9, str.SIO_GET_EXTENSION_FUNCTION_POINTER__ConnectEx_
jmp 0x18003f037
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c70], 4
mov edi, eax
je 0x18003f03f
lea r9, str.SIO_GET_EXTENSION_FUNCTION_POINTER__WSASendMsg_
jmp 0x18003f037
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c70], 4
mov edi, eax
je 0x18003f03f
jmp 0x18003f030
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c75], 0x40
je 0x180020a25
lea r9, str._data__Query_for_UDP_SEND_MSG_SIZE_failed__0x_x
mov dword [rsp + 0x20], eax
or r8, 0xffffffffffffffff
lea rcx, [rbp - 0x60]
mov rdx, r13
call fcn.180042088
lea r8, [rbp - 0x60]
lea rdx, [0x180056d08]
call fcn.1800417fc
nop
jmp 0x180020a25
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x180067c75], 0x40
je 0x180020a61
lea r9, str._data__Query_for_UDP_RECV_MAX_COALESCED_SIZE_failed__0x_x
mov dword [rsp + 0x20], eax
or r8, 0xffffffffffffffff
lea rcx, [rbp - 0x60]
mov rdx, r13
call fcn.180042088
lea r8, [rbp - 0x60]
lea rdx, [0x180056d08]
call fcn.1800417fc
nop
jmp 0x180020a61