Function at 0x14001dff0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x398]
sub rsp, 0x498
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001e2e2
mov qword [rsp + 0x488], r14
lea rax, [rsp + 0x50]
mov r14, 0xffffffffffffffff
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14001e050
mov qword [rsp + 0x4b0], rbx
dec rcx
cmp word [rsp + 0x50], 0x5c
mov qword [rsp + 0x4b8], rdi
mov qword [rsp + 0x4c0], r12
mov qword [rsp + 0x490], r13
mov qword [rsp + 0x480], r15
jne 0x14001e2a9
xor r12d, r12d
movabs r15, 0x5c003a0041
nop
cmp word [rsp + 0x52], 0x5c
jne 0x14001e2a9
cmp word [rsp + 0x54], 0x3f
jne 0x14001e2a9
cmp word [rsp + 0x56], 0x5c
jne 0x14001e2a9
add rcx, rcx
lea rbx, [rsp + 0x50]
add rbx, rcx
cmp word [rbx], 0x5c
jne 0x14001e2a9
cmp rcx, 0x208
jae 0x14001e301
mov r8d, 0x104
mov word [rbx], r12w
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rbx], 0x5c
test eax, eax
je 0x14001e2a9
mov ecx, 0x20a
mov dword [rsp + 0x40], 0x105
call fcn.1400480f0
mov rdi, rax
test rax, rax
je 0x14001e267
nop dword [rax]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x14001e18a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001e25a
mov rcx, rdi
call fcn.140047860
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
cmovb rax, r14
mov rcx, rax
call fcn.1400480f0
mov rdi, rax
test rax, rax
jne 0x14001e130
jmp 0x14001e267
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, r12d
lea eax, [rbx + 0x41]
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x48]
mov word [rsp + 0x48], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x14001e237
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x14001e244
lea rcx, [rsp + 0x20]
call fcn.140024930
cmp qword [rax + 0x18], 7
jbe 0x14001e1dc
mov rax, qword [rax]
mov r9, rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, str.____Not_mounted:__ls_____ls._Error:__ls_n
call fcn.140001430
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14001e237
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e232
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2fb
call fcn.140036bb4
inc ebx
cmp ebx, 0x1a
jb 0x14001e193
jmp 0x14001e25a
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, str.___Mounted:__ls_____ls_n
call fcn.140001430
test rdi, rdi
je 0x14001e267
mov rcx, rdi
call fcn.140047860
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x14001e2a9
lea rax, [rsp + 0x50]
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14001e290
dec rcx
cmp word [rsp + 0x50], 0x5c
je 0x14001e0a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rbx, qword [rsp + 0x4b0]
mov r13, qword [rsp + 0x490]
mov r12, qword [rsp + 0x4c0]
mov rdi, qword [rsp + 0x4b8]
mov r15, qword [rsp + 0x480]
mov r14, qword [rsp + 0x488]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140036840
add rsp, 0x498
pop rsi
pop rbp
ret
call fcn.140046420
int3
call fcn.140036cf0
int3