Function at 0x140073f80
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
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 rbx, rcx
lea rax, vtable.vncHTTPConnect.0
mov qword [rcx], rax
mov r15d, 2
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140074000
lea r8, str.VSocket::Shutdown_:_shutdown_socket_n
lea edx, [r15 + 8]
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rbx + 0x2408]
test rax, rax
je 0x1400742da
mov dword [rax + 0xa8], 1
lea r12, vtable.VSocket.0
mov qword [rsp + 0x30], r12
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
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x60], r14b
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x14], r14
mov byte [rbp - 0x18], r14b
xor edx, edx
mov r8d, 0x232c
lea rcx, [rbp - 0xc]
call fcn.1401348e0
mov dword [rsp + 0x48], r14d
mov word [rsp + 0x61], r14w
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0xd14]
mov dword [rbp + 0x2320], ecx
lea rcx, [rsp + 0x30]
call fcn.1400871f0
mov rax, qword [rsp + 0x40]
cmp rax, 0xffffffffffffffff
je 0x1400740ec
mov word [rsp + 0x20], r15w
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x24], eax
lea r8d, [r14 + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_bind]
mov rax, qword [rsp + 0x40]
mov edi, dword [rbx + 0x2400]
cmp rax, 0xffffffffffffffff
je 0x1400741b8
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x20], r15w
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
jne 0x140074144
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140074176
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
test rdx, rdx
je 0x140074176
mov eax, dword [rdx]
mov dword [rsp + 0x24], eax
movzx ecx, di
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 0x140074176
lea rcx, [rsp + 0x30]
call fcn.140087500
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400741b8
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, r15d
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 0x1400741d6
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x38], r14
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x2408]
call fcn.1401255e0
mov qword [rbx + 0x2408], r14
cmp qword [rbx + 0x18], 0xffffffffffffffff
je 0x14007422c
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x18], 0xffffffffffffffff
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140074247
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x10], r14
mov qword [rsp + 0x30], r12
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x14007428e
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov edx, r15d
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 0x1400742ac
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x38], r14
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400742ba
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
lea rcx, [rbx + 8]
call fcn.140087140
nop
mov rcx, qword [rbp + 0x2330]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x2440]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret