Function at 0x140084410
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.140166fe0
sub rsp, rax
mov rax, qword [0x1401ef010]
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 0x1400847e9
cmp qword [rbx + 0xf0], 0
jne 0x140084860
mov ecx, 0x2410
call fcn.1401312e8
mov rsi, rax
mov qword [rsp + 0x20], rax
lea rax, vtable.vncSockConnect.0
mov qword [rsi], rax
lea rcx, [rsi + 8]
call fcn.1400871b0
xor edi, edi
mov qword [rsi + 0x2408], rdi
mov qword [rbx + 0xf0], rsi
mov rcx, qword [0x1401fdf60]
cmp dword [rcx + 0x728], edi
je 0x14008479f
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.140133cb0
mov dword [rsp + 0x48], edi
mov word [rsp + 0x61], 0
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0xd14]
mov dword [rbp + 0x2320], ecx
lea rcx, [rsp + 0x30]
call fcn.140087350
test eax, eax
je 0x140084642
mov r14d, dword [rbx + 0xa0]
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140084623
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 0x1400845ee
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140084623
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x140084623
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 0x140084623
lea rcx, [rsp + 0x30]
call fcn.140087660
jmp 0x140084642
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 0x14008470a
mov qword [rsp + 0x30], r13
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140084689
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 0x1400846a7
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 0x1400846b5
call fcn.1401312e0
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 0x1400844e0
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x1400846fc
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xf0], rdi
xor eax, eax
jmp 0x140084865
mov qword [rsp + 0x30], r13
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140084751
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 0x14008476f
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 0x14008477d
call fcn.1401312e0
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 0x1400847ba
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 0x1400846e6
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 0x140084860
cmp qword [rbx + 0xf0], 0
je 0x14008484e
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 0x140084845
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.1401312c0
mov rbx, qword [rsp + 0x2490]
add rsp, 0x2440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret