Function at 0x1400842b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2340]
mov eax, 0x2440
call fcn.140167c10
sub rsp, rax
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x2330], rax
mov r15d, edx
mov rbx, rcx
mov r9d, edx
lea r8, str.vncServer::EnableConnections_:_SockConnect__d_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
test r15d, r15d
je 0x140084689
cmp qword [rbx + 0xf0], 0
jne 0x140084700
mov ecx, 0x2410
call fcn.140131f18
mov rsi, rax
mov qword [rsp + 0x20], rax
lea rax, vtable.vncSockConnect.0
mov qword [rsi], rax
lea rcx, [rsi + 8]
call fcn.140087050
xor edi, edi
mov qword [rsi + 0x2408], rdi
mov qword [rbx + 0xf0], rsi
mov rcx, qword [0x1401fef68]
cmp dword [rcx + 0x728], edi
je 0x14008463f
mov esi, 0x170c
lea r13, vtable.VSocket.0
lea r12d, [rdi + 2]
nop word [rax + rax]
mov dword [rbx + 0xa0], esi
lea eax, [rsi - 0x64]
mov dword [rbx + 0xa4], eax
mov r9d, esi
lea r8, str.vncServer::EnableConnections_:_trying_port_number__d_n
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rsp + 0x40], 0xffffffffffffffff
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x60], 0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x14], rdi
mov byte [rbp - 0x18], 0
xor edx, edx
mov r8d, 0x232c
lea rcx, [rbp - 0xc]
call fcn.1401348e0
mov dword [rsp + 0x48], edi
mov word [rsp + 0x61], 0
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0xd14]
mov dword [rbp + 0x2320], ecx
lea rcx, [rsp + 0x30]
call fcn.1400871f0
test eax, eax
je 0x1400844e2
mov r14d, dword [rbx + 0xa0]
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400844c3
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x20], r12w
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
jne 0x14008448e
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400844c3
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400844c3
mov eax, dword [rcx]
mov dword [rsp + 0x24], eax
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400844c3
lea rcx, [rsp + 0x30]
call fcn.140087500
jmp 0x1400844e2
mov rcx, qword [rbx + 0xf0]
mov rax, qword [rcx]
mov r8d, dword [rbx + 0xa0]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
jne 0x1400845aa
mov qword [rsp + 0x30], r13
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140084529
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, r12d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140084547
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140084555
call fcn.140131f10
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
inc esi
lea eax, [rsi - 0x170c]
cmp eax, 0x63
jl 0x140084380
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x14008459c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xf0], rdi
xor eax, eax
jmp 0x140084705
mov qword [rsp + 0x30], r13
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400845f1
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, r12d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14008460f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14008461d
call fcn.140131f10
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
jmp 0x14008465a
mov rax, qword [rsi]
mov r8d, dword [rbx + 0xa0]
mov rdx, rbx
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x140084586
mov rax, qword [rbx]
mov edx, dword [rbx + 0x100]
mov rcx, rbx
call qword [rax + 0x1b8]
mov r9d, r15d
lea r8, str.vncServer::EnableConnections_:_SockConnect__Done__d_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
jmp 0x140084700
cmp qword [rbx + 0xf0], 0
je 0x1400846ee
lea r8, str.vncServer::EnableConnections_:_KillAuthClients___fix_up_a_lock_up__n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x1400846e5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor edi, edi
mov qword [rbx + 0xf0], rdi
mov rax, qword [rbx]
mov edx, dword [rbx + 0x100]
mov rcx, rbx
call qword [rax + 0x1b8]
mov eax, 1
mov rcx, qword [rbp + 0x2330]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x2490]
add rsp, 0x2440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret