Function at 0x10013c3a8
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 0x10013c3e8
lea r8, [0x100014c28]
mov edx, 0x92c
lea rcx, [0x100014bf0]
call fcn.100099ad8
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 0x10013c484
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c458
test byte [rcx + 0x1c], 1
je 0x10013c458
cmp byte [rcx + 0x19], 2
jb 0x10013c458
mov edx, 0x73
mov r9d, eax
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
nop
test rbx, rbx
je 0x10013c47a
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c471
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 0x10013c714
mov r9d, dword [rbx + 0x14]
mov edi, 4
cmp r9d, 1
je 0x10013c498
cmp r9d, edi
jne 0x10013c4b4
cmp dword [rbx + 0x18], 1
je 0x10013c4a9
cmp dword [rbx + 0x18], 5
je 0x10013c4a9
cmp dword [rbx + 0x18], edi
jne 0x10013c4b4
cmp qword [rbx + 0x30], 0
jne 0x10013c599
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c520
test byte [rcx + 0x1c], 1
je 0x10013c4ef
cmp byte [rcx + 0x19], dil
jb 0x10013c4ef
mov edx, 0x74
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c520
test byte [rcx + 0x1c], 1
je 0x10013c520
cmp byte [rcx + 0x19], dil
jb 0x10013c520
mov edx, 0x75
mov r9d, dword [rbx + 0x18]
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp qword [rbx + 0x30], 0
jne 0x10013c554
cmp rcx, rsi
je 0x10013c57b
test byte [rcx + 0x1c], 1
je 0x10013c554
cmp byte [rcx + 0x19], dil
jb 0x10013c554
mov edx, 0x76
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c57b
test byte [rcx + 0x1c], 1
je 0x10013c57b
cmp byte [rcx + 0x19], 3
jb 0x10013c57b
mov edx, 0x77
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7b8
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c58f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
mov edi, 0x80780063
jmp 0x10013c709
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013c5d1
test byte [rcx + 0x1c], 1
je 0x10013c5d1
cmp byte [rcx + 0x19], dil
jb 0x10013c5d1
mov edx, 0x78
mov r9, qword [rbx + 0x30]
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001da24
and qword [rsp + 0x68], 0
lea r8, [rsp + 0x68]
lea rdx, [0x100002954]
mov rcx, qword [rbx + 0x30]
call fcn.10009b5b0
mov edi, eax
test eax, eax
jns 0x10013c60f
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c709
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
jmp 0x10013c709
mov ecx, 0x64
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r12, rax
test rax, rax
jne 0x10013c64b
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10013c641
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], r12
mov edi, 0x8007000e
jmp 0x10013c709
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 0x10013c6e6
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 0x10013c6bb
test byte [rcx + 0x1c], 1
je 0x10013c6bb
cmp byte [rcx + 0x19], 2
jb 0x10013c6bb
mov edx, 0x79
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x68]
lea r8, [0x100002e40]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
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 0x10013c709
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
jmp 0x10013c709
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 0x10013c709
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