Function at 0x1400686b0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x218
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x208], rax
xor edi, edi
mov ebx, r8d
mov eax, 0xffdf
sar ebx, 0x10
mov r13, rdx
mov r12, rcx
and bx, ax
movzx r15d, r8w
mov qword [rsp + 0x48], rdi
test rdx, rdx
jne 0x14006870c
lea rcx, [rsp + 0x48]
mov edx, 0x100000
call fcn.1400632e0
mov r13, qword [rsp + 0x48]
mov rax, qword [0x14014ec48]
lea rcx, [rsp + 0x1e0]
mov qword [rcx], rax
mov rax, qword [0x14014ec50]
mov qword [rcx + 8], rax
mov eax, dword [0x14014ec58]
mov dword [rcx + 0x10], eax
xor eax, eax
mov ecx, 0x1b
mov dword [rsp + 0x1f4], eax
mov dword [rsp + 0x1f8], eax
mov dword [rsp + 0x1fc], eax
mov dword [rsp + 0x200], eax
mov dword [rsp + 0x204], eax
or edx, 0xffffffff
lea rax, [r12 + 4]
nop word [rax + rax]
mov word [rax + 2], dx
mov word [rax], dx
mov word [rax - 4], dx
mov word [rax - 2], dx
mov word [rax + 4], di
add rax, 0xa
sub rcx, 1
jne 0x140068770
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [rbx - 0x41]
mov r14d, 0x19
mov edx, eax
mov dword [rsp + 0x40], eax
cmp cx, r14w
ja 0x1400687b3
movzx r14d, bx
sub r14d, 0x41
mov edi, r14d
movsx eax, di
cmp eax, r14d
jg 0x14006899b
mov qword [rsp + 0x268], rbp
mov qword [rsp + 0x210], rsi
nop
bt edx, eax
lea ecx, [rdi + 0x41]
mov word [rsp + 0x1e8], cx
jae 0x14006897c
movsx rax, di
lea rsi, [rax + rax*4]
mov word [r12 + rsi*2 + 8], cx
lea rcx, [rsp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, eax
cmp eax, 1
je 0x140068978
cmp eax, 3
je 0x140068819
cmp eax, 2
je 0x140068819
xor cl, cl
jmp 0x14006881b
mov cl, 1
cmp r15d, 4
je 0x140068829
test cl, cl
je 0x140068972
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x1e0]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140068960
test rax, rax
je 0x140068966
xor edx, edx
mov r8d, 0x90
mov rcx, r13
mov dword [rsp + 0x50], 0
call fcn.14010c6c0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x70048
mov rcx, rbx
mov dword [rsp + 0x28], 0x90
mov qword [rsp + 0x20], r13
mov dword [r13 + 0x18], 0xffffffff
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400688d4
movzx eax, word [r13 + 0x18]
mov word [r12 + rsi*2], ax
xor ecx, ecx
mov dword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], r13
mov dword [r13 + 4], 0xffffffff
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14006892f
movzx eax, word [r13 + 4]
mov word [r12 + rsi*2 + 2], ax
cmp r15d, 4
jne 0x140068945
mov rdx, rbx
xor ecx, ecx
call fcn.1400653c0
mov word [r12 + rsi*2 + 6], ax
mov word [r12 + rsi*2 + 4], bp
cmp rbx, 0xffffffffffffffff
je 0x14006896c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
jmp 0x14006897c
mov edx, dword [rsp + 0x40]
jmp 0x14006897c
mov edx, dword [rsp + 0x40]
jmp 0x14006897c
mov edx, dword [rsp + 0x40]
jmp 0x14006897c
mov edx, dword [rsp + 0x40]
jmp 0x14006897c
mov edx, dword [rsp + 0x40]
inc di
movsx eax, di
cmp eax, r14d
jle 0x1400687d0
mov rsi, qword [rsp + 0x210]
mov rbp, qword [rsp + 0x268]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x48]
call fcn.14005b520
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.14010bcc0
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret