Function at 0x10000b160
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov ebp, ecx
mov rcx, qword [0x10001d1e0]
lea rdi, [0x10001d1e0]
cmp rcx, rdi
je 0x10000b1a6
test byte [rcx + 0x1c], 8
je 0x10000b1a6
cmp byte [rcx + 0x19], 5
jb 0x10000b1a6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x5f
call fcn.10000121c
mov ecx, 0x80000001
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov r14d, 1
lea ecx, [r14 + 0x12]
mov edx, r14d
call fcn.1000130cc
lea edx, [r14 + 5]
lea r8d, [r14 + 0x1f]
mov ecx, 0x3e9
call fcn.10000ec00
lea ebx, [r14 + 0x14]
cmp ebp, r14d
jne 0x10000b1e4
lea ebx, [r14 + 0x16]
jmp 0x10000b1ef
mov eax, 0x1d
cmp ebp, 2
cmove ebx, eax
mov rcx, qword [0x10001dbd0]
mov dword [rsp + 0x70], ebx
mov r13d, 4
test rcx, rcx
je 0x10000b246
lea rdx, [0x100016be0]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b246
mov rcx, qword [0x10001dbd0]
and dword [rsp + 0x3c], 0
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
lea rdx, [0x100016be0]
mov r8d, r14d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r13d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x10000b258
xor esi, esi
jmp 0x10000b260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x10001dbd0]
mov dword [rsp + 0x70], esi
test rcx, rcx
je 0x10000b2b1
lea rdx, [0x100016bf0]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b2b1
mov rcx, qword [0x10001dbd0]
and dword [rsp + 0x3c], 0
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
lea rdx, [0x100016bf0]
mov r8d, r14d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r13d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
mov rcx, qword [0x10001d1e0]
cmp rcx, rdi
je 0x10000b2e1
test byte [rcx + 0x1c], 8
je 0x10000b2e1
cmp byte [rcx + 0x19], 5
jb 0x10000b2e1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x60
mov r9d, esi
call fcn.100001e70
test esi, esi
je 0x10000b30c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov edx, 0xc0000bbd
mov r8d, 8
movzx ecx, r14w
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x7c], ebx
call fcn.10000ec6c
mov rcx, qword [0x10001dbd0]
test rcx, rcx
je 0x10000b343
lea rdx, [0x100016ba0]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b343
mov rcx, qword [0x10001dbd0]
lea rdx, [0x100016ba0]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
mov ecx, dword [0x10001de1c]
xor edi, edi
lea r13, [0x10001de20]
test ecx, ecx
je 0x10000b3c6
mov rbx, r13
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10000b37d
cmp dword [rsp + 0x70], 0x103
jne 0x10000b37d
mov ecx, dword [0x10001de1c]
jmp 0x10000b3a0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10001de1c]
dec ecx
mov dword [0x10001de1c], ecx
mov rax, qword [r13 + rcx*8]
mov qword [rbx], rax
cmp edi, ecx
jne 0x10000b359
add edi, r14d
add rbx, 8
cmp edi, ecx
jb 0x10000b359
test ecx, ecx
je 0x10000b3c6
and dword [rsp + 0x20], 0
mov r9d, 0xfa0
xor r8d, r8d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov rcx, qword [0x10001dbd0]
test rcx, rcx
je 0x10000b434
lea rdx, [0x100016bb0]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b3fd
mov rcx, qword [0x10001dbd0]
lea rdx, [0x100016bb0]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
mov rcx, qword [0x10001dbd0]
test rcx, rcx
je 0x10000b434
lea rdx, [0x100016bc0]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b434
mov rcx, qword [0x10001dbd0]
lea rdx, [0x100016bc0]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
lea rcx, [0x10000b130]
call fcn.1000108f0
mov rcx, qword [0x10001dbd0]
test rcx, rcx
je 0x10000b477
lea rdx, [0x100016bd0]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b477
mov rcx, qword [0x10001dbd0]
lea rdx, [0x100016bd0]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
mov edx, 6
mov ecx, 0x3ea
lea r8d, [rdx + 0xa]
call fcn.10000ec00
mov rcx, qword [0x10001d210]
test rcx, rcx
je 0x10000b4a4
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
and qword [0x10001d210], 0
call fcn.10000aa20
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x10000b4e0
test byte [rcx + 0x1c], 8
je 0x10000b4e0
cmp byte [rcx + 0x19], 4
jb 0x10000b4e0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x61
mov r9d, ebp
call fcn.100001e70
mov rcx, qword [0x10001dbd0]
test rcx, rcx
je 0x10000b517
lea rdx, [0x100016c00]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x10000b517
mov rcx, qword [0x10001dbd0]
lea rdx, [0x100016c00]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_EtwEventWrite]
mov ecx, ebp
call qword [sym.imp.ntdll.dll_NtShutdownSystem]
xor edx, edx
lea ecx, [rdx + 0x13]
call fcn.1000130cc
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x80]
mov eax, esi
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret