Function at 0x14006d830
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x88
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, qword [rbp + 0x7f]
mov r14, r9
mov rsi, qword [0x140400720]
mov r10d, r8d
mov dword [rbp - 9], r8d
mov ebx, edx
mov rdi, rcx
test rcx, rcx
jne 0x14006d887
mov r9, r15
mov r8, r14
mov edx, r10d
mov ecx, ebx
call fcn.14006ee80
jmp 0x14006dcc6
cmp ebx, 0x61726376
jne 0x14006d8ac
test r10d, r10d
setne al
mov byte [rcx + 0x4e], al
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.WS2_32.dll_WSASetEvent]
xor eax, eax
jmp 0x14006dcc6
cmp ebx, 0x6d617872
jne 0x14006d8c2
mov dword [rcx + 0xfc], r10d
xor eax, eax
jmp 0x14006dcc6
cmp ebx, 0x6d617873
jne 0x14006d8d5
mov dword [rcx + 0x54], r10d
xor eax, eax
jmp 0x14006dcc6
cmp ebx, 0x7363626b
jne 0x14006d8fe
movzx eax, byte [rcx + 0x50]
xor esi, esi
test r10d, r10d
setne sil
cmp eax, esi
je 0x14006d8f7
test r10d, r10d
setne al
mov byte [rcx + 0x50], al
xor eax, eax
jmp 0x14006dcc6
cmp ebx, 0x7370616d
jne 0x14006d911
mov byte [rcx + 0x4f], r10b
xor eax, eax
jmp 0x14006dcc6
cmp qword [rcx + 8], 0
je 0x14006d929
mov dword [rcx + 0x28], 0xfffffff5
mov eax, 0xfffffff5
jmp 0x14006dcc6
cmp ebx, 0x6b656570
jne 0x14006d9d3
cmp dword [rcx + 0x1c], 1
jne 0x14006db0d
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x14006db0d
mov edx, recv
lea rcx, [rbp + 7]
call fcn.140063da0
movzx eax, byte [rbp - 9]
xor esi, esi
mov dword [rbp + 7], eax
test eax, eax
je 0x14006d973
mov eax, dword [r14]
mov dword [rbp + 0xb], eax
mov eax, dword [r15]
mov dword [rbp + 0xf], eax
jmp 0x14006d977
mov qword [rbp + 0xb], rsi
mov rcx, qword [rdi + 0x10]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rsi
lea r8, [rbp + 7]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov ebx, eax
test eax, eax
jne 0x14006d9bc
mov dword [rdi + 0x28], esi
mov eax, esi
jmp 0x14006dcc6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.140070040
mov dword [rdi + 0x28], eax
jmp 0x14006dcc6
cmp ebx, 0x6e62696f
jne 0x14006da15
cmp dword [rcx + 0x1c], 1
jne 0x14006db0d
mov rcx, qword [rcx + 0x10]
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov dword [rbp - 0x11], r10d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.140070040
mov dword [rdi + 0x28], eax
jmp 0x14006dcc6
cmp ebx, 0x6e646c79
jne 0x14006da5f
cmp dword [rcx + 0x1c], 1
jne 0x14006db0d
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 9]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.140070040
mov dword [rdi + 0x28], eax
jmp 0x14006dcc6
cmp ebx, 0x70646576
je 0x14006dc98
cmp ebx, 0x706c6174
je 0x14006dc98
cmp ebx, 0x706c6f73
je 0x14006dc98
cmp ebx, 0x70717565
jne 0x14006dadc
cmp byte [rcx + 0x4e], 0
je 0x14006da9f
mov dword [rcx + 0x220], r10d
xor eax, eax
jmp 0x14006dcc6
add rcx, 0x1e0
call fcn.14006bf70
mov r9, qword [rsi + 0x68]
mov r8d, dword [rsi + 0x60]
mov edx, dword [rbp - 9]
mov rcx, qword [rdi + 0x228]
call fcn.14006adf0
lea rcx, [rdi + 0x1e0]
mov qword [rdi + 0x228], rax
call fcn.14006c200
xor eax, eax
jmp 0x14006dcc6
cmp ebx, 0x70757368
jne 0x14006db69
add rcx, 0x1e0
call fcn.14006bf70
mov r8d, dword [rbp - 9]
cmp r8d, 0x4f0
jle 0x14006db17
lea rcx, [rdi + 0x1e0]
call fcn.14006c200
mov eax, 0xffffffff
jmp 0x14006dcc6
mov rcx, qword [rdi + 0x228]
mov r9, r15
mov rdx, r14
call fcn.14006a950
lea rcx, [rdi + 0x1e0]
call fcn.14006c200
cmp qword [rdi + 0x1b8], 0
je 0x14006d8f7
test byte [rdi + 0x1a4], 2
je 0x14006d8f7
mov r8, qword [rdi + 0x1b0]
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x1b8]
xor eax, eax
jmp 0x14006dcc6
cmp ebx, 0x72616472
jne 0x14006dbab
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 9]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.140070040
mov dword [rdi + 0x28], eax
jmp 0x14006dcc6
lea eax, [rdx - 0x72627566]
test eax, 0xfeffffff
je 0x14006dc0a
cmp ebx, 0x736f6c69
jne 0x14006db0d
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x11]
mov eax, 1
mov word [rbp - 0xf], r10w
mov edx, 0xffff
mov word [rbp - 0x11], ax
mov dword [rsp + 0x20], 4
lea r8d, [rax + 0x7f]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.140070040
mov dword [rdi + 0x28], eax
jmp 0x14006dcc6
mov rcx, qword [rcx + 0x10]
lea rax, [rbp - 0x11]
xor esi, esi
mov dword [rbp - 0x11], 4
cmp ebx, 0x72627566
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
mov edx, 0xffff
sete sil
add esi, 0x1001
mov r8d, esi
call qword [sym.imp.WS2_32.dll_getsockopt]
mov rcx, qword [rdi + 0x10]
lea r9, [rbp - 9]
mov r8d, esi
mov dword [rsp + 0x20], 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.140070040
mov rcx, qword [rdi + 0x10]
lea r9, [rbp + 3]
mov dword [rdi + 0x28], eax
mov r8d, esi
lea rax, [rbp - 0x11]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rdi + 0x28]
jmp 0x14006dcc6
add rcx, 0x1e0
call fcn.14006bf70
mov r8d, dword [rbp - 9]
mov edx, ebx
mov rcx, qword [rdi + 0x228]
call fcn.14006aae0
lea rcx, [rdi + 0x1e0]
mov ebx, eax
call fcn.14006c200
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret