Function at 0x14012c570
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x40
and dword [rax + 0x18], 0
mov rsi, rdx
and qword [rax + 0x20], 0
mov rbp, rcx
and dword [rax + 0x10], 0
test rdx, rdx
jne 0x14012c5ad
lea r8, str.pbIsReadonly
mov edx, 0x2e2
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.14008410c
lea rdx, [rsp + 0x88]
mov byte [rsi], 0
mov rcx, rbp
call fcn.140084cd4
lea rdi, [0x1401720a0]
mov ebx, eax
test eax, eax
js 0x14012c7c6
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
and dword [rsp + 0x38], 0
xor r9d, r9d
and qword [rsp + 0x30], 0
mov r15d, eax
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14012c762
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov edi, eax
call fcn.14012d970
test eax, eax
jns 0x14012c692
mov rcx, qword [0x1401720a0]
lea rdx, [0x1401720a0]
cmp rcx, rdx
je 0x14012c678
test byte [rcx + 0x1c], 1
je 0x14012c678
cmp byte [rcx + 0x19], 3
jb 0x14012c678
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b828]
mov edx, 0x20
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005b60
mov rcx, qword [0x1401720a0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
lea rdi, [0x1401720a0]
jmp 0x14012c7cd
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x14012c6ee
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14012c6d4
test byte [rcx + 0x1c], 1
je 0x14012c6d4
cmp byte [rcx + 0x19], 4
jb 0x14012c6d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b828]
mov edx, 0x21
mov r9, rbp
call fcn.140005afc
mov rdx, rsi
mov rcx, rbp
call fcn.14012ca10
mov ebx, eax
test eax, eax
js 0x14012c7c6
jmp 0x14012c770
cmp edi, 0x3ed
je 0x14012c71a
cmp edi, 1
je 0x14012c71a
cmp edi, 0x57
je 0x14012c71a
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
lea rdi, [0x1401720a0]
jmp 0x14012c7c6
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14012c75b
test dword [rcx + 0x1c], 0x200
je 0x14012c75b
cmp byte [rcx + 0x19], 4
jb 0x14012c75b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b828]
mov edx, 0x22
mov r9, rbp
call fcn.140005afc
mov rcx, qword [0x1401720a0]
mov ebx, 0x80780076
jmp 0x14012c7cd
mov eax, dword [rsp + 0x80]
shr eax, 0x13
and al, 1
mov byte [rsi], al
mov rcx, qword [0x1401720a0]
cmp rcx, rdi
je 0x14012c7bd
test dword [rcx + 0x1c], 0x200
je 0x14012c7bd
cmp byte [rcx + 0x19], 4
jb 0x14012c7bd
cmp byte [rsi], 0
lea rdx, [0x14014be58]
mov rcx, qword [rcx + 0x10]
lea rax, str._not
cmovne rax, rdx
lea r8, [0x14015b828]
mov edx, 0x23
mov qword [rsp + 0x20], rax
mov r9, rbp
call fcn.140005bdc
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [0x1401720a0]
cmp qword [rsp + 0x88], 0
je 0x14012c7ed
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x14012c81d
cmp rcx, rdi
je 0x14012c81d
test dword [rcx + 0x1c], 0x200
je 0x14012c81d
cmp byte [rcx + 0x19], 3
jb 0x14012c81d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b828]
mov edx, 0x24
mov r9d, ebx
call fcn.140004b98
mov eax, ebx
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret