Function at 0x180014c20
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180026138]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd rbp, dword [0x1800336a4]
lea rcx, [0x1800336e0]
call sym.VBoxOGLhostcrutil.dll_crLockMutex
xor edi, edi
mov ecx, edi
mov ebx, edi
mov r10d, edi
mov dword [rsp + 0x40], ecx
test ebp, ebp
jle 0x180014e7a
mov r11, qword [0x1800336a8]
nop dword [rax + rax]
mov r9, qword [r11 + r10*8]
test r9, r9
je 0x180014d3f
mov eax, dword [r9 + 4]
test eax, eax
je 0x180014d3f
cmp dword [r9 + 0x120], edi
jg 0x180014cab
cmp eax, 2
je 0x180014d3f
mov r9, qword [r9 + 0x128]
mov edx, edi
lea eax, [r9 + 1]
cmp eax, ebx
cmovg ebx, eax
mov rax, rdi
test ecx, ecx
je 0x180014cd4
cmp qword [rsp + rax*8 + 0x48], r9
je 0x180014cd4
inc edx
inc rax
cmp edx, ecx
jb 0x180014cc4
cmp edx, ecx
jne 0x180014cec
cmp ecx, 0x40
jae 0x180014cec
mov qword [rsp + rax*8 + 0x48], r9
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
test r9d, r9d
jne 0x180014d3f
mov edx, edi
mov r8, rdi
test ecx, ecx
je 0x180014d3f
nop word [rax + rax]
cmp qword [rsp + r8*8 + 0x48], r9
je 0x180014d12
inc edx
inc r8
cmp edx, ecx
jb 0x180014d00
jmp 0x180014d3f
lea eax, [rcx - 1]
cmp edx, eax
jae 0x180014d39
lea r9, [rsp + r8*8 + 0x48]
nop
mov rax, qword [r9 + 8]
inc edx
add r9, 8
mov qword [r9 - 8], rax
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x180014d20
dec ecx
mov dword [rsp + 0x40], ecx
inc r10
cmp r10, rbp
jl 0x180014c80
test ebx, ebx
je 0x180014e7a
test ebp, ebp
je 0x180014dc4
nop word [rax + rax]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov ecx, ebx
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x1f4
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x180014e1a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x180014dac
lea rcx, str.select_interrupted_by_an_unblocked_signal__trying_again
call sym.VBoxOGLhostcrutil.dll_crWarning
jmp 0x180014d60
mov ecx, eax
call fcn.180013a30
lea rcx, str.select_failed:__s
mov rdx, rax
call sym.VBoxOGLhostcrutil.dll_crError
jmp 0x180014d60
lea rcx, str.Waiting_for_first_connection...
call sym.VBoxOGLhostcrutil.dll_crWarning
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov ecx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x180014e1a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x180014e02
lea rcx, str.select_interrupted_by_an_unblocked_signal__trying_again
jmp 0x180014dcb
mov ecx, eax
call fcn.180013a30
lea rcx, str.select_failed:__s
mov rdx, rax
call sym.VBoxOGLhostcrutil.dll_crError
jmp 0x180014dd0
je 0x180014e7a
nop dword [rax]
mov rax, qword [0x1800336a8]
mov rbx, qword [rax + rdi*8]
test rbx, rbx
je 0x180014e5f
mov eax, dword [rbx + 4]
test eax, eax
je 0x180014e5f
cmp eax, 2
jne 0x180014e5f
mov rcx, qword [rbx + 0x128]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014e5f
cmp dword [rbx + 0x78], 0
jne 0x180014e5f
mov rcx, rbx
call fcn.180014900
inc rdi
cmp rdi, rbp
jl 0x180014e20
lea rcx, [0x1800336e0]
call sym.VBoxOGLhostcrutil.dll_crUnlockMutex
mov eax, 1
jmp 0x180014e88
lea rcx, [0x1800336e0]
call sym.VBoxOGLhostcrutil.dll_crUnlockMutex
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001c120
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret