Function at 0x140043660
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1401ef010]
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 rbx, qword [rdi + 0x880]
xor ebp, ebp
test rbx, rbx
je 0x140043714
mov byte [rbx + 0x20], bpl
cmp qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400436f7
xor r9d, r9d
mov edx, 0x111
lea r8d, [rbp + 2]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rbx + 0x18], rbp
mov rcx, qword [rdi + 0x880]
test rcx, rcx
je 0x14004370d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x880], rbp
mov rcx, qword [rdi + 0x680]
test rcx, rcx
je 0x14004372a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rdi + 0x4f8]
test rcx, rcx
je 0x140043742
call fcn.140137f30
mov qword [rdi + 0x4f8], rbp
mov rcx, qword [rdi + 0x4e8]
test rcx, rcx
je 0x14004375a
call fcn.140137f30
mov qword [rdi + 0x4e8], rbp
mov rcx, qword [rdi + 0x4f0]
test rcx, rcx
je 0x140043772
call fcn.140137f30
mov qword [rdi + 0x4f0], rbp
cmp qword [rdi + 0x3b0], rbp
je 0x1400437b0
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 0x1400437a9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x3b0], rbp
mov rcx, qword [rdi + 0x870]
test rcx, rcx
je 0x1400437c8
call fcn.140131300
mov qword [rdi + 0x870], rbp
mov rcx, qword [rdi + 0x860]
test rcx, rcx
je 0x1400437e0
call fcn.140131300
mov qword [rdi + 0x860], rbp
mov rcx, qword [rdi + 0x830]
test rcx, rcx
je 0x1400437f1
call fcn.140131300
mov rcx, qword [rdi + 0x7e0]
test rcx, rcx
je 0x140043802
call fcn.140131300
mov rcx, qword [rdi + 0x7e8]
test rcx, rcx
je 0x140043813
call fcn.140131300
mov rax, qword [0x1401fdf60]
cmp byte [rax + 0xe2c], bpl
jne 0x14004382f
cmp dword [rax + 0xe24], ebp
je 0x1400438d0
cmp byte [0x1401f32c3], bpl
jne 0x1400438d0
mov rcx, qword [rdi + 0x4e0]
test rcx, rcx
je 0x140043863
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jne 0x1400438d0
mov rcx, qword [rdi + 0x4e0]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jne 0x1400438d0
mov rbx, rbp
nop word [rax + rax]
xor r9d, r9d
lea r8, str.WinVNC_Tray_Icon
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rbx, rax
test rax, rax
je 0x1400438ad
mov dword [rsp + 0x20], ebp
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 0x140043870
jmp 0x1400438b9
mov rbx, qword [0x1401f2970]
test rbx, rbx
je 0x1400438d0
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c42
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rdi + 0x508]
test rcx, rcx
je 0x1400438e1
call fcn.140137f30
mov rcx, qword [rdi + 0x510]
test rcx, rcx
je 0x1400438f2
call fcn.140137f30
mov rax, qword [rdi + 0x590]
test rax, rax
je 0x14004391b
mov rcx, rax
call fcn.140038e60
xor edx, edx
mov rcx, qword [rdi + 0x590]
call fcn.1401249d0
mov rax, qword [rdi + 0x590]
mov ebx, ebp
test rax, rax
je 0x140043959
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 ebx
cmp ebx, 0x1e
je 0x140043959
cmp qword [rdi + 0x590], rbp
jne 0x140043922
mov rcx, qword [rdi + 0x260]
test rcx, rcx
je 0x14004397d
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 0x140043a36
cmp qword [rax + 0x138], 1
ja 0x1400439ac
cmp byte [rdi + 0x3ac], bpl
je 0x1400439ac
mov r9b, 1
jmp 0x1400439af
xor r9b, r9b
movsx r8d, word [rdi + 0x3d4]
mov rdx, qword [rsi + 0x28]
mov rbx, qword [rdx]
cmp rbx, rdx
je 0x140043a29
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x1400439e7
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x1400439e7
cmp dword [rbx + 0x10], r8d
jne 0x1400439e7
cmp byte [rbx + 0x128], bpl
jne 0x1400439f2
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rdx
jmp 0x1400439c1
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.140131344
jmp 0x140043a36
test r9b, r9b
je 0x140043a36
mov rcx, rsi
call fcn.140031f50
mov rcx, qword [rdi + 0x3c0]
test rcx, rcx
je 0x140043a47
call fcn.140043b80
mov rbx, qword [rdi + 0x368]
test rbx, rbx
je 0x140043a7d
mov rcx, qword [rbx]
test rcx, rcx
je 0x140043a61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140043a70
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140131344
mov qword [rdi + 0x368], rbp
lea rcx, [rdi + 0x9a8]
call fcn.140017260
nop
mov rcx, qword [rdi + 0x9a0]
test rcx, rcx
je 0x140043aa4
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rdi + 0x640]
call fcn.140131300
mov rcx, qword [rdi + 0x620]
call fcn.140131300
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.140137f30
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.140137f30
mov rcx, qword [rdi + 0x558]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rdi + 0x560]
call fcn.140137f30
mov rcx, qword [rdi + 0x548]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rdi + 0x550]
call fcn.140137f30
lea rax, vtable.rfb::UpdateTracker.0
mov qword [rdi + 0x540], rax
lea rcx, [rdi + 0x3e0]
call fcn.140036d80
nop
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401312e0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret