Function at 0x140001ef0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r14d, r14d
lea r8, [rsp + 0x68]
mov rdi, rcx
mov qword [rsp + 0x68], r14
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14002f570]
mov ebx, eax
mov eax, 0x80070006
cmp ebx, 1
cmove ebx, eax
test ebx, ebx
js 0x14000215e
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rdx, [0x140038028]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000215e
mov rcx, qword [rdi + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14002f570]
mov rcx, qword [rsp + 0x50]
lea r8, [rdi + 0x28]
lea edx, [r14 + 1]
lea r9d, [r14 + 2]
mov rax, qword [rcx]
mov rax, qword [rax + 0xf0]
call qword [0x14002f570]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ebx, ax
mov edi, 0x80070000
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000215e
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
test eax, eax
jne 0x140002038
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000215e
mov ebx, r14d
mov r12d, 0x5c
bt esi, ebx
jae 0x14000210c
lea eax, [rbx + 0x41]
mov dword [rbp - 0x7e], 0x5c003a
lea rcx, [rbp - 0x80]
mov word [rbp - 0x80], ax
mov word [rbp - 0x7a], r14w
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14000210c
mov rcx, qword [rsp + 0x50]
lea edx, [rbx + 1]
mov dword [rsp + 0x60], 0x104
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14002f570]
test eax, eax
js 0x14000210c
mov edx, 1
lea rcx, [rbp - 0x80]
mov r8d, edx
call fcn.14001217c
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
cmovbe eax, r14d
test eax, eax
js 0x14000210c
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rbp - 0x80]
lea rdi, [rdi + rcx*2]
jmp 0x140002103
cmp r12w, word [rdi]
jne 0x1400020ff
xor r8d, r8d
mov word [rdi], r14w
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14001217c
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
cmovbe eax, r14d
test eax, eax
js 0x14000210c
sub rdi, 2
lea rax, [rbp - 0x7a]
cmp rax, rdi
jb 0x1400020d6
inc ebx
cmp ebx, 0x1a
jb 0x140002041
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000215e
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0xf8]
call qword [0x14002f570]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r14
call fcn.140014f0c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000216e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140002194
mov rax, qword [rdx + 8]
add rdx, 8
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400021ab
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140015940
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret