Function at 0x14001cb90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x930], rbx
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x48], rcx
mov eax, dword [0x1401bdd80]
lea r8d, [rax + 1]
imul r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 4
jne 0x14001cc0f
inc dword [0x1401be108]
movzx eax, byte [0x1401bdd84]
neg al
sbb rdi, rdi
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140149740]
test rdx, 0xffffffffffff0000
jne 0x14001cc92
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001cc9d
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002690
jmp 0x14001cc9d
lea rcx, [rsp + 0x50]
call fcn.140003600
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.14000feb0
nop
lea r8, [0x1401be0d8]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000feb0
nop
lea r8, [0x1401496d0]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14001aed0
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14000feb0
nop
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rdi - 0x7ffffffe]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14001cd29
mov dword [rsp + 0x60], r15d
mov ecx, r15d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
test ecx, ecx
setne bl
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
lock add dword [rdx + 0x10], r12d
jg 0x14001cd4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cd64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cd7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001cd96
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 0x14001cdaf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001ce7c
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 9
jne 0x14001ce25
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400cb128
mov rcx, rax
call fcn.1400cc208
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001ce3a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001ce5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ce75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001d2f7
mov dword [rsp + 0x4c], 0x400
mov eax, dword [0x1401bdd80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 0xb
jne 0x14001ced3
mov eax, 1
mov edx, 0x97
mov r8d, eax
nop word [rax + rax]
lea ecx, [rax + r8]
lea r8d, [rax]
mov eax, ecx
dec edx
jns 0x14001cec0
mov dword [0x1401bdd80], ecx
mov word [rbp - 0x30], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x2e]
call fcn.1400d0f20
mov edi, r15d
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x4c]
lea r8, [rbp - 0x30]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r13d, eax
inc edi
mov dword [rsp + 0x48], edi
mov edx, dword [0x1401bdd80]
lea ecx, [rdx + 1]
imul ecx, ecx
imul ecx, edx
imul ecx, edx
and ecx, 0x80000003
jge 0x14001cf43
dec ecx
or ecx, 0xfffffffc
inc ecx
test ecx, ecx
je 0x14001cf59
mov ecx, 4
call fcn.1400cc2a0
mov edx, dword [0x1401bdd80]
mov dword [rax], edx
test r13d, r13d
je 0x14001cf6b
cmp r13d, 0x103
jne 0x14001d232
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x30]
test rax, 0xffffffffffff0000
jne 0x14001cfc2
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14001d0ab
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002690
mov rbx, qword [rsp + 0x40]
jmp 0x14001d0ab
lea rax, [rbp - 0x30]
mov rdi, r12
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001cfd0
test edi, edi
jne 0x14001d030
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001d0ab
cmp dword [rdx + 0x10], 0
jge 0x14001d00c
cmp dword [rbx - 0xc], 0
jl 0x14001d23c
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14001d0ab
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d01c
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 0x14001d0ab
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp - 0x30]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x14001d2ec
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001d068
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 rsi, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x14001d08c
lea r8, [rbx + rsi*2]
call fcn.1400cc30c
jmp 0x14001d095
lea r8, [rbp - 0x30]
call fcn.1400cc4cc
cmp edi, dword [rbx - 0xc]
jg 0x14001d2e1
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r15 + rbx], ax
xor r15d, r15d
mov r8d, dword [0x1401bdd80]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
cmp ecx, 1
jne 0x14001d100
test r8d, r8d
je 0x14001d0f6
dec r8d
je 0x14001d0ed
mov dword [0x1401bdd80], r9d
jmp 0x14001d100
mov dword [0x1401bdd80], r15d
jmp 0x14001d100
mov dword [0x1401bdd80], 2
cmp dword [rbx - 0x10], 0
je 0x14001d1f5
mov rax, qword [r14 + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14001d16c
mov rcx, qword [r14]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14001d16c
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [r14 + 0x10]
jne 0x14001d13f
mov rcx, r14
call fcn.14001d9f0
mov rax, qword [r14]
lea rcx, [rax + rdi*8]
mov rdi, qword [r14 + 8]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
test rdi, rdi
je 0x14001d16a
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.1400024f0
add rax, 0x18
mov qword [rdi], rax
jmp 0x14001d19b
cmp rax, qword [r14 + 0x10]
jne 0x14001d17a
mov rcx, r14
call fcn.14001d9f0
mov rdi, qword [r14 + 8]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x14001d19b
lea rcx, [rbx - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [rdi], rax
add qword [r14 + 8], 8
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
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, 7
jne 0x14001d1f5
mov ecx, 1
cmp r8d, ecx
jle 0x14001d1ef
nop dword [rax]
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x14001d1e0
mov dword [0x1401bdd80], ecx
mov dword [rsp + 0x4c], 0x400
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call fcn.1400d0f20
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d223
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x48]
mov edx, dword [0x1401bdd80]
mov rbx, qword [rsp + 0x58]
test r13d, r13d
jne 0x14001d247
jmp 0x14001cef1
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14001d263
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x58], rbx
mov edx, dword [0x1401bdd80]
mov dword [rsp + 0x60], r15d
mov eax, edx
imul eax, edx
imul eax, edx
and eax, 0x80000003
jge 0x14001d27e
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 2
jne 0x14001d28b
inc edx
mov dword [0x1401bdd80], edx
test rbx, rbx
je 0x14001d29e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001d2c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
mov rdx, qword [rdx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d2dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001d2f7
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400cbae0
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret