Function at 0x140043a00
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 [0x1400c24b8]
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 0x140043c34
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 0x140043c00
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140043ef2
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140043ef2
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 0x140043be1
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.1400437a0
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 0x140043b45
add rax, 2
test ecx, ecx
jne 0x140043b31
test edx, edx
je 0x140043c60
lea rbx, [rbp + 0x1a0]
cmp r10, 8
cmovae rbx, r9
call fcn.14004e890
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.14004f020
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x140043be1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043bdc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004412e
call fcn.140064808
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x140043ae0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14004e890
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.14004f020
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140064920
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 0x140043c83
mov qword [rsp + 0x48], rax
mov esi, 1
jmp 0x140043cb8
call fcn.14004e890
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.14004f020
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x140043cfe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043cf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004412e
call fcn.140064808
test esi, esi
je 0x140043ef2
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140043ef2
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140043ef2
lea rdx, [0x140096788]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140043e33
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.1400437a0
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 0x140043d97
add rax, 2
test ecx, ecx
jne 0x140043d83
test edx, edx
je 0x140043e57
lea rbx, [rbp + 0x1a0]
cmp r10, 8
cmovae rbx, r9
call fcn.14004e890
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.14004f020
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x140043e33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043e2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044128
call fcn.140064808
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x140043d32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140043f03
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140043e77
mov qword [rsp + 0x50], rax
inc esi
jmp 0x140043eac
call fcn.14004e890
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.14004f020
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x140043ef2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043eed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044128
call fcn.140064808
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140043c00
call fcn.14004e890
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.14004f020
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 0x140043ff3
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 0x140043f3b
cmp dword [rbp + 0x1a8], 0x12
je 0x140043fcd
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 0x140043f84
jmp 0x140043f3b
call fcn.14004e890
mov rcx, rax
lea rax, str.watchdog_WM_QUIT
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x8a
mov edx, 3
jmp 0x140043c21
call fcn.14004e890
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.14004f020
test esi, esi
je 0x140044047
lea rbx, [rsp + 0x48]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x140044034
test edi, edi
jne 0x1400440fb
mov dword [rsp + 0x20], 0x4ff
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400ca5f8]
lea ecx, [rdi + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
jne 0x140043c34
call fcn.14004e890
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.14004f020
mov edx, 0xff0000
mov ecx, 0x10000
call fcn.140045580
lea r8, str.nView_WOW_Process_Shutdown_Event
lea edx, [rdi + 1]
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [0x1400ca5b8], rax
mov rax, qword [0x1400ca5a8]
and dword [rax + 0x60], 0xfffffffe
mov rax, qword [0x1400ca5a8]
mov qword [rax + 0x30], 0
xor ecx, ecx
call fcn.1400296c0
jmp 0x140043c34
cmp edi, 1
jne 0x140043c34
call fcn.14004e890
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 0x140043c21
call fcn.14006b51c
int3
call fcn.14006b51c
int3