Function at 0x14001e040
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 [0x1401d5e90]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x48], rcx
movzx eax, byte [0x1401ddd84]
neg al
sbb rdi, rdi
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.14001d430
or r15, 0xffffffffffffffff
test al, al
jne 0x14001e0fb
mov ecx, dword [0x1401ddd80]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub ecx, edx
add ecx, 0x63
movsxd rcx, ecx
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
mov r8d, dword [0x1401ddd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 0xb
jne 0x14001e173
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, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x14015d6f8]
test rdx, 0xffffffffffff0000
jne 0x14001e1be
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001e1c9
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002a60
jmp 0x14001e1c9
lea rcx, [rsp + 0x50]
call fcn.140003a70
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.1400109e0
nop
lea r8, [0x1401de1a0]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400109e0
nop
lea r8, [0x14015c3ec]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14001c2d0
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400109e0
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 0x14001e255
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 - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001e273
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 0x14001e28c
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 0x14001e2a5
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 0x14001e2be
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 0x14001e2d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001e332
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001e2f0
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, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001e314
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001e32b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001e71a
mov ebx, dword [0x1401ddd80]
lea r8d, [rbx + 1]
lea ecx, [rbx + 2]
imul ecx, r8d
imul ecx, ebx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub ecx, edx
cmp ecx, 4
cmove ebx, r8d
mov dword [0x1401ddd80], ebx
mov dword [rsp + 0x4c], 0x400
mov word [rbp - 0x30], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x2e]
call fcn.1400dc6e0
mov ecx, ebx
imul ecx, ebx
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
cmp ecx, 8
jne 0x14001e3ad
dec ebx
mov dword [0x1401ddd80], ebx
mov edi, r12d
mov rbx, qword [rsp + 0x58]
nop word [rax + rax]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
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
test eax, eax
je 0x14001e400
cmp eax, 0x103
jne 0x14001e612
lea rcx, [0x1401d59a8]
mov rdx, qword [0x1401d59a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x30]
test rax, 0xffffffffffff0000
jne 0x14001e457
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14001e53b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002a60
mov rbx, qword [rsp + 0x40]
jmp 0x14001e53b
lea rax, [rbp - 0x30]
mov rdi, r15
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001e460
test edi, edi
jne 0x14001e4c0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001e53b
cmp dword [rdx + 0x10], 0
jge 0x14001e49c
cmp dword [rbx - 0xc], 0
jl 0x14001e61c
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14001e53b
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001e4ac
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 0x14001e53b
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x30]
sub r14, rbx
sar r14, 1
test edi, edi
js 0x14001e70f
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001e4f8
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002860
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x14001e51c
lea r8, [rbx + r14*2]
call fcn.1400d7ac4
jmp 0x14001e525
lea r8, [rbp - 0x30]
call fcn.1400d7bc0
cmp edi, dword [rbx - 0xc]
jg 0x14001e704
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
cmp dword [rbx - 0x10], 0
je 0x14001e5db
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14001e5a7
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14001e5a7
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x14001e57a
mov rcx, rsi
call fcn.14001f0d0
mov rax, qword [rsi]
lea rcx, [rax + rdi*8]
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
test rdi, rdi
je 0x14001e5a5
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.1400028c0
add rax, 0x18
mov qword [rdi], rax
jmp 0x14001e5d6
cmp rax, qword [rsi + 0x10]
jne 0x14001e5b5
mov rcx, rsi
call fcn.14001f0d0
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x14001e5d6
lea rcx, [rbx - 0x18]
call fcn.1400028c0
add rax, 0x18
mov qword [rdi], rax
add qword [rsi + 8], 8
mov dword [rsp + 0x4c], 0x400
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call fcn.1400dc6e0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001e609
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
test r13d, r13d
jne 0x14001e627
jmp 0x14001e3c0
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14001e63d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r12d
mov r9d, dword [0x1401ddd80]
lea r8d, [r9 + 1]
imul r8d, r9d
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 3
jne 0x14001e6ae
mov eax, 0x51eb851f
imul r9d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x7b
movsxd rcx, r9d
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
nop
test rbx, rbx
je 0x14001e6c1
mov rcx, rbx
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, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001e6e5
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 0x14001e700
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001e71a
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400d72a0
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret