Function at 0x1400048c0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4f8
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rax, qword [0x140070a30]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x500]
cmp qword [rax + 0x28], 0
jne 0x140004927
mov byte [rsp + 0x37], 0
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x37]
jmp 0x140005482
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x14000497e
mov rcx, qword [rsp + 0x500]
call fcn.140006af0
movzx eax, al
test eax, eax
jne 0x14000496b
mov byte [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x3c]
jmp 0x140005482
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.14000c200
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 5
call qword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400049b3
cmp dword [rsp + 0x30], 2
jne 0x1400049d0
mov edx, 0xffffffff
mov rax, qword [rsp + 0x500]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
jmp 0x140004a1e
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004a06
lea rdx, str._n_Error:_PRE_INSTALL_state_failed
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, [0x1400450d4]
mov rcx, rax
call fcn.14000c200
lea r8, str.Failed_PRE_INSTALL_State
mov edx, 1
lea rcx, [0x14004c9f0]
call fcn.140039830
lea rcx, [rsp + 0x160]
call fcn.140014020
nop
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
lea rdx, [rsp + 0x160]
call qword [rax + 0x10]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140004a68
cmp dword [rsp + 0x30], 2
jne 0x140004aea
cmp dword [rsp + 0x3ec], 0
ja 0x140004aea
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004aa8
lea rdx, str._n_Error:_Failed_to_find_any_installable_components
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, [0x140046204]
mov rcx, rax
call fcn.14000c200
lea r8, str.Failed_PRE_INSTALL_State_for_finding_compatible_HW
mov edx, 1
lea rcx, [0x14004d1f8]
call fcn.140039830
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x38]
jmp 0x140005482
lea rcx, [rsp + 0x58]
call fcn.140011870
nop
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
xor r8d, r8d
lea rdx, [rsp + 0x58]
call qword [rax + 0x28]
test eax, eax
je 0x140004b6c
lea r8, str.Failed_GetPackageList
mov edx, 1
lea rcx, [0x14004d410]
call fcn.140039830
mov byte [rsp + 0x3a], 0
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x3a]
jmp 0x140005482
lea rcx, [rsp + 0x58]
call fcn.14001d300
movzx eax, al
test eax, eax
jne 0x1400053c1
lea rcx, [rsp + 0x48]
call fcn.140011870
nop
lea rcx, [rsp + 0x70]
call fcn.140011870
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f9d0
movzx eax, al
test eax, eax
je 0x140004c1d
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x508]
call fcn.14002f8c0
nop
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x88]
call fcn.140011170
mov qword [rsp + 0xa8], rax
mov r9, qword [rsp + 0xa8]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x500]
call fcn.140008570
nop
lea rcx, [rsp + 0x138]
call fcn.1400146d0
jmp 0x140004c34
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x500]
call fcn.1400089d0
movzx eax, byte [0x140070a51]
test eax, eax
je 0x140004c50
lea rdx, [rsp + 0x48]
lea rcx, [0x140070a78]
call fcn.140015a40
mov rcx, qword [rsp + 0x500]
call fcn.1400044b0
lea rcx, [rsp + 0x48]
call fcn.14001d300
movzx eax, al
cmp eax, 1
jne 0x140004d88
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004ca9
lea rdx, str._n_All_components_are_up_to_date
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, [0x140047654]
mov rcx, rax
call fcn.14000c200
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 3
call qword [rax + 0x50]
test eax, eax
jne 0x140004ced
mov edx, 0xffffffff
mov rax, qword [rsp + 0x500]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
jmp 0x140004d3b
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004d23
lea rdx, str._n_Error:_EXIT_state_failed
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, [0x140047c24]
mov rcx, rax
call fcn.14000c200
lea r8, str.Failed_EXIT_State
mov edx, 1
lea rcx, [0x14004e358]
call fcn.140039830
mov byte [rsp + 0x3b], 1
lea rcx, [rsp + 0x70]
call fcn.140014850
nop
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x3b]
jmp 0x140005482
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004dd4
lea rdx, str._n__n_Final_Package_List_for_Install:__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 + 0x500]
call fcn.1400066d0
lea rdx, str._n_Installing
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 ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 7
call qword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140004e14
cmp dword [rsp + 0x30], 2
jne 0x140004e31
mov edx, 0xffffffff
mov rax, qword [rsp + 0x500]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
jmp 0x140004e70
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004e58
lea rdx, str._n_Error:_INSTALL_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_INSTALL_State
mov edx, 1
lea rcx, [0x140042b28]
call fcn.140039830
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
mov edx, 8
call qword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140004eb0
cmp dword [rsp + 0x30], 2
jne 0x140004ecd
mov edx, 0xffffffff
mov rax, qword [rsp + 0x500]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
jmp 0x140004f44
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140004f2c
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
call qword [rax + 0x58]
cmp eax, 1
jne 0x140004f19
lea rdx, [0x140042c80]
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 0x140004f2c
lea rdx, str._n_Error:_POST_INSTALL_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_INSTALL_State
mov edx, 1
lea rcx, [0x140042de0]
call fcn.140039830
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x84]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x6c]
call fcn.140023c00
mov rax, qword [rsp + 0x500]
add rax, 0x72
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rdx, qword [rsp + 0x500]
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x98], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0xb8], rcx
mov rdx, rax
mov rax, qword [rsp + 0x98]
mov rcx, rax
mov rax, qword [rsp + 0xb8]
call qword [rax + 0x60]
test eax, eax
jne 0x14000535f
mov rax, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x500]
movzx ecx, byte [rcx + 0x72]
mov byte [rax], cl
mov rcx, qword [rsp + 0x508]
call fcn.140030360
movzx eax, al
test eax, eax
je 0x140005076
mov rax, qword [rsp + 0x500]
movzx eax, byte [rax + 0x72]
cmp eax, 1
jne 0x140005071
lea r8, [0x140042e88]
xor edx, edx
lea rcx, [0x140042ea8]
call fcn.140039830
lea rcx, [rsp + 0x118]
call fcn.1400112f0
nop
lea rdx, [0x140042eb8]
lea rcx, [rsp + 0x118]
call fcn.14001c5a0
lea rcx, [rsp + 0x118]
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 + 0x118]
call fcn.1400146d0
jmp 0x14000535d
mov rax, qword [rsp + 0x500]
movzx eax, byte [rax + 0x72]
cmp eax, 1
je 0x140005092
cmp dword [rsp + 0x6c], 6
jae 0x14000535d
lea r8, str.Machine_will_have_to_be_rebooted_to_complete_install
xor edx, edx
lea rcx, [0x140042f08]
call fcn.140039830
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x14000515d
lea rcx, [rsp + 0xf8]
call fcn.1400112f0
nop
lea rdx, str._n_Machine_will_have_to_be_rebooted_to_complete_install
lea rcx, [rsp + 0xf8]
call fcn.14001c5a0
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
lea rdx, [rsp + 0x68]
call qword [rax + 0x68]
test eax, eax
jne 0x140005123
cmp dword [rsp + 0x68], 2
jne 0x140005123
lea rdx, str._n_There_are_multiple_user_accounts_on_this_PC.__After_reboot_the_Catalyst_Control_Center_will_be_available_to_all_user_accounts__otherwise_it_will_only_be_available_on_this_current_user_account_until_the_system_is_rebooted.
lea rcx, [rsp + 0xf8]
call fcn.14001c5a0
lea rcx, [rsp + 0xf8]
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
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64___cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64_]
mov rcx, rax
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64___cdecl_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64____cdecl___class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64_____ptr64]
nop
lea rcx, [rsp + 0xf8]
call fcn.1400146d0
mov rcx, qword [rsp + 0x508]
call fcn.140030390
movzx eax, al
test eax, eax
je 0x14000535d
movzx eax, byte [0x140070a51]
test eax, eax
jne 0x140005312
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xb0]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400051ef
mov byte [rsp + 0x39], 0
lea rcx, [rsp + 0x70]
call fcn.140014850
nop
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x39]
jmp 0x140005482
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0xec]
mov r8, rax
lea rdx, [0x140043490]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0xe8], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xf4], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xe8]
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400052b3
mov byte [rsp + 0x3d], 0
lea rcx, [rsp + 0x70]
call fcn.140014850
nop
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x3d]
jmp 0x140005482
mov edx, 0x80040002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140005312
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x70]
call fcn.140014850
nop
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x36]
jmp 0x140005482
mov byte [rsp + 0x34], 1
lea rcx, [rsp + 0x70]
call fcn.140014850
nop
lea rcx, [rsp + 0x48]
call fcn.140014850
nop
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x34]
jmp 0x140005482
jmp 0x14000539e
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x140005386
lea rdx, [0x1400434f8]
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, [0x140043538]
mov edx, 1
lea rcx, [0x140043570]
call fcn.140039830
mov rcx, qword [rsp + 0x500]
call fcn.140006db0
nop
lea rcx, [rsp + 0x70]
call fcn.140014850
nop
lea rcx, [rsp + 0x48]
call fcn.140014850
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x500]
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 0x1400053f6
cmp dword [rsp + 0x30], 2
jne 0x140005413
mov edx, 0xffffffff
mov rax, qword [rsp + 0x500]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
jmp 0x140005452
mov rcx, qword [rsp + 0x500]
call fcn.140003ca0
movzx eax, al
test eax, eax
je 0x14000543a
lea rdx, [0x1400435a8]
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, [0x1400435e8]
mov edx, 1
lea rcx, [0x140043610]
call fcn.140039830
mov byte [rsp + 0x35], 1
lea rcx, [rsp + 0x58]
call fcn.140014850
nop
lea rcx, [rsp + 0x160]
call fcn.1400153e0
nop
mov rcx, qword [rsp + 0x508]
call fcn.14002f590
movzx eax, byte [rsp + 0x35]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14003a110
add rsp, 0x4f8
ret