Function at 0x140043660
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
lea rax, vtable.vncClient.0
mov qword [rcx], rax
mov byte [rcx + 0x118], 0
lea r8, str.vncClient::vncClient_:_vncClient___executing..._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rdi, qword [rbx + 0x880]
xor esi, esi
test rdi, rdi
je 0x14004370f
mov byte [rdi + 0x20], sil
cmp qword [rdi + 0x68], 0xffffffffffffffff
je 0x1400436f2
xor r9d, r9d
mov edx, 0x111
lea r8d, [rsi + 2]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rdi + 0x18], rsi
mov rcx, qword [rbx + 0x880]
test rcx, rcx
je 0x140043708
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x880], rsi
mov rcx, qword [rbx + 0x680]
test rcx, rcx
je 0x140043725
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x4f8]
test rcx, rcx
je 0x14004373d
call fcn.140137f10
mov qword [rbx + 0x4f8], rsi
mov rcx, qword [rbx + 0x4e8]
test rcx, rcx
je 0x140043755
call fcn.140137f10
mov qword [rbx + 0x4e8], rsi
mov rcx, qword [rbx + 0x4f0]
test rcx, rcx
je 0x14004376d
call fcn.140137f10
mov qword [rbx + 0x4f0], rsi
cmp qword [rbx + 0x3b0], rsi
je 0x1400437ab
lea r8, str.vncClient::vncClient_:_deleting_socket_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0x3b0]
test rcx, rcx
je 0x1400437a4
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x3b0], rsi
mov rcx, qword [rbx + 0x870]
test rcx, rcx
je 0x1400437c3
call fcn.1401312e0
mov qword [rbx + 0x870], rsi
mov rcx, qword [rbx + 0x860]
test rcx, rcx
je 0x1400437db
call fcn.1401312e0
mov qword [rbx + 0x860], rsi
mov rcx, qword [rbx + 0x830]
test rcx, rcx
je 0x1400437ec
call fcn.1401312e0
mov rcx, qword [rbx + 0x7e0]
test rcx, rcx
je 0x1400437fd
call fcn.1401312e0
mov rcx, qword [rbx + 0x7e8]
test rcx, rcx
je 0x14004380e
call fcn.1401312e0
mov rax, qword [0x1401fdf60]
cmp byte [rax + 0xe2c], sil
jne 0x14004382a
cmp dword [rax + 0xe24], esi
je 0x1400438c1
cmp byte [0x1401f32c3], sil
jne 0x1400438c1
mov rcx, qword [rbx + 0x4e0]
test rcx, rcx
je 0x14004385e
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jne 0x1400438c1
mov rcx, qword [rbx + 0x4e0]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jne 0x1400438c1
mov rdi, rsi
xor r9d, r9d
lea r8, str.WinVNC_Tray_Icon
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rdi, rax
test rax, rax
je 0x14004389e
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x20], eax
jne 0x140043861
jmp 0x1400438aa
mov rdi, qword [0x1401f2970]
test rdi, rdi
je 0x1400438c1
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c42
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rbx + 0x508]
test rcx, rcx
je 0x1400438d2
call fcn.140137f10
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x1400438e3
call fcn.140137f10
mov rax, qword [rbx + 0x590]
test rax, rax
je 0x14004390c
mov rcx, rax
call fcn.140038e60
xor edx, edx
mov rcx, qword [rbx + 0x590]
call fcn.1401249b0
mov rax, qword [rbx + 0x590]
mov edi, esi
test rax, rax
je 0x14004394a
lea rdx, str._m_updatethread___NULL__n
lea rcx, [rsp + 0x30]
call fcn.1400348a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, Ordinal_102
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
je 0x14004394a
cmp qword [rbx + 0x590], rsi
jne 0x140043913
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x14004396e
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x3c0]
test rcx, rcx
je 0x14004397f
call fcn.140043ac0
mov rdi, qword [rbx + 0x368]
test rdi, rdi
je 0x1400439b5
mov rcx, qword [rdi]
test rcx, rcx
je 0x140043999
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400439a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.140131324
mov qword [rbx + 0x368], rsi
lea rcx, [rbx + 0x9a8]
call fcn.140017260
nop
mov rcx, qword [rbx + 0x9a0]
test rcx, rcx
je 0x1400439dc
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbx + 0x640]
call fcn.1401312e0
mov rcx, qword [rbx + 0x620]
call fcn.1401312e0
lea rcx, [rbx + 0x5e0]
call fcn.140017260
mov rcx, qword [rbx + 0x598]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbx + 0x5a0]
call fcn.140137f10
lea rax, vtable.rfb::SimpleUpdateTracker.0
mov qword [rbx + 0x540], rax
mov rcx, qword [rbx + 0x568]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbx + 0x570]
call fcn.140137f10
mov rcx, qword [rbx + 0x558]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbx + 0x560]
call fcn.140137f10
mov rcx, qword [rbx + 0x548]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbx + 0x550]
call fcn.140137f10
lea rax, vtable.rfb::UpdateTracker.0
mov qword [rbx + 0x540], rax
lea rcx, [rbx + 0x3e0]
call fcn.140036d80
nop
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401312c0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret