Function at 0x1400054a0
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 [0x140070a30]
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 0x140005515
mov rcx, qword [rsp + 0x1c0]
call fcn.140006af0
lea rdx, [0x140043788]
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.14000c200
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 0x140005559
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 0x140005598
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005580
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.14000c200
lea r8, str.Failed_PRE_UNINSTALL_State
mov edx, 1
lea rcx, [0x140043878]
call fcn.140039830
lea rcx, [rsp + 0x48]
call fcn.140011870
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 0x14000560c
lea r8, [0x1400438a8]
mov edx, 1
lea rcx, [0x140043908]
call fcn.140039830
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.14002f590
movzx eax, byte [rsp + 0x3b]
jmp 0x140005d02
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x14000567f
lea rcx, [rsp + 0x48]
call fcn.14001d300
movzx eax, al
cmp eax, 1
jne 0x140005647
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.14000c200
jmp 0x14000567f
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.14000c200
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x1c0]
call fcn.1400066d0
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.14000c200
lea rcx, [rsp + 0x48]
call fcn.14001d300
movzx eax, al
test eax, eax
jne 0x140005c40
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 0x1400056d4
cmp dword [rsp + 0x30], 2
jne 0x1400056f1
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 0x140005730
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005718
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.14000c200
lea r8, str.Failed_UNINSTALL_State
mov edx, 1
lea rcx, [0x140043f08]
call fcn.140039830
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 0x140005770
cmp dword [rsp + 0x30], 2
jne 0x14000578d
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 0x1400057cc
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x1400057b4
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.14000c200
lea r8, str.Failed_POST_UNINSTALL_State
mov edx, 1
lea rcx, [0x140044040]
call fcn.140039830
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.140023c00
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 0x140005ab3
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.140030360
movzx eax, al
test eax, eax
je 0x1400058f8
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x72]
cmp eax, 1
jne 0x1400058f3
lea r8, str.REBOOT_REQUIRED
xor edx, edx
lea rcx, [0x1400440c8]
call fcn.140039830
lea rcx, [rsp + 0xc8]
call fcn.1400112f0
nop
lea rdx, str._n_REBOOT_REQUIRED
lea rcx, [rsp + 0xc8]
call fcn.14001c5a0
lea rcx, [rsp + 0xc8]
call fcn.14001c850
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.14000c200
nop
lea rcx, [rsp + 0xc8]
call fcn.1400146d0
jmp 0x140005ab1
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x72]
cmp eax, 1
je 0x140005914
cmp dword [rsp + 0x58], 6
jae 0x140005ab1
lea r8, str.Machine_will_have_to_be_rebooted_to_complete_uninstall
xor edx, edx
lea rcx, [0x140044170]
call fcn.140039830
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005950
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.14000c200
mov rcx, qword [rsp + 0x1c8]
call fcn.140030390
movzx eax, al
test eax, eax
je 0x140005ab1
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 0x1400059af
mov byte [rsp + 0x3a], 0
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.14002f590
movzx eax, byte [rsp + 0x3a]
jmp 0x140005d02
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 0x140005a4f
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.14002f590
movzx eax, byte [rsp + 0x36]
jmp 0x140005d02
mov edx, 0x80040002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140005a8a
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.14002f590
movzx eax, byte [rsp + 0x37]
jmp 0x140005d02
mov byte [rsp + 0x38], 1
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.14002f590
movzx eax, byte [rsp + 0x38]
jmp 0x140005d02
jmp 0x140005af2
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005ada
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.14000c200
lea r8, str.Error:_Ask_Reboot_failed
mov edx, 1
lea rcx, [0x140044298]
call fcn.140039830
mov rcx, qword [rsp + 0x1c0]
call fcn.140006db0
mov rcx, qword [rsp + 0x1c8]
call fcn.1400303a0
movzx eax, al
test eax, eax
je 0x140005c40
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005b36
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0xe8]
call fcn.1400232e0
nop
lea rcx, [rsp + 0xe8]
call fcn.14002e640
lea rcx, [rsp + 0xe8]
call fcn.14001c850
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.140025d00
nop
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x108]
call fcn.140017d80
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140026ed0
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x138]
call fcn.1400146d0
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x140005c25
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x108]
call fcn.140017d80
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14001c850
mov rdx, rax
lea rcx, [rsp + 0x178]
call fcn.140025d00
nop
lea rcx, [rsp + 0x158]
call fcn.1400146d0
lea rcx, [rsp + 0x178]
call fcn.14002e440
nop
lea rcx, [rsp + 0x178]
call fcn.140025d40
nop
lea rcx, [rsp + 0x108]
call fcn.140025d40
nop
lea rcx, [rsp + 0xe8]
call fcn.1400146d0
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 0x140005c80
cmp dword [rsp + 0x30], 2
jne 0x140005c9d
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 0x140005cdc
mov rcx, qword [rsp + 0x1c0]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005cc4
lea rdx, [0x1400442a8]
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.14000c200
lea r8, [0x1400442e8]
mov edx, 1
lea rcx, [0x140044310]
call fcn.140039830
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x35], al
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
mov rcx, qword [rsp + 0x1c8]
call fcn.14002f590
movzx eax, byte [rsp + 0x35]
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14003a110
add rsp, 0x1b8
ret