Function at 0x18000ff50
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov eax, r9d
mov r9d, r8d
mov dword [rbp + 0x44], r8d
mov r12, rdx
mov rdi, rcx
mov r15, qword [rbp + 0x110]
mov qword [rsp + 0x50], r15
mov r14, qword [rbp + 0x120]
mov rcx, qword [rbp + 0x128]
mov qword [rbp + 0x60], rcx
xor ebx, ebx
cmp r8d, 2
je 0x18000ffc0
cmp r8d, 0x17
jne 0x18001021b
dec eax
test eax, 0xfffffffb
jne 0x18001021b
xor eax, eax
lea edx, [rax + 0x10]
lock cmpxchg qword [rdi + 0x18], rbx
mov rsi, rax
mov qword [rbp + 0x38], rax
jne 0x18001005c
mov dword [rbp + 0x48], 0x25a207b9
mov dword [rbp + 0x4c], 0x4660ddf3
mov dword [rbp + 0x50], 0xe576e98e
mov dword [rbp + 0x54], 0x3e06748c
mov dword [rbp + 0x58], ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, edx
lea r8, [rbp + 0x48]
mov edx, 0xc8000006
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180010047
mov rax, rdi
mov qword [rbp + 0x38], rax
jmp 0x18001004b
mov rax, qword [rbp + 0x38]
xchg qword [rdi + 0x18], rax
mov rsi, qword [rbp + 0x38]
mov r9d, dword [rbp + 0x44]
mov edx, select
cmp rsi, rdi
cmove rsi, rbx
test rsi, rsi
je 0x18001021b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], eax
mov word [rbp + 0x70], r9w
mov rcx, qword [r12]
movabs r15, 0x4d54ee85da812030
lea rbx, [0x18008b560]
cmp rcx, 0xffffffffffffffff
jne 0x1800100fd
mov dword [rsp + 0x64], eax
mov rcx, qword [0x18008b568]
add rcx, r15
cmp rcx, 1
jbe 0x1800100ca
mov edx, 0x2719
mov rcx, rbx
mov rax, qword [0x18008b560]
call qword [rax + 0x30]
jmp 0x1800100cc
mov al, 1
movzx eax, al
add rax, 2
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x2719
mov qword [rsp + 0x68], rbx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r14 + 0x38], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [r14 + 0x48], xmm1
jmp 0x180010123
mov r8d, 0x1c
cmp r9d, 2
cmove r8d, edx
lea rdx, [rbp + 0x70]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
setne dl
lea rcx, [r14 + 0x38]
call fcn.18000a460
mov rax, qword [r14 + 0x48]
test al, 1
je 0x1800101aa
cmp rax, 1
jne 0x180010138
cmp dword [r14 + 0x38], 0
je 0x1800101aa
mov dword [rsp + 0x7c], 0
mov rcx, qword [0x18008b568]
add rcx, r15
cmp rcx, 1
jbe 0x180010164
mov edx, 0x2726
mov rcx, rbx
mov rax, qword [0x18008b560]
call qword [rax + 0x30]
jmp 0x180010166
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x78], 0x2726
mov qword [rbp - 0x80], rbx
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp - 0x28], xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rbp - 0x18], xmm1
lea rdx, [rbp - 0x28]
lea rcx, [r14 + 0x38]
call fcn.180009630
test al, al
jne 0x1800101aa
mov rcx, qword [rdi + 8]
jmp 0x1800102bc
mov byte [r14 + 0x70], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r14, qword [rbp + 0x60]
mov qword [rsp + 0x30], r14
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rbp + 0x118]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r12]
call rsi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x18001020a
cmp eax, 0x3e5
je 0x18001020a
xor r9d, r9d
mov r8d, eax
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.18000cbe0
jmp 0x1800102c8
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.18000cb50
jmp 0x1800102c8
xor eax, eax
lock cmpxchg qword [rdi + 0x10], rbx
mov rsi, rax
jne 0x18001023a
mov rcx, qword [rdi]
mov rcx, qword [rcx]
call fcn.1800321c0
mov rsi, rax
xchg qword [rdi + 0x10], rax
test byte [r12 + 8], 3
jne 0x180010329
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
jne 0x1800102f7
mov dword [rbp - 0x6c], ebx
movabs r15, 0x4d54ee85da812030
mov rcx, qword [0x18008b568]
add rcx, r15
lea rbx, [0x18008b560]
cmp rcx, 1
jbe 0x18001028c
mov edx, 0x2719
mov rcx, rbx
mov rax, qword [0x18008b560]
call qword [rax + 0x30]
jmp 0x18001028e
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x70], 0x2719
mov qword [rbp - 0x68], rbx
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [r14 + 0x38], xmm0
movsd xmm1, qword [rbp - 0x60]
movsd qword [r14 + 0x48], xmm1
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r14
call fcn.18000cad0
mov eax, 0xffffffff
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.180061d10
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0x44], 1
lea r8, [rbp + 0x44]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [r14 + 0x38]
call fcn.18000a460
test ebx, ebx
js 0x1800102b8
or byte [r12 + 8], 2
xor ebx, ebx
lea r9, [r14 + 0x38]
mov r8, qword [rbp + 0x118]
mov rdx, r15
mov rcx, qword [r12]
call fcn.18000a720
test eax, eax
je 0x1800102b8
mov dword [rbp - 0x54], ebx
movabs r15, 0x4d54ee85da812030
mov rdi, qword [0x18008b568]
lea rax, [rdi + r15]
lea rbx, [0x18008b560]
cmp rax, 1
jbe 0x180010388
mov edx, 0x2734
mov rcx, rbx
mov rax, qword [0x18008b560]
call qword [rax + 0x30]
mov rdi, qword [0x18008b568]
jmp 0x18001038a
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x58], 0x2734
mov qword [rbp - 0x50], rbx
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp - 0x10], xmm0
movsd xmm1, qword [rbp - 0x48]
movsd qword [rbp], xmm1
lea rdx, [rbp - 0x10]
lea rcx, [r14 + 0x38]
call fcn.180009630
test al, al
jne 0x180010425
xor eax, eax
mov dword [rbp - 0x3c], eax
lea rax, [rdi + r15]
cmp rax, 1
jbe 0x1800103e6
mov edx, 0x2733
mov rcx, rbx
mov rax, qword [0x18008b560]
call qword [rax + 0x30]
jmp 0x1800103e8
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x40], 0x2733
mov qword [rbp - 0x38], rbx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp + 8], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rbp + 0x18], xmm1
lea rcx, [r14 + 0x38]
lea rdx, [rbp + 8]
call fcn.180009630
test al, al
je 0x1800102b8
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xor edi, edi
mov qword [rbp + 0x30], rdi
movups xmmword [r14 + 0x38], xmm0
movsd xmm0, qword [rbp + 0x30]
movsd qword [r14 + 0x48], xmm0
mov rbx, qword [r12]
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x58], 1
cmp byte [rsi + 0x1e8], dil
je 0x180010475
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r14
call fcn.18000cad0
jmp 0x1800104d1
lea rcx, [rsi + 0x110]
mov r8, r14
mov rdx, rbx
call fcn.18001fd10
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x1800104d1
mov byte [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x60], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rdi
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x60]
mov rcx, qword [rsi + 0x60]
call fcn.18000afd0
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 3
jmp 0x1800102cd