Function at 0x140086730
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rdi, rcx
lea r8, str.vncSockConnectThread::run_undetached_:_started_socket_connection_thread_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor ebp, ebp
mov ebx, ebp
cmp dword [rdi + 0xa8], ebp
jne 0x1400869f7
lea r14, vtable.omni_thread.0
lea r15, vtable.vncHTTPConnectThread.0
cmp byte [0x1401f42c3], 0
jne 0x1400869e5
mov rcx, qword [rdi + 0xb0]
call fcn.140087410
mov rbx, rax
test rax, rax
je 0x1400869f7
mov rcx, qword [0x1401fef68]
mov eax, dword [rcx + 0x72c]
cmp dword [rcx + 0x730], eax
jne 0x14008693f
mov rsi, qword [rdi + 0xb8]
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x110], 1
mov qword [rsp + 0x38], 2
lea ecx, [rax + 1]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x110]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14008693f
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.1401252c0
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x40], r15
mov qword [rsp + 0xf0], rsi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140073a40
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x1400868e2
lea r8, str.VSocket::Shutdown_:_shutdown_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, 2
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x1400868e2
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, 2
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x10], 0xffffffffffffffff
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400868fd
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x28], rbp
mov qword [rbx + 8], rbp
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
lea rcx, [rsp + 0x40]
call fcn.140125390
lea r8, str.vncSockConnectThread::run_undetached_:_Woo_hoo__Served_Java_applet_via_RFB_
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140017a50
cmp dword [rdi + 0xa8], 0
jne 0x1400869ea
jmp 0x140086793
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x100]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea r9, str._unavailable_
test rax, rax
cmovne r9, rax
lea r8, str.vncSockConnectThread::run_undetached_:_accepted_connection_from__s_n
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov eax, dword [rdi + 0xa8]
test eax, eax
jne 0x1400869ea
cmp byte [0x1401f42c3], al
jne 0x1400869ea
mov rcx, qword [rdi + 0xb8]
mov rax, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, dword [rdi + 0xa8]
test eax, eax
jne 0x1400869ea
cmp byte [0x1401f42c3], al
je 0x1400867a0
jmp 0x1400869ea
test rbx, rbx
je 0x1400869f7
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
lea r8, str.vncSockConnectThread::run_undetached_:_quitting_socket_connection_thread_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret