Function at 0x180021670
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rdi, rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, eax
mov ecx, eax
call fcn.18004da9c
mov r14, rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x1800216ca
mov rcx, r14
call fcn.18004d994
xor al, al
jmp 0x180021a34
mov rcx, rdi
call fcn.18001aea0
mov rbx, r14
cmp byte [r14], r15b
je 0x180021a2a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x18002186f
movzx r8d, byte [rbx]
lea edx, [rax - 1]
lea rcx, [rbp + 0x27]
call fcn.1800222f0
nop
mov r9d, 0x10
lea r8, str.Removable_Disk:
mov rcx, rax
call fcn.180022fc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rbp - 0x29]
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 1]
call fcn.180022400
mov byte [rbp + 0x1f], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180021797
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021792
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021a15
call fcn.18004d994
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
mov rdx, qword [rdi + 0x1e0]
cmp rdx, qword [rdi + 0x1e8]
je 0x1800217dd
movups xmm0, xmmword [rbp - 1]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0xf]
movups xmmword [rdx + 0x10], xmm1
mov eax, 0xf
mov byte [rbp - 1], 0
mov byte [rdx + 0x20], 0
add qword [rdi + 0x1e0], 0x28
jmp 0x1800217f1
lea r8, [rbp - 1]
lea rcx, [rdi + 0x1d8]
call fcn.1800236f0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x18002182a
lea rdx, [rax + 1]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021824
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021a15
call fcn.18004d994
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x180021a02
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800219fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800219fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x180021a02
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], 1
mov qword [rbp + 0x3f], 0xf
movsx eax, byte [rbx]
movzx eax, al
mov byte [rbp + 0x27], al
mov byte [rbp + 0x28], 0
mov r9d, 0xc
lea r8, str.Local_Disk:
lea rcx, [rbp + 0x27]
call fcn.180022fc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rbp - 0x29]
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 1]
call fcn.180022400
mov byte [rbp + 0x1f], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18002193c
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021937
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021a1c
call fcn.18004d994
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
mov rdx, qword [rdi + 0x1e0]
cmp rdx, qword [rdi + 0x1e8]
je 0x180021982
movups xmm0, xmmword [rbp - 1]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0xf]
movups xmmword [rdx + 0x10], xmm1
mov eax, 0xf
mov byte [rbp - 1], 0
mov byte [rdx + 0x20], 0
add qword [rdi + 0x1e0], 0x28
jmp 0x180021996
lea r8, [rbp - 1]
lea rcx, [rdi + 0x1d8]
call fcn.1800236f0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x1800219cb
lea rdx, [rax + 1]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800219c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021a1c
call fcn.18004d994
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x180021a02
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800219fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021a23
call fcn.18004d994
inc rbx
cmp byte [rbx], 0
jne 0x180021a02
inc rbx
cmp byte [rbx], 0
jmp 0x1800216d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.18004d994
mov al, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret