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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x14005b080]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
lea rax, [0x140054120]
xor r15d, r15d
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, [0x140054128]
mov dword [rbp + 0xc0], r15d
mov qword [rsp + 0x28], rax
mov ebx, r15d
lea rax, [0x140054130]
mov qword [rsp + 0x30], rax
lea r14d, [r15 + 0x1a]
lea rax, [0x140054138]
mov qword [rsp + 0x38], rax
lea rax, [0x140054140]
mov qword [rsp + 0x40], rax
lea rax, [0x140054148]
mov qword [rsp + 0x48], rax
lea rax, [0x140054150]
mov qword [rsp + 0x50], rax
lea rax, [0x140054158]
mov qword [rsp + 0x58], rax
lea rax, [0x140054160]
mov qword [rsp + 0x60], rax
lea rax, [0x140054168]
mov qword [rsp + 0x68], rax
lea rax, [0x140054170]
mov qword [rsp + 0x70], rax
lea rax, [0x140054178]
mov qword [rsp + 0x78], rax
lea rax, [0x140054180]
mov qword [rbp - 0x80], rax
lea rax, [0x140054188]
mov qword [rbp - 0x78], rax
lea rax, [0x140054190]
mov qword [rbp - 0x70], rax
lea rax, [0x140054198]
mov qword [rbp - 0x68], rax
lea rax, [0x1400541a0]
mov qword [rbp - 0x60], rax
lea rax, [0x1400541a8]
mov qword [rbp - 0x58], rax
lea rax, [0x1400541b0]
mov qword [rbp - 0x50], rax
lea rax, [0x1400541b8]
mov qword [rbp - 0x48], rax
lea rax, [0x1400541c0]
mov qword [rbp - 0x40], rax
lea rax, [0x1400541c8]
mov qword [rbp - 0x38], rax
lea rax, [0x1400541d0]
mov qword [rbp - 0x30], rax
lea rax, [0x1400541d8]
mov qword [rbp - 0x28], rax
lea rax, [0x1400541e0]
mov qword [rbp - 0x20], rax
lea rax, [0x1400541e8]
mov qword [rbp - 0x18], rax
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x1400215de
mov eax, ebx
inc ebx
mov qword [rbp + rax*8 - 0x10], rsi
add rdi, 8
sub r14, 1
jne 0x1400215c4
mov word [rbp + 0xd0], r15w
mov rcx, qword [0x140060328]
mov edx, 8
mov r8d, 0x10040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400215f0
mov rcx, qword [0x140060328]
mov edx, 8
mov r8d, 0x10040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140021610
mov edx, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, rax
test ebx, ebx
je 0x1400216a8
lea r9, [rbp + 0xc0]
mov r8d, 0x78
lea rdx, [rbp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x140021682
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x140021682
mov word [rbp + 0xd0], r15w
jmp 0x140021692
dec ebx
mov rdx, rdi
mov rcx, qword [rbp + rbx*8 - 0x10]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov r8d, 0x8000
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x140021641
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, qword [0x140060328]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x140060328]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
test eax, eax
je 0x1400217e4
mov esi, 0x41
nop dword [rax + rax]
test r14b, 1
je 0x1400217d4
nop word [rax + rax]
mov rcx, qword [0x140060328]
mov edx, 8
lea r8d, [rdx + 0x46]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140021700
lea rdx, str.__
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbx + 0xa]
lea rdx, [0x1400541fc]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
mov word [rbx + 8], si
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400217c2
cmp eax, 5
je 0x1400217c2
cmp eax, 4
je 0x140021764
mov rcx, rbx
call fcn.1400211d0
jmp 0x1400217c2
mov dword [rbp + 0xc0], 0x104
nop
mov rcx, qword [0x140060328]
mov edx, 8
mov r8d, 0x248
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140021770
lea r8, [rbp + 0xc0]
mov rdx, rax
lea rcx, [rbx + 8]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x1400217b0
mov rcx, rdi
call fcn.1400211d0
mov rcx, qword [0x140060328]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x140060328]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
shr r14d, 1
inc si
cmp si, 0x5a
jbe 0x1400216f0
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14002a2c0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret