Function at 0x180056bb0
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x180], 0
je 0x180056c05
cmp qword [rsp + 0x188], 0
je 0x180056c05
cmp dword [rsp + 0x190], 0
jne 0x180056c0f
mov eax, 0xc000000d
jmp 0x1800572ec
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1800ebc90
nop
mov rax, qword [rsp + 0x30]
mov eax, dword [rax - 8]
mov dword [rsp + 0x130], eax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], 0
jne 0x180056c54
mov dword [rsp + 0x140], 1
jmp 0x180056c5f
mov dword [rsp + 0x140], 0
cmp dword [rsp + 0x140], 0
jne 0x180056c70
cmp dword [rsp + 0x28], 0
jne 0x180056c91
mov dword [rsp + 0xf8], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0xf8]
jmp 0x1800572ec
lea rcx, str..TSD_VOLUME_
call fcn.1800fbc94
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str._TSD_VOLUME_
mov rcx, qword [rsp + 0x180]
call fcn.1800fd9e8
test eax, eax
je 0x180056ce0
mov r8, qword [rsp + 0x20]
lea rdx, str..TSD_VOLUME_
mov rcx, qword [rsp + 0x180]
call fcn.1800fd9e8
test eax, eax
jne 0x180056ec1
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov dx, 0x3a
mov rcx, rax
call fcn.1800fbc74
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180056d2b
mov dword [rsp + 0xfc], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0xfc]
jmp 0x1800572ec
mov rax, qword [rsp + 0x180]
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 0x180056d81
mov dword [rsp + 0x100], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x100]
jmp 0x1800572ec
mov eax, dword [rsp + 0x28]
add eax, 7
cmp dword [rsp + 0x190], eax
jae 0x180056db2
mov dword [rsp + 0x104], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x104]
jmp 0x1800572ec
mov eax, dword [rsp + 0x190]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x188]
call fcn.1800fb1e0
mov r8d, 0x2e
lea rdx, str.DeviceTSafeDiskVolume
mov rcx, qword [rsp + 0x188]
call fcn.1800fcc50
mov eax, dword [rsp + 0x38]
shl rax, 1
mov rcx, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov rdx, qword [rsp + 0x188]
add rdx, 0x2e
mov qword [rsp + 0x148], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x148]
mov rcx, rax
call fcn.1800fcc50
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
sub rax, rcx
dec rax
test rax, rax
jbe 0x180056ea0
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 + 0x180]
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 + 0x188]
lea rdx, [r8 + rdx*2 + 0x2e]
mov qword [rsp + 0x150], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x150]
mov rcx, rax
call fcn.1800fcc50
mov dword [rsp + 0x108], 0
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x108]
jmp 0x1800572ec
lea rcx, str..TVD_VOLUME_
call fcn.1800fbc94
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str._TVD_VOLUME_
mov rcx, qword [rsp + 0x180]
call fcn.1800fd9e8
test eax, eax
je 0x180056f10
mov r8, qword [rsp + 0x20]
lea rdx, str..TVD_VOLUME_
mov rcx, qword [rsp + 0x180]
call fcn.1800fd9e8
test eax, eax
jne 0x1800570f1
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov dx, 0x3a
mov rcx, rax
call fcn.1800fbc74
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180056f5b
mov dword [rsp + 0x10c], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x10c]
jmp 0x1800572ec
mov rax, qword [rsp + 0x180]
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 0x180056fb1
mov dword [rsp + 0x110], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x110]
jmp 0x1800572ec
mov eax, dword [rsp + 0x28]
add eax, 0xa
cmp dword [rsp + 0x190], eax
jae 0x180056fe2
mov dword [rsp + 0x114], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x114]
jmp 0x1800572ec
mov eax, dword [rsp + 0x190]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x188]
call fcn.1800fb1e0
mov r8d, 0x34
lea rdx, str.DeviceTVirtualDiskVolume
mov rcx, qword [rsp + 0x188]
call fcn.1800fcc50
mov eax, dword [rsp + 0x48]
shl rax, 1
mov rcx, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov rdx, qword [rsp + 0x188]
add rdx, 0x34
mov qword [rsp + 0x158], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x158]
mov rcx, rax
call fcn.1800fcc50
mov eax, dword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
sub rax, rcx
dec rax
test rax, rax
jbe 0x1800570d0
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 + 0x180]
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 + 0x188]
lea rdx, [r8 + rdx*2 + 0x34]
mov qword [rsp + 0x160], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x160]
mov rcx, rax
call fcn.1800fcc50
mov dword [rsp + 0x118], 0
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x118]
jmp 0x1800572ec
cmp dword [rsp + 0x28], 2
jbe 0x1800571b6
mov rax, qword [rsp + 0x180]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800571b6
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x1800571b6
mov eax, dword [rsp + 0x28]
add eax, 0x18
cmp dword [rsp + 0x190], eax
jae 0x180057156
mov dword [rsp + 0x11c], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x11c]
jmp 0x1800572ec
mov eax, dword [rsp + 0x190]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x188]
call fcn.1800fb1e0
mov rax, qword [rsp + 0x180]
add rax, 2
mov r8, rax
lea rdx, str.DeviceLanmanRedirector_s
mov rcx, qword [rsp + 0x188]
call fcn.180003a60
mov dword [rsp + 0x120], 0
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x120]
jmp 0x1800572ec
cmp dword [rsp + 0x28], 2
jb 0x1800572d0
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 2]
cmp eax, 0x3a
jne 0x1800572d0
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 + 0x180]
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 0x18005726e
mov dword [rsp + 0x124], 0x80000005
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x124]
jmp 0x1800572ec
mov eax, dword [rsp + 0x190]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x188]
call fcn.1800fb1e0
mov rax, qword [rsp + 0x180]
add rax, 4
mov r9, rax
lea r8, [rsp + 0x70]
lea rdx, [0x1801bfae8]
mov rcx, qword [rsp + 0x188]
call fcn.180003a60
mov dword [rsp + 0x128], 0
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x128]
jmp 0x1800572ec
mov dword [rsp + 0x12c], 0xc000000d
lea rcx, [rsp + 0x30]
call fcn.1800e8250
mov eax, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x170
pop rdi
ret