Function at 0x14005bd60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x8c0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
movzx ebp, dx
lea rax, [rsp + 0x48]
mov r14, r9
mov r13, r8
mov r12, rcx
lea rdx, str.SystemMountedDevices
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005be9d
call fcn.140049470
lea rbp, [0x140433b50]
xor edx, edx
mov rcx, rbp
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea edx, [rbx + 0x5c]
lea rcx, str..._reg.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005be83
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x58]
mov r8d, 0x203
mov byte [rsp + 0x58], bl
mov qword [rsp + 0x59], rax
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbp
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005be40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x58]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005be70
mov rbx, rbp
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_QueryDosDevicesData.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005c018
lea rcx, [rsp + 0xb2]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0xb0], bx
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x400
mov esi, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005c008
nop
nop
lea rcx, [rsp + 0x4b1]
xor edx, edx
mov r8d, 0x3ff
add esi, 1
mov byte [rsp + 0x4b0], bl
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4b0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bfa0
lea rdx, str.DosDevices_c:
lea rcx, [rsp + 0x70]
movzx r8d, bp
call qword [sym.imp.MSVCR80.dll__swprintf]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
movsxd r8, ecx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
je 0x14005bfe9
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
mov edx, esi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x400
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005bf00
jmp 0x14005c008
mov ecx, dword [r12]
mov rax, qword [rsp + 0x4b4]
cqo
idiv rcx
mov ecx, dword [rsp + 0x4b0]
mov dword [r13], ecx
mov qword [r14], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x8c0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret