Function at 0x18001d000
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 r15, r8
mov r12, rdx
mov r13, rcx
mov eax, dword [0x180069c80]
lea r9d, [rax + 1]
imul r9d, eax
and r9d, 0x8000000f
jge 0x18001d055
dec r9d
or r9d, 0xfffffff0
inc r9d
mov eax, dword [0x18006a714]
mov ecx, 0x9b0e75b4
cmp r9d, 7
cmove eax, ecx
mov dword [0x18006a714], eax
mov dword [rbp - 0x34], 4
mov dword [rbp + 0x48], 0
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
mov r14, qword [rbp + 0x50]
mov rax, qword [r14]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x18001d121
lea r8, [0x180055dd0]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.180001c40
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18001d109
cmp dword [rbx + 0x10], 0
jl 0x18001d0fb
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18001d0fb
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x18001d0f1
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x40], rax
jmp 0x18001d109
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d121
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, r15
lea rcx, [rbp - 0x18]
call fcn.18001c0c0
nop
mov r8, rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180001b80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18001d1ad
cmp dword [rbx + 0x10], 0
jl 0x18001d19f
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18001d19f
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18001d195
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 0x18001d1ad
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x30]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d1c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d1de
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 0x18001d258
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d21d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x18001d23a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d251
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor al, al
jmp 0x18001d2f2
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov ecx, dword [rbp + 0x48]
mov dword [r13], ecx
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x18001d2a1
cmp dword [rbp - 0x38], 4
jne 0x18001d2a1
mov dil, 1
jmp 0x18001d2a4
xor dil, dil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d2b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x18001d2d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d2ee
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