Function at 0x14001c790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1d8], rbx
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, r8
mov qword [rsp + 0x60], r8
mov r15, rdx
mov r12, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x60], rdx
movzx eax, byte [0x1401d6d84]
neg al
sbb r13, r13
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x48], r14
mov r11d, dword [0x1401d6d80]
lea ecx, [r11 + 1]
imul ecx, r11d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xb
jne 0x14001c8da
mov r10d, r14d
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov eax, 0x55555556
imul r11d
mov esi, edx
shr esi, 0x1f
add esi, edx
lea r8, [rbp - 0x4f]
nop word [rax + rax]
movzx r9d, r11b
sub r9b, r10b
mov ebx, 1
lea edi, [rbx + 0xb]
nop
mov eax, r11d
cdq
idiv ebx
movzx eax, r11b
imul dl
movzx ecx, al
movzx eax, r9b
imul cl
mov byte [r8 - 1], al
movzx eax, dl
imul r14b
movzx ecx, al
movzx eax, r9b
imul cl
mov byte [r8], al
movzx eax, sil
imul dl
movzx ecx, al
movzx eax, r9b
imul cl
mov byte [r8 + 1], al
inc ebx
add r8, 3
dec rdi
jne 0x14001c880
inc r10d
cmp r10d, 5
jl 0x14001c870
mov rsi, qword [rsp + 0x60]
xor r14d, r14d
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140157020]
test rdx, 0xffffffffffff0000
jne 0x14001c925
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001c930
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002960
jmp 0x14001c930
lea rcx, [rsp + 0x50]
call fcn.140003940
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140010150
nop
lea r8, [0x1401d71a0]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140010150
nop
lea r8, [0x140155b54]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001b580
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140010150
nop
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [r13 - 0x7ffffffe]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14001c9be
mov dword [rsp + 0x40], r14d
mov ecx, r14d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
test ecx, ecx
setne dil
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
lock add dword [rdx + 0x10], ebx
jg 0x14001c9df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001c9f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ca12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ca2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ca45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14001caa0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001ca5f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ca7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001ca9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14001cbe5
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rdx, qword [r15]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001cb7b
cmp dword [rsp + 0x6c], 4
jne 0x14001cb7b
test rdi, rdi
je 0x14001cb03
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
test rdi, rdi
je 0x14001cb21
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cb40
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001cb5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cb74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001cbfe
test rdi, rdi
je 0x14001cb91
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
test rdi, rdi
je 0x14001cba9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cbc8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001cbe5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cbfc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400d4e00
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret