Function at 0x140005838
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rsi
push rdi
push r15
sub rsp, 0xf0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400481f8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, rdx
mov rdi, rcx
mov ecx, 8
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
lea rax, str.CTieringEngineLib::OnNewVolume
mov qword [rcx + rdx], rax
lea rcx, [rsp + 0x38]
call fcn.14000865c
nop
lea r15, [0x140048138]
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x1400058c9
test byte [rcx + 0x1c], 1
je 0x1400058c9
cmp byte [rcx + 0x19], 4
jb 0x1400058c9
mov edx, 0x49
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [rcx + 0x10]
call fcn.140003e64
cmp byte [rdi + 0xb0], 0
jne 0x140005b41
mov r8d, 0x10
lea rdx, [0x140048c90]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp rax, 0x10
jne 0x14000592e
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140005b41
test byte [rcx + 0x1c], 1
je 0x140005b41
cmp byte [rcx + 0x19], 2
jb 0x140005b41
lea edx, [rax + 0x3a]
lea r8, [0x14003ee10]
mov rcx, qword [rcx + 0x10]
call fcn.140001608
jmp 0x140005b41
mov ecx, 0x6d0
call fcn.14003b4a8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140005952
mov rdx, rdi
mov rcx, rax
call fcn.14000aaec
mov rbx, rax
jmp 0x140005954
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov rax, qword [rdi + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x10]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.14000b490
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1400059d5
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x1400059b0
test byte [rcx + 0x1c], 1
je 0x1400059b0
cmp byte [rcx + 0x19], 2
jb 0x1400059b0
mov edx, 0x4b
mov r9d, eax
lea r8, [0x14003ee10]
mov rcx, qword [rcx + 0x10]
call fcn.140001450
nop
test rbx, rbx
je 0x1400059c6
mov rcx, rbx
call fcn.14000b030
mov rcx, rbx
call fcn.14003b498
nop
lea rcx, [rsp + 0x38]
call fcn.1400084bc
jmp 0x140005b4b
lea rax, [rdi + 0xd0]
mov rcx, qword [rax + 8]
cmp qword [rcx], rax
je 0x1400059ec
mov ecx, 3
int 0x29
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rcx], rbx
mov qword [rax + 8], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], rbx
lea rcx, [rdi + 0xe0]
lea r8, [rsp + 0x30]
mov rdx, rsi
call fcn.140007398
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x128]
lea r8, [rsp + 0x30]
mov edx, dword [rsi + 0x10]
call fcn.140007560
cmp dword [0x1400480a0], 5
jbe 0x140005b0f
movabs rdx, 0x200000000000
test qword [0x1400480b0], rdx
je 0x140005b0f
mov rax, qword [0x1400480b8]
and rax, rdx
cmp rax, qword [0x1400480b8]
jne 0x140005b0f
mov qword [rsp + 0xb0], rsi
mov dword [rsp + 0xb8], 0x10
and dword [rsp + 0xbc], 0
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 2
and dword [rsp + 0xcc], 0
movzx ecx, word [rbx + 0x2b8]
mov rax, qword [rbx + 0x2c0]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xd8], ecx
and dword [rsp + 0xdc], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
lea rdx, [0x140040f59]
call fcn.140001078
nop
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140005b41
test byte [rcx + 0x1c], 1
je 0x140005b41
cmp byte [rcx + 0x19], 4
jb 0x140005b41
mov edx, 0x4e
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140003d94
jmp 0x140005b41
lea rcx, [rsp + 0x38]
call fcn.1400084bc
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14003b8a0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r15
pop rdi
pop rsi
ret