Function at 0x140175400
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 [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r15d, r8d
movzx r14d, cx
xor ebx, ebx
movsd xmm0, qword [0x1403232b0]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [0x1403232b8]
mov dword [rbp + 0x18], eax
movzx eax, word [0x1403232bc]
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 0x1401754ac
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 0x1401754fa
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.14029a88c
jmp 0x1401756e2
mov dword [rbp - 0x80], ebx
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rbp - 0x7c]
call fcn.1402a04b0
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 0x140175553
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 0x1401755c3
mov edx, dword [rsp + 0x60]
cmp edx, 0x20
jae 0x14017556a
lea rcx, str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_returned__d_bytes_r_n
call fcn.14029a88c
jmp 0x1401755cf
cmp dword [rbp + 0x20], 1
je 0x14017557e
lea rcx, str.Striped_or_spanned_volumes_are_not__yet__supported__r_n
call fcn.14029a88c
jmp 0x1401755cf
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 0x1401755dd
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.14029a88c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401756e2
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 0x140175663
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.140298d38
cmp edi, 0x8000
jb 0x140175663
mov eax, 0x20000
cmp edi, eax
cmova edi, eax
jmp 0x140175668
mov edi, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400fffc0
mov rsi, rax
mov ecx, 0x770
call fcn.14029806c
mov r10, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1401756e2
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.140174b30
mov rbx, rax
mov rax, rbx
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140297ff0
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