Function at 0x140041468
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14004d298]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, r8
mov qword [rsp + 0x60], r8
mov r13d, edx
mov dword [rsp + 0x78], edx
mov rdi, rcx
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.CTieredVolume::SetCurrentLocation_ApiHandler
mov qword [rdx + rcx], rax
lea rcx, [rsp + 0x68]
call fcn.140005468
nop
xor r14d, r14d
mov byte [rbp - 0x70], r14b
mov word [rbp - 0x50], r14w
mov byte [rbp - 0x4e], r14b
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x40], r14b
xor edx, edx
mov rcx, rdi
call fcn.1400139fc
mov ebx, eax
mov dword [rsp + 0x70], eax
test eax, eax
jns 0x14004154e
lea r12, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r12
je 0x140041d97
mov r14d, 1
test byte [rcx + 0x1c], r14b
je 0x140041d97
cmp byte [rcx + 0x19], 2
jb 0x140041d97
lea edx, [r14 + 0x36]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x80]
lea r8, [0x1400477f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a330
jmp 0x140041d97
cmp dword [rdi + 0xb8], 7
jne 0x140041561
mov dword [rdi + 0x2cc], 2
lea rdx, [rdi + 0x4a0]
lea rcx, [rbp - 0x70]
call fcn.14001bbac
mov ebx, eax
mov dword [rsp + 0x70], eax
lea r12, [0x14004d128]
mov r14d, 1
test eax, eax
jns 0x1400415c6
mov rcx, qword [0x14004d128]
cmp rcx, r12
je 0x1400415bf
test byte [rcx + 0x1c], r14b
je 0x1400415bf
cmp byte [rcx + 0x19], 2
jb 0x1400415bf
lea edx, [r14 + 0x37]
lea r9, [rdi + 0x2a0]
mov dword [rsp + 0x20], ebx
lea r8, [0x1400477f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
mov eax, ebx
jmp 0x140041d44
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14001cdcc
mov ebx, eax
mov dword [rsp + 0x70], eax
xor r8d, r8d
test eax, eax
jns 0x1400415fc
mov rcx, qword [0x14004d128]
cmp rcx, r12
je 0x1400415bf
test byte [rcx + 0x1c], r14b
je 0x1400415bf
cmp byte [rcx + 0x19], 2
jb 0x1400415bf
lea edx, [r8 + 0x39]
jmp 0x1400415a4
test rsi, rsi
je 0x140041d3a
test r13d, r13d
jle 0x140041d3a
mov r13d, r8d
mov dword [rsp + 0x40], r8d
or ebx, 0xffffffff
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r8
mov byte [rsp + 0x44], r8b
movups xmm0, xmmword [0x14004dcd0]
movdqu xmmword [rbp], xmm0
mov r10, qword [0x14004d128]
cmp byte [rdi + 0xa5], r8b
jne 0x140041c04
cmp byte [rdi + 0xa6], r8b
jne 0x140041c04
xor edx, edx
mov rcx, qword [rdi + 0x300]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
jne 0x140041bfd
xor edx, edx
mov rcx, qword [rdi + 0x2f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
jne 0x140041bfd
mov rax, qword [rbp - 0x48]
xor r8d, r8d
cmp byte [rax + 0x4d], r8b
je 0x1400416b0
cmp byte [rax + 0x4c], r8b
jne 0x140041c32
movups xmm0, xmmword [rsi]
movdqu xmmword [rbp - 0x10], xmm0
movzx ecx, word [rsi + 0x20]
test cl, 0x42
jne 0x1400417fb
test cl, 0x21
jne 0x14004171e
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041be0
test byte [r10 + 0x1c], r14b
je 0x140041be0
cmp byte [r10 + 0x19], 5
jb 0x140041be0
lea rax, [rdi + 0x2a0]
mov r9d, ecx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
mov rcx, qword [r10 + 0x10]
call fcn.140042234
jmp 0x140041bd6
mov dword [rsp + 0x40], r8d
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.14002a690
mov ecx, eax
mov dword [rsp + 0x70], eax
xor r8d, r8d
test eax, eax
jns 0x14004179d
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041be0
test byte [r10 + 0x1c], r14b
je 0x140041be0
cmp byte [r10 + 0x19], 2
jb 0x140041be0
lea rax, [rdi + 0x2a0]
lea edx, [r8 + 0x3a]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 8]
lea r8, [0x1400477f0]
mov rcx, qword [r10 + 0x10]
call fcn.140019ddc
jmp 0x140041bd6
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041be0
test byte [r10 + 0x1c], r14b
je 0x140041be0
cmp byte [r10 + 0x19], 5
jb 0x140041be0
lea rax, [rdi + 0x2a0]
movzx ecx, word [rsi + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x40]
mov rcx, qword [r10 + 0x10]
call fcn.140042148
jmp 0x140041bd6
mov rax, qword [rsi + 0x18]
cmp rax, 0xffffffffffffffff
je 0x140041b8f
test cl, 0x10
jne 0x140041b8f
test cl, 2
je 0x14004183c
cmp r13d, ebx
je 0x14004183c
test cl, 0x40
jne 0x14004183c
cmp dword [rsi + 0x24], 2
jne 0x140041830
add qword [rdi + 0x210], rax
jmp 0x140041837
add qword [rdi + 0x218], rax
mov dword [rsp + 0x48], r13d
mov rax, qword [rsi + 0x10]
mov rbx, rax
mov r8, 0xfffffffffff00000
and rbx, r8
mov qword [rbp - 0x78], rbx
mov rcx, qword [rsi + 0x18]
lea rdx, [rcx + 0xfffff]
add rdx, rax
and rdx, r8
mov qword [rbp - 0x80], rdx
cmp rbx, rax
jne 0x140041943
cmp rcx, 0x100000
jb 0x140041943
movzx ecx, word [rdi + 0x140]
mov r9d, 0x10
cmp dword [rsi + 0x24], 2
lea edx, [r9 + 0x10]
cmovne r9d, edx
mov word [rsp + 0x20], cx
mov r8, rbx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.140026e38
mov ecx, eax
mov dword [rsp + 0x70], eax
xor r8d, r8d
test eax, eax
jns 0x140041902
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041909
test byte [r10 + 0x1c], r14b
je 0x140041909
cmp byte [r10 + 0x19], 2
jb 0x140041909
lea rax, [rdi + 0x2a0]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x24]
mov rcx, qword [r10 + 0x10]
call fcn.14004230c
xor r8d, r8d
mov r10, qword [0x14004d128]
mov rax, qword [rsi + 0x18]
mov ebx, dword [rsp + 0x48]
cmp rax, 0x100000
jne 0x140041925
add r13d, r14d
add rsi, 0x28
jmp 0x140041be7
add qword [rsi + 0x10], 0x100000
add rax, 0xfffffffffff00000
mov qword [rsi + 0x18], rax
mov r10, qword [0x14004d128]
jmp 0x140041bf1
cmp rbx, qword [rsp + 0x50]
jne 0x140041a16
mov r8d, 0x10
lea rdx, [rbp]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
nop dword [rax + rax]
cmp rax, 0x10
jne 0x140041a16
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsp + 0x58]
je 0x140041982
xor r8d, r8d
jmp 0x140041996
mov r8d, dword [rsp + 0x44]
cmp r8b, 0x10
jne 0x14004199d
xor r8d, r8d
cmp dword [rsi + 0x24], 2
je 0x1400419c0
mov byte [rsp + 0x44], r8b
jmp 0x1400419c0
mov eax, 0x20
cmp r8b, al
jne 0x1400419bd
movzx r8d, r8b
cmp dword [rsi + 0x24], 2
mov eax, 0
cmove r8d, eax
mov dword [rsp + 0x44], r8d
xor r8d, r8d
mov rdx, qword [rsi + 0x18]
add rdx, rcx
mov qword [rsp + 0x58], rdx
mov rax, rdx
mov rcx, qword [rbp - 0x80]
cmp rcx, rdx
jae 0x1400419ff
mov qword [rsp + 0x58], rcx
sub rax, rcx
mov qword [rsi + 0x18], rax
lea rax, [rbx + 0x100000]
mov qword [rsi + 0x10], rax
mov r10, qword [0x14004d128]
mov ebx, dword [rsp + 0x48]
jmp 0x140041bf1
mov r10, qword [0x14004d128]
add r13d, r14d
add rsi, 0x28
mov ebx, dword [rsp + 0x48]
jmp 0x140041be7
mov r8d, 0x10
lea rdx, [0x14004dcd0]
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
nop dword [rax + rax]
xor r8d, r8d
cmp rax, 0x10
je 0x140041b36
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
mov ecx, dword [rdi + 0x13c]
xor edx, edx
div rcx
test rax, rax
je 0x140041b36
mov rbx, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x50]
mov ecx, dword [rdi + 0x140]
cmp rax, rcx
cmovbe rcx, rax
mov qword [rsp + 0x50], rcx
mov word [rsp + 0x20], cx
mov r9b, r13b
mov r8, rsi
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.140026e38
mov ecx, eax
mov dword [rsp + 0x70], eax
xor r8d, r8d
test eax, eax
jns 0x140041afa
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041b01
test byte [r10 + 0x1c], r14b
je 0x140041b01
cmp byte [r10 + 0x19], 2
jb 0x140041b01
lea rax, [rdi + 0x2a0]
movzx r9d, r13b
lea edx, [r8 + 0x3f]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
lea r8, [0x1400477f0]
mov rcx, qword [r10 + 0x10]
call fcn.140038060
xor r8d, r8d
mov r10, qword [0x14004d128]
mov ecx, dword [rdi + 0x13c]
mov eax, ecx
imul rax, qword [rsp + 0x50]
add rsi, rax
mov rax, rbx
sub rax, rsi
xor edx, edx
div rcx
test rax, rax
jne 0x140041a6d
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rbp - 0x78]
mov r13d, dword [rsp + 0x40]
jmp 0x140041b3d
mov r10, qword [0x14004d128]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp], xmm0
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsi + 0x10]
cmp rbx, rcx
jne 0x140041b69
mov eax, 0x10
cmp dword [rsi + 0x24], 2
lea edx, [rax + 0x10]
cmovne eax, edx
mov byte [rsp + 0x44], al
jmp 0x140041b6e
mov byte [rsp + 0x44], r8b
mov rdx, qword [rsi + 0x18]
add rdx, rcx
mov qword [rsp + 0x58], rdx
mov rax, rdx
mov rcx, qword [rbp - 0x80]
cmp rcx, rdx
jb 0x1400419d8
jmp 0x140041a06
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041be0
test byte [r10 + 0x1c], r14b
je 0x140041be0
cmp byte [r10 + 0x19], 4
jb 0x140041be0
lea rax, [rdi + 0x2a0]
mov edx, 0x3d
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 8]
lea r8, [0x1400477f0]
mov rcx, qword [r10 + 0x10]
call fcn.140038b84
mov r10, qword [0x14004d128]
xor r8d, r8d
add rsi, 0x28
add r13d, r14d
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x40], r13d
cmp r13d, dword [rsp + 0x78]
jge 0x140041c32
jmp 0x14004163f
mov r10, qword [0x14004d128]
cmp r10, r12
je 0x140041c32
test byte [r10 + 0x1c], r14b
je 0x140041c32
cmp byte [r10 + 0x19], 5
jb 0x140041c32
lea r9, [rdi + 0x2a0]
mov edx, 0xfc
lea r8, [0x1400467c0]
mov rcx, qword [r10 + 0x10]
call fcn.140019524
mov r8d, 0x10
lea rdx, [0x14004dcd0]
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
nop dword [rax + rax]
cmp rax, 0x10
je 0x140041d30
mov rsi, qword [rsp + 0x58]
mov rax, rsi
mov r8, qword [rsp + 0x50]
sub rax, r8
mov ecx, dword [rdi + 0x13c]
xor edx, edx
div rcx
test rax, rax
je 0x140041d30
mov r13d, dword [rsp + 0x44]
mov ebx, dword [rdi + 0x140]
cmp rax, rbx
cmovbe rbx, rax
mov word [rsp + 0x20], bx
mov r9b, r13b
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.140026e38
mov r8d, eax
mov dword [rsp + 0x70], eax
test eax, eax
jns 0x140041d03
mov rcx, qword [0x14004d128]
cmp rcx, r12
je 0x140041d03
test byte [rcx + 0x1c], r14b
je 0x140041d03
cmp byte [rcx + 0x19], 2
jb 0x140041d03
lea rax, [rdi + 0x2a0]
movzx r9d, r13b
mov edx, 0x40
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
lea r8, [0x1400477f0]
mov rcx, qword [rcx + 0x10]
call fcn.140038060
mov ecx, dword [rdi + 0x13c]
mov eax, ecx
imul rax, rbx
mov r8, qword [rsp + 0x50]
add r8, rax
mov qword [rsp + 0x50], r8
mov rax, rsi
sub rax, r8
xor edx, edx
div rcx
test rax, rax
jne 0x140041c82
xor eax, eax
mov ebx, eax
mov dword [rsp + 0x70], eax
jmp 0x140041d44
mov ebx, r8d
mov dword [rsp + 0x70], ebx
mov eax, r8d
shr eax, 0x1f
mov dl, al
lea rcx, [rbp - 0x70]
call fcn.14001b11c
test eax, eax
jns 0x140041d8e
mov rcx, qword [0x14004d128]
cmp rcx, r12
je 0x140041d8e
test byte [rcx + 0x1c], r14b
je 0x140041d8e
cmp byte [rcx + 0x19], 2
jb 0x140041d8e
lea r9, [rdi + 0x2a0]
mov edx, 0x41
mov dword [rsp + 0x20], eax
lea r8, [0x1400477f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
mov rcx, rdi
call fcn.14000da70
nop
lea rcx, [rbp - 0x70]
call fcn.14001a118
nop
lea rcx, [rsp + 0x68]
call fcn.1400059dc
mov eax, ebx
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140001e80
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret