Function at 0x180001f80
Capabilities:
Shutdown system

Disassembly:
jmp 0x18002c8d0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 1
je 0x18002c918
cmp dword [rsp + 0x58], 2
je 0x18002c9a1
cmp dword [rsp + 0x58], 3
je 0x18002ca28
cmp dword [rsp + 0x58], 6
je 0x18002cab7
jmp 0x18002cb31
lea rcx, str.EnableWarnings
call sym.ProcessMonitor.dll_PhGetIntegerSetting
test eax, eax
je 0x18002c94f
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.the_computer
lea rdx, str.shut_down
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x18002c99c
mov eax, dword [rsp + 0x80]
or eax, 8
mov dword [rsp + 0x20], 0x80000000
mov r9d, eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18002c983
mov al, 1
jmp 0x18002cb33
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowStatus
jmp 0x18002cb31
lea r8, str.shut_down
lea rdx, str.preforms_a_hard
lea rcx, str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.180010960
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x38]
mov r9, qword [rax + 8]
lea r8, str.the_computer
lea rdx, str.shut_down
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x18002ca23
mov ecx, 2
call qword [sym.imp.ntdll.dll_NtShutdownSystem]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x18002ca0a
mov al, 1
jmp 0x18002cb33
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowStatus
jmp 0x18002cb31
lea r8, str.shut_down
lea rdx, str.forces_a_critical
lea rcx, str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.180010960
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x48]
mov r9, qword [rax + 8]
lea r8, str.the_computer
lea rdx, str.shut_down
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x18002cab5
mov r8d, 0x80000000
mov edx, 6
mov ecx, 6
call qword [sym.imp.ntdll.dll_NtSetSystemPowerState]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x18002ca9c
mov al, 1
jmp 0x18002cb33
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowStatus
jmp 0x18002cb31
lea rcx, str.EnableWarnings
call sym.ProcessMonitor.dll_PhGetIntegerSetting
test eax, eax
je 0x18002caee
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.the_computer
lea rdx, str.update_and_shutdown
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x18002cb31
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0x48
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x18002cb18
mov al, 1
jmp 0x18002cb33
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessMonitor.dll_PhShowStatus
xor al, al
add rsp, 0x60
pop rdi
ret