Function at 0x18008bc80
Capabilities:
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 - 7]
sub rsp, 0xa0
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, qword [rbp + 0x67]
mov rsi, rcx
mov rdi, qword [rbp + 0x77]
xor ecx, ecx
mov r12, qword [rbp + 0x7f]
mov ebx, r8d
mov r15, rdx
cmp r8d, 2
je 0x18008bcd0
cmp ebx, 0x17
jne 0x18008be7b
lea eax, [r9 - 1]
mov edx, select
test eax, 0xfffffffb
je 0x18008bce8
mov r14, rcx
jmp 0x18008bd78
xor eax, eax
lock cmpxchg qword [rsi + 0x18], rcx
mov r14, rax
mov qword [rbp - 0x49], rax
jne 0x18008bd71
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x38], rcx
lea r8, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov r9d, edx
lea rax, [rbp - 0x49]
mov dword [rbp - 0x41], ecx
mov rcx, qword [r15]
mov edx, 0xc8000006
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x39], 0x25a207b9
mov dword [rbp - 0x35], 0x4660ddf3
mov dword [rbp - 0x31], 0xe576e98e
mov dword [rbp - 0x2d], 0x3e06748c
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x18008bd5e
mov rax, rsi
mov qword [rbp - 0x49], rax
jmp 0x18008bd62
mov rax, qword [rbp - 0x49]
xchg qword [rsi + 0x18], rax
mov r14, qword [rbp - 0x49]
xor ecx, ecx
mov edx, select
cmp r14, rsi
cmove r14, rcx
test r14, r14
je 0x18008be7b
mov rcx, qword [r15]
xor eax, eax
mov qword [rbp - 0x19], rax
xorps xmm0, xmm0
mov dword [rbp - 0x11], eax
movups xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x29], bx
cmp rcx, 0xffffffffffffffff
jne 0x18008bdb0
mov dword [rbp - 0x39], 0x2719
call fcn.180046bf0
mov qword [rbp - 0x31], rax
jmp 0x18008bde7
mov r8d, 0x1c
cmp ebx, 2
cmove r8d, edx
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x18008bdd2
xor ebx, ebx
mov dword [rdi + 0x38], ebx
jmp 0x18008bdf1
call fcn.180046bf0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
xor ebx, ebx
movups xmmword [rdi + 0x38], xmm0
cmp dword [rdi + 0x38], 0
je 0x18008be1c
call fcn.180046bf0
mov rcx, qword [rdi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x18008be13
cmp dword [rdi + 0x38], 0x2726
je 0x18008be1c
mov rcx, qword [rsi + 8]
jmp 0x18008beca
mov byte [rdi + 0x68], 1
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rbp + 0x6f]
xor r9d, r9d
mov rcx, qword [r15]
mov rdx, r13
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call r14
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x18008be6d
cmp eax, 0x3e5
je 0x18008be6d
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, r12
call fcn.18007d620
jmp 0x18008bed6
mov rcx, qword [rsi + 8]
mov rdx, r12
call fcn.18007e720
jmp 0x18008bed6
xor eax, eax
lock cmpxchg qword [rsi + 0x10], rcx
mov r14, rax
jne 0x18008be9a
mov rcx, qword [rsi]
mov rcx, qword [rcx]
call fcn.180058ba0
mov r14, rax
xchg qword [rsi + 0x10], rax
test byte [r15 + 8], 3
jne 0x18008bf2c
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x18008bf02
mov dword [rbp - 0x39], 0x2719
call fcn.180046bf0
mov qword [rbp - 0x31], rax
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rdi + 0x38], xmm0
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rdi
call fcn.18004cd50
mov eax, 0xffffffff
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.180097330
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x41]
mov dword [rbp - 0x41], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x18008bfca
mov dword [rdi + 0x38], 0
or byte [r15 + 8], 2
mov r8, qword [rbp + 0x6f]
lea r9, [rdi + 0x38]
mov rcx, qword [r15]
mov rdx, r13
call fcn.180067600
test eax, eax
je 0x18008bec6
call fcn.180046bf0
mov rcx, qword [rdi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x18008bf5f
cmp dword [rdi + 0x38], 0x2734
je 0x18008bf83
call fcn.180046bf0
mov rcx, qword [rdi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x18008bec6
cmp dword [rdi + 0x38], 0x2733
jne 0x18008bec6
lea rax, [0x1800c3050]
mov byte [rsp + 0x30], 0
mov qword [rbp - 0x31], rax
lea r9, [r15 + 0x20]
mov dword [rbp - 0x39], 0
mov edx, 3
movups xmm0, xmmword [rbp - 0x39]
mov byte [rsp + 0x28], 0
mov rcx, r14
mov qword [rsp + 0x20], rdi
movups xmmword [rdi + 0x38], xmm0
mov r8, qword [r15]
call fcn.18008bff0
mov eax, 3
jmp 0x18008bedb
call fcn.180046bf0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], rbx
jmp 0x18008bebe