Function at 0x14004a1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7fa0]
mov eax, 0x80a0
call fcn.1400d0b90
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x80f0], rbx
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x7f90], 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.140047880
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 [0x1401b8d58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14004a278
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 0x14004a29b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004a2ab
xor bl, bl
mov rdi, qword [rsp + 0x50]
jmp 0x14004a5a5
mov dword [rsp + 0x48], 0x4000
mov word [rbp - 0x70], r14w
xor edx, edx
mov r8d, 0x7ffe
lea rcx, [rbp - 0x6e]
call fcn.1400d0f20
mov r13d, r14d
mov rdi, qword [rsp + 0x50]
mov eax, dword [0x1401bdd80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 5
jne 0x14004a31a
mov ecx, 4
call fcn.1400cc2a0
mov rbx, rax
call fcn.1400cc4a0
mov dword [rbx], eax
mov dword [0x1401bdd80], eax
mov rcx, rbx
call fcn.1400cbac0
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 - 0x70]
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
inc r13d
test eax, eax
je 0x14004a358
cmp eax, 0x103
jne 0x14004a573
lea rcx, [0x1401b59a8]
mov rdx, qword [0x1401b59a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
test rax, 0xffffffffffff0000
jne 0x14004a3af
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004a499
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002690
mov rbx, qword [rsp + 0x40]
jmp 0x14004a499
lea rax, [rbp - 0x70]
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004a3c0
test edi, edi
jne 0x14004a420
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004a499
cmp dword [rdx + 0x10], 0
jge 0x14004a3fc
cmp dword [rbx - 0xc], 0
jl 0x14004a57d
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14004a499
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a40c
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 0x14004a499
mov r15d, dword [rbx - 0x10]
lea r14, [rbp - 0x70]
sub r14, rbx
sar r14, 1
test edi, edi
js 0x14004a5cd
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004a458
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002490
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 0x14004a47c
lea r8, [rbx + r14*2]
call fcn.1400cc30c
jmp 0x14004a485
lea r8, [rbp - 0x70]
call fcn.1400cc4cc
cmp edi, dword [rbx - 0xc]
jg 0x14004a5c2
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [r15 + rbx], r14w
cmp dword [rbx - 0x10], 0
je 0x14004a53b
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14004a506
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14004a506
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x14004a4d8
mov rcx, rsi
call fcn.14001d9f0
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 0x14004a504
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.1400024f0
add rax, 0x18
mov qword [rdi], rax
jmp 0x14004a536
cmp rax, qword [rsi + 0x10]
jne 0x14004a514
mov rcx, rsi
call fcn.14001d9f0
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14004a536
lea rcx, [rbx - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [rdi], rax
add qword [rsi + 8], 8
mov dword [rsp + 0x48], 0x4000
xor edx, edx
mov r8d, 0x8000
lea rcx, [rbp - 0x70]
call fcn.1400d0f20
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004a56e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x50]
test r12d, r12d
jne 0x14004a588
jmp 0x14004a2d1
mov ecx, 0x80070057
call fcn.140001920
nop
test rdi, rdi
je 0x14004a59e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r14
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov bl, 1
test rdi, rdi
je 0x14004a5b8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
movzx eax, bl
jmp 0x14004a5d8
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7f90]
xor rcx, rsp
call fcn.1400cbae0
mov rbx, qword [rsp + 0x80f0]
add rsp, 0x80a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret