Function at 0x14006a140
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x107b0]
mov eax, 0x108b0
call fcn.1400d7ad0
sub rsp, rax
mov r14, rcx
mov rdi, r8
mov rcx, rdx
mov r15, rdx
call fcn.140032e50
movsxd rbx, eax
cmp ebx, 9
jne 0x14006a197
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.140069cb0
add rsp, 0x108b0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x108e8], rsi
cmp ebx, 4
jne 0x14006a24b
mov r8d, 0x7ffe
lea rcx, [rbp + 0x7a0]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor r14d, r14d
lea rcx, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r14w
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14006a1e0
test rax, rax
je 0x14006a207
cmp word [rbp + rax*2 + 0x79e], 0x5c
je 0x14006a207
mov esi, 0x5c
mov word [rbp + rax*2 + 0x7a0], si
lea rdx, [r15 + 0x12]
nop dword [rax + rax]
movzx eax, word [rdx]
cmp ax, 0x20
je 0x14006a21f
cmp ax, 9
jne 0x14006a225
add rdx, 2
jmp 0x14006a210
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
lea rcx, [0x1400da884]
lea rdx, [0x1400f11dc]
cmovne rdx, rcx
jmp 0x14006a501
mov rsi, qword [0x140115db0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x40], rsi
mov rcx, rsi
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
cmp ebx, 8
ja case.0x14006a288.4
lea r15, [0x140000000]
mov eax, dword [r15 + rbx*4 + 0x6a810]
add rax, r15
jmp rax
xor r14d, r14d
cmp word [rdi], r14w
jne 0x14006a29d
mov ebx, 0x100
jmp 0x14006a335
lea rdx, str.CDRom
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14006a2b6
lea ebx, [rax + 5]
jmp 0x14006a335
lea rdx, str.Removable
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14006a2cf
lea ebx, [rax + 2]
jmp 0x14006a335
lea rdx, str.Fixed
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14006a2e8
lea ebx, [rax + 3]
jmp 0x14006a335
lea rdx, str.Network
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14006a301
lea ebx, [rax + 4]
jmp 0x14006a335
lea rdx, str.Ramdisk
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14006a31a
lea ebx, [rax + 6]
jmp 0x14006a335
lea rdx, str.Unknown
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne case.0x14006a5c3.1
mov ebx, r14d
mov qword [rsp + 0x108a8], r12
lea r15, [rsp + 0x60]
mov qword [rsp + 0x108a0], r13
mov r12d, r14d
mov dil, 0x41
movzx r13d, dil
lea rcx, [rbp - 0x60]
mov word [rbp - 0x60], r13w
mov dword [rbp - 0x5e], 0x5c003a
mov word [rbp - 0x5a], r14w
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebx
je 0x14006a380
cmp ebx, 0x100
jne 0x14006a38b
cmp eax, 1
je 0x14006a38b
inc r12d
mov word [r15], r13w
add r15, 2
inc dil
cmp dil, 0x5a
jbe 0x14006a350
xor r9d, r9d
movsxd rax, r12d
lea rdx, [rsp + 0x60]
mov byte [rsp + 0x20], 1
mov rcx, rsi
lea r8, [r9 - 1]
mov word [rsp + rax*2 + 0x60], r14w
call fcn.1400befb0
mov r13, qword [rsp + 0x108a0]
mov r12, qword [rsp + 0x108a8]
cmp word [rsp + 0x60], r14w
jne case.0x14006a288.4
mov r14, qword [rbp + 0x107e0]
mov rax, qword [0x1401101f0]
lea rdx, [0x1400f11dc]
test byte [rax + 0x140], 1
je 0x14006a501
lea r9, [0x1400da7a4]
xor r8d, r8d
mov rcx, r14
call fcn.140056cc0
jmp 0x14006a519
mov r8d, 0x7ffe
lea rcx, [rbp + 0x7a0]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor r14d, r14d
lea rcx, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r14w
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14006a440
test rax, rax
je 0x14006a46c
cmp word [rbp + rax*2 + 0x79e], 0x5c
je 0x14006a46c
mov esi, 0x5c
mov word [rbp + rax*2 + 0x7a0], si
mov rsi, qword [rsp + 0x40]
mov dword [rsp + 0x38], 0xff
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x107f8]
lea rax, [rsp + 0x48]
mov r8d, 0xff
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x1a0]
lea rax, [rsp + 0x4c]
lea rcx, [rbp + 0x7a0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x14006a5c3.1
sub ebx, 2
je 0x14006a530
sub ebx, 1
je 0x14006a4df
cmp ebx, 2
jne case.0x14006a288.4
mov edx, dword [rbp + 0x107f8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rsi
call fcn.1400015d0
jmp case.0x14006a288.4
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rbp + 0x1a0]
lea r8, [r9 - 1]
mov rcx, rsi
call fcn.1400befb0
lea rdx, [0x1400da884]
mov rcx, qword [0x140113a28]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
mov rsi, qword [rsp + 0x108e8]
add rsp, 0x108b0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rbp + 0x3a0]
lea r8, [r9 - 1]
jmp 0x14006a4f2
mov r8d, 0x7ffe
lea rcx, [rbp + 0x7a0]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor r14d, r14d
lea rcx, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r14w
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14006a574
test rax, rax
je 0x14006a5a0
cmp word [rbp + rax*2 + 0x79e], 0x5c
je 0x14006a5a0
mov esi, 0x5c
mov word [rbp + rax*2 + 0x7a0], si
mov rsi, qword [rsp + 0x40]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x14006a5c3.1
mov eax, eax
mov ecx, dword [r15 + rax*4 + 0x6a834]
add rcx, r15
jmp rcx
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.Unknown
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.Removable
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.Fixed
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.Network
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.CDROM
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.RAMDisk
lea r8, [r9 - 1]
jmp 0x14006a4f2
mov r8d, 0x7ffe
lea rcx, [rbp + 0x7a0]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor r14d, r14d
lea rcx, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r14w
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14006a684
test rax, rax
je 0x14006a6b0
cmp word [rbp + rax*2 + 0x79e], 0x5c
je 0x14006a6b0
mov esi, 0x5c
mov word [rbp + rax*2 + 0x7a0], si
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x14006a744
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14006a744
cmp eax, 3
je 0x14006a72c
cmp eax, 0x13
je 0x14006a714
cmp eax, 0x15
mov byte [rsp + 0x20], 1
lea rdx, str.Unknown
lea rcx, str.NotReady
cmove rdx, rcx
xor r9d, r9d
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.ReadOnly
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.Invalid
lea r8, [r9 - 1]
jmp 0x14006a4f2
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.Ready
lea r8, [r9 - 1]
jmp 0x14006a4f2
cmp word [rdi], 0
jne 0x14006a783
xor r9d, r9d
lea rdx, [rbp + 0xa0]
mov r8d, 0x80
lea rcx, str.status_cdaudio_mode
call qword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jmp 0x14006a7f1
mov r9, rdi
lea r8, str.open__s_type_cdaudio_alias_cd_wait_shareable
mov edx, 0x100
lea rcx, [rbp + 0x5a0]
call fcn.1400ba350
xor r9d, r9d
lea rcx, [rbp + 0x5a0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jne case.0x14006a288.0
xor r9d, r9d
lea rdx, [rbp + 0xa0]
mov r8d, 0x80
lea rcx, str.status_cd_mode
call qword [sym.imp.WINMM.dll_mciSendStringW]
xor r9d, r9d
lea rcx, str.close_cd_wait
xor r8d, r8d
xor edx, edx
mov ebx, eax
call qword [sym.imp.WINMM.dll_mciSendStringW]
test ebx, ebx
jne case.0x14006a288.0
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rbp + 0xa0]
lea r8, [r9 - 1]
jmp 0x14006a4f2