Function at 0x140084e50
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.140168340
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.140018c00
test r15d, r15d
je 0x140085229
cmp qword [rbx + 0xf0], 0
jne 0x1400852a0
mov ecx, 0x2410
call fcn.140132648
mov rsi, rax
mov qword [rsp + 0x20], rax
lea rax, vtable.vncSockConnect.0
mov qword [rsi], rax
lea rcx, [rsi + 8]
call fcn.140087c00
xor edi, edi
mov qword [rsi + 0x2408], rdi
mov qword [rbx + 0xf0], rsi
mov rcx, qword [0x1401fdf80]
cmp dword [rcx + 0x728], edi
je 0x1400851df
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.140018c00
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.140135010
mov dword [rsp + 0x48], edi
mov word [rsp + 0x61], 0
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0xd14]
mov dword [rbp + 0x2320], ecx
lea rcx, [rsp + 0x30]
call fcn.140087da0
test eax, eax
je 0x140085082
mov r14d, dword [rbx + 0xa0]
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140085063
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 0x14008502e
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140085063
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x140085063
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 0x140085063
lea rcx, [rsp + 0x30]
call fcn.1400880b0
jmp 0x140085082
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 0x14008514a
mov qword [rsp + 0x30], r13
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400850c9
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x1400850e7
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 0x1400850f5
call fcn.140132640
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 0x140084f20
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x14008513c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xf0], rdi
xor eax, eax
jmp 0x1400852a5
mov qword [rsp + 0x30], r13
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140085191
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x1400851af
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 0x1400851bd
call fcn.140132640
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 0x1400851fa
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 0x140085126
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.140018c00
jmp 0x1400852a0
cmp qword [rbx + 0xf0], 0
je 0x14008528e
lea r8, str.vncServer::EnableConnections_:_KillAuthClients___fix_up_a_lock_up__n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x140085285
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.140132620
mov rbx, qword [rsp + 0x2490]
add rsp, 0x2440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret