Function at 0x140043510
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, 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 rsi, qword [rdi + 0x880]
xor ebx, ebx
test rsi, rsi
je 0x1400435be
mov byte [rsi + 0x20], bl
cmp qword [rsi + 0x68], 0xffffffffffffffff
je 0x1400435a1
xor r9d, r9d
mov edx, 0x111
lea r8d, [rbx + 2]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0xffffffff
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsi + 0x18], rbx
mov rcx, qword [rdi + 0x880]
test rcx, rcx
je 0x1400435b7
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x880], rbx
mov rcx, qword [rdi + 0x680]
test rcx, rcx
je 0x1400435d4
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rdi + 0x4f8]
test rcx, rcx
je 0x1400435ec
call fcn.140138b40
mov qword [rdi + 0x4f8], rbx
mov rcx, qword [rdi + 0x4e8]
test rcx, rcx
je 0x140043604
call fcn.140138b40
mov qword [rdi + 0x4e8], rbx
mov rcx, qword [rdi + 0x4f0]
test rcx, rcx
je 0x14004361c
call fcn.140138b40
mov qword [rdi + 0x4f0], rbx
cmp qword [rdi + 0x3b0], rbx
je 0x14004365a
lea r8, str.vncClient::vncClient_:_deleting_socket_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rdi + 0x3b0]
test rcx, rcx
je 0x140043653
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x3b0], rbx
mov rcx, qword [rdi + 0x870]
test rcx, rcx
je 0x140043672
call fcn.140131f10
mov qword [rdi + 0x870], rbx
mov rcx, qword [rdi + 0x860]
test rcx, rcx
je 0x14004368a
call fcn.140131f10
mov qword [rdi + 0x860], rbx
mov rcx, qword [rdi + 0x830]
test rcx, rcx
je 0x14004369b
call fcn.140131f10
mov rcx, qword [rdi + 0x7e0]
test rcx, rcx
je 0x1400436ac
call fcn.140131f10
mov rcx, qword [rdi + 0x7e8]
test rcx, rcx
je 0x1400436bd
call fcn.140131f10
mov rax, qword [0x1401fef68]
cmp byte [rax + 0xe2c], bl
jne 0x1400436d8
cmp dword [rax + 0xe24], ebx
je 0x140043770
cmp byte [0x1401f42c3], bl
jne 0x140043770
mov rcx, qword [rdi + 0x4e0]
test rcx, rcx
je 0x14004370b
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jne 0x140043770
mov rcx, qword [rdi + 0x4e0]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jne 0x140043770
mov rsi, rbx
nop
xor r9d, r9d
lea r8, str.WinVNC_Tray_Icon
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rsi, rax
test rax, rax
je 0x14004374d
mov dword [rsp + 0x20], ebx
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 0x140043710
jmp 0x140043759
mov rsi, qword [0x1401f3970]
test rsi, rsi
je 0x140043770
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c42
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rdi + 0x508]
test rcx, rcx
je 0x140043781
call fcn.140138b40
mov rcx, qword [rdi + 0x510]
test rcx, rcx
je 0x140043792
call fcn.140138b40
mov rax, qword [rdi + 0x590]
test rax, rax
je 0x1400437f8
mov rcx, rax
call fcn.140038e00
xor edx, edx
mov rcx, qword [rdi + 0x590]
call fcn.1401255e0
mov rax, qword [rdi + 0x590]
test rax, rax
je 0x1400437f8
lea rdx, str._m_updatethread___NULL__n
lea rcx, [rsp + 0x30]
call fcn.140034840
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, Ordinal_102
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1e
je 0x1400437f8
cmp qword [rdi + 0x590], 0
jne 0x1400437c0
mov rcx, qword [rdi + 0x260]
test rcx, rcx
je 0x14004381c
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x4e0]
mov rsi, qword [rax + 0xd8]
test rsi, rsi
je 0x1400438d5
cmp qword [rax + 0x138], 1
ja 0x14004384b
cmp byte [rdi + 0x3ac], 0
je 0x14004384b
mov r9b, 1
jmp 0x14004384e
xor r9b, r9b
movsx r8d, word [rdi + 0x3d4]
mov rdx, qword [rsi + 0x28]
mov rbx, qword [rdx]
cmp rbx, rdx
je 0x1400438c8
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x140043886
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x140043886
cmp dword [rbx + 0x10], r8d
jne 0x140043886
cmp byte [rbx + 0x128], 0
jne 0x140043891
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rdx
jmp 0x140043860
call rax
mov rcx, qword [rbx + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [rsi + 0x30]
mov edx, 0x130
mov rcx, rbx
call fcn.140131f54
jmp 0x1400438d5
test r9b, r9b
je 0x1400438d5
mov rcx, rsi
call fcn.140031ef0
mov rcx, qword [rdi + 0x3c0]
test rcx, rcx
je 0x1400438e6
call fcn.140043a20
mov rbx, qword [rdi + 0x368]
test rbx, rbx
je 0x14004391c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140043900
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004390f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140131f54
lea rcx, [rdi + 0x9a8]
call fcn.140017260
nop
mov rcx, qword [rdi + 0x9a0]
test rcx, rcx
je 0x14004393c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rdi + 0x640]
call fcn.140131f10
mov rcx, qword [rdi + 0x620]
call fcn.140131f10
lea rcx, [rdi + 0x5e0]
call fcn.140017260
mov rcx, qword [rdi + 0x598]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rdi + 0x5a0]
call fcn.140138b40
lea rax, vtable.rfb::SimpleUpdateTracker.0
mov qword [rdi + 0x540], rax
mov rcx, qword [rdi + 0x568]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rdi + 0x570]
call fcn.140138b40
mov rcx, qword [rdi + 0x558]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rdi + 0x560]
call fcn.140138b40
mov rcx, qword [rdi + 0x548]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rdi + 0x550]
call fcn.140138b40
lea rax, vtable.rfb::UpdateTracker.0
mov qword [rdi + 0x540], rax
lea rcx, [rdi + 0x3e0]
call fcn.140036d20
nop
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret