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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x548]
sub rsp, 0x610
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x78], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
add rdx, 0x58
cmp qword [rbx + 0x70], rdi
cmove rdx, rbx
lea r14d, [rdi + 7]
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x28], rdi
mov word [rbp + 0x18], di
or r15, 0xffffffffffffffff
mov r9, r15
xor r8d, r8d
lea rcx, [rbp + 0x10]
call fcn.140005514
nop
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
lea r12d, [rdi + 1]
lea r8d, [rdi + 0x5c]
mov rax, qword [rbp + 0x28]
cmp word [rcx + rax*2 - 2], r8w
je 0x14002d828
mov edx, r12d
lea rcx, [rbp + 0x10]
call fcn.140017214
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14002ddf7
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140010c4b.0]
test al, al
je 0x14002ddf7
cmp byte [rbx + 0x50], dil
je 0x14002ddfa
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov esi, 0x80070000
test eax, eax
jne 0x14002d8c7
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea r8d, [rax + 0x11]
lea rdx, str.GetVolumePathName
lea rcx, [rbp - 0x68]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x68]
call fcn.140012d24
mov r8d, ebx
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14002d91b
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea r8d, [rax + 0x20]
lea rdx, str.GetVolumeNameForVolumeMountPoint
lea rcx, [rbp - 0x68]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x68]
call fcn.140012d24
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0xe0]
mov r8, r15
inc r8
cmp word [rax + r8*2], di
jne 0x14002d942
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
mov r9, r15
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x68]
call fcn.140005514
mov r13d, 2
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
lea rax, [rbp + 0x2f0]
mov r8, r15
inc r8
cmp word [rax + r8*2], di
jne 0x14002d984
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x40]
call fcn.1400053ec
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x40]
call fcn.14001ed6c
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14003490c
nop
cmp qword [rbp + 0x88], 8
jb 0x14002d9d2
mov rcx, qword [rbp + 0x70]
call fcn.1400110f8
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x80], rdi
mov word [rbp + 0x70], di
cmp qword [rbp + 0x60], 8
jb 0x14002d9f4
mov rcx, qword [rbp + 0x48]
call fcn.1400110f8
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14002dd94
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rbx, rdx
cmp r14, rdx
ja 0x14002da1c
sub rdx, r14
mov rdx, qword [r15 + rdx*8]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140005514
nop
mov rdx, rbx
cmp r14, rbx
ja 0x14002da4c
sub rdx, r14
mov rdx, qword [r15 + rdx*8]
mov qword [rbp + 8], 7
mov qword [rbp], rdi
mov word [rbp - 0x10], di
add rdx, 0x28
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.140005514
nop
test rsi, rsi
je 0x14002dab0
mov rax, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [r15 + rax*8]
call fcn.14000d584
lea rax, [rbx + 1]
cmp rax, r14
sbb rdx, rdx
and rdx, rax
sub rsi, r12
mov qword [rsp + 0x48], rsi
mov rax, rsi
neg rax
sbb rcx, rcx
and rcx, rdx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov r8d, 0x104
lea rdx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov rbx, rax
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14002db17
cmp qword [rbp + 8], 8
jb 0x14002daee
mov rcx, qword [rbp - 0x10]
call fcn.1400110f8
mov qword [rbp + 8], 7
mov qword [rbp], rdi
mov word [rbp - 0x10], di
cmp qword [rbp - 0x48], 8
jb 0x14002dd8b
mov rcx, qword [rbp - 0x60]
call fcn.1400110f8
jmp 0x14002dd8b
mov r15d, 7
mov r14d, r13d
lea rcx, [rbp + 0xe0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14002db2b
lea rdx, [rbp + 0xe0]
lea rdx, [rdx + rax*2]
mov r9, qword [sym.imp.msvcrt.dll_towupper]
lea r8, [rbp + 0xe0]
lea rcx, [rbp + 0xe0]
call fcn.14001ee14
lea r8, [rbp + 0xe0]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x40]
call fcn.140008e60
nop
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x40]
call fcn.140008f2c
nop
or r13d, r12d
mov dword [rsp + 0x20], r13d
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x14002db96
mov rdx, qword [rdx]
mov r9, qword [rax + 0x18]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.14002fe94
test rax, rax
jne 0x14002dbdd
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14002dbd8
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140010c4b.0]
test al, al
jne 0x14002dbdd
mov sil, r12b
jmp 0x14002dbe0
mov sil, dil
mov r13d, r14d
and r13d, 0xfffffffe
cmp qword [rbp + 0x60], 8
jb 0x14002dbf7
mov rcx, qword [rbp + 0x48]
call fcn.1400110f8
test sil, sil
jne 0x14002dda3
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
mov esi, 0x104
mov r8d, esi
lea rdx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14002dc69
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rax + 0x20]
lea rdx, str.GetVolumeNameForVolumeMountPoint
lea rcx, [rsp + 0x50]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rsp + 0x50]
call fcn.140012d24
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x58], rdi
mov word [rbp + 0x48], di
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea rax, [rbp + 0x2f0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14002dc98
lea rdx, [rbp + 0x2f0]
lea rcx, [rsp + 0x50]
call fcn.1400053ec
nop
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x90]
call fcn.14001ed6c
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14003490c
nop
cmp qword [rbp + 0xd8], 8
jb 0x14002dcee
mov rcx, qword [rbp + 0xc0]
call fcn.1400110f8
mov qword [rbp + 0xd8], r15
mov qword [rbp + 0xd0], rdi
mov word [rbp + 0xc0], di
cmp qword [rbp + 0xb0], 8
jb 0x14002dd1a
mov rcx, qword [rbp + 0x98]
call fcn.1400110f8
nop
cmp qword [rbp - 0x20], 8
jb 0x14002dd2a
mov rcx, qword [rbp - 0x38]
call fcn.1400110f8
mov r8d, esi
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
cmp eax, r12d
je 0x14002db1d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
nop
cmp qword [rbp + 8], 8
jb 0x14002dd60
mov rcx, qword [rbp - 0x10]
call fcn.1400110f8
mov qword [rbp + 8], r15
mov qword [rbp], rdi
mov word [rbp - 0x10], di
cmp qword [rbp - 0x48], 8
jb 0x14002dd7c
mov rcx, qword [rbp - 0x60]
call fcn.1400110f8
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
test rsi, rsi
jne 0x14002da0c
mov dil, r12b
lea rcx, [rsp + 0x28]
call fcn.14002ad2c
jmp 0x14002ddfd
cmp qword [rbp - 0x20], 8
jb 0x14002ddb3
mov rcx, qword [rbp - 0x38]
call fcn.1400110f8
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
nop
cmp qword [rbp + 8], 8
jb 0x14002ddd9
mov rcx, qword [rbp - 0x10]
call fcn.1400110f8
mov qword [rbp + 8], r15
mov qword [rbp], rdi
mov word [rbp - 0x10], di
cmp qword [rbp - 0x48], 8
jb 0x14002dd97
mov rcx, qword [rbp - 0x60]
call fcn.1400110f8
jmp 0x14002dd97
mov r12b, dil
mov dil, r12b
cmp qword [rbp + 0x30], 8
jb 0x14002de0d
mov rcx, qword [rbp + 0x18]
call fcn.1400110f8
mov al, dil
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140012560
mov rbx, qword [rsp + 0x660]
add rsp, 0x610
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret