Function at 0x140089990
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 [0x14021b0e0]
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.140018d00
xor ebp, ebp
mov ebx, ebp
cmp dword [rdi + 0x98], ebp
jne 0x140089c57
lea r14, vtable.omni_thread.0
lea r15, vtable.vncHTTPConnectThread.0
cmp byte [0x14021fa63], 0
jne 0x140089c45
mov rcx, qword [rdi + 0xa0]
call fcn.14008a7e0
mov rbx, rax
test rax, rax
je 0x140089c57
mov rcx, qword [0x14022a710]
mov eax, dword [rcx + 0x72c]
cmp dword [rcx + 0x730], eax
jne 0x140089b9f
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 0x140089b9f
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.1400b2120
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.140075460
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140089b42
lea r8, str.VSocket::Shutdown_:_shutdown_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018d00
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 0x140089b42
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018d00
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 0x140089b5d
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.1400b21e0
lea r8, str.vncSockConnectThread::run_undetached_:_Woo_hoo__Served_Java_applet_via_RFB_
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140018d00
cmp dword [rdi + 0x98], 0
jne 0x140089c4a
jmp 0x1400899f3
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.140018d00
mov eax, dword [rdi + 0x98]
test eax, eax
jne 0x140089c4a
cmp byte [0x14021fa63], al
jne 0x140089c4a
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 0x140089c4a
cmp byte [0x14021fa63], al
je 0x140089a00
jmp 0x140089c4a
test rbx, rbx
je 0x140089c57
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.140018d00
xor eax, eax
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140147af0
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