Function at 0x140006290
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400a2060]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
movabs rax, 0x5c003a0041
mov qword [rbp - 0x80], rax
xor r12d, r12d
mov esi, r12d
mov r15d, r12d
test edi, edi
je 0x140006587
lea r13, str.h__n_
nop dword [rax]
test dil, 1
je 0x14000657d
lea eax, [rsi + 0x41]
mov word [rbp - 0x80], ax
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140006535
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x190]
call fcn.14004f2b0
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x44], r12d
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.14004f2b0
mov dword [rsp + 0x38], 0xff
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 0xff
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14000657d
cmp byte [r14 + 0x20], 0
jne 0x140006471
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x190]
lea r8, [rbp - 0x80]
lea rdx, str.Volume_details_of__ws:_VolName:__ws__SerialNo:__lu__FSName:__ws_n
lea rcx, [rsp + 0x50]
call fcn.140004d50
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
lea rcx, str._hs_n
call fcn.140001950
mov rcx, qword [str.h__n_]
cmp rcx, r13
je 0x140006434
test byte [rcx + 0x1c], 1
je 0x140006434
cmp byte [rcx + 0x19], 4
jb 0x140006434
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov edx, 0x14
lea r8, [0x14008f2f0]
mov rcx, qword [rcx + 0x10]
call fcn.140005130
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140006471
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000646c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400065ba
call fcn.14004c810
lea rdx, str.NTFS
lea rcx, [rbp - 0x70]
call fcn.140053108
test eax, eax
jne 0x14000657d
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400064c0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.1400071b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140005d90
add r15d, eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000657d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000652e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400065c0
call fcn.14004c810
jmp 0x14000657d
cmp byte [r14 + 0x20], 0
jne 0x14000657d
lea rdx, [rbp - 0x80]
lea rcx, str.Drive__s_is_not_a_fixed_drive._n
call fcn.140001950
mov rcx, qword [str.h__n_]
cmp rcx, r13
je 0x14000657d
test byte [rcx + 0x1c], 1
je 0x14000657d
cmp byte [rcx + 0x19], 2
jb 0x14000657d
mov edx, 0x15
lea r9, [rbp - 0x80]
lea r8, [0x14008f2f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400050c0
inc esi
shr edi, 1
jne 0x140006300
mov eax, r15d
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14004c7f0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140059a5c
int3
call fcn.140059a5c
int3