Function at 0x14005a520
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea edx, [r15 + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14000d810
mov qword [rsp + 0x68], 0x28
mov qword [rsp + 0x70], 0x2f
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov qword [rax + 0x28], r15
mov qword [rax + 0x30], r15
mov qword [rax + 0x38], r15
mov qword [rax + 0x40], r15
mov qword [rax + 0x48], r15
mov word [rax + 0x50], r15w
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, rax
mov r8d, dword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov qword [rsp + 0x30], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
lea r8d, [r15 + 0x4b]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerVirtualDesktopsDesktops
lea rcx, [rsp + 0x78]
call fcn.14000d670
nop
lea r8d, [r15 + 1]
lea rdx, [0x1400b8b50]
lea rcx, [rsp + 0x78]
call fcn.14000ed70
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.14000ed70
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a6fb
mov dword [rsp + 0x38], 0x208
mov dword [rsp + 0x3c], r15d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.Name
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a6f0
lea rax, [rbp + 0x7a0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a6c3
lea rdx, [rbp + 0x7a0]
mov rcx, r14
call fcn.14000d670
mov sil, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14005a811
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov edx, 0x10
lea rcx, [rsp + 0x40]
call fcn.14001e8c0
xor sil, sil
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14005a240
mov r8, qword [rsp + 0x40]
test al, al
je 0x14005a7d2
mov rbx, r15
mov rdx, qword [rsp + 0x48]
sub rdx, r8
sar rdx, 4
test rdx, rdx
je 0x14005a7d2
mov rcx, r8
inc rbx
mov rax, qword [rdi]
cmp rax, qword [rcx]
jne 0x14005a765
mov rax, qword [rdi + 8]
cmp rax, qword [rcx + 8]
je 0x14005a770
add rcx, 0x10
cmp rbx, rdx
jae 0x14005a7d2
jmp 0x14005a750
xor r8d, r8d
mov edx, 0x3eb
lea rcx, [rbp - 0x60]
call fcn.1400582b0
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, str._s__i
mov edx, 0x104
lea rcx, [rbp + 0x7a0]
call fcn.140004b70
lea rax, [rbp + 0x7a0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a7b0
lea rdx, [rbp + 0x7a0]
mov rcx, r14
call fcn.14000d670
mov sil, 1
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x14005a811
mov rdx, qword [rsp + 0x50]
sub rdx, r8
and rdx, 0xfffffffffffffff0
mov rax, r8
cmp rdx, 0x1000
jb 0x14005a808
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a8d2
mov rcx, r8
call fcn.14006ec58
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14005a852
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a84d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a8d8
call fcn.14006ec58
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14005a8a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a89d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a8cc
call fcn.14006ec58
movzx eax, sil
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.14006ed70
mov rbx, qword [rsp + 0xb08]
add rsp, 0xac0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14007576c
nop
call fcn.14007576c
nop
call fcn.14007576c
int3