Function at 0x180013110
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r13d, r13d
mov dword [rsp + 0x30], 0
mov r14d, 1
xor ebp, ebp
mov dword [rsp + 0x34], r14d
mov rbx, rcx
test byte [0x1800b78f0], 8
jne 0x18003d364
movzx esi, word [rbx + 0x2c]
mov qword [rsp + 0x80], r15
cmp si, 0x17
je 0x1800132c7
cmp si, 2
jne 0x180013304
mov eax, dword [rbx + 0x30]
xor r15d, r15d
and eax, 0xf0
cmp al, 0xe0
sete r15b
cmp qword [rbx + 0x118], rbp
je 0x1800131a0
mov r13d, r14d
cmp byte [rbx + 0x24c], bpl
jne 0x1800131a0
mov ebp, r14d
mov qword [rsp + 0x78], r12
mov eax, 2
cmp si, 0x17
je 0x1800131b8
test ebp, ebp
je 0x1800132d5
mov rdi, qword [rbx + 0x18]
mov r12d, 0x17
test rdi, rdi
jne 0x1800132b2
cmp byte [rbx + 0x24c], dil
jne 0x18003d39f
mov edx, eax
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov ecx, r12d
call fcn.1800140c0
mov rdi, rax
test rax, rax
je 0x18003d3aa
test rdi, rdi
je 0x180013279
cmp byte [rbx + 0x24c], 0
jne 0x180013233
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
mov r9d, dword [rbx + 0xac]
mov dword [rbx + 0x200], ebp
test r9d, r9d
jne 0x1800132e1
mov r14d, dword [rsp + 0x30]
mov rdx, qword [rbx + 0xb0]
test rdx, rdx
jne 0x18003d3f7
cmp si, 0x17
je 0x18001326c
test ebp, ebp
je 0x18003d459
mov qword [rbx + 0x18], rdi
test r14d, r14d
jne 0x18003d462
mov r15, qword [rsp + 0x80]
mov rax, rdi
mov r12, qword [rsp + 0x78]
mov qword [rbx + 0xb8], rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
test byte [0x1800b78f1], r14b
jne 0x18003d37e
mov dword [rbx + 0x200], ebp
jmp 0x180013279
cmp byte [rbx + 0x34], 0xff
jne 0x180013304
mov r15d, r14d
jmp 0x180013188
mov rdi, qword [rbx + 0x10]
mov r12d, eax
jmp 0x1800131c2
mov r8d, ebp
mov edx, r12d
mov rcx, rdi
test r15d, r15d
jne 0x18001330c
call fcn.180029edc
mov r14d, eax
test eax, eax
je 0x18001324e
jmp 0x18003d462
xor r15d, r15d
jmp 0x180013188
call sym.DNSAPI.dll_Socket_SetMulticastInterface
jmp 0x1800132f4
mov ecx, 0x23
lea rdx, [0x18009f218]
mov r8, rbx
call fcn.1800879b4
nop
jmp 0x180013157
cmp si, 0x17
mov ecx, 0x34
mov r8d, 0x36
mov r9d, edi
cmovne r8d, ecx
call fcn.18008bae0
nop
jmp 0x1800132bf
mov edx, r14d
xor r14d, r14d
jmp 0x1800131da
xor edi, edi
test ebp, ebp
je 0x180013279
mov r12d, 0x17
xor ebp, ebp
cmp si, r12w
mov edx, 2
cmovne r12d, edx
je 0x18003d3d8
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x180013279
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov ecx, r12d
call fcn.1800140c0
mov rdi, rax
jmp 0x1800131fe
test byte [0x1800b78f1], 4
je 0x18003d41f
mov r8d, dword [rbx + 0xb8]
lea rdx, [0x18009f218]
mov ecx, 0x25
call fcn.1800876bc
mov rdx, qword [rbx + 0xb0]
mov rcx, rdi
call fcn.180064f7c
mov r14d, eax
test eax, eax
je 0x18001325e
test byte [0x1800b78f1], 4
je 0x180013270
mov ecx, 0x26
lea rdx, [0x18009f218]
mov r8d, eax
call fcn.1800876bc
nop
jmp 0x180013270
mov qword [rbx + 0x10], rdi
jmp 0x180013270
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov ecx, r14d
xor edi, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x180013279