Function at 0x14007f470
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x28], rdx
call fcn.14002a53c
lea rcx, [rsp + 0x28]
call fcn.14005b560
mov rbx, qword [rsp + 0x28]
mov edx, 0x2c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrChrW]
xor dil, dil
xor r13d, r13d
mov ebp, 1
test rax, rax
je 0x14007f524
mov word [rax], r13w
add rax, 2
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.14005b560
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx]
mov ecx, 0xffdf
and ax, cx
cmp ax, 0x52
jne 0x14007f504
mov dil, 2
jmp 0x14007f524
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], r13d
call fcn.140066e40
cmp dword [rsp + 0x20], r13d
movzx edi, dil
cmovne edi, ebp
movzx eax, word [rbx]
mov r12w, r13w
mov r14w, r13w
movzx esi, r13w
cmp ax, 0x43
jne 0x14007f545
cmp word [rbx + 2], 0x2d
jne 0x14007f545
mov r12d, ebp
jmp 0x14007f565
cmp ax, 0x55
jne 0x14007f557
cmp word [rbx + 2], 0x2d
jne 0x14007f557
mov r14d, ebp
jmp 0x14007f565
test ax, ax
je 0x14007f565
cmp word [rbx + 2], 0x3a
cmove si, ax
lea rdx, [0x140000000]
lea rcx, [rsp + 0x68]
mov rax, qword [rdx + 0x14ec48]
mov qword [rcx], rax
mov rax, qword [rdx + 0x14ec50]
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x14ec58]
mov dword [rcx + 0x10], eax
mov rax, qword [rdx + 0x147ec0]
lea rcx, [rsp + 0x58]
mov qword [rcx], rax
mov eax, dword [rdx + 0x147ec8]
mov dword [rcx + 8], eax
test si, si
je 0x14007f608
movsx eax, sil
lea rcx, [rsp + 0x58]
mov word [rsp + 0x58], si
mov word [rsp + 0x70], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea rcx, [rsp + 0x68]
xor edx, edx
mov ebx, eax
call fcn.1400653c0
cmp ebx, 5
jne 0x14007f5e3
cmp dil, 2
jne 0x14007f5f0
cmp eax, 7
jne 0x14007f5f0
movzx ecx, si
call fcn.14007f3b0
jmp 0x14007f7b3
cmp dil, bpl
movzx ecx, sil
setne r13b
mov edx, r13d
call fcn.14006ec70
jmp 0x14007f7b3
test r12w, r12w
jne 0x14007f61b
test r14w, r14w
je 0x14007f7b3
xor dil, dil
mov qword [rsp + 0xd0], r15
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov byte [rsp + 0x38], r13b
mov r15d, eax
xor eax, eax
lea rbp, [rsp + 0x38]
mov qword [rsp + 0x39], rax
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov byte [rsp + 0x51], al
xor sil, sil
lea r13, [0x140000000]
nop word [rax + rax]
movzx ecx, sil
bt r15d, ecx
jae 0x14007f750
mov rax, qword [r13 + 0x14ec48]
lea rcx, [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [r13 + 0x14ec50]
mov qword [rcx + 8], rax
mov eax, dword [r13 + 0x14ec58]
mov dword [rcx + 0x10], eax
mov rax, qword [r13 + 0x147ec0]
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov eax, dword [r13 + 0x147ec8]
mov dword [rcx + 8], eax
movsx eax, sil
lea rcx, [rsp + 0x28]
add ax, 0x41
mov word [rsp + 0x88], ax
mov word [rsp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp sil, 2
mov ebx, eax
jge 0x14007f6db
cmp eax, 2
je 0x14007f750
test r14w, r14w
je 0x14007f6ee
cmp eax, 5
jne 0x14007f6f3
cmp dil, 2
jne 0x14007f750
jmp 0x14007f6fd
cmp eax, 5
je 0x14007f6fd
cmp eax, 2
je 0x14007f6fd
cmp eax, 3
jne 0x14007f750
test r12w, r12w
je 0x14007f708
cmp eax, 5
jne 0x14007f750
lea rcx, [rsp + 0x80]
xor edx, edx
call fcn.1400653c0
test r14w, r14w
je 0x14007f731
cmp eax, 7
jne 0x14007f750
cmp ebx, 5
jne 0x14007f72d
cmp dil, 2
jne 0x14007f750
mov byte [rbp], 0x45
test r12w, r12w
je 0x14007f750
cmp ebx, 5
jne 0x14007f750
cmp dil, 2
jne 0x14007f74b
cmp eax, 7
jne 0x14007f74b
mov al, 0x45
jmp 0x14007f74d
mov al, 0x43
mov byte [rbp], al
inc sil
inc rbp
cmp sil, 0x1a
jl 0x14007f660
mov r15, qword [rsp + 0xd0]
xor bl, bl
lea rsi, [rsp + 0x38]
xor r13d, r13d
movzx eax, byte [rsi]
cmp al, 0x43
jne 0x14007f799
movsx eax, bl
mov edx, r13d
add ax, 0x41
cmp dil, 1
setne dl
movzx ecx, al
mov word [rsp + 0x70], ax
call fcn.14006ec70
jmp 0x14007f7a9
cmp al, 0x45
jne 0x14007f7a9
movsx ecx, bl
add cx, 0x41
call fcn.14007f3b0
inc bl
inc rsi
cmp bl, 0x1a
jl 0x14007f772
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret