Function at 0x10013c3f4
Capabilities:
Get disk information

Disassembly:
push rdi
push r12
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov r14, r8
mov rdi, rdx
test r8, r8
jne 0x10013c434
lea r8, [0x100014c98]
mov edx, 0x92c
lea rcx, [0x100014c60]
call fcn.10009a050
and qword [r14], 0
mov esi, 0x38
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rsp + 0x68], rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
nop
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x18]
test eax, eax
jns 0x10013c4d0
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c4a4
test byte [rcx + 0x1c], 1
je 0x10013c4a4
cmp byte [rcx + 0x19], 2
jb 0x10013c4a4
mov edx, 0x73
mov r9d, eax
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
nop
test rbx, rbx
je 0x10013c4c6
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c4bd
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x80780063
jmp 0x10013c760
mov r9d, dword [rbx + 0x14]
mov edi, 4
cmp r9d, 1
je 0x10013c4e4
cmp r9d, edi
jne 0x10013c500
cmp dword [rbx + 0x18], 1
je 0x10013c4f5
cmp dword [rbx + 0x18], 5
je 0x10013c4f5
cmp dword [rbx + 0x18], edi
jne 0x10013c500
cmp qword [rbx + 0x30], 0
jne 0x10013c5e5
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c56c
test byte [rcx + 0x1c], 1
je 0x10013c53b
cmp byte [rcx + 0x19], dil
jb 0x10013c53b
mov edx, 0x74
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c56c
test byte [rcx + 0x1c], 1
je 0x10013c56c
cmp byte [rcx + 0x19], dil
jb 0x10013c56c
mov edx, 0x75
mov r9d, dword [rbx + 0x18]
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp qword [rbx + 0x30], 0
jne 0x10013c5a0
cmp rcx, rsi
je 0x10013c5c7
test byte [rcx + 0x1c], 1
je 0x10013c5a0
cmp byte [rcx + 0x19], dil
jb 0x10013c5a0
mov edx, 0x76
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c5c7
test byte [rcx + 0x1c], 1
je 0x10013c5c7
cmp byte [rcx + 0x19], 3
jb 0x10013c5c7
mov edx, 0x77
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001c854
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c5db
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
mov edi, 0x80780063
jmp 0x10013c755
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c61d
test byte [rcx + 0x1c], 1
je 0x10013c61d
cmp byte [rcx + 0x19], dil
jb 0x10013c61d
mov edx, 0x78
mov r9, qword [rbx + 0x30]
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001db08
and qword [rsp + 0x68], 0
lea r8, [rsp + 0x68]
lea rdx, [0x100002934]
mov rcx, qword [rbx + 0x30]
call fcn.10009bb88
mov edi, eax
test eax, eax
jns 0x10013c65b
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c755
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
jmp 0x10013c755
mov ecx, 0x64
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r12, rax
test rax, rax
jne 0x10013c697
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c68d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], r12
mov edi, 0x8007000e
jmp 0x10013c755
xor edx, edx
lea r8d, [rdx + 0x64]
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, 0x32
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10013c732
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c707
test byte [rcx + 0x1c], 1
je 0x10013c707
cmp byte [rcx + 0x19], 2
jb 0x10013c707
mov edx, 0x79
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x68]
lea r8, [0x100002e00]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c755
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
jmp 0x10013c755
mov qword [r14], r12
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c755
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret