Function at 0x1800564e0
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x170], 0
je 0x180056535
cmp qword [rsp + 0x178], 0
je 0x180056535
cmp dword [rsp + 0x180], 0
jne 0x18005653f
mov eax, 0xc000000d
jmp 0x180056bc7
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x30]
call fcn.1800e9110
nop
mov rax, qword [rsp + 0x30]
mov eax, dword [rax - 8]
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x12c]
mov dword [rsp + 0x28], eax
lea rcx, str..TSD_VOLUME_
call fcn.1800f9114
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str._TSD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fad54
test eax, eax
je 0x1800565bb
mov r8, qword [rsp + 0x20]
lea rdx, str..TSD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fad54
test eax, eax
jne 0x18005679c
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov dx, 0x3a
mov rcx, rax
call fcn.1800f90f4
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180056606
mov dword [rsp + 0xf8], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0xf8]
jmp 0x180056bc7
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
sub rcx, qword [rsp + 0x20]
cmp rax, rcx
jbe 0x18005665c
mov dword [rsp + 0xfc], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0xfc]
jmp 0x180056bc7
mov eax, dword [rsp + 0x28]
add eax, 7
cmp dword [rsp + 0x180], eax
jae 0x18005668d
mov dword [rsp + 0x100], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x100]
jmp 0x180056bc7
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8660
mov r8d, 0x2e
lea rdx, str.DeviceTSafeDiskVolume
mov rcx, qword [rsp + 0x178]
call fcn.1800fa0d0
mov eax, dword [rsp + 0x38]
shl rax, 1
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov rdx, qword [rsp + 0x178]
add rdx, 0x2e
mov qword [rsp + 0x138], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x138]
mov rcx, rax
call fcn.1800fa0d0
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
sub rax, rcx
dec rax
test rax, rax
je 0x18005677b
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
sub rax, rcx
lea rax, [rax + rax - 2]
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov edx, dword [rsp + 0x38]
lea rcx, [rcx + rdx*2 + 2]
mov edx, dword [rsp + 0x38]
mov r8, qword [rsp + 0x178]
lea rdx, [r8 + rdx*2 + 0x2e]
mov qword [rsp + 0x140], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x140]
mov rcx, rax
call fcn.1800fa0d0
mov dword [rsp + 0x104], 0
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x104]
jmp 0x180056bc7
lea rcx, str..TVD_VOLUME_
call fcn.1800f9114
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str._TVD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fad54
test eax, eax
je 0x1800567eb
mov r8, qword [rsp + 0x20]
lea rdx, str..TVD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fad54
test eax, eax
jne 0x1800569cc
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov dx, 0x3a
mov rcx, rax
call fcn.1800f90f4
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180056836
mov dword [rsp + 0x108], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x108]
jmp 0x180056bc7
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x28]
sub rcx, qword [rsp + 0x20]
cmp rax, rcx
jbe 0x18005688c
mov dword [rsp + 0x10c], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x10c]
jmp 0x180056bc7
mov eax, dword [rsp + 0x28]
add eax, 0xa
cmp dword [rsp + 0x180], eax
jae 0x1800568bd
mov dword [rsp + 0x110], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x110]
jmp 0x180056bc7
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8660
mov r8d, 0x34
lea rdx, str.DeviceTVirtualDiskVolume
mov rcx, qword [rsp + 0x178]
call fcn.1800fa0d0
mov eax, dword [rsp + 0x48]
shl rax, 1
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov rdx, qword [rsp + 0x178]
add rdx, 0x34
mov qword [rsp + 0x148], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x148]
mov rcx, rax
call fcn.1800fa0d0
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
sub rax, rcx
dec rax
test rax, rax
je 0x1800569ab
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
sub rax, rcx
lea rax, [rax + rax - 2]
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov edx, dword [rsp + 0x48]
lea rcx, [rcx + rdx*2 + 2]
mov edx, dword [rsp + 0x48]
mov r8, qword [rsp + 0x178]
lea rdx, [r8 + rdx*2 + 0x34]
mov qword [rsp + 0x150], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x150]
mov rcx, rax
call fcn.1800fa0d0
mov dword [rsp + 0x114], 0
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x114]
jmp 0x180056bc7
cmp dword [rsp + 0x28], 2
jbe 0x180056a91
mov rax, qword [rsp + 0x170]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x180056a91
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x180056a91
mov eax, dword [rsp + 0x28]
add eax, 0x18
cmp dword [rsp + 0x180], eax
jae 0x180056a31
mov dword [rsp + 0x118], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x118]
jmp 0x180056bc7
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8660
mov rax, qword [rsp + 0x170]
add rax, 2
mov r8, rax
lea rdx, str.DeviceLanmanRedirector_s
mov rcx, qword [rsp + 0x178]
call fcn.180003a60
mov dword [rsp + 0x11c], 0
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x11c]
jmp 0x180056bc7
cmp dword [rsp + 0x28], 2
jb 0x180056bab
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 2]
cmp eax, 0x3a
jne 0x180056bab
xor eax, eax
mov word [rsp + 0xf0], ax
lea rax, [rsp + 0xf2]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x170]
movzx eax, word [rax]
mov word [rsp + 0xf0], ax
mov eax, 0x3a
mov word [rsp + 0xf2], ax
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x7e
rep stosb byte [rdi], al
mov r8d, 0x40
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x180056b49
mov dword [rsp + 0x120], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x120]
jmp 0x180056bc7
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8660
mov rax, qword [rsp + 0x170]
add rax, 4
mov r9, rax
lea r8, [rsp + 0x70]
lea rdx, [0x1801bc700]
mov rcx, qword [rsp + 0x178]
call fcn.180003a60
mov dword [rsp + 0x124], 0
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x124]
jmp 0x180056bc7
mov dword [rsp + 0x128], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e56d0
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x160
pop rdi
ret