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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x5a0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [rsp + 0x20]
mov ecx, 0x6e
mov r8, rcx
mov rcx, qword [rbp + 0x18]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r10, [rsp + 0x20]
mov rcx, r10
call fcn.00498e67
mov dword [rbp - 4], eax
mov eax, 0
mov r8, rax
mov eax, 2
mov r11, rax
mov eax, dword [rbp - 4]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_socket
shl rax, 0x20
shr rax, 0x20
mov r11, rax
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x68]
mov r11, rax
lea rax, [rbp - 0x38]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x38]
cmp eax, 0
je 0x4a6b16
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x38]
mov r11, rax
lea rax, [rbp - 0x98]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x98]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4a7082
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x9c], eax
mov eax, dword [rbp - 0x9c]
mov dword [rbp - 0x190], eax
mov eax, 4
mov r8, rax
lea rax, [rbp - 0x190]
mov r11, rax
lea rax, [rbp - 0x18c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x6e
mov r8, rax
mov rax, qword [rbp + 0x18]
mov r11, rax
lea rax, [rbp - 0x188]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov byte [rbp - 0x11a], al
mov eax, 0
mov word [rbp - 0x1fe], ax
mov eax, 0
mov word [rbp - 0x284], ax
mov eax, 0
mov dword [rbp - 0x282], eax
mov eax, 0
mov byte [rbp - 0x27e], al
movabs rax, 0xf
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x27d]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov dword [rbp - 0x26e], eax
mov eax, 0x1a
mov r8, rax
lea rax, [rbp - 0x284]
mov r11, rax
lea rax, [rbp - 0x26a]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movabs rax, 0x52
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x250]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0x6c
mov r8, rax
lea rax, [rbp - 0x26a]
mov r11, rax
lea rax, [rbp - 0x1fc]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x1fe]
mov r11, rax
lea rax, [rbp - 0x119]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movabs rax, 3
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0xab]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0xe4
mov r11, rax
lea rax, [rbp - 0x18c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00423c2c
mov qword [rbp - 0xa8], rax
mov eax, 1
mov r9, rax
mov eax, 4
mov r8, rax
mov rax, qword [rbp - 0xa8]
mov r11, rax
lea rax, [rbp - 0x2e8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004a7520
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x2e8]
mov r11, rax
lea rax, [rbp - 0x2b8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x2b8]
cmp eax, 0
je 0x4a6d8c
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x2b8]
mov r11, rax
lea rax, [rbp - 0x318]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x318]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4a7082
mov eax, dword [rbp - 4]
cmp eax, 0x17
jne 0x4a6e4b
mov eax, 1
mov r8, rax
mov rax, qword [rbp - 0xa8]
mov r11, rax
lea rax, [rbp - 0x378]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004a768d
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x378]
mov r11, rax
lea rax, [rbp - 0x348]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x348]
cmp eax, 0
je 0x4a6e4b
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x348]
mov r11, rax
lea rax, [rbp - 0x3a8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x3a8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4a7082
mov eax, 1
mov dword [rbp - 0x3ac], eax
mov eax, dword [rbp - 0x9c]
movsxd rax, eax
lea rcx, [rbp - 0x3ac]
mov r8, rcx
mov ecx, dword [0x00512794]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_ioctlsocket
mov r11, rax
lea rax, [rbp - 0x410]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x410]
mov r11, rax
lea rax, [rbp - 0x3e0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x3e0]
cmp eax, 0
je 0x4a6f24
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x3e0]
mov r11, rax
lea rax, [rbp - 0x440]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x440]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4a7082
mov rax, qword [rbp - 0xa8]
mov ecx, dword [rax]
movsxd rcx, ecx
lea rax, [rsp + 0x20]
mov edx, 0x6e
mov r8, rdx
mov rdx, qword [rbp + 0x18]
mov r11, rdx
mov r10, rax
mov qword [rbp - 0x4a8], rcx
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r10, [rsp + 0x20]
mov rcx, r10
call fcn.004995ef
mov r8, rax
mov rax, qword [rbp + 0x18]
mov r11, rax
mov rax, qword [rbp - 0x4a8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_bind
mov r11, rax
lea rax, [rbp - 0x4a0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x4a0]
mov r11, rax
lea rax, [rbp - 0x470]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x470]
cmp eax, 0
je 0x4a7029
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x470]
mov r11, rax
lea rax, [rbp - 0x4d8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x4d8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4a7082
mov rax, qword [rbp - 0xa8]
mov qword [rbp - 0x510], rax
mov eax, 8
mov r8, rax
lea rax, [rbp - 0x508]
mov r11, rax
lea rax, [rbp - 0x510]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0042c0a5
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x508]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
leave
ret