Function at 0x1401599fc
Capabilities:
Get disk information

Disassembly:
push rdi
push r12
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov r12, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140159a3c
lea r8, [0x140015e98]
mov edx, 0x931
lea rcx, [0x140015e58]
call fcn.1400a8be8
and qword [r12], 0
mov esi, reloc.ADVAPI32.dll_UnregisterTraceGuids
mov ecx, esi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rsp + 0x60], rax
mov r8d, esi
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 0x140159ad8
lea rsi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140159aac
test byte [rcx + 0x1c], 1
je 0x140159aac
cmp byte [rcx + 0x19], 2
jb 0x140159aac
mov edx, 0x74
mov r9d, eax
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
nop
test rbx, rbx
je 0x140159ace
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140159ac5
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 0x140159d3d
mov r9d, dword [rbx + 0x14]
mov edi, 4
cmp r9d, 1
je 0x140159aec
cmp r9d, edi
jne 0x140159b08
cmp dword [rbx + 0x18], 1
je 0x140159afd
cmp dword [rbx + 0x18], 5
je 0x140159afd
cmp dword [rbx + 0x18], edi
jne 0x140159b08
cmp qword [rbx + 0x30], 0
jne 0x140159bed
lea rsi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140159b74
test byte [rcx + 0x1c], 1
je 0x140159b43
cmp byte [rcx + 0x19], dil
jb 0x140159b43
mov edx, 0x75
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140159b74
test byte [rcx + 0x1c], 1
je 0x140159b74
cmp byte [rcx + 0x19], dil
jb 0x140159b74
mov edx, InitializeCriticalSection
mov r9d, dword [rbx + 0x18]
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp qword [rbx + 0x30], 0
jne 0x140159ba8
cmp rcx, rsi
je 0x140159bcf
test byte [rcx + 0x1c], 1
je 0x140159ba8
cmp byte [rcx + 0x19], dil
jb 0x140159ba8
mov edx, InitializeCriticalSection
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140159bcf
test byte [rcx + 0x1c], 1
je 0x140159bcf
cmp byte [rcx + 0x19], 3
jb 0x140159bcf
mov edx, InitializeCriticalSection
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140159be3
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], 0
mov edi, 0x80780063
jmp 0x140159d32
lea rsi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140159c25
test byte [rcx + 0x1c], 1
je 0x140159c25
cmp byte [rcx + 0x19], dil
jb 0x140159c25
mov edx, HeapReAlloc
mov r9, qword [rbx + 0x30]
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
and qword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
lea rdx, [0x140001800]
mov rcx, qword [rbx + 0x30]
call fcn.1400a9ab8
mov edi, eax
test eax, eax
jns 0x140159c4b
jmp 0x140159d1e
mov ecx, 0x64
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
jne 0x140159c87
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140159c7d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx + 0x30], r14
mov edi, 0x8007000e
jmp 0x140159d32
xor edx, edx
lea r8d, [rdx + 0x64]
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, 0x32
mov rdx, r14
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140159d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140159cf7
test byte [rcx + 0x1c], 1
je 0x140159cf7
cmp byte [rcx + 0x19], 2
jb 0x140159cf7
mov edx, reloc.KERNEL32.dll_InitializeCriticalSection
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x60]
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
jmp 0x140159d1e
mov qword [r12], r14
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140159d32
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 + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret