Function at 0x1800198fc
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xf0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r13d, r9d
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [r8], 0xffffffffffffffff
je 0x18001996f
call fcn.1800170a8
mov r8, rax
mov edx, 1
lea rcx, [rbp - 0x79]
call fcn.180016218
mov rax, qword [rbp + 0x7f]
movups xmm2, xmmword [rbp - 0x79]
movups xmmword [rax], xmm2
movsd xmm1, qword [rbp - 0x69]
movsd qword [rax + 0x10], xmm1
movups xmmword [rdi], xmm2
movsd qword [rdi + 0x10], xmm1
jmp 0x180019b73
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov r12d, dword [rbp + 0x6f]
mov edx, r12d
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1800199b8
mov r15, qword [rbp + 0x7f]
mov rcx, r15
call fcn.180016284
mov r8, rax
xor edx, edx
lea rcx, [rbp - 0x41]
call fcn.180016218
jmp 0x1800199dc
call fcn.180015750
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov r8, rbx
lea rcx, [rbp - 0x29]
call fcn.180016218
mov r15, qword [rbp + 0x7f]
mov rbx, qword [rbp + 0x4f]
movups xmm0, xmmword [rax]
movups xmmword [r15], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [r15 + 0x10], xmm1
cmp r14, 0xffffffffffffffff
jne 0x1800199fc
or r13, r14
mov r14, r13
jmp 0x180019a29
cmp r13d, 0x17
jne 0x180019a25
and dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea edx, [r13 + 0x12]
lea r8d, [r13 + 4]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
or r13, 0xffffffffffffffff
mov qword [rsp + 0x48], r14
cmp r14, r13
jne 0x180019a45
movups xmm0, xmmword [r15]
movups xmmword [rdi], xmm0
movsd xmm1, qword [r15 + 0x10]
jmp 0x180019b6e
mov r9, r15
mov r8, r14
lea rdx, [rbp - 0x11]
mov rcx, qword [rbx + 8]
call fcn.180018ca0
test byte [rax + 0x10], 1
je 0x180019a6d
cmp qword [rax + 0x10], 1
jne 0x180019a73
cmp dword [rax], 0
setne al
jmp 0x180019a6f
xor al, al
test al, al
je 0x180019aae
movups xmm0, xmmword [r15]
movups xmmword [rdi], xmm0
movsd xmm1, qword [r15 + 0x10]
movsd qword [rdi + 0x10], xmm1
xor eax, eax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
and qword [rbp - 0x51], rax
mov byte [rbp + 0x5f], al
lea r9, [rbp - 0x61]
mov r8b, 1
lea rdx, [rbp + 0x5f]
mov rcx, r14
call fcn.180017828
jmp 0x180019b73
mov qword [rsp + 0x48], r13
mov qword [rsi], r14
sub r12d, 1
je 0x180019ace
cmp r12d, 1
je 0x180019ac8
mov byte [rsi + 8], 0
jmp 0x180019ad2
mov byte [rsi + 8], 0x20
jmp 0x180019ad2
mov byte [rsi + 8], 0x10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r8b, byte [rbp + 0x5f]
lea rcx, [rsp + 0x38]
call fcn.18002fb6c
nop
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsi + 0x18]
mov qword [rsp + 0x40], rdx
mov qword [rsi + 0x18], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsi + 0x10], rcx
test rdx, rdx
je 0x180019b45
mov eax, r13d
lock xadd dword [rdx + 8], eax
add eax, r13d
jne 0x180019b45
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
add eax, r13d
jne 0x180019b45
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
and qword [rsp + 0x60], rax
movups xmm2, xmmword [rsp + 0x50]
movups xmmword [r15], xmm2
movsd xmm1, qword [rsp + 0x60]
movsd qword [r15 + 0x10], xmm1
movups xmmword [rdi], xmm2
movsd qword [rdi + 0x10], xmm1
mov rax, rdi
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret