Function at 0x1400872d0
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, 0x320
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x310], 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.140018c00
xor ebp, ebp
mov ebx, ebp
cmp dword [rdi + 0x98], ebp
jne 0x140087597
lea r14, vtable.omni_thread.0
lea r15, vtable.vncHTTPConnectThread.0
cmp byte [0x1401f32e3], 0
jne 0x140087585
mov rcx, qword [rdi + 0xa0]
call fcn.140087fc0
mov rbx, rax
test rax, rax
je 0x140087597
mov rcx, qword [0x1401fdf80]
mov eax, dword [rcx + 0x72c]
cmp dword [rcx + 0x730], eax
jne 0x1400874df
mov rsi, qword [rdi + 0xa8]
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x100], 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 + 0x100]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1400874df
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.140125ab0
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x40], r15
mov qword [rsp + 0xe0], rsi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140074220
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140087482
lea r8, str.VSocket::Shutdown_:_shutdown_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x140087482
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x14008749d
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.140125b70
lea r8, str.vncSockConnectThread::run_undetached_:_Woo_hoo__Served_Java_applet_via_RFB_
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140018c00
cmp dword [rdi + 0x98], 0
jne 0x14008758a
jmp 0x140087333
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xf0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [rsp + 0xf4]
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.140018c00
mov eax, dword [rdi + 0x98]
test eax, eax
jne 0x14008758a
cmp byte [0x1401f32e3], al
jne 0x14008758a
mov rcx, qword [rdi + 0xa8]
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 + 0x98]
test eax, eax
jne 0x14008758a
cmp byte [0x1401f32e3], al
je 0x140087340
jmp 0x14008758a
test rbx, rbx
je 0x140087597
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.140018c00
xor eax, eax
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140132620
lea r11, [rsp + 0x320]
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