Function at 0x14005d5f4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, r8
mov rbx, rdx
mov r10, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
lea r13, [0x1400068c8]
mov r15d, 1
cmp r10, r12
je 0x14005d669
test byte [r10 + 0x1c], r15b
je 0x14005d669
cmp byte [r10 + 0x19], 4
jb 0x14005d669
mov rcx, qword [r10 + 0x10]
mov edx, 0x151
mov r8, r13
call fcn.14001dd24
mov r10, qword [0x14017d3a8]
xor r14d, r14d
mov dword [rsp + 0x78], 0xa
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x31], r14b
mov qword [rsp + 0x38], r14
mov edi, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x70], r14d
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x60], r14b
mov dword [rbp - 0x80], r14d
cmp r10, r12
je 0x14005d6fd
test byte [r10 + 0x1c], r15b
je 0x14005d6fd
cmp byte [r10 + 0x19], 4
jb 0x14005d6fd
lea rcx, [rbp - 0x50]
mov rdx, rbx
call fcn.1400a9700
mov rcx, qword [0x14017d3a8]
mov edx, 0x152
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov r9, rax
mov qword [rsp + 0x20], rsi
call fcn.14001ed50
mov r10, qword [0x14017d3a8]
mov rdx, qword [rbx]
lea rcx, [0x14000ab48]
cmp rdx, qword [rcx]
jne 0x14005d71b
mov rdx, qword [rbx + 8]
cmp rdx, qword [rcx + 8]
jne 0x14005d71b
mov eax, r14d
jmp 0x14005d720
sbb eax, eax
sbb eax, reloc.ADVAPI32.dll_TraceEvent
test eax, eax
je 0x14005d9c1
test rsi, rsi
je 0x14005d9c1
lea r8, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.1400ac7e4
mov rdi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x14005d7b8
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400a97c0
mov ebx, eax
test eax, eax
js 0x14005d7b8
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov r8d, r15d
call fcn.140155858
mov ebx, eax
test eax, eax
jns 0x14005d7c4
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d9c6
test byte [r10 + 0x1c], r15b
je 0x14005d9c6
cmp byte [r10 + 0x19], 2
jb 0x14005d9c6
mov edx, 0x153
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov rcx, qword [r10 + 0x10]
mov r8, r13
call fcn.14001ecbc
mov r10, qword [0x14017d3a8]
jmp 0x14005d9c6
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140152768
mov ebx, eax
test eax, eax
jns 0x14005d805
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d9c6
test byte [r10 + 0x1c], r15b
je 0x14005d9c6
cmp byte [r10 + 0x19], 2
jb 0x14005d9c6
mov edx, 0x154
jmp 0x14005d7a3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dl, byte [rsp + 0x30]
movzx ecx, r14b
cmp eax, 3
cmove ecx, r15d
test dl, dl
je 0x14005d97a
test cl, cl
je 0x14005d97a
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x31]
call fcn.140152890
mov ebx, eax
test eax, eax
jns 0x14005d882
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d9c6
test byte [r10 + 0x1c], r15b
je 0x14005d9c6
cmp byte [r10 + 0x19], 2
jb 0x14005d9c6
mov rcx, qword [r10 + 0x10]
mov edx, 0x157
mov r9d, eax
mov r8, r13
call fcn.14001de24
jmp 0x14005d7b8
cmp byte [rsp + 0x31], r14b
je 0x14005d8ce
mov ebx, 0x80780047
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d9c6
test byte [r10 + 0x1c], r15b
je 0x14005d9c6
cmp byte [r10 + 0x19], 2
jb 0x14005d9c6
mov r9, qword [rsp + 0x38]
mov rcx, qword [r10 + 0x10]
mov edx, 0x158
mov r8, r13
call fcn.14001ec40
jmp 0x14005d7b8
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x14005d927
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d9c6
test byte [r10 + 0x1c], r15b
je 0x14005d9c6
cmp byte [r10 + 0x19], 2
jb 0x14005d9c6
mov edx, 0x159
mov dword [rsp + 0x20], ebx
jmp 0x14005d7a7
mov rcx, qword [rsp + 0x38]
call fcn.14012eee0
mov ebx, eax
test eax, eax
jns 0x14005d7b8
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d975
test byte [r10 + 0x1c], r15b
je 0x14005d975
cmp byte [r10 + 0x19], 3
jb 0x14005d975
mov r9, qword [rsp + 0x38]
mov rcx, qword [r10 + 0x10]
mov edx, 0x15a
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov r10, qword [0x14017d3a8]
mov ebx, r14d
jmp 0x14005d9c6
mov ebx, 0x8078000c
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005d9c6
test byte [r10 + 0x1c], r15b
je 0x14005d9c6
cmp byte [r10 + 0x19], 2
jb 0x14005d9c6
mov r9, qword [rsp + 0x38]
movzx eax, cl
movzx ecx, dl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [r10 + 0x10]
mov edx, 0x156
mov r8, r13
call fcn.140028d10
jmp 0x14005d7b8
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005d9e2
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x14017d3a8]
mov qword [rsp + 0x38], r14
test rdi, rdi
je 0x14005d9f7
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x14017d3a8]
cmp r10, r12
je 0x14005da1a
test byte [r10 + 0x1c], r15b
je 0x14005da1a
cmp byte [r10 + 0x19], 4
jb 0x14005da1a
mov rcx, qword [r10 + 0x10]
mov edx, 0x15b
mov r8, r13
call fcn.14001dd24
lea rcx, [rsp + 0x50]
call fcn.140154fd0
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret