Function at 0x140001fe0
Capabilities:
Shutdown system

Disassembly:
jmp 0x14002d650
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 0x14002d698
cmp dword [rsp + 0x58], 2
je 0x14002d721
cmp dword [rsp + 0x58], 3
je 0x14002d7a8
cmp dword [rsp + 0x58], 6
je 0x14002d837
jmp 0x14002d8b1
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14002d6cf
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.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x14002d71c
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 0x14002d703
mov al, 1
jmp 0x14002d8b3
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessHacker.exe_PhShowStatus
jmp 0x14002d8b1
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.1400110d0
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.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x14002d7a3
mov ecx, 2
call qword [sym.imp.ntdll.dll_NtShutdownSystem]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14002d78a
mov al, 1
jmp 0x14002d8b3
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessHacker.exe_PhShowStatus
jmp 0x14002d8b1
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.1400110d0
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.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x14002d835
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 0x14002d81c
mov al, 1
jmp 0x14002d8b3
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessHacker.exe_PhShowStatus
jmp 0x14002d8b1
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14002d86e
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.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x14002d8b1
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 0x14002d898
mov al, 1
jmp 0x14002d8b3
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
lea rdx, str.Unable_to_shut_down_the_computer.
mov rcx, qword [rsp + 0x70]
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
add rsp, 0x60
pop rdi
ret