Function at 0x14004cf30
Capabilities:
Enumerate processes
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
lea r8, str.nView_Wathcdog_Process_Active
mov edx, 1
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
jne 0x14004d164
lea r9, str.nView_Wathcdog_Process_Active
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
mov dword [rsp + 0x60], 0x238
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
mov dword [rsp + 0x40], 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test rdi, rdi
je 0x14004d130
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x14004d422
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x14004d422
lea r14, str.Active_user_name___s____process_user_name___s_
nop word [rax + rax]
lea rdx, str.nViewMain64.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004d111
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.14004ccd0
nop
lea rax, [rbp + 0x1a0]
mov r9, qword [rbp + 0x1a0]
mov r10, qword [rbp + 0x1b8]
cmp r10, 8
cmovae rax, r9
lea r8, [rbp + 0x1d0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14004d075
add rax, 2
test ecx, ecx
jne 0x14004d061
test edx, edx
je 0x14004d190
lea rbx, [rbp + 0x1a0]
cmp r10, 8
cmovae rbx, r9
call fcn.1400588c0
mov rcx, rax
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x4b
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
mov edx, 1
call fcn.140058e40
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d111
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d10c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d65e
call fcn.14006ec58
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x14004d010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400588c0
mov rcx, rax
lea rax, str.nviewProcessHandleCount__0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xbd
mov edx, 1
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
call fcn.140058e40
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14006ed70
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14004d1b3
mov qword [rsp + 0x48], rax
mov esi, 1
jmp 0x14004d1e8
call fcn.1400588c0
mov rcx, rax
lea rax, str.failed_to_get_process_handle
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x45
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
mov edx, 1
call fcn.140058e40
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d22e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d65e
call fcn.14006ec58
test esi, esi
je 0x14004d422
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x14004d422
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x14004d422
lea rdx, [0x1400a0a48]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004d363
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.14004ccd0
nop
lea rax, [rbp + 0x1a0]
mov r9, qword [rbp + 0x1a0]
mov r10, qword [rbp + 0x1b8]
cmp r10, 8
cmovae rax, r9
lea r8, [rbp + 0x1d0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14004d2c7
add rax, 2
test ecx, ecx
jne 0x14004d2b3
test edx, edx
je 0x14004d387
lea rbx, [rbp + 0x1a0]
cmp r10, 8
cmovae rbx, r9
call fcn.1400588c0
mov rcx, rax
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x6a
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
mov edx, 1
call fcn.140058e40
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d363
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d35e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d658
call fcn.14006ec58
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x14004d262
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004d433
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14004d3a7
mov qword [rsp + 0x50], rax
inc esi
jmp 0x14004d3dc
call fcn.1400588c0
mov rcx, rax
lea rax, str.failed_to_get_WOW_process_handle
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
mov edx, 1
call fcn.140058e40
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d422
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d41d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d658
call fcn.14006ec58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14004d130
call fcn.1400588c0
mov rcx, rax
mov dword [rsp + 0x30], esi
lea rax, str.entering_watchdog_wait_state.__nviewProcessHandleCount_d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x76
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
mov edx, 3
call fcn.140058e40
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov ecx, esi
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
mov edi, eax
jne 0x14004d523
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14004d46b
cmp dword [rbp + 0x1a8], 0x12
je 0x14004d4fd
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14004d4b4
jmp 0x14004d46b
call fcn.1400588c0
mov rcx, rax
lea rax, str.watchdog_WM_QUIT
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x8a
mov edx, 3
jmp 0x14004d151
call fcn.1400588c0
mov rcx, rax
mov dword [rsp + 0x30], edi
lea rax, str.exited_wait_state._Status_x
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x98
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
mov edx, 3
call fcn.140058e40
test esi, esi
je 0x14004d577
lea rbx, [rsp + 0x48]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x14004d564
test edi, edi
jne 0x14004d62b
mov dword [rsp + 0x20], 0x4ff
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400d57a8]
lea ecx, [rdi + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
jne 0x14004d164
call fcn.1400588c0
mov rcx, rax
lea rax, str.unexpected_shutdown_of_nviewmain64
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xaa
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainWatchdog.cpp
lea r8, str.NviewWatchdogProcess
lea edx, [rdi + 1]
call fcn.140058e40
mov edx, 0xff0000
mov ecx, 0x10000
call fcn.14004eba0
lea r8, str.nView_WOW_Process_Shutdown_Event
lea edx, [rdi + 1]
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [0x1400d5768], rax
mov rax, qword [0x1400d5758]
and dword [rax + 0x60], 0xfffffffe
mov rax, qword [0x1400d5758]
mov qword [rax + 0x30], 0
xor ecx, ecx
call fcn.140032830
jmp 0x14004d164
cmp edi, 1
jne 0x14004d164
call fcn.1400588c0
mov rcx, rax
lea rax, str.detected_shutdown_of_nviewmain32
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb5
lea edx, [rdi + 2]
jmp 0x14004d151
call fcn.14007576c
int3
call fcn.14007576c
int3