Function at 0x14001b0f0
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 [0x1401a1e90]
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 [0x1401a9d84]
neg al
sbb rdi, rdi
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
mov ecx, dword [0x1401a9d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
cmp r8d, 8
jne 0x14001b1c9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401a9d80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401a9d80], ecx
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140135ea8]
test rdx, 0xffffffffffff0000
jne 0x14001b214
movzx ebx, dx
mov ecx, ebx
call fcn.1400019f0
test rax, rax
je 0x14001b21f
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002530
jmp 0x14001b21f
lea rcx, [rsp + 0x50]
call fcn.140003150
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.14000ee60
nop
lea r8, [0x1401a9fc0]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000ee60
nop
lea r8, [0x140135e30]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140019610
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14000ee60
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 0x14001b2ab
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
or r15, 0xffffffffffffffff
lock add dword [rdx + 0x10], r15d
jg 0x14001b2cd
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 0x14001b2e6
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 0x14001b2ff
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 0x14001b318
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 0x14001b331
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001b38c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001b34a
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 0x14001b36e
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 0x14001b385
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001b6f2
mov dword [rsp + 0x4c], 0x400
mov word [rbp - 0x30], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x2e]
call fcn.1400c8db0
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 0x14001b400
cmp eax, 0x103
jne 0x14001b656
lea rcx, [0x1401a19a8]
mov rdx, qword [0x1401a19a8]
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 0x14001b457
movzx edi, cx
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14001b53b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002530
mov rbx, qword [rsp + 0x40]
jmp 0x14001b53b
lea rax, [rbp - 0x30]
mov rdi, r15
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001b460
test edi, edi
jne 0x14001b4c0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001b53b
cmp dword [rdx + 0x10], 0
jge 0x14001b49c
cmp dword [rbx - 0xc], 0
jl 0x14001b660
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14001b53b
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001b4ac
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 0x14001b53b
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x30]
sub r14, rbx
sar r14, 1
test edi, edi
js 0x14001b6e7
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001b4f8
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002330
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 0x14001b51c
lea r8, [rbx + r14*2]
call fcn.1400c419c
jmp 0x14001b525
lea r8, [rbp - 0x30]
call fcn.1400c4298
cmp edi, dword [rbx - 0xc]
jg 0x14001b6dc
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
cmp dword [rbx - 0x10], 0
je 0x14001b61f
mov ecx, dword [0x1401a9d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x6bca1af3
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r8d, edx
cmp r8d, 8
jne 0x14001b589
lea ecx, [r8 - 4]
call fcn.1400c4130
mov ecx, dword [0x1401a9d80]
mov dword [rax], ecx
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14001b5eb
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14001b5eb
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x14001b5be
mov rcx, rsi
call fcn.14001bcb0
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 0x14001b5e9
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140002390
add rax, 0x18
mov qword [rdi], rax
jmp 0x14001b61a
cmp rax, qword [rsi + 0x10]
jne 0x14001b5f9
mov rcx, rsi
call fcn.14001bcb0
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x14001b61a
lea rcx, [rbx - 0x18]
call fcn.140002390
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.1400c8db0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001b64d
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 0x14001b66b
jmp 0x14001b3c0
mov ecx, 0x80070057
call fcn.140001930
nop
test rbx, rbx
je 0x14001b681
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r12d
test rbx, rbx
je 0x14001b699
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 0x14001b6bd
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 0x14001b6d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001b6f2
mov ecx, 0x80070057
call fcn.140001930
int3
mov ecx, 0x80070057
call fcn.140001930
nop
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400c3970
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret