Function at 0x1800bcb60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov r8, qword [rcx + 0x20]
lea rsi, [rcx + 0xf0]
xor r15d, r15d
mov rbx, rcx
add rcx, 0x1243
mov dword [rbp + 0x67], r15d
movzx edx, byte [rcx]
test dl, dl
je 0x1800bcbe0
test dl, 1
je 0x1800bcba9
test byte [rbx + 0x140], 0x10
je 0x1800bcbbe
test dl, 2
je 0x1800bcbc6
test byte [rbx + 0x140], 0x20
jne 0x1800bcbc6
lea rcx, [rbx + 0x1243]
mov r14d, edx
mov byte [rcx], r15b
jmp 0x1800bcc28
test dword [rbx + 0x140], 0x30
lea rcx, [rbx + 0x1243]
je 0x1800bcbbe
xor edi, edi
jmp 0x1800bceb4
mov ecx, dword [rsi + 0x50]
mov eax, ecx
and al, 0x15
cmp al, 1
jne 0x1800bcbf4
mov rax, qword [r8 + 0x380]
jmp 0x1800bcbfb
mov rax, 0xffffffffffffffff
and cl, 0x2a
cmp cl, 2
jne 0x1800bcc0c
mov r8, qword [r8 + 0x388]
jmp 0x1800bcc13
mov r8, 0xffffffffffffffff
xor r9d, r9d
mov rdx, 0xffffffffffffffff
mov rcx, rax
call fcn.1800bea60
mov r14d, eax
cmp r14d, 4
jne 0x1800bcc47
lea rdx, str.select_poll_returned_error
mov rcx, rbx
call fcn.1800aa8a0
mov edi, 0x37
jmp 0x1800bceb4
test byte [rsi + 0x50], 1
je 0x1800bcc7d
test r14b, 1
je 0x1800bcc7d
lea r8, [rbp + 0x67]
mov rdx, rsi
mov rcx, rbx
call fcn.1800bd1d0
mov edi, eax
test eax, eax
jne 0x1800bceb4
cmp byte [rbx + 0x1d2], r15b
jne 0x1800bceb4
mov r15d, dword [rbp + 0x67]
mov ecx, dword [rsi + 0x50]
mov eax, ecx
and eax, r14d
test al, 2
jne 0x1800bcc92
test cl, 0x40
je 0x1800bcd83
test byte [rbx + 0x140], 0x20
jne 0x1800bcd83
mov rcx, rbx
call fcn.18009d8a0
test al, al
jne 0x1800bcd83
mov rcx, rbx
or r15d, 2
call fcn.18009dc20
mov edi, eax
test eax, eax
jne 0x1800bceb4
lea rcx, [rbp + 0x17]
movaps xmmword [rsp + 0x80], xmm6
call fcn.18009c2b0
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp + 7]
movups xmm6, xmmword [rax]
movups xmm0, xmmword [rcx + 0x418]
lea rcx, [rbp + 0x17]
movaps xmmword [rbp + 0x17], xmm6
movaps xmmword [rbp + 7], xmm0
call fcn.18009c340
cmp rax, 0x3e8
jle 0x1800bcd7b
mov rax, qword [rbx + 0x20]
xor r9d, r9d
mov qword [rsp + 0x40], 0
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov edx, 0x4004747b
mov rdi, qword [rax + 0x388]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
mov rcx, rdi
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1800bcd70
lea r9, [rbp + 0x67]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rbx + 0x20]
movups xmmword [rax + 0x418], xmm6
movaps xmm6, xmmword [rsp + 0x80]
lea rcx, [rbp + 0x17]
call fcn.18009c2b0
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 9], xmm0
test r15d, r15d
jne 0x1800bcdaa
mov rcx, rbx
call fcn.1800aa180
mov edi, eax
test eax, eax
jne 0x1800bceb4
mov rcx, rbx
call fcn.1800bdbf0
test eax, eax
jne 0x1800bce9f
movaps xmm0, xmmword [rbp - 9]
lea rdx, [rbp + 0x17]
mov rcx, rbx
movdqa xmmword [rbp + 0x17], xmm0
call fcn.1800bec00
mov edi, eax
test eax, eax
jne 0x1800bceb4
cmp dword [rsi + 0x50], eax
je 0x1800bce55
xor r8d, r8d
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.1800ad760
test rax, rax
jns 0x1800bcea6
movups xmm0, xmmword [rbx + 0xb00]
lea rdx, [rbp + 0x17]
mov rdi, qword [rsi]
movaps xmm1, xmmword [rbp - 9]
lea rcx, [rbp + 7]
movaps xmmword [rbp + 0x17], xmm0
movdqa xmmword [rbp + 7], xmm1
call fcn.18009c340
mov r9, qword [rsi + 0x10]
mov r8, rax
mov rcx, rbx
cmp rdi, 0xffffffffffffffff
je 0x1800bce42
lea rdx, str.Operation_timed_out_after__lld_milliseconds_with__lld_out_of__lld_bytes_received
mov qword [rsp + 0x20], rdi
call fcn.1800aa8a0
mov edi, 0x1c
jmp 0x1800bceb4
lea rdx, str.Operation_timed_out_after__lld_milliseconds_with__lld_bytes_received
call fcn.1800aa8a0
mov edi, 0x1c
jmp 0x1800bceb4
cmp byte [rbx + 0x1e0], 0
jne 0x1800bce93
mov r8, qword [rsi]
cmp r8, 0xffffffffffffffff
je 0x1800bce93
mov rax, qword [rsi + 0x10]
cmp rax, r8
je 0x1800bce93
cmp qword [rsi + 0xc8], 0
jne 0x1800bce93
sub r8, rax
lea rdx, str.transfer_closed_with__lld_bytes_remaining_to_read
mov rcx, rbx
call fcn.1800aa8a0
mov edi, reloc.WS2_32.dll_select
jmp 0x1800bceb4
mov rcx, rbx
call fcn.1800bdbf0
test eax, eax
je 0x1800bcea6
mov edi, 0x2a
jmp 0x1800bceb4
mov eax, dword [rsi + 0x50]
test al, 0x3f
jne 0x1800bceb4
mov byte [rbx + 0x1d2], 1
mov rbx, qword [rsp + 0xd0]
mov eax, edi
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret