Function at 0x1800563b0
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 0x180056405
cmp qword [rsp + 0x178], 0
je 0x180056405
cmp dword [rsp + 0x180], 0
jne 0x18005640f
mov eax, 0xc000000d
jmp 0x180056a97
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x30]
call fcn.1800e9640
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.1800f9644
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str._TSD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fb284
test eax, eax
je 0x18005648b
mov r8, qword [rsp + 0x20]
lea rdx, str..TSD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fb284
test eax, eax
jne 0x18005666c
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov dx, 0x3a
mov rcx, rax
call fcn.1800f9624
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800564d6
mov dword [rsp + 0xf8], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0xf8]
jmp 0x180056a97
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 0x18005652c
mov dword [rsp + 0xfc], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0xfc]
jmp 0x180056a97
mov eax, dword [rsp + 0x28]
add eax, 7
cmp dword [rsp + 0x180], eax
jae 0x18005655d
mov dword [rsp + 0x100], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x100]
jmp 0x180056a97
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8b90
mov r8d, 0x2e
lea rdx, str.DeviceTSafeDiskVolume
mov rcx, qword [rsp + 0x178]
call fcn.1800fa600
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.1800fa600
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
sub rax, rcx
dec rax
test rax, rax
je 0x18005664b
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.1800fa600
mov dword [rsp + 0x104], 0
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x104]
jmp 0x180056a97
lea rcx, str..TVD_VOLUME_
call fcn.1800f9644
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str._TVD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fb284
test eax, eax
je 0x1800566bb
mov r8, qword [rsp + 0x20]
lea rdx, str..TVD_VOLUME_
mov rcx, qword [rsp + 0x170]
call fcn.1800fb284
test eax, eax
jne 0x18005689c
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov dx, 0x3a
mov rcx, rax
call fcn.1800f9624
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180056706
mov dword [rsp + 0x108], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x108]
jmp 0x180056a97
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 0x18005675c
mov dword [rsp + 0x10c], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x10c]
jmp 0x180056a97
mov eax, dword [rsp + 0x28]
add eax, 0xa
cmp dword [rsp + 0x180], eax
jae 0x18005678d
mov dword [rsp + 0x110], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x110]
jmp 0x180056a97
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8b90
mov r8d, 0x34
lea rdx, str.DeviceTVirtualDiskVolume
mov rcx, qword [rsp + 0x178]
call fcn.1800fa600
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.1800fa600
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
sub rax, rcx
dec rax
test rax, rax
je 0x18005687b
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.1800fa600
mov dword [rsp + 0x114], 0
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x114]
jmp 0x180056a97
cmp dword [rsp + 0x28], 2
jbe 0x180056961
mov rax, qword [rsp + 0x170]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x180056961
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x180056961
mov eax, dword [rsp + 0x28]
add eax, 0x18
cmp dword [rsp + 0x180], eax
jae 0x180056901
mov dword [rsp + 0x118], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x118]
jmp 0x180056a97
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8b90
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.1800e5c00
mov eax, dword [rsp + 0x11c]
jmp 0x180056a97
cmp dword [rsp + 0x28], 2
jb 0x180056a7b
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 2]
cmp eax, 0x3a
jne 0x180056a7b
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 0x180056a19
mov dword [rsp + 0x120], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x120]
jmp 0x180056a97
mov eax, dword [rsp + 0x180]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1800f8b90
mov rax, qword [rsp + 0x170]
add rax, 4
mov r9, rax
lea r8, [rsp + 0x70]
lea rdx, [0x1801bc658]
mov rcx, qword [rsp + 0x178]
call fcn.180003a60
mov dword [rsp + 0x124], 0
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x124]
jmp 0x180056a97
mov dword [rsp + 0x128], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0x160
pop rdi
ret