Function at 0x140001f90
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 [0x140039010]
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 [0x14002a548]
mov ebx, eax
mov eax, 0x80070006
cmp ebx, 1
cmove ebx, eax
test ebx, ebx
js 0x1400021fe
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rdx, [0x140032ef8]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x1400021fe
mov rcx, qword [rdi + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14002a548]
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 [0x14002a548]
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 0x1400021fe
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
test eax, eax
jne 0x1400020d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400021fe
mov ebx, r14d
mov r12d, 0x5c
bt esi, ebx
jae 0x1400021ac
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 0x1400021ac
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 [0x14002a548]
test eax, eax
js 0x1400021ac
mov edx, 1
lea rcx, [rbp - 0x80]
mov r8d, edx
call fcn.1400123bc
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
cmovbe eax, r14d
test eax, eax
js 0x1400021ac
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rbp - 0x80]
lea rdi, [rdi + rcx*2]
jmp 0x1400021a3
cmp r12w, word [rdi]
jne 0x14000219f
xor r8d, r8d
mov word [rdi], r14w
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400123bc
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
cmovbe eax, r14d
test eax, eax
js 0x1400021ac
sub rdi, 2
lea rax, [rbp - 0x7a]
cmp rax, rdi
jb 0x140002176
inc ebx
cmp ebx, 0x1a
jb 0x1400020e1
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x1400021fe
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0xf8]
call qword [0x14002a548]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r14
call fcn.140014d6c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000220e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140002234
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 [0x14002a548]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000224b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002a548]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140015800
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret