Function at 0x14004fef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x8e8]
sub rsp, 0x9c0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
mov r13, rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004ff94
mov dword [rsp + 0x58], r15d
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x50], r14
jmp 0x140050018
mov qword [rsp + 0x78], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400507d1
mov dword [rsp + 0x58], r15d
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x50], r14
call fcn.14004b9f0
test al, al
jne 0x140050018
mov ecx, 0x28
call fcn.1400cd108
mov rdi, rax
mov rbx, r15
call fcn.1400ce478
add eax, dword [0x1401c3d80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14004fff0
mov eax, dword [rdi + 0x24]
mov dword [0x1401c3d80], eax
mov rcx, rdi
call fcn.1400cebfc
mov word [rbp + 0xb0], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0xb2]
call fcn.1400d2f00
mov r8d, dword [0x1401c3d80]
lea ecx, [r8 + 1]
imul ecx, r8d
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, 1
jne 0x14005017d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov eax, 0x55555556
imul r8d
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x40], eax
mov eax, 0x66666667
imul r8d
mov r11d, edx
sar r11d, 1
mov eax, r11d
shr eax, 0x1f
add r11d, eax
mov eax, 0x2aaaaaab
imul r8d
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x92492493
imul r8d
lea r10d, [r8 + rdx]
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
mov esi, ecx
lea r9, [rbp + 0x51]
lea r15d, [rcx + 0xc]
mov r13d, dword [rsp + 0x40]
nop word [rax + rax]
mov eax, r8d
cdq
idiv esi
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, r8b
imul cl
mov byte [r9 - 1], al
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, r12b
imul cl
mov byte [r9], al
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, bl
imul cl
mov byte [r9 + 1], al
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, r13b
imul cl
mov byte [r9 + 2], al
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, r11b
imul cl
mov byte [r9 + 3], al
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, dil
imul cl
mov byte [r9 + 4], al
movzx eax, r8b
imul dl
movzx ecx, al
movzx eax, r10b
imul cl
mov byte [r9 + 5], al
inc esi
lea r9, [r9 + 7]
dec r15
jne 0x1400500e0
mov r13, qword [rsp + 0x30]
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x140151480]
test rdx, 0xffffffffffff0000
jne 0x1400501c8
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x1400501dd
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400025b0
jmp 0x1400501d8
mov r8d, 3
lea rcx, [rsp + 0x30]
call fcn.1400022c0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x48], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x140050710
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x140050710
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140050251
test al, 1
jne 0x140050710
shr rax, 1
cmp word [rbp + rax*2 + 0xae], 0
je 0x140050259
jmp 0x140050710
mov word [rbp + 0xb0], r15w
lea rax, [rbp + 0xb0]
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140050263
test edi, edi
jne 0x1400502d2
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140050358
cmp dword [rdx + 0x10], 0
jge 0x1400502a6
cmp dword [rbx - 0xc], 0
jge 0x140050299
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140050358
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400502b6
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]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r14, qword [rsp + 0x50]
jmp 0x140050358
mov r12d, dword [rbx - 0x10]
lea r15, [rbp + 0xb0]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x1400502f2
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140050314
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400023b0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140050338
lea r8, [rbx + r15*2]
call fcn.1400ce2e4
jmp 0x140050344
lea r8, [rbp + 0xb0]
call fcn.1400ce4a4
cmp edi, dword [rbx - 0xc]
jg 0x140050705
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r12 + rbx], r15w
mov eax, dword [0x1401c3d80]
imul eax, eax
and eax, 0x8000000f
jge 0x14005036f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 6
jne 0x1400503aa
lea ecx, [rax + 0x22]
call fcn.1400cd108
mov rdi, rax
mov rbx, r15
call fcn.1400ce478
add eax, dword [0x1401c3d80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x140050382
mov eax, dword [rdi + 0x24]
mov dword [0x1401c3d80], eax
mov rcx, rdi
call fcn.1400cebfc
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r12, [0x140151980]
test r12, 0xffffffffffff0000
jne 0x1400503ff
movzx edi, r12w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140050472
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400025b0
mov rbx, qword [rsp + 0x38]
jmp 0x140050472
mov r15d, dword [rbx - 0x10]
mov rdi, r12
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
dec eax
or eax, ecx
jge 0x140050431
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.1400023b0
mov rbx, qword [rsp + 0x38]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 2
mov rcx, rbx
add rdx, rdx
cmp rdi, r15
ja 0x140050451
lea r8, [rbx + rdi*2]
call fcn.1400ce2e4
jmp 0x140050459
mov r8, r12
call fcn.1400ce4a4
cmp dword [rbx - 0xc], 1
jl 0x1400506fa
mov dword [rbx - 0x10], 1
xor r15d, r15d
mov word [rbx + 2], r15w
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400504ec
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
jbe 0x1400504c0
mov edi, 0xd
jmp 0x1400504ec
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400504e1
test al, 1
jne 0x1400504da
shr rax, 1
cmp word [rbp + rax*2 + 0xae], 0
je 0x1400504e9
mov edi, 0xd
jmp 0x1400504ec
mov word [rbp + 0xb0], r15w
mov edi, r15d
mov r8d, dword [0x1401c3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x66666667
imul cx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 2
jne 0x14005052d
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov r8d, dword [0x1401c3d80]
test edi, edi
jne 0x14005068a
lea rax, [rbp + 0xb0]
mov rdi, rsi
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140050540
test edi, edi
jne 0x1400505aa
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14005062e
cmp dword [rdx + 0x10], 0
jge 0x140050583
cmp dword [rbx - 0xc], 0
jge 0x140050576
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14005062e
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050593
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]
add rax, 0x18
mov qword [rsp + 0x38], rax
jmp 0x14005062e
mov r15d, dword [rbx - 0x10]
lea r14, [rbp + 0xb0]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x1400505ca
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400505ec
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400023b0
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140050610
lea r8, [rbx + r14*2]
call fcn.1400ce2e4
jmp 0x14005061c
lea r8, [rbp + 0xb0]
call fcn.1400ce4a4
cmp edi, dword [rbx - 0xc]
jg 0x14005067f
mov dword [rbx - 0x10], edi
xor r12d, r12d
mov word [r15 + rbx], r12w
jmp 0x140050631
xor r12d, r12d
lea r8, [rsp + 0x38]
lea rdx, [0x14014c978]
lea rcx, [rbp - 0x80]
call fcn.14001a740
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140010740
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050671
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401c3d80]
mov rbx, qword [rsp + 0x38]
jmp 0x14005068d
mov ecx, 0x80070057
call fcn.140001920
int3
xor r12d, r12d
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x17
jne 0x1400506da
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r8d, ecx
lea eax, [r8 + 1]
mov dword [0x1401c3d80], eax
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400506ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x30]
jmp 0x140050713
mov ecx, 0x80070057
call fcn.140001920
nop
mov ecx, 0x80070057
call fcn.140001920
int3
xor r12d, r12d
test r14, r14
je 0x140050726
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x14005074e
cmp rax, qword [rbx - 0x18]
jne 0x14005074e
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x14005078b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x14005076a
call fcn.1400024a0
int3
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1400ce4a4
lea rax, [rdi + 0x18]
mov qword [r13], rax
mov dword [rsp + 0x44], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x1400507b2
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400507c7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
jmp 0x140050862
mov r8d, dword [0x1401c3d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
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, 1
jne 0x140050846
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
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.1400cd108
mov rcx, rax
call fcn.1400cebfc
lea rdx, [0x140151480]
mov rcx, r13
call fcn.140002110
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x58], r15d
mov rax, r13
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.1400cdac0
lea r11, [rsp + 0x9c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret