Function at 0x1401200f8
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140120152
test byte [rcx + 0x1c], 1
je 0x140120152
cmp byte [rcx + 0x19], 4
jb 0x140120152
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x40
call fcn.14001dd24
xor ebx, ebx
test rsi, rsi
jne 0x140120171
lea r8, [0x140004878]
lea rcx, [0x140012540]
mov edx, 0x533
call fcn.1400a8be8
lea rax, [0x1400125f8]
mov r15d, 4
mov qword [rbp - 0x79], rax
lea rax, [0x140012620]
mov qword [rbp - 0x71], rax
lea rax, [0x140012618]
mov qword [rbp - 0x69], rax
lea rax, [0x140012630]
mov qword [rbp - 0x61], rax
lea rax, [0x140012628]
mov qword [rbp - 0x59], rax
lea rax, [0x140012640]
mov qword [rbp - 0x51], rax
lea rax, [0x140012638]
mov qword [rbp - 0x49], rax
lea rax, [0x140012650]
mov qword [rbp - 0x41], rax
lea rax, [0x140012648]
mov qword [rbp - 0x39], rax
lea rax, [0x140012660]
mov qword [rbp - 0x31], rax
lea rax, [0x140012658]
mov qword [rbp - 0x29], rax
lea rax, [0x140012670]
mov qword [rbp - 0x21], rax
lea rax, [0x140012668]
mov qword [rbp - 0x19], rax
lea rax, [0x140012680]
mov qword [rbp - 0x11], rax
lea rax, [0x140012678]
mov qword [rbp - 9], rax
lea rax, [0x140012690]
mov qword [rbp - 1], rax
lea rax, [0x140012688]
mov qword [rbp + 7], rax
lea rax, [0x1400126a0]
mov qword [rbp + 0xf], rax
lea rax, [0x140012698]
mov qword [rbp + 0x17], rax
lea rax, [0x1400126b0]
mov qword [rbp + 0x1f], rax
lea rax, [0x1400126a8]
mov qword [rbp + 0x27], rax
lea rax, [0x1400126c0]
mov qword [rbp + 0x2f], rax
lea rax, [0x1400126b8]
mov qword [rbp + 0x37], rax
lea rax, [0x1400126d8]
mov qword [rbp + 0x3f], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r12d, eax
test eax, eax
jne 0x1401202ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x140120498
test byte [rcx + 0x1c], 1
je 0x140120472
cmp byte [rcx + 0x19], 2
jb 0x140120472
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x3d]
lea r8, [0x1400127c8]
mov r9d, eax
call fcn.14001de24
jmp 0x14012046b
mov rcx, qword [0x14017d3a8]
mov edi, ebx
lea r14, [rbp - 0x79]
test r12d, r15d
je 0x14012034d
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140120336
test byte [rcx + 0x1c], 1
je 0x140120336
cmp byte [rcx + 0x19], 5
jb 0x140120336
mov r9, qword [r14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x43
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
inc edi
add r15d, r15d
add r14, 8
cmp edi, 0x18
jb 0x1401202fa
lea r14, [0x14017d3a8]
jmp 0x140120389
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x140120389
test byte [rcx + 0x1c], 1
je 0x140120389
cmp byte [rcx + 0x19], 4
jb 0x140120389
mov rcx, qword [rcx + 0x10]
mov r9d, edi
lea r8, [0x1400127c8]
mov r9, qword [rbp + r9*8 - 0x79]
mov edx, 0x42
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
cmp edi, 0x18
jne 0x1401203c6
cmp rcx, r14
je 0x1401203bc
test byte [rcx + 0x1c], 1
je 0x1401203bc
cmp byte [rcx + 0x19], 4
jb 0x1401203bc
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x2c]
lea r8, [0x1400127c8]
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov ebx, 1
jmp 0x140120472
mov eax, edi
mov rdx, rsi
mov rdi, qword [rbp + rax*8 - 0x79]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x140120436
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140120498
test byte [rcx + 0x1c], 1
je 0x140120472
cmp byte [rcx + 0x19], 2
jb 0x140120472
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea r8, [0x1400127c8]
mov edx, 0x45
mov r9, rdi
mov qword [rsp + 0x20], rsi
call fcn.140028ec8
jmp 0x14012046b
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140120498
test byte [rcx + 0x1c], 1
je 0x140120472
cmp byte [rcx + 0x19], 4
jb 0x140120472
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x46
mov r9, rdi
mov qword [rsp + 0x20], rsi
call fcn.14001ed50
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140120498
test byte [rcx + 0x1c], 1
je 0x140120498
cmp byte [rcx + 0x19], 4
jb 0x140120498
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x47
call fcn.14001dd24
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret