Function at 0x14003a7b8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov qword [rbp - 1], 0xfffffffffffffffe
mov r14, r9
mov rbx, r8
mov r12, rdx
mov r15, rcx
mov rsi, qword [rbp + 0x7f]
mov qword [rbp + 7], rsi
mov dword [rbp - 0x31], 4
and dword [rbp - 0x41], 0
mov eax, dword [0x14019fd80]
imul eax, eax
mov edi, 1
and eax, 0x80000007
jge 0x14003a814
sub eax, edi
or eax, 0xfffffff8
add eax, edi
cmp eax, 6
jne 0x14003a81f
sub dword [0x1401a0c50], edi
lea rcx, [0x1401979a8]
mov rax, qword [0x1401979a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x39], rax
mov rax, qword [rsi]
or r13d, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14003a886
lea r8, [0x140130a20]
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.140017478
nop
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140001d7c
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003a886
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401979a8]
mov rax, qword [0x1401979a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x21], rax
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140039224
nop
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14000d514
nop
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140001d7c
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003a8ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003a90e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x21]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003a998
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003a951
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003a972
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003a991
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14003aa97
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2d]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
mov ecx, dword [rbp - 0x41]
mov dword [r15], ecx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [0x14019fd80]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x17
jne 0x14003aa28
test r8d, r8d
je 0x14003aa1e
dec r8d
je 0x14003aa15
mov dword [0x14019fd80], r9d
jmp 0x14003aa28
and dword [0x14019fd80], 0
jmp 0x14003aa28
mov dword [0x14019fd80], 2
test r14d, r14d
jne 0x14003aa33
cmp dword [rbp - 0x2d], 4
je 0x14003aa36
xor dil, dil
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003aa53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14003aa74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, r13d
lock xadd dword [rdx + 0x10], ecx
add ecx, r13d
test ecx, ecx
jg 0x14003aa94
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret