Function at 0x14004c3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8320]
mov eax, 0x8420
call fcn.1400d1960
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x8470], rbx
mov rax, qword [0x1401bee90]
xor rax, rsp
mov qword [rbp + 0x8310], rax
mov rsi, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x60], r14
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140049bd0
nop
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [0x1401c1d58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14004c468
mov dword [rsp + 0x58], r14d
mov ecx, r14d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
test ecx, ecx
setne bl
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004c48b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004c49c
xor dil, dil
mov rbx, qword [rsp + 0x50]
jmp 0x14004c818
mov dword [rsp + 0x48], 0x4000
mov word [rbp + 0x310], r14w
xor edx, edx
mov r8d, 0x7ffe
lea rcx, [rbp + 0x312]
call fcn.1400d1cf0
mov r13d, r14d
mov rbx, qword [rsp + 0x50]
nop dword [rax + rax]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x310]
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
inc r13d
test eax, eax
je 0x14004c511
cmp eax, 0x103
jne 0x14004c793
lea rcx, [0x1401be9a8]
mov rdx, qword [0x1401be9a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0x310]
lea rax, [rbp + 0x310]
test rax, 0xffffffffffff0000
jne 0x14004c56e
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004c65f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400026e0
mov rbx, qword [rsp + 0x40]
jmp 0x14004c65f
lea rax, [rbp + 0x310]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004c580
test edi, edi
jne 0x14004c5e0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004c65f
cmp dword [rdx + 0x10], 0
jge 0x14004c5bc
cmp dword [rbx - 0xc], 0
jl 0x14004c79d
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14004c65f
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c5cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x14004c65f
mov r15d, dword [rbx - 0x10]
lea r14, [rbp + 0x310]
sub r14, rbx
sar r14, 1
test edi, edi
js 0x14004c841
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004c61b
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400024e0
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x14004c63f
lea r8, [rbx + r14*2]
call fcn.1400cd0d4
jmp 0x14004c64b
lea r8, [rbp + 0x310]
call fcn.1400cd294
cmp edi, dword [rbx - 0xc]
jg 0x14004c836
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [r15 + rbx], r14w
cmp dword [rbx - 0x10], 0
je 0x14004c701
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14004c6cc
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14004c6cc
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x14004c69e
mov rcx, rsi
call fcn.14001e2b0
mov rax, qword [rsi]
lea rcx, [rax + rdi*8]
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
test rdi, rdi
je 0x14004c6ca
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140002540
add rax, 0x18
mov qword [rdi], rax
jmp 0x14004c6fc
cmp rax, qword [rsi + 0x10]
jne 0x14004c6da
mov rcx, rsi
call fcn.14001e2b0
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14004c6fc
lea rcx, [rbx - 0x18]
call fcn.140002540
add rax, 0x18
mov qword [rdi], rax
add qword [rsi + 8], 8
mov dword [rsp + 0x48], 0x4000
mov ecx, dword [0x1401c6d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 0xa
jne 0x14004c765
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edx, edx
mov r8d, 0x8000
lea rcx, [rbp + 0x310]
call fcn.1400d1cf0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c78e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
test r12d, r12d
jne 0x14004c7a8
jmp 0x14004c4d0
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14004c7be
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r14d
mov r11d, dword [0x1401c6d80]
mov ecx, r11d
imul ecx, r11d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0xd
jne 0x14004c815
mov r8d, r14d
lea r9, [rbp - 0x70]
mov r10d, r11d
nop dword [rax]
inc r8d
dec r10d
lea r9, [r9 + 4]
movsxd rax, r8d
cmp rax, 0xde
jb 0x14004c800
mov dil, 1
test rbx, rbx
je 0x14004c82b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
movzx eax, dil
jmp 0x14004c84c
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x8310]
xor rcx, rsp
call fcn.1400cc8b0
mov rbx, qword [rsp + 0x8470]
add rsp, 0x8420
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret