Function at 0x14005b710
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x8a0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_2192], rax
mov r12, rdx
mov word [rdx], 0
lea rax, [rsp + 0x48]
mov r13, r9
mov ebp, r8d
mov r14, 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 0x14005b84d
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 0x14005b833
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x58]
mov r8d, Ordinal_376
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
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005b7f0
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 0x14005b820
mov rbx, rbp
mov rax, qword [rsi]
lea rdx, [0x1402e22a0]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005ba0d
lea rcx, [rsp + 0x92]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x90], 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 + 0x90]
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 0x14005b9fd
nop
nop
lea rcx, [rsp + 0x491]
xor edx, edx
mov r8d, 0x3ff
add esi, 1
mov byte [rsp + Ordinal_1173], bl
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x490]
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 0x14005b98f
cmp dword [rsp + 0x490], ebp
jne 0x14005b98f
mov rax, qword [rsp + 0x494]
mov ecx, dword [r14]
cqo
idiv rcx
cmp rax, r13
jne 0x14005b98f
mov rax, qword [0x1402e2280]
lea rcx, [rsp + 0x68]
lea rdi, [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [0x1402e2288]
lea rdx, [rsp + 0x68]
mov qword [rcx + 8], rax
mov rax, qword [0x1402e2290]
mov qword [rcx + 0x10], rax
movzx eax, word [0x1402e2298]
mov word [rcx + 0x18], ax
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
movsxd r8, ecx
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
je 0x14005b9d8
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 + 0x90]
mov edx, esi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005b8b0
jmp 0x14005b9fd
movsxd rax, edi
movzx ecx, word [rsp + rax*2 + 0x90]
cmp cx, 0x61
mov word [r12], cx
jb 0x14005b9fd
cmp cx, 0x7a
ja 0x14005b9fd
sub cx, 0x20
mov word [r12], cx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_2192]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret