Function at 0x140031420
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
xor ebx, ebx
call fcn.140031130
test al, al
jne 0x140031522
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
lea r8d, [rbx + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp - 9]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 9]
lea rdx, [rbp - 0x79]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.AdjustToken_failed
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x12
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x51], rbx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp - 0x61]
movaps xmmword [rbp - 0x39], xmm1
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x29], xmm0
lea r9, [rbp - 0x19]
lea r8d, [rbx + 4]
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x79]
call fcn.140007190
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14003150b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003150b
mov rbx, qword [rbp - 0x71]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003150b
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140031656
mov rcx, qword [rbp - 9]
jmp 0x140031629
mov dword [rsp + 0x28], 0x80040001
mov dword [rsp + 0x20], ebx
mov r9d, 1
lea r8d, [r9 + 0x3b]
lea rdx, [0x1400719e0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
test eax, eax
jne 0x14003165d
movups xmmword [rbp + 0x17], xmm0
movdqu xmmword [rbp + 0x27], xmm1
lea rcx, [rbp + 0x17]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x79]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x51], rbx
lea rax, str.InitiateSystemShutdownExW_failed___
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x25
movups xmm0, xmmword [rbp - 0x61]
movaps xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rbp - 0x29], xmm1
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x79]
call fcn.140019af0
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14003161b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003161b
mov rbx, qword [rbp - 0x71]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003161b
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140031656
mov rcx, qword [rbp + 0x17]
inc rdx
cmp rdx, 0x1000
mov rax, rcx
jb 0x140031651
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031761
call fcn.140038e94
xor al, al
jmp 0x14003174c
movups xmmword [rbp + 0x37], xmm0
movdqu xmmword [rbp + 0x47], xmm1
lea rcx, [rbp + 0x37]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x37]
lea rdx, [rbp - 0x79]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Shutdown_initiated
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x12
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x51], rbx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp - 0x61]
movaps xmmword [rbp - 0x39], xmm1
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x29], xmm0
lea r9, [rbp - 0x19]
mov r8d, 2
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x79]
call fcn.140007190
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x140031713
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140031713
mov rbx, qword [rbp - 0x71]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140031713
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x4f]
cmp rdx, 0xf
jbe 0x14003174a
inc rdx
mov rcx, qword [rbp + 0x37]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031745
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031761
call fcn.140038e94
mov al, 1
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140042e3c
int3