Function at 0x14005e870
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x2c0
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebx, ebx
mov qword [rsp + 0x50], rdx
mov dword [rdx], ebx
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
lea rcx, [rsp + 0x80]
xor eax, eax
xor edx, edx
mov r8d, 0x20a
mov word [rsp + 0x78], ax
movups xmmword [rsp + 0x68], xmm0
call fcn.140064f50
mov qword [rsp + 0x40], rbx
lea r8d, [rbx + 3]
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.14008a274
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14005eb84
mov r8d, 0x104
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x14005eb7c
movabs rax, 0x5c003f003f005c
cmp qword [rsp + 0x80], rax
je 0x14005eb84
mov dword [rsp + 0x38], 8
lea rcx, [rsp + 0x60]
mov eax, 0x5c
xor r9d, r9d
mov word [rsp + 0x64], ax
xor r8d, r8d
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14005eb7c
mov ecx, ebx
lea rdx, [rsp + 0x68]
lea r8, str.NTFS
nop
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14005eb84
cmp rcx, 5
jne 0x14005e990
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x2a0], r15
lea r15d, [rcx - 4]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x58], rbx
mov rdi, rcx
nop dword [rax]
inc rdi
cmp word [r14 + rdi*2], bx
jne 0x14005e9d0
test rdi, rdi
je 0x14005eb3e
mov qword [rsp + 0x2b0], r12
mov eax, 2
mov qword [rsp + 0x2a8], r13
lea r13, [rdi + 1]
mul r13
cmovo rax, rcx
mov rcx, rax
call fcn.14006ca18
mov r12, rax
test rax, rax
je 0x14005eb2e
lea rdx, [0x1400cab8c]
mov rcx, r14
call fcn.14006516c
mov rsi, rax
test rax, rax
je 0x14005eb21
sub esi, r14d
shr esi, 1
add esi, 2
mov ecx, esi
cmp rcx, rdi
jae 0x14005eb21
lfence
mov qword [rsp + 0x2f0], rbp
cmp word [r14 + rcx*2], 0x5c
jne 0x14005ea6b
mov r9, rcx
mov r8, r14
mov rcx, r12
mov rdx, r13
call fcn.140082598
jmp 0x14005ea82
lea rax, [rdi - 1]
cmp rcx, rax
jne 0x14005eaf1
mov r8, r14
mov rdx, r13
mov rcx, r12
call fcn.14007c988
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2200000
mov edx, 0x100088
mov rcx, r12
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14005eb10
mov r9d, 8
lea r8, [rsp + 0x58]
mov rcx, rax
mov r15d, ebx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x14005eae8
test dword [rsp + 0x58], 0x400
je 0x14005eae8
test dword [rsp + 0x5c], 0x20000000
jne 0x14005eb00
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov ecx, esi
cmp rcx, rdi
jb 0x14005ea50
jmp 0x14005eb19
mov rcx, rbp
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005eb19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rbp, qword [rsp + 0x2f0]
mov rcx, r12
call fcn.140068be8
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x2b0]
mov r13, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2b8]
mov eax, r15d
test r15d, r15d
jne 0x14005eb58
test ebx, ebx
jne 0x14005eb58
mov dword [rsi], 1
mov r15, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x2c0
pop r14
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
jmp 0x14005eb60