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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rbp + 0x17], rax
movzx ecx, word [rdx]
xor r15d, r15d
movzx ebx, r8w
mov dword [rbp - 0x35], r15d
mov rdi, rdx
mov dword [rbp - 0x31], r15d
mov r12d, 2
mov r14, r9
lea r8d, [r15 + 0x11]
mov edx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004cd05
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14004ce2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004cfa3
test bx, bx
je 0x14004cd31
lea r9, [rbp - 0x39]
mov dword [rbp - 0x39], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x35]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov dword [rsp + 0x28], r15d
mov edx, 0x9800000c
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_WSAIoctl]
movzx eax, word [rdi]
cmp ax, r12w
jne 0x14004ce38
mov edi, dword [rdi + 4]
lea rdx, [rbp - 0x21]
mov r8d, reloc.WS2_32.dll_recv
mov dword [rbp - 0x1d], edi
mov rcx, rsi
mov qword [rbp - 0x19], r15
mov word [rbp - 0x21], r12w
mov word [rbp - 0x1f], bx
call qword [sym.imp.WS2_32.dll_bind]
test bx, bx
je 0x14004ce05
mov eax, dword [0x14014fad4]
lea r9, [rbp - 0x29]
xor edx, edx
mov dword [rbp - 0x29], eax
mov rcx, rsi
mov dword [rbp - 0x25], edi
mov dword [rsp + 0x20], 8
lea r8d, [rdx + 0xc]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rbp - 0x1d], edi
lea r9, [rbp - 0x1d]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx + 9]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rbp - 0x39], 1
lea r9, [rbp - 0x39]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx + 0xb]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rbp - 0x39], 0xff
lea r9, [rbp - 0x39]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
jmp 0x14004cf65
mov eax, 0xffffe5d4
jmp 0x14004cfa3
cmp ax, 0x17
jne 0x14004cf8f
movups xmm0, xmmword [rdi + 8]
mov eax, reloc.WS2_32.dll_socket
mov word [rbp - 7], bx
mov edx, 0x29
mov word [rbp - 9], ax
mov eax, dword [rdi + 0x18]
lea r9, [rbp - 0x39]
mov rcx, rsi
mov dword [rbp - 5], r15d
movups xmmword [rbp - 1], xmm0
lea r8d, [rdx - 0xe]
mov dword [rbp + 0xf], eax
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, 0x1c
lea rdx, [rbp - 9]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov edx, 0x29
mov dword [rbp - 0x39], 1
lea r9, [rbp - 0x39]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx - 0x16]
call qword [sym.imp.WS2_32.dll_setsockopt]
test bx, bx
je 0x14004cf3b
movups xmm0, xmmword [0x14014faec]
mov eax, dword [rdi + 0x18]
lea r9, [rbp - 0x21]
mov edx, 0x29
mov dword [rbp - 0x11], eax
mov rcx, rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
movups xmmword [rbp - 0x21], xmm0
lea r8d, [rdx - 0x1d]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [rdi + 0x18]
lea r9, [rbp - 0x39]
mov edx, 0x29
mov dword [rbp - 0x39], eax
mov rcx, rsi
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0x20]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
mov dword [rbp - 0x39], 1
lea r9, [rbp - 0x39]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx - 0x1e]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
mov dword [rbp - 0x39], 0xff
lea r9, [rbp - 0x39]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx - 0x25]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
lea r9, [rbp - 0x39]
mov dword [rsp + 0x20], 4
mov r8d, 0xa
mov dword [rbp - 0x39], 0xff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, r15d
mov qword [r14], rsi
jmp 0x14004cfa3
cmp rsi, 0xffffffffffffffff
je 0x14004cf9e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffe5b1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14006a270
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret