Function at 0x14001d260
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 [0x1401cee90]
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 [0x1401d6d84]
neg al
sbb rdi, rdi
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
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
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, [0x140157088]
test rdx, 0xffffffffffff0000
jne 0x14001d32d
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001d338
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002960
jmp 0x14001d338
lea rcx, [rsp + 0x50]
call fcn.140003940
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.140010150
nop
lea r8, [0x1401d71a0]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140010150
nop
lea r8, [0x140155dfc]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14001b580
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140010150
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 0x14001d3c4
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 0x14001d3e6
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 0x14001d3ff
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 0x14001d418
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 0x14001d431
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 0x14001d44a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001d4a5
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001d463
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 0x14001d487
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 0x14001d49e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001d8bd
mov dword [rsp + 0x4c], 0x400
call fcn.14001c6e0
test al, al
jne 0x14001d4c6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [0x1401d6d80], eax
jmp 0x14001d4cc
mov ebx, dword [0x1401d6d80]
mov word [rbp - 0x30], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x2e]
call fcn.1400da240
mov edi, r12d
imul ebx, ebx
mov eax, 0x30c30c31
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ebx, edx
cmp ebx, 0x11
jne 0x14001d509
dec dword [0x1401d7208]
mov rbx, qword [rsp + 0x58]
nop
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 0x14001d550
cmp eax, 0x103
jne 0x14001d7b4
lea rcx, str.D_r_
mov rdx, qword [str.D_r_]
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 0x14001d5a7
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14001d68b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002960
mov rbx, qword [rsp + 0x40]
jmp 0x14001d68b
lea rax, [rbp - 0x30]
mov rdi, r15
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001d5b0
test edi, edi
jne 0x14001d610
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001d68b
cmp dword [rdx + 0x10], 0
jge 0x14001d5ec
cmp dword [rbx - 0xc], 0
jl 0x14001d7be
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14001d68b
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d5fc
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 0x14001d68b
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x30]
sub r14, rbx
sar r14, 1
test edi, edi
js 0x14001d8b2
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001d648
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002760
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 0x14001d66c
lea r8, [rbx + r14*2]
call fcn.1400d562c
jmp 0x14001d675
lea r8, [rbp - 0x30]
call fcn.1400d57ec
cmp edi, dword [rbx - 0xc]
jg 0x14001d8a7
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
cmp dword [rbx - 0x10], 0
je 0x14001d72b
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14001d6f7
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14001d6f7
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x14001d6ca
mov rcx, rsi
call fcn.14001e1d0
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 0x14001d6f5
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.1400027c0
add rax, 0x18
mov qword [rdi], rax
jmp 0x14001d726
cmp rax, qword [rsi + 0x10]
jne 0x14001d705
mov rcx, rsi
call fcn.14001e1d0
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x14001d726
lea rcx, [rbx - 0x18]
call fcn.1400027c0
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.1400da240
mov r8d, dword [0x1401d6d80]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 0xe
jne 0x14001d797
test r8d, r8d
je 0x14001d78d
dec r8d
je 0x14001d784
mov dword [0x1401d6d80], r9d
jmp 0x14001d797
mov dword [0x1401d6d80], r12d
jmp 0x14001d797
mov dword [0x1401d6d80], 2
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001d7ab
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 0x14001d7c9
jmp 0x14001d510
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14001d7df
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r12d
mov r8d, dword [0x1401d6d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
cmp ecx, 2
jne 0x14001d851
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, 0x2f4
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
nop
test rbx, rbx
je 0x14001d864
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 0x14001d888
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 0x14001d8a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001d8bd
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400d4e00
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret