Function at 0x14010a5f0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], r13
jne 0x14010a655
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
lea rsi, str._error_interface_not_inited_
test rcx, rcx
je 0x14010a690
mov rax, qword [rcx]
lea r8, [0x140158148]
mov edx, 0xc8
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
jmp 0x14010a693
mov rax, rsi
mov qword [rbp - 0x18], r13
mov qword [rbp - 8], r13
mov qword [rbp], 7
mov word [rbp - 0x18], r13w
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x14010a6b0
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140002ed0
nop
mov rdx, qword [rbp - 8]
mov r8, qword [rbp]
mov rax, r8
sub rax, rdx
mov r15d, 1
lea r9d, [r15 + 0x5b]
cmp rax, r15
jb 0x14010a705
lea rcx, [rdx + 1]
mov qword [rbp - 8], rcx
lea rax, [rbp - 0x18]
cmp r8, 8
cmovae rax, qword [rbp - 0x18]
mov word [rax + rdx*2], r9w
mov word [rax + rcx*2], r13w
jmp 0x14010a723
lfence
mov qword [rsp + 0x20], r15
lea r9, [0x14014270c]
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.1400039f0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], 0
jne 0x14010a746
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
test rcx, rcx
je 0x14010a77a
mov rax, qword [rcx]
lea r8, [0x1401581d8]
xor edx, edx
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
mov r9, rax
jmp 0x14010a77d
mov r9, rsi
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x14010a784
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
sub rax, rcx
lfence
cmp rdx, rax
ja 0x14010a7d2
mov rdi, qword [rbp - 8]
add rdi, rdx
mov qword [rbp - 8], rdi
lea rbx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rbx, qword [rbp - 0x18]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x14010a7e3
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.1400039f0
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov rax, rdx
sub rax, rcx
cmp rax, 0xc
jb 0x14010a829
lea rdi, [rcx + 0xc]
mov qword [rbp - 8], rdi
lea rbx, [rbp - 0x18]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x18]
lea rcx, [rbx + rcx*2]
mov r8d, 0x18
lea rdx, str..needrestart
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x14010a84c
lfence
mov qword [rsp + 0x20], Ordinal_20
lea r9, str..needrestart
xor r8d, r8d
lea edx, [r8 + 0xc]
lea rcx, [rbp - 0x18]
call fcn.1400039f0
mov qword [rbp - 0x48], r13
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14010a884
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x48], r13
movzx r12d, r15b
test ebx, ebx
jne 0x14010aa33
lea r8, str.IDS_REBOOT_REQUIRED_MSG
lea rdx, [rbp + 0x48]
call fcn.1400448a0
nop
lea r8, str.IDS_REBOOT_REQUIRED_TITLE
lea rdx, [rbp + 0x28]
call fcn.1400448a0
mov dword [rsp + 0x60], 0x60
lea rcx, [r14 + 0x178]
call fcn.14004e480
test eax, eax
je 0x14010a986
mov rax, qword [0x140192310]
mov r8, qword [0x140192308]
lea rdx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 8
cmovae rcx, qword [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
call fcn.1400704a0
cmp rax, 6
jne 0x14010a979
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x40]
lea edx, [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14010a979
lea r8, [rbp + 0x6c]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rbp + 0x68], r15d
mov dword [rbp + 0x74], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14010a979
mov edx, 0x80020003
lea ecx, [rbx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
lea rcx, [r14 + 0x178]
call fcn.140030eb0
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x14010a9c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010a9c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010a9c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071e50
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r13w
mov rdx, qword [rbp + 0x60]
cmp rdx, 8
jb 0x14010aa1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010aa18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010aa18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071e50
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], r13w
jmp 0x14010af6e
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], 0
jne 0x14010aa56
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
test rcx, rcx
je 0x14010aa8b
mov rax, qword [rcx]
lea r8, [0x140158428]
mov edx, 0x136
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
mov rsi, rax
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14010aab0
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140002ed0
nop
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, rdx
sub rax, rcx
cmp rax, 0xd
jb 0x14010ab0e
lea rdi, [rcx + 0xd]
mov qword [rbp - 0x28], rdi
lea rbx, [rbp - 0x38]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x38]
lea rcx, [rbx + rcx*2]
mov r8d, 0x1a
lea rdx, str.profilesdata_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x14010ab31
lfence
mov qword [rsp + 0x20], Ordinal_21
lea r9, str.profilesdata_
xor r8d, r8d
lea edx, [r8 + 0xd]
lea rcx, [rbp - 0x38]
call fcn.1400039f0
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x14010ab77
lea rdi, [rcx + 6]
mov qword [rbp - 0x28], rdi
lea rbx, [rbp - 0x38]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x38]
lea rcx, [rbx + rcx*2]
mov r8d, 0xc
lea rdx, [0x1401580d8]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x14010ab9a
lfence
mov qword [rsp + 0x20], 6
lea r9, [0x1401580d8]
xor r8d, r8d
lea edx, [r8 + 6]
lea rcx, [rbp - 0x38]
call fcn.1400039f0
mov rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x20]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x14010abd9
lea rcx, [rdx + 1]
mov qword [rbp - 0x28], rcx
lea rax, [rbp - 0x38]
cmp r8, 8
cmovae rax, qword [rbp - 0x38]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r13w
lea rbx, [rbp - 0x38]
jmp 0x14010abfa
lfence
mov qword [rsp + 0x20], r15
lea r9, [0x14014272c]
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x38]
call fcn.1400039f0
mov rbx, rax
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
mov edi, 0xa
cmp rax, rdi
jb 0x14010ac43
lea r14, [rcx + 0xa]
mov qword [rbx + 0x10], r14
mov rsi, rbx
cmp rdx, 8
jb 0x14010ac26
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, reloc.bdusers.dll_Ordinal_20
lea rdx, str.ProductCfg
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + r14*2], r13w
jmp 0x14010ac63
lfence
mov qword [rsp + 0x20], rdi
lea r9, str.ProductCfg
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.1400039f0
mov rbx, rax
mov r8d, 5
lea rdx, str..lock
mov rcx, rbx
call fcn.140003020
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x14010ad06
mov dword [rsp + 0x70], r13d
call fcn.1400057e0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x60], r15d
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x14010acba
call fcn.1400057e0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov dword [rbp - 0x58], Ordinal_21
mov qword [rsp + 0x30], rax
lea rax, str.Path_to_product_config_lock__s
mov qword [rsp + 0x28], rax
lea rax, str.CSecurityCenterApp::IsProductConfigRestriction
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp - 0x58]
movsx edx, r13w
call fcn.140004bd0
nop
mov ebx, dword [rsp + 0x60]
test bl, 1
je 0x14010ad4e
and ebx, 0xfffffffe
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], r13
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
js 0x14010ad45
nop dword [rax + rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x14010ad30
lock inc dword [rsp + 0x70]
mov ebx, dword [rsp + 0x60]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov qword [rbp + 8], r13
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov r8, qword [rbp - 0x28]
lea rcx, [rbp + 8]
call fcn.140002ed0
or ebx, 0x182
mov dword [rsp + 0x60], ebx
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0x78]
call fcn.1400735f0
test eax, eax
jne 0x14010ade0
mov eax, dword [rbp + 0x88]
bt eax, 0xa
jae 0x14010add3
mov ecx, dword [rbp + 0x8c]
cmp ecx, 0xa000000c
jne 0x14010adcb
mov edi, 4
jmp 0x14010adfa
cmp ecx, 0xa0000003
je 0x14010adfa
and eax, 0x10
or eax, 0x20
shr eax, 4
mov edi, eax
jmp 0x14010adfa
sub eax, 2
je 0x14010adf7
sub eax, 1
je 0x14010adf7
sub eax, 0x32
je 0x14010adf7
cmp eax, 0x46
je 0x14010adf7
mov r15d, r13d
mov edi, r15d
test edi, edi
je 0x14010ae08
cmp edi, 1
je 0x14010ae08
mov dil, 1
jmp 0x14010ae0b
xor dil, dil
test bl, 2
je 0x14010ae6c
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x14010ae5a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010ae55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010ae55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071e50
movdqa xmm0, xmmword [0x140166c80]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r13w
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
test dil, dil
je 0x14010b072
add ecx, eax
je 0x14010aee2
mov dword [rbp - 0x60], r13d
call fcn.1400057e0
mov qword [rbp - 0x68], rax
lock inc dword [rbp - 0x60]
mov ebx, dword [rsp + 0x60]
or ebx, 4
mov dword [rsp + 0x60], ebx
lea rcx, [rbp - 0x68]
call fcn.140005740
mov dword [rbp - 0x54], Ordinal_21
lea rcx, str.Found_product_config_lock
mov qword [rsp + 0x28], rcx
lea rcx, [0x140158480]
mov qword [rsp + 0x20], rcx
lea r9, [0x140000000]
lea r8, [rbp - 0x54]
movsx edx, r13w
mov rcx, rax
call fcn.140004bd0
jmp 0x14010aee6
mov ebx, dword [rsp + 0x60]
test bl, 4
je 0x14010af1d
and ebx, 0xfffffffb
mov dword [rsp + 0x60], ebx
mov qword [rbp - 0x68], r13
mov eax, 0xffffffff
lock xadd dword [rbp - 0x60], eax
cmp eax, 1
js 0x14010af19
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 0x60], eax
cmp eax, 1
jns 0x14010af05
lock inc dword [rbp - 0x60]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14010af5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010af58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010b16e
call fcn.140071e50
mov word [rbp - 0x38], r13w
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r13
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x14010afea
mov dword [rbp - 0x70], r13d
call fcn.1400057e0
mov qword [rbp - 0x78], rax
lock inc dword [rbp - 0x70]
or dword [rsp + 0x60], 0x10
mov rax, qword [rbp - 0x78]
test rax, rax
jne 0x14010afaa
call fcn.1400057e0
mov qword [rbp - 0x78], rax
lock inc dword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov dword [rbp - 0x4c], Ordinal_21
movzx eax, r12b
mov dword [rsp + 0x30], eax
lea rax, str.Restricted___d
mov qword [rsp + 0x28], rax
lea rax, [0x140158220]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp - 0x4c]
movsx edx, r13w
call fcn.140004bd0
nop
mov eax, dword [rsp + 0x60]
test al, 0x10
je 0x14010b028
and eax, 0xffffffef
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x78], r13
mov eax, 0xffffffff
lock xadd dword [rbp - 0x70], eax
cmp eax, 1
js 0x14010b024
nop dword [rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 0x70], eax
cmp eax, 1
jns 0x14010b010
lock inc dword [rbp - 0x70]
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14010b17a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010b175
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010b175
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add ecx, eax
je 0x14010b0eb
mov dword [rbp - 0x80], r13d
call fcn.1400057e0
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
or dword [rsp + 0x60], 8
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x14010b0a5
call fcn.1400057e0
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov rbx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x50], Ordinal_21
mov dword [rsp + 0x30], eax
lea rax, str.Last_error___d
mov qword [rsp + 0x28], rax
lea rax, [0x140158280]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp - 0x50]
movsx edx, r13w
mov rcx, rbx
call fcn.140004bd0
nop
mov eax, dword [rsp + 0x60]
test al, 8
je 0x14010b128
and eax, 0xfffffff7
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x78], r13
mov eax, 0xffffffff
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
js 0x14010b124
nop
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
jns 0x14010b110
lock inc dword [rbp - 0x80]
xor r12b, r12b
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14010af5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010af58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010af58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140071e50
movzx eax, r12b
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140071e30
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret