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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r13d, r13d
mov rdi, rcx
movzx ecx, word [rcx]
mov r12, r8
movzx ebx, dx
mov r14d, 2
lea r8d, [r13 + 0x11]
mov edx, r14d
mov dword [rbp - 0x31], r13d
mov dword [rbp - 0x35], r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400264f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140026644
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400267f3
test bx, bx
je 0x140026520
lea r9, [rbp - 0x39]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x35]
mov r9d, 4
mov edx, 0x9800000c
mov rcx, rsi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.WS2_32.dll_WSAIoctl]
movzx r11d, word [rdi]
cmp r11w, r14w
jne 0x14002664e
mov edi, dword [rdi + 4]
xor eax, eax
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x21], rax
lea r8d, [rax + 0x10]
mov rcx, rsi
mov qword [rbp - 0x19], rax
mov word [rbp - 0x21], r14w
mov word [rbp - 0x1f], bx
mov dword [rbp - 0x1d], edi
call qword [sym.imp.WS2_32.dll_bind]
xor edx, edx
lea r9, [rbp - 0x39]
lea r8d, [rdx + 0x13]
mov rcx, rsi
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test bx, bx
je 0x14002661b
mov eax, dword [0x140050774]
xor edx, edx
lea r9, [rbp - 0x29]
lea r8d, [rdx + 0xc]
mov rcx, rsi
mov dword [rbp - 0x25], edi
mov dword [rbp - 0x29], eax
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
lea r9, [rbp - 0x1d]
mov rcx, rsi
lea r8d, [rdx + 9]
mov dword [rbp - 0x1d], edi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
lea r9, [rbp - 0x39]
lea r8d, [rdx + 0xb]
mov rcx, rsi
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
lea r9, [rbp - 0x39]
mov rcx, rsi
lea r8d, [rdx + 4]
mov dword [rbp - 0x39], 0xff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
jmp 0x1400267b4
mov eax, 0xffffe5d4
jmp 0x1400267f3
cmp r11w, 0x17
jne 0x1400267df
xor eax, eax
lea rdx, [rbp - 9]
mov r8d, 0x1c
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov eax, reloc.WS2_32.dll_socket
mov rcx, rsi
mov word [rbp - 9], ax
mov rax, qword [rdi + 8]
mov word [rbp - 7], bx
mov qword [rbp - 1], rax
mov rax, qword [rdi + 0x10]
mov dword [rbp - 5], r13d
mov qword [rbp + 7], rax
mov eax, dword [rdi + 0x18]
mov dword [rbp + 0xf], eax
call qword [sym.imp.WS2_32.dll_bind]
mov edx, 0x29
lea r9, [rbp - 0x39]
lea r8d, [rdx - 0x16]
mov rcx, rsi
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
lea r9, [rbp - 0x39]
mov rcx, rsi
lea r8d, [rdx - 0xe]
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test bx, bx
je 0x14002678a
mov eax, dword [0x14005078c]
mov edx, 0x29
lea r9, [rbp - 0x21]
mov dword [rbp - 0x21], eax
mov eax, dword [0x140050790]
lea r8d, [rdx - 0x1d]
mov dword [rbp - 0x1d], eax
mov eax, dword [0x140050794]
mov rcx, rsi
mov dword [rbp - 0x19], eax
mov eax, dword [0x140050798]
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov dword [rbp - 0x15], eax
mov eax, dword [rdi + 0x18]
mov dword [rbp - 0x11], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r11d, dword [rdi + 0x18]
mov edx, 0x29
lea r9, [rbp - 0x39]
mov rcx, rsi
lea r8d, [rdx - 0x20]
mov dword [rbp - 0x39], r11d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
lea r9, [rbp - 0x39]
lea r8d, [rdx - 0x1e]
mov rcx, rsi
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
lea r9, [rbp - 0x39]
mov rcx, rsi
lea r8d, [rdx - 0x25]
mov dword [rbp - 0x39], 0xff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0x29
lea r9, [rbp - 0x39]
mov r8d, 0xa
mov rcx, rsi
mov dword [rsp + 0x20], 4
mov dword [rbp - 0x39], 0xff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [r12], rsi
mov eax, r13d
jmp 0x1400267f3
cmp rsi, 0xffffffffffffffff
je 0x1400267ee
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffe5b1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0xb0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret