Function at 0x14001d520
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x920], rbx
mov rax, qword [0x1401bee90]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rsi, rdx
mov qword [rbp - 0x70], rdx
mov r15, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x48], rcx
movzx eax, byte [0x1401c6d84]
neg al
sbb rdi, rdi
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, dword [0x1401c6d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
xor r12d, r12d
cmp ecx, 0xa
jne 0x14001d62e
mov ecx, r12d
mov eax, 0xdbeb61f
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x95
mov eax, r8d
sub eax, edx
cmp eax, 0x36
je 0x14001d628
nop word [rax + rax]
mov eax, r8d
or eax, 0xffffff86
add r8d, eax
inc ecx
mov eax, r8d
imul eax, r8d
cmp ecx, eax
jg 0x14001d628
mov eax, 0xdbeb61f
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x95
mov eax, r8d
sub eax, edx
cmp eax, 0x36
jne 0x14001d5f0
mov dword [0x1401c6d80], ecx
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140147688]
test rdx, 0xffffffffffff0000
jne 0x14001d688
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001d693
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400026e0
jmp 0x14001d693
lea rcx, [rsp + 0x50]
call fcn.140003550
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.14000f540
nop
lea r8, [0x1401c7090]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000f540
nop
lea r8, [0x140145acc]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14001b610
nop
mov r8, r15
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000f540
nop
mov qword [rsp + 0x78], r12
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 0x14001d71f
mov dword [rsp + 0x60], r12d
mov ecx, r12d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
test ecx, ecx
setne bl
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
or r14, 0xffffffffffffffff
lock add dword [rdx + 0x10], r14d
jg 0x14001d741
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d75a
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 0x14001d773
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 0x14001d78c
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 0x14001d7a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001d800
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001d7be
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001d7e2
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 0x14001d7f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001dadc
mov dword [rsp + 0x48], 0x400
xor r15d, r15d
mov word [rbp - 0x40], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x3e]
call fcn.1400d1cf0
mov r13d, r15d
mov rbx, qword [rsp + 0x58]
nop dword [rax]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x40]
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
inc r13d
test eax, eax
je 0x14001d86e
cmp eax, 0x103
jne 0x14001da40
lea rcx, [0x1401be9a8]
mov rdx, qword [0x1401be9a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x40]
lea rax, [rbp - 0x40]
test rax, 0xffffffffffff0000
jne 0x14001d8c5
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14001d9af
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400026e0
mov rbx, qword [rsp + 0x40]
jmp 0x14001d9af
lea rax, [rbp - 0x40]
mov rdi, r14
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001d8d0
test edi, edi
jne 0x14001d930
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001d9af
cmp dword [rdx + 0x10], 0
jge 0x14001d90c
cmp dword [rbx - 0xc], 0
jl 0x14001da4a
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14001d9af
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d91c
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 0x14001d9af
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp - 0x40]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x14001dad1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001d968
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400024e0
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 0x14001d98c
lea r8, [rbx + rsi*2]
call fcn.1400cd0d4
jmp 0x14001d995
lea r8, [rbp - 0x40]
call fcn.1400cd294
cmp edi, dword [rbx - 0xc]
jg 0x14001dac6
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r15 + rbx], ax
mov rsi, qword [rbp - 0x70]
xor r15d, r15d
cmp dword [rbx - 0x10], 0
je 0x14001da0d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001e1f0
call fcn.14001c930
test al, al
jne 0x14001da08
mov ecx, 0x28
call fcn.1400cbef8
mov rdi, rax
mov rbx, r15
nop dword [rax + rax]
call fcn.1400cd268
add eax, dword [0x1401c6d80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14001d9e0
mov ecx, dword [rdi + 0x24]
mov dword [0x1401c6d80], ecx
mov rcx, rdi
call fcn.1400cd9ec
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x48], 0x400
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x40]
call fcn.1400d1cf0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001da3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
test r12d, r12d
jne 0x14001da55
jmp 0x14001d830
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14001da6b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r15d
test rbx, rbx
je 0x14001da83
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, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001daa7
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 0x14001dac2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001dadc
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.1400cc8b0
mov rbx, qword [rsp + 0x920]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret