Function at 0x140003c40
Capabilities:
Shutdown system

Disassembly:
mov dword ss:[rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov r14, rcx
mov qword [rsp + 0x30], 0x1c
lea rax, str.EnableWarnings
mov r15d, edx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov esi, 0xc0000001
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
je 0x140003f77
lea r15, str.restart
mov qword [rsp + 0x140], r12
mov rbx, r15
mov qword [rsp + 0x100], r13
and rbx, 0xfffffffffffffff1
mov rcx, r15
xorps xmm1, xmm1
and ecx, 0xf
je 0x140003cd7
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rbp + 0x50], ecx
je 0x140003cd3
mov ebx, ecx
shr rbx, 1
jmp 0x140003d17
add rbx, 0x10
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x50], ecx
jne 0x140003d09
nop dword [rax + rax]
movdqu xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x50], ecx
je 0x140003cf0
sub rbx, r15
mov eax, ecx
sar rbx, 1
shr rax, 1
add rbx, rax
mov rdx, qword [0x1402c5ff0]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
mov rdi, rax
mov r8, rbx
mov rdx, r15
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rbx + rcx], ax
mov rcx, qword [rdi + 8]
call fcn.14020c7e0
mov rcx, rdi
call sym.SystemInformer.exe_Ordinal_1238
mov rdx, qword [0x1402c5ff0]
mov r13, qword [rax]
mov r12, qword [rax + 8]
lea rcx, [r13 + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
mov r15, rax
lea rcx, [rax + 0x10]
mov qword [rax], r13
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + r13], ax
test r12, r12
je 0x140003dae
mov rdi, r13
mov ebx, eax
shr rdi, 1
je 0x140003dab
movzx ecx, word [r12 + rbx*2]
call qword [sym.imp.ntdll.dll_RtlDowncaseUnicodeChar]
mov rcx, qword [r15 + 8]
mov word [rcx + rbx*2], ax
inc rbx
cmp rbx, rdi
jb 0x140003d90
mov qword [r15], r13
mov rcx, r15
call sym.SystemInformer.exe_Ordinal_1238
mov rdx, qword [0x1402c5ff0]
mov r15, rax
mov rdi, qword [rax]
mov r12, qword [rax + 8]
lea rcx, [rdi + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
mov r13, qword [rsp + 0x100]
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], rdi
mov qword [rax + 8], rcx
xor eax, eax
mov word [rdi + rcx], ax
test r12, r12
je 0x140003e05
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, r12
call fcn.14020c7e0
mov rcx, rbx
call sym.SystemInformer.exe_Ordinal_1238
mov r12, qword [rsp + 0x140]
cmp qword [rax], 0
lea rbx, [rax + 8]
jbe 0x140003e31
mov rax, qword [rbx]
movzx ecx, word [rax]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
mov rcx, qword [rbx]
mov word [rcx], ax
mov rdx, qword [r15 + 8]
lea r9, str.the_computer
lea r8, [0x14023c748]
mov ecx, 3
call fcn.140001a20
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0xa0
mov rdi, rax
call fcn.14020c410
mov rcx, qword [0x1402c6000]
mov qword ds:[rsp + 0x6c], rcx
mov dword [rsp + 0x60], 0xa0
mov qword [rsp + 0x64], r14
test r14, r14
je 0x140003ea4
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140003ea4
mov rcx, r14
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
mov eax, 0x1008
je 0x140003ea9
mov eax, 8
mov r8, qword [rdi + 8]
lea r9, [0x14023c7cc]
mov dword [rsp + 0x74], eax
lea rdx, [0x14023c7d0]
mov rax, qword [0x1402c6008]
mov ecx, 3
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], 0xfffd
call fcn.140001a20
lea r9, [rbp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x50]
mov rcx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsp + 0x34], rax
lea rax, [0x14023c6d8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x74], rcx
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x30], 6
mov dword [rsp + 0x3c], 7
mov dword [rbp - 0x64], 2
mov dword [rbp - 0x58], 6
mov dword [rbp - 4], 0xc8
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
nop
test eax, eax
jne 0x140003f4a
cmp dword [rbp + 0x50], 6
jmp 0x140003f68
mov r9, qword ds:[rdi + 8]
lea r8, str.Are_you_sure_you_want_to__s_
mov edx, 0x134
mov rcx, r14
call sym.SystemInformer.exe_Ordinal_1698
cmp eax, 6
sete al
test al, al
je 0x14000417c
mov r15d, dword [rbp + 0x48]
lea rax, str.EnableBootObjectsEnumerate
mov qword [rsp + 0x30], 0x34
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
mov qword [rsp + 0x30], 0x48
lea rax, str.EnableUpdateDefaultFirmwareBootEntry
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
setne bl
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
movzx ecx, bl
setne dil
call fcn.1401723e0
mov rbx, rax
test rax, rax
je 0x1400040c8
cmp r15d, dword [rax]
jae 0x140004000
lfence
mov rcx, qword [rax + 8]
movzx edx, dil
mov r8d, r15d
mov r9, qword [rcx + r8*8]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [r9]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140171c20
mov esi, eax
mov rcx, rbx
call fcn.1401725c0
test esi, esi
js 0x1400040a5
lfence
mov r9d, 5
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
je 0x14000417c
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1670
lea r8, [0x14023c43c]
mov rbx, rax
lea r9, str.Unable_to_configure_the_boot_application.
test rax, rax
je 0x14000416f
mov rcx, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov qword [rsp + 0x20], r8
mov r8d, 0xfffe
call sym.SystemInformer.exe_Ordinal_1699
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000417c
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
jmp fcn.140143da0
cmp esi, 0xc0000022
je 0x1400040b5
cmp esi, 0xc0000005
jne 0x1400040c8
lfence
mov ecx, esi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
jmp 0x1400040eb
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x1400040db
movzx eax, si
jmp 0x1400040eb
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x1400040fb
mov eax, esi
test eax, eax
je 0x1400040fb
lfence
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1670
jmp 0x140004105
lfence
mov ecx, esi
call sym.SystemInformer.exe_Ordinal_1660
lea r8, [0x14023c43c]
mov rbx, rax
lea r9, str.Unable_to_configure_the_boot_application.
test rax, rax
je 0x14000416f
lfence
lfence
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r8
mov r8d, 0xfffe
call sym.SystemInformer.exe_Ordinal_1699
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000417c
lfence
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
jmp fcn.140143da0
mov edx, 0x10
mov rcx, r14
call sym.SystemInformer.exe_Ordinal_1698
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret