Function at 0x140005e70
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x140079aa0]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x3c], 0
mov byte [rsp + 0x34], 1
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005ee5
mov rcx, qword [rsp + 0x1c0]
call fcn.1400074c0
lea rdx, str._nDetecting
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 9
call qword [rax + 0x50]
test eax, eax
jne 0x140005f29
mov edx, 0xffffffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
jmp 0x140005f68
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005f50
lea rdx, str._n_Error:_PRE_UNINSTALL_state_failed__r_n
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea r8, str.Failed_PRE_UNINSTALL_State
mov edx, 1
lea rcx, [0x140053948]
call fcn.14003fa80
lea rcx, [rsp + 0x48]
call fcn.140014e50
nop
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
xor r8d, r8d
lea rdx, [rsp + 0x48]
call qword [rax + 0x28]
test eax, eax
je 0x140005fdc
lea r8, str.Failed_GetPackageList_State
mov edx, 1
lea rcx, [0x140053a90]
call fcn.14003fa80
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x48]
call fcn.140018380
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.140035580
movzx eax, byte [rsp + 0x3b]
jmp 0x1400066d2
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x14000604f
lea rcx, [rsp + 0x48]
call fcn.140021c70
movzx eax, al
cmp eax, 1
jne 0x140006017
lea rdx, str._n_There_are_no_components_currently_installed__r_n
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
jmp 0x14000604f
lea rdx, str._n_List_of_Package:__r_n
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x1c0]
call fcn.1400070a0
lea rdx, str.UnInstalling
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea rcx, [rsp + 0x48]
call fcn.140021c70
movzx eax, al
test eax, eax
jne 0x140006610
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 0xa
call qword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400060a4
cmp dword [rsp + 0x30], 2
jne 0x1400060c1
mov edx, 0xffffffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
jmp 0x140006100
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x1400060e8
lea rdx, str._n_Error:_UNINSTALL_state_failed__r_n
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea r8, str.Failed_UNINSTALL_State
mov edx, 1
lea rcx, [0x1400548c0]
call fcn.14003fa80
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 0xb
call qword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006140
cmp dword [rsp + 0x30], 2
jne 0x14000615d
mov edx, 0xffffffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
jmp 0x14000619c
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140006184
lea rdx, str._n_Error:_POST_UNINSTALL_state_failed__r_n
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea r8, str.Failed_POST_UNINSTALL_State
mov edx, 1
lea rcx, [0x140054f58]
call fcn.14003fa80
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x58]
call fcn.140029bf0
mov rax, qword [rsp + 0x1c0]
add rax, 0x72
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x28]
mov rdx, qword [rsp + 0x1c0]
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x90], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0x80], rcx
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov rcx, rax
mov rax, qword [rsp + 0x80]
call qword [rax + 0x60]
test eax, eax
jne 0x140006483
mov rax, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1c0]
movzx ecx, byte [rcx + 0x72]
mov byte [rax], cl
mov rcx, qword [rsp + 0x1c8]
call fcn.140036370
movzx eax, al
test eax, eax
je 0x1400062c8
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x72]
cmp eax, 1
jne 0x1400062c3
lea r8, str.REBOOT_REQUIRED
xor edx, edx
lea rcx, [0x140055220]
call fcn.14003fa80
lea rcx, [rsp + 0xc8]
call fcn.140014930
nop
lea rdx, str._n_REBOOT_REQUIRED
lea rcx, [rsp + 0xc8]
call fcn.140020e70
lea rcx, [rsp + 0xc8]
call fcn.140021120
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
nop
lea rcx, [rsp + 0xc8]
call fcn.1400181d0
jmp 0x140006481
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x72]
cmp eax, 1
je 0x1400062e4
cmp dword [rsp + 0x58], 6
jae 0x140006481
lea r8, str.Machine_will_have_to_be_rebooted_to_complete_uninstall
xor edx, edx
lea rcx, [0x140055418]
call fcn.14003fa80
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140006320
lea rdx, str._n_Machine_will_have_to_be_rebooted_to_complete_uninstall
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
mov rcx, qword [rsp + 0x1c8]
call fcn.1400363a0
movzx eax, al
test eax, eax
je 0x140006481
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xa0]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000637f
mov byte [rsp + 0x3a], 0
lea rcx, [rsp + 0x48]
call fcn.140018380
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.140035580
movzx eax, byte [rsp + 0x3a]
jmp 0x1400066d2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0xbc]
mov r8, rax
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0xb8], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xc4], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xb8]
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000641f
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x48]
call fcn.140018380
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.140035580
movzx eax, byte [rsp + 0x36]
jmp 0x1400066d2
mov edx, 0x80040002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x14000645a
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x48]
call fcn.140018380
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.140035580
movzx eax, byte [rsp + 0x37]
jmp 0x1400066d2
mov byte [rsp + 0x38], 1
lea rcx, [rsp + 0x48]
call fcn.140018380
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.140035580
movzx eax, byte [rsp + 0x38]
jmp 0x1400066d2
jmp 0x1400064c2
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x1400064aa
lea rdx, str._n_Error:_AskReboot_failed__r_n
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea r8, str.Error:_Ask_Reboot_failed
mov edx, 1
lea rcx, [0x140055b78]
call fcn.14003fa80
mov rcx, qword [rsp + 0x1c0]
call fcn.140007780
mov rcx, qword [rsp + 0x1c8]
call fcn.1400363b0
movzx eax, al
test eax, eax
je 0x140006610
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140006506
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0xe8]
call fcn.1400292d0
nop
lea rcx, [rsp + 0xe8]
call fcn.140034630
lea rcx, [rsp + 0xe8]
call fcn.140021120
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.14002bcf0
nop
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x108]
call fcn.14001bf40
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14002cec0
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x138]
call fcn.1400181d0
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x1400065f5
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x108]
call fcn.14001bf40
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140021120
mov rdx, rax
lea rcx, [rsp + 0x178]
call fcn.14002bcf0
nop
lea rcx, [rsp + 0x158]
call fcn.1400181d0
lea rcx, [rsp + 0x178]
call fcn.140034430
nop
lea rcx, [rsp + 0x178]
call fcn.14002bd30
nop
lea rcx, [rsp + 0x108]
call fcn.14002bd30
nop
lea rcx, [rsp + 0xe8]
call fcn.1400181d0
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 3
call qword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006650
cmp dword [rsp + 0x30], 2
jne 0x14000666d
mov edx, 0xffffffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
jmp 0x1400066ac
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140006694
lea rdx, [0x140055b88]
mov rcx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
call fcn.14000dae0
lea r8, [0x140055bc8]
mov edx, 1
lea rcx, [0x140055bf0]
call fcn.14003fa80
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x35], al
lea rcx, [rsp + 0x48]
call fcn.140018380
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.140035580
movzx eax, byte [rsp + 0x35]
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140040570
add rsp, 0x1b8
ret