Function at 0x140312660
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, r8
mov r12d, edx
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov byte [rsp + 0x34], r13b
lea r8, [rsp + 0x34]
mov edx, 0x10000
lea rcx, [rsp + 0x48]
call fcn.14030dfc0
mov edi, 2
lea r8d, [r13 + 0x11]
mov edx, edi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x40], 0xbb8
movsxd rsi, eax
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov word [rbp - 0x80], di
lea ecx, [rdi + 0x33]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
lea rcx, [0x140544cb0]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x7c], eax
mov rdx, qword [r14 + 8]
mov rdi, qword [r14]
mov rax, rdx
sub rax, rdi
sar rax, 5
test rax, rax
je 0x140312750
mov r8, r14
mov rcx, rdi
call fcn.14015d320
mov qword [r14 + 8], rdi
nop dword [rax]
mov qword [rsp + 0x60], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140312765
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14015cf80
nop
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x14031279b
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14015f650
add qword [r14 + 8], 0x20
jmp 0x1403127ac
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, r14
call fcn.14015d6d0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1403127e9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1403127e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140312d6a
call fcn.14038a574
mov r15, qword [rsp + 0x48]
mov word [r15], r13w
movzx eax, byte [r15 + 2]
and al, 0x7f
and al, 0x87
and al, 0xfb
and al, 0xfd
or al, 1
mov byte [r15 + 2], al
mov byte [r15 + 3], 0
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htons]
mov word [r15 + 4], ax
mov dword [r15 + 6], r13d
mov word [r15 + 0xa], r13w
lea rdx, [r15 + 0xc]
mov r9d, r13d
lea rcx, [rbx - 1]
nop
lea rcx, [rcx + 1]
cmp byte [rcx], r9b
jne 0x140312830
movzx eax, word [0x14041efb0]
mov word [rcx], ax
mov r10d, r13d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], r9b
jne 0x140312850
test rax, rax
je 0x1403128c0
mov rcx, r13
cmp byte [rbx + rcx], 0x2e
jne 0x1403128a5
movzx eax, r10b
sub al, r9b
mov byte [rdx], al
inc rdx
cmp r9d, r10d
jge 0x1403128a2
movsxd rcx, r9d
add rcx, rbx
mov eax, r10d
sub eax, r9d
mov r8d, eax
add r9d, eax
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
inc rdx
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140312890
inc r9d
inc r10d
movsxd rcx, r10d
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x1403128b2
cmp rcx, rax
jb 0x140312861
mov byte [rdx], 0
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
lea rbx, [rbx + 1]
cmp byte [r15 + rbx + 0xc], 0
jne 0x1403128d0
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + r15 + 0xd], ax
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + r15 + 0xf], ax
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp byte [r15 + rax + 0xc], 0
jne 0x140312904
lea r8d, [rax + 0x11]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x140312d09
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x10000
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
js 0x140312d09
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r15 + rax + 0xc], 0
jne 0x140312980
lea rdi, [r15 + 0x11]
add rdi, rax
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
movzx ecx, word [r15 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp dword [rsp + 0x30], eax
jge 0x140312b16
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x38]
mov rdx, r15
mov rcx, rdi
call fcn.140312530
movsxd rcx, dword [rsp + 0x30]
lea rdx, [rcx + rcx*2]
mov qword [rbp + rdx*8 - 0x70], rax
movsxd rax, dword [rsp + 0x38]
add rdi, rax
movzx ecx, word [rdi]
mov qword [rbp + rdx*8 - 0x68], rdi
add rdi, 0xa
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
jne 0x140312ad0
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + rcx*8 - 0x68]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
inc rcx
call fcn.1403995a4
movsxd rcx, dword [rsp + 0x30]
lea rdx, [rcx + rcx*2]
mov qword [rbp + rdx*8 - 0x60], rax
mov esi, r13d
mov rbx, r13
mov rax, qword [rbp + rdx*8 - 0x68]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp r13w, ax
jae 0x140312a8a
nop
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rdx, qword [rbp + rcx*8 - 0x60]
movzx eax, byte [rbx + rdi]
mov byte [rbx + rdx], al
inc esi
lea rbx, [rbx + 1]
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + rcx*8 - 0x68]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp esi, eax
jl 0x140312a50
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rbx, qword [rbp + rcx*8 - 0x60]
mov rax, qword [rbp + rcx*8 - 0x68]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov byte [rbx + rax], 0
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + rcx*8 - 0x68]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov r8d, dword [rsp + 0x30]
jmp 0x140312af3
lea r8, [rsp + 0x38]
mov rdx, r15
mov rcx, rdi
call fcn.140312530
movsxd r8, dword [rsp + 0x30]
lea rdx, [r8 + r8*2]
mov qword [rbp + rdx*8 - 0x60], rax
movsxd rax, dword [rsp + 0x38]
inc r8d
mov dword [rsp + 0x30], r8d
add rdi, rax
movzx ecx, word [r15 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp dword [rsp + 0x30], eax
jl 0x1403129c0
mov dword [rsp + 0x30], r13d
movzx ecx, word [r15 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov ecx, dword [rsp + 0x30]
cmp ecx, eax
jge 0x140312d09
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbp + rcx*8 - 0x68]
movzx ecx, word [rax]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
jne 0x140312c2a
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + rcx*8 - 0x60]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140312b80
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14015cf80
nop
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140312bb6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14015f650
add qword [r14 + 8], 0x20
jmp 0x140312bc6
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, r14
call fcn.14015d6d0
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rcx, qword [rbp + rcx*8 - 0x60]
call fcn.14039180c
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rcx, qword [rbp + rcx*8 - 0x70]
call fcn.14039180c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140312c2a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140312c25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140312d6a
call fcn.14038a574
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + rcx*8 - 0x68]
movzx ecx, word [rax]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 5
jne 0x140312d00
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rdx, qword [rbp + rcx*8 - 0x60]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140312c70
lea rcx, [rsp + 0x60]
call fcn.14015cf80
nop
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140312ca3
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14015f650
add qword [r14 + 8], 0x20
jmp 0x140312cb3
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, r14
call fcn.14015d6d0
movsxd rax, dword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rcx, qword [rbp + rcx*8 - 0x60]
call fcn.14039180c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140312d00
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140312cfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140312d6a
call fcn.14038a574
inc dword [rsp + 0x30]
jmp 0x140312b1b
mov rdx, qword [rsp + 0x58]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140312d32
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140312d64
mov rcx, r15
call fcn.14038a574
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14039178c
nop
call fcn.14039178c
nop