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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x100b8
call fcn.140057330
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10030], 0xfffffffffffffffe
mov rbx, rcx
mov qword [rbp + 0xffe0], 0
mov qword [rbp + 0xffe8], 8
mov qword [rbp + 0xfff0], 0
lea rdi, [rbp - 0x58]
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x8000
call sub.KERNEL32.dll_FindFirstVolumeW
cmp rax, 0xffffffffffffffff
je 0x140020f41
mov qword [rbp + 0xffd0], rax
mov qword [rbp + 0xffd8], rbx
lea r13, [rbp + 0xffa8]
mov word [rbp + 0x10024], 0
mov dword [rbp + 0x10004], 1
mov qword [rbp + 0x10018], r12
mov qword [rbp + 0x10010], rsi
mov byte [rbp + 0x1002f], 0
lea rcx, [rbp - 0x58]
lea rdx, [rbp + 0x10024]
mov r8d, 1
lea r9, [rbp + 0x10004]
call sub.KERNEL32.dll_GetVolumePathNamesForVolumeNameW
mov r15d, eax
test eax, eax
setne byte [rbp + 0x10027]
je 0x140020c80
mov dword [rbp + 0x10028], 0
mov r14d, 1
mov rcx, r12
mov r12, rsi
lea rdx, [rbp + 0x10024]
jmp 0x140020d23
mov qword [rbp + 0x10018], r12
mov qword [rbp + 0x10010], rsi
mov byte [rbp + 0x1002f], 0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xea
setne al
mov byte [rbp + 0xfff8], al
jne 0x140021063
mov ebx, dword [rbp + 0x10004]
test rbx, rbx
je 0x140020cd4
lea r14, [rbx + rbx]
mov edx, 2
mov rcx, r14
call fcn.14001dfc0
test rax, rax
jne 0x140020cd9
jmp 0x1400210cb
mov eax, 2
mov qword [rbp + 0x10018], rax
mov qword [rbp + 0x10010], rbx
mov byte [rbp + 0x1002f], 1
lea rcx, [rbp - 0x58]
mov rsi, rax
mov rdx, rax
mov r8d, ebx
lea r9, [rbp + 0x10004]
call sub.KERNEL32.dll_GetVolumePathNamesForVolumeNameW
mov r12, rbx
mov cl, 1
mov dword [rbp + 0x10028], ecx
mov rcx, rsi
mov rdx, rsi
mov r14, rbx
test eax, eax
je 0x140021073
mov qword [rbp + 0x10008], rcx
xor ebx, ebx
mov qword [rbp + 0xffc8], r12
jmp 0x140020d7f
mov rdx, qword [rbp + 0xfff0]
mov rax, qword [rbp + 0xffe8]
lea rcx, [rdx + rdx*2]
mov rdx, qword [rbp + 0xfff8]
mov qword [rax + rcx*8], rdx
mov rdx, qword [rbp + 0xffc0]
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], r12
inc qword [rbp + 0xfff0]
mov rdx, rsi
mov r12, qword [rbp + 0xffc8]
test bl, bl
jne 0x140020e90
test r14, r14
je 0x140020e90
lea rcx, [r14 + r14]
mov rax, 0xfffffffffffffffe
xor r8d, r8d
nop
cmp word [rdx + r8*2], 0
je 0x140020dd0
inc r8
lea r9, [rcx + rax]
add r9, 0xfffffffffffffffe
add rax, 0xfffffffffffffffe
cmp r9, 0xfffffffffffffffe
jne 0x140020da0
mov bl, 1
mov rsi, rdx
mov r8, r14
test r8, r8
jne 0x140020dea
jmp 0x140020e90
mov rcx, r8
not rcx
add r14, rcx
mov rsi, rdx
sub rsi, rax
xor ebx, ebx
test r8, r8
je 0x140020e90
test rdx, rdx
je 0x140020e90
mov rax, qword [rbp + 0x10008]
mov qword [rbp + 0x10018], rax
mov qword [rbp + 0x10010], r12
mov eax, dword [rbp + 0x10028]
mov byte [rbp + 0x1002f], al
mov rcx, r13
call fcn.1400521d0
mov rcx, qword [rbp + 0xffa8]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x140020f14
mov qword [rbp + 0xfff8], rcx
mov eax, dword [rbp + 0xffb0]
mov edi, dword [rbp + 0xffb4]
mov r12, qword [rbp + 0xffb8]
mov rcx, rdi
shl rcx, 0x20
or rcx, rax
mov qword [rbp + 0xffc0], rcx
mov rdx, qword [rbp + 0xfff0]
cmp rdx, qword [rbp + 0xffe0]
jne 0x140020d47
lea rcx, [rbp + 0xffe0]
call fcn.140021220
jmp 0x140020d40
mov rax, qword [rbp + 0x10008]
mov qword [rbp + 0x10018], rax
mov qword [rbp + 0x10010], r12
mov eax, dword [rbp + 0x10028]
mov byte [rbp + 0x1002f], al
mov rcx, qword [rbp + 0xffd0]
lea rdx, [rbp - 0x58]
mov r8d, 0x8000
call sub.KERNEL32.dll_FindNextVolumeW
test eax, eax
je 0x140020fdf
mov rbx, r12
mov rax, qword [rbp + 0x10008]
mov r12, rax
mov rsi, rbx
test r15d, r15d
jne 0x140020c00
mov r12, rax
mov rsi, rbx
test rbx, rbx
je 0x140020c00
lea rdx, [rbx + rbx]
mov r12, rax
mov r8d, 2
mov rcx, rax
call fcn.14001dfa0
mov rsi, rbx
jmp 0x140020c00
xor esi, esi
test r15d, r15d
mov rbx, qword [rbp + 0xffd8]
jne 0x140020f4d
test r12, r12
je 0x140020f4d
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x10008]
mov rdx, r12
call fcn.14001dfa0
jmp 0x140020f4d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov esi, 1
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], edi
movabs rax, 0x8000000000000000
mov qword [rbx], rax
mov rsi, qword [rbp + 0xfff0]
test rsi, rsi
je 0x140020fa2
mov rdi, qword [rbp + 0xffe8]
add rdi, 8
jmp 0x140020f89
add rdi, 0x18
dec rsi
je 0x140020fa2
mov rdx, qword [rdi - 8]
test rdx, rdx
je 0x140020f80
mov rcx, qword [rdi]
mov r8d, 1
call fcn.14001dfa0
jmp 0x140020f80
mov rax, qword [rbp + 0xffe0]
test rax, rax
je 0x140020fc8
mov rcx, qword [rbp + 0xffe8]
shl rax, 3
lea rdx, [rax + rax*2]
mov r8d, 8
call fcn.14001dfa0
mov rax, rbx
add rsp, 0x100b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x10008]
mov qword [rbp + 0x10018], rax
mov qword [rbp + 0x10010], r12
mov eax, dword [rbp + 0x10028]
mov byte [rbp + 0x1002f], al
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp eax, 0x12
jne 0x1400210ae
test r15d, r15d
jne 0x140021032
test r12, r12
je 0x140021032
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x10008]
mov rdx, r12
call fcn.14001dfa0
mov rcx, qword [rbp + 0xffd0]
call sub.KERNEL32.dll_FindVolumeClose
mov rbx, qword [rbp + 0xffd8]
test eax, eax
je 0x1400210c1
mov rax, qword [rbp + 0xfff0]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rbp + 0xffe0]
movups xmmword [rbx], xmm0
jmp 0x140020fc8
mov dword [rbp + 0x10028], 0
mov rcx, r12
mov r12, rsi
mov qword [rbp + 0x10008], rcx
mov qword [rbp + 0x10018], rcx
mov qword [rbp + 0x10010], r12
mov eax, dword [rbp + 0x10028]
mov byte [rbp + 0x1002f], al
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov esi, 2
movzx eax, byte [rbp + 0xfff8]
test al, al
jmp 0x140020f19
mov esi, 1
movzx eax, byte [rbp + 0x10027]
test al, al
jmp 0x140020f19
call sub.KERNEL32.dll_GetLastError
jmp 0x140020f46
mov qword [rbp + 0x10018], r12
mov qword [rbp + 0x10010], rsi
mov byte [rbp + 0x1002f], 0
mov ecx, 2
mov rdx, r14
call fcn.140058b50
ud2