Function at 0x180006060
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1880]
mov eax, 0x1980
call fcn.180100310
sub rsp, rax
mov rax, qword [0x18014b040]
xor rax, rsp
mov qword [rbp + 0x1870], rax
mov r13, rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
xor r12d, r12d
mov dword [rsp + 0x44], r12d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], r12
mov qword [rdx + 8], r12
mov qword [rdx + 0x10], r12
mov edi, 1
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x44], edi
lea rdx, [rbp + 0x70]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ecx, 0x7ff
cmp eax, ecx
jae 0x18000610b
lea rdx, [rbp + 0x70]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ecx, eax
test eax, eax
je 0x18000663f
cmp eax, 0x801
jae 0x18000663f
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov r8d, ecx
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.18001ac10
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
xor r8d, r8d
lea rdx, [0x180122f81]
lea rcx, [rsp + 0x48]
call fcn.18001ac10
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov r8, rdi
lea rdx, [0x180122fa4]
lea rcx, [rsp + 0x68]
call fcn.18001ac10
nop
cmp qword [rbp - 0x28], 0
je 0x180006314
lea rdx, [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp r15, 0xf
mov r14, qword [rsp + 0x48]
cmova rdx, r14
lea rcx, [rsp + 0x68]
mov r8, qword [rsp + 0x68]
mov r9, qword [rbp - 0x80]
cmp r9, 0xf
cmova rcx, r8
mov rdi, qword [rsp + 0x78]
cmp rdi, qword [rsp + 0x58]
jne 0x1800061d5
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18000630f
mov r8, qword [rsp + 0x68]
mov r9, qword [rbp - 0x80]
mov rbx, r12
mov byte [rsp + 0x40], bl
mov eax, 0xa
mov qword [rbp - 0x78], rax
mov r13, qword [rbp - 0x28]
nop dword [rax]
lea rsi, [rsp + 0x68]
cmp r9, 0xf
cmova rsi, r8
lea r12, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova r12, qword [rbp - 0x38]
cmp rdi, r13
ja 0x180006283
mov rax, r13
sub rax, rdi
cmp rbx, rax
ja 0x18000627f
test rdi, rdi
je 0x1800062c2
lea r14, [rax + r12]
lea rcx, [r12 + rbx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18000627f
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800062b5
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180006250
mov rax, qword [rbp - 0x78]
cmp byte [rsp + 0x40], 0
je 0x180006308
test rax, rax
je 0x180006308
mov byte [rsp + 0x40], 0
xor ebx, ebx
dec rax
mov qword [rbp - 0x78], rax
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r9, qword [rbp - 0x80]
jmp 0x1800061f0
sub rbx, r12
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp rbx, 0xffffffffffffffff
je 0x18000627f
mov byte [rsp + 0x40], 1
lea r9, [rsp + 0x48]
cmp r15, 0xf
cmova r9, r14
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.180017ef0
add rbx, qword [rsp + 0x58]
cmp rbx, 0xffffffffffffffff
je 0x180006308
mov rax, qword [rbp - 0x78]
mov r13, qword [rbp - 0x28]
jmp 0x18000629d
mov r13, qword [rbp - 0x68]
xor r12d, r12d
mov edi, 1
lea rcx, [rsp + 0x68]
call fcn.180017e00
nop
lea rcx, [rsp + 0x48]
call fcn.180017e00
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov byte [rsp + 0x40], al
mov byte [rsp + 0x41], al
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x41]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x30]
call fcn.1800078d0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x18012fe20]
movdqa xmmword [rbp], xmm1
mov byte [rbp - 0x10], 0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
cmp rbx, rsi
je 0x180006619
lea rax, [rbp - 0x10]
cmp rax, rbx
je 0x1800063b6
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1800063a9
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x10]
call fcn.180018090
mov qword [rbp + 0x20], r12
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rax, qword [rbp + 0x10]
mov byte [rax], 0
mov rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.1800077d0
nop
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 7
cmova rcx, qword [rbp + 0x48]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rbp + 0x870]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1800065b7
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rax, [rbp + 0x870]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180006440
lea rdx, [rbp + 0x870]
lea rcx, [rsp + 0x48]
call fcn.18001a7c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
or edi, 2
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x44], edi
mov r9, qword [rsp + 0x58]
test r9, r9
je 0x180006538
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
je 0x180006534
mov rdx, rdi
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.180016d40
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.180016c80
lea rcx, [rbp - 0x58]
call fcn.180017e00
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rax, qword [rsp + 0x68]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdi, qword [rbp - 0x70]
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x180006573
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000656e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006612
call fcn.18009cc00
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rbp + 0x20], xmm1
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
and edi, 0xfffffffd
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x44], edi
lea rcx, [rsp + 0x68]
call fcn.180017e00
nop
lea rcx, [rsp + 0x48]
call fcn.180017d90
mov rdi, qword [r13 + 8]
cmp rdi, qword [r13 + 0x10]
je 0x1800065e7
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.180016e90
nop
lea rcx, [rdi + 0x20]
lea rdx, [rbp + 0x10]
call fcn.180016e90
nop
add qword [r13 + 8], 0x40
jmp 0x1800065f7
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r13
call fcn.18001e870
nop
lea rcx, [rbp + 0x48]
call fcn.180017d90
add rbx, 0x20
cmp rbx, rsi
je 0x180006619
mov rdi, qword [rbp - 0x70]
jmp 0x180006393
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x10]
call fcn.180017e00
lea rcx, [rbp - 0x10]
call fcn.180017e00
nop
lea rcx, [rbp + 0x30]
call fcn.180017c30
nop
lea rcx, [rbp - 0x38]
call fcn.180017e00
mov rax, r13
mov rcx, qword [rbp + 0x1870]
xor rcx, rsp
call fcn.18009cbe0
lea r11, [rsp + 0x1980]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret