Function at 0x180021640
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.18004daac
mov r14, rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x18002169a
mov rcx, r14
call fcn.18004d9a4
xor al, al
jmp 0x180021a04
mov rcx, rdi
call fcn.18001ae70
mov rbx, r14
cmp byte [r14], r15b
je 0x1800219fa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x18002183f
movzx r8d, byte [rbx]
lea edx, [rax - 1]
lea rcx, [rbp + 0x27]
call fcn.1800222c0
nop
mov r9d, 0x10
lea r8, str.Removable_Disk:
mov rcx, rax
call fcn.180022f90
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.1800223d0
mov byte [rbp + 0x1f], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180021767
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800219e5
call fcn.18004d9a4
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 0x1800217ad
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 0x1800217c1
lea r8, [rbp - 1]
lea rcx, [rdi + 0x1d8]
call fcn.1800236c0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x1800217fa
lea rdx, [rax + 1]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800217f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800219e5
call fcn.18004d9a4
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x1800219d2
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800219cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800219cd
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 0x1800219d2
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.180022f90
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.1800223d0
mov byte [rbp + 0x1f], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18002190c
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021907
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800219ec
call fcn.18004d9a4
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 0x180021952
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 0x180021966
lea r8, [rbp - 1]
lea rcx, [rdi + 0x1d8]
call fcn.1800236c0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x18002199b
lea rdx, [rax + 1]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021995
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800219ec
call fcn.18004d9a4
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x1800219d2
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800219cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800219f3
call fcn.18004d9a4
inc rbx
cmp byte [rbx], 0
jne 0x1800219d2
inc rbx
cmp byte [rbx], 0
jmp 0x1800216a8
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.18004d9a4
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