Function at 0x140187e60
Capabilities:
Get storage device properties
Get volume information via ioctl

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x230
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r15d, r8d
movzx r14d, cx
xor ebx, ebx
movsd xmm0, qword [0x14034c070]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [0x14034c078]
mov dword [rbp + 0x18], eax
movzx eax, word [0x14034c07c]
mov word [rbp + 0x1c], ax
mov word [rbp + 0x18], cx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x40100000
lea r8d, [rbx + 3]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140187f0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100081
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140187f5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0x10]
lea rcx, str.Failed_to_open_handle_to_volume__s__error__d__r_n
call fcn.1402bf424
jmp 0x140188142
mov dword [rbp - 0x80], ebx
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rbp - 0x7c]
call fcn.1402c5760
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x100
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140187fb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_failed_on_drive__c__error__d__r_n
jmp 0x140188023
mov edx, dword [rsp + 0x60]
cmp edx, 0x20
jae 0x140187fca
lea rcx, str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_returned__d_bytes_r_n
call fcn.1402bf424
jmp 0x14018802f
cmp dword [rbp + 0x20], 1
je 0x140187fde
lea rcx, str.Striped_or_spanned_volumes_are_not__yet__supported__r_n
call fcn.1402bf424
jmp 0x14018802f
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x60
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90064
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14018803d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.FSCTL_GET_NTFS_VOLUME_DATA_failed_on_drive__c__error__d__r_n
mov r8d, eax
movzx edx, r14w
call fcn.1402bf424
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140188142
mov qword [rbp - 0x20], 1
mov dword [rbp - 0x10], ebx
xor eax, eax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov dword [rbp + 0xc], eax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x20]
mov edx, 0x2d1400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401880c3
mov edi, dword [rbp - 8]
mov r8d, edi
shr r8d, 0xa
lea rdx, [rbp + 0x10]
lea rcx, str._ws_MaximumTransferLength:__uKB_r_n
call fcn.1402bd818
cmp edi, 0x8000
jb 0x1401880c3
mov eax, 0x20000
cmp edi, eax
cmova edi, eax
jmp 0x1401880c8
mov edi, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140100e80
mov rsi, rax
mov ecx, 0x770
call fcn.1402bcb4c
mov r10, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140188142
mov r8d, dword [rbp - 0x54]
mov ecx, r8d
imul rcx, qword [rbp - 0x40]
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x38], rcx
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
mov r9d, dword [rbp - 0x58]
mov r8d, dword [rbp + 0x28]
movzx edx, r14w
mov rcx, r10
call fcn.140187570
mov rbx, rax
mov rax, rbx
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret