Function at 0x18001c490
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14, r8
mov r15, rdx
mov r13, rcx
mov dword [rbp + 0x48], 0x1fffff
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x38], rbx
mov r12, qword [rbp + 0x50]
mov rax, qword [r12]
or rsi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
je 0x18001c573
lea r8, [0x180055dd0]
mov rdx, r12
lea rcx, [rbp - 0x20]
call fcn.180001c40
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18001c55b
cmp dword [rbx + 0x10], 0
jl 0x18001c54d
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18001c54d
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x18001c543
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x38], rax
jmp 0x18001c55b
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x38]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c573
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x30], rbx
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.18001c0c0
nop
mov r8, rax
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
call fcn.180001b80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18001c5ff
cmp dword [rbx + 0x10], 0
jl 0x18001c5f1
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18001c5f1
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18001c5e7
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x30], rax
jmp 0x18001c5ff
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x30]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c618
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c630
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18001c706
mov ecx, dword [0x180069c80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 2
jne 0x18001c6b5
lea ecx, [r8 + 2]
call fcn.180029700
mov rdi, rax
call fcn.1800289f8
mov dword [rdi], eax
mov dword [0x180069c80], eax
mov rcx, rdi
call fcn.1800289b0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c6ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x18001c6e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c6ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor al, al
jmp 0x18001c81e
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x40]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x18001c734
mov ecx, dword [rbp + 0x48]
jmp 0x18001c73e
mov eax, dword [rbp + 0x48]
inc eax
mov dword [rbp + 0x48], eax
mov ecx, eax
call fcn.1800289f0
mov rdi, rax
mov r8d, dword [rbp + 0x48]
xor edx, edx
mov rcx, rax
call fcn.18002c930
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x40]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x18001c7aa
mov ecx, dword [rbp + 0x48]
mov byte [rcx + rdi], r14b
test rdi, rdi
je 0x18001c79c
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], r14b
jne 0x18001c790
mov r14d, eax
mov r8d, r14d
mov rdx, rdi
mov rcx, r13
call fcn.180002020
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.180028a24
test r15d, r15d
jne 0x18001c7cc
cmp dword [rbp - 0x40], 1
jne 0x18001c7cc
mov dil, 1
jmp 0x18001c7cf
xor dil, dil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c7e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x18001c801
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001c81a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rVariantCopy + 8]
movzx eax, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret