Function at 0x140002da0
Capabilities:
Shutdown system

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x70
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rcx
mov esi, edx
lea rcx, str.EnableWarnings
mov ebx, 0xc0000001
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140002df8
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, r14
lea rdx, str.restart
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x140003085
mov qword [rsp + 0xa0], rdi
movaps xmmword [rsp + 0x60], xmm6
call fcn.140120a80
mov rdi, rax
test rax, rax
je 0x140002ffe
cmp esi, dword [rax]
jae 0x140002f0e
lfence
mov rcx, qword [rax + 8]
mov r8, qword [rcx + rsi*8]
movups xmm6, xmmword [r8]
call fcn.14011fc40
test al, al
je 0x140002fb5
mov rax, qword [0x140244b78]
lea rcx, [rsp + 0x30]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x140002fb3
mov qword [rsp + 0x98], rbp
mov rbp, qword [rsp + 0x30]
call fcn.14011fc40
test al, al
je 0x140002ee4
mov rax, qword [0x140244b88]
lea r8, [rsp + 0x38]
lea rdx, [0x140237a70]
mov rcx, rbp
call qword [case.0x1400f654f.0]
test eax, eax
js 0x140002ee2
mov rsi, qword [rsp + 0x38]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.14011fc40
test al, al
je 0x140002ec0
mov rax, qword [0x140244b80]
lea r8, [rsp + 0x40]
mov r9d, 0x10
mov edx, 0x24000002
mov rcx, rsi
call qword [case.0x1400f654f.0]
mov ebx, eax
test rsi, rsi
je 0x140002ee4
call fcn.14011fc40
test al, al
je 0x140002ee4
mov rax, qword [0x140244b58]
mov rcx, rsi
call qword [case.0x1400f654f.0]
nop
jmp 0x140002ee4
mov ebx, eax
test rbp, rbp
je 0x140002f06
call fcn.14011fc40
test al, al
je 0x140002f06
mov rax, qword [0x140244b70]
mov rcx, rbp
call qword [case.0x1400f654f.0]
mov rbp, qword [rsp + 0x98]
mov rcx, rdi
call fcn.140120b60
test ebx, ebx
js 0x140002fbd
mov r9d, 4
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
nop dword [rax]
test eax, eax
je 0x140003078
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_configure_the_boot_application.
mov rbx, rax
mov rcx, r14
test rax, rax
je 0x140003067
mov rdx, qword [rax + 8]
mov r8d, 0xfffe
mov qword [rsp + 0x28], rdx
lea rax, [0x1401b8d58]
mov edx, 0x20
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, ds:[rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003078
call fcn.1400fbcc0
jmp 0x140003078
mov ebx, eax
mov rcx, rdi
call fcn.140120b60
nop dword [rax]
cmp ebx, 0xc0000022
je 0x140002fe3
cmp ebx, 0xc0000005
je 0x140002fe3
mov eax, ebx
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x140002ffe
movzx eax, bx
jmp 0x140002fee
lfence
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
je 0x140002ffe
lfence
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
jmp 0x140003008
lfence
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
lea r9, str.Unable_to_configure_the_boot_application.
mov rbx, rax
mov rcx, r14
test rax, rax
je 0x140003067
lfence
lfence
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov r8d, 0xfffe
lea rax, [0x1401b8d58]
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003078
lfence
call fcn.1400fbcc0
jmp 0x140003078
lea r8, [0x1401efb68]
mov edx, 0x10
call sym.ProcessHacker.exe_PhShowMessage
mov rdi, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x70
pop r14
pop rsi
pop rbx
ret