Function at 0x140004500
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x928]
sub rsp, 0xa18
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
mov qword [r11 + 0x20], rsi
mov edi, 0xffffe5d4
mov qword [r11 - 0x18], r12
mov rsi, rcx
mov qword [r11 - 0x20], r14
lea rcx, [rbp + 0x6e0]
mov qword [r11 - 0x28], r15
mov r14, rdx
mov r15d, r8d
xor r12d, r12d
mov r8d, 0x208
mov qword [rsp + 0x68], r12
xor edx, edx
mov dword [rsp + 0x7c], 0xff
call fcn.140008aa0
lea rax, [rsp + 0x68]
mov dword [rsp + 0x74], 0x104
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x70], r12d
lea rdx, str.SYSTEMMountedDevices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400047d4
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x74]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x6e0]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400047d4
mov qword [rsp + 0xa30], rbx
mov ebx, r12d
nop dword [rax]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0xc0]
mov qword [rsp + 0x30], r12
mov edx, ebx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x78], 0xff
mov word [rbp + 0xc0], r12w
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400047a9
lea r8d, [rax + 0xc]
lea rdx, str.DosDevices_
lea rcx, [rbp + 0xc0]
call fcn.14000b614
test eax, eax
jne 0x1400047a9
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0xc0]
lea rax, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400047a9
lea rcx, [rbp - 0x40]
mov r8, rsi
sub r8, rcx
lea rax, [rbp - 0x40]
mov edx, r12d
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
cmp byte [rax], cl
jne 0x1400046e3
inc edx
inc rax
cmp edx, 4
jb 0x1400046d0
cmp edx, 4
jne 0x1400047a9
lea r8, [rbp + 0xd8]
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.14000aee8
lea r8, [0x140021664]
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.14000b548
mov dword [rsp + 0x38], 0x103
lea rax, [rbp + 0x4d0]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x2c0]
mov qword [rsp + 0x28], r12
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400047a9
lea rcx, [rbp + 0x2c0]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140004760
test rax, rax
je 0x1400047a9
mov r8d, 4
lea rdx, str.NTFS
lea rcx, [rbp + 0x4d0]
call fcn.14000b614
test eax, eax
je 0x1400047b7
mov r8d, 3
lea rdx, [0x140021220]
lea rcx, [rbp + 0x4d0]
call fcn.14000b614
test eax, eax
je 0x1400047b7
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140004620
jmp 0x1400047cc
lea r8, [rbp + 0x2c0]
mov rdx, r15
mov rcx, r14
call fcn.14000aee8
mov edi, r12d
mov rbx, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0xa00]
mov r14, qword [rsp + 0xa08]
mov r12, qword [rsp + 0xa10]
mov rsi, qword [rsp + 0xa48]
test rcx, rcx
je 0x140004804
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.140007800
add rsp, 0xa18
pop rdi
pop rbp
ret