Function at 0x14004f6d0
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x878]
sub rsp, 0x950
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401bce90]
xor rax, rsp
mov qword [rbp + 0x840], rax
mov r13, rcx
mov qword [rbp - 0x78], rcx
xor r15d, r15d
mov dword [rsp + 0x40], 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 0x14004f765
mov r14, qword [rsp + 0x70]
jmp 0x14004f7ec
mov eax, dword [0x1401c4d60]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 9
jne 0x14004f7b3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea eax, [rdx + rdx*4]
shl eax, 4
sub r8d, eax
lea eax, [r8 + 1]
mov dword [0x1401c4d60], eax
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 0x14004fdb2
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r15d
mov word [rbp + 0x40], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x42]
call fcn.1400d3710
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x140152530]
test rdx, 0xffffffffffff0000
jne 0x14004f857
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004f86c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400025a0
jmp 0x14004f867
mov r8d, 3
lea rcx, [rsp + 0x30]
call fcn.1400022b0
mov rbx, qword [rsp + 0x30]
mov r8d, dword [0x1401c4d60]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
or r12, 0xffffffffffffffff
cmp ecx, 5
jne 0x14004f8d7
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, 0x7b
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400cd918
mov rcx, rax
call fcn.1400cf37c
mov dword [rsp + 0x48], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
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]
test eax, eax
jne 0x14004fd53
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x14004fd53
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14004f941
test al, 1
jne 0x14004fd53
shr rax, 1
cmp word [rbp + rax*2 + 0x3e], 0
je 0x14004f946
jmp 0x14004fd53
mov word [rbp + 0x40], r15w
lea rax, [rbp + 0x40]
mov rdi, r12
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004f950
test edi, edi
jne 0x14004f9bf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004fa41
cmp dword [rdx + 0x10], 0
jge 0x14004f993
cmp dword [rbx - 0xc], 0
jge 0x14004f986
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004fa41
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f9a3
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 0x14004fa41
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp + 0x40]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x14004f9dc
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 0x14004f9fe
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400023a0
mov rbx, qword [rsp + 0x30]
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 0x14004fa22
lea r8, [rbx + rsi*2]
call fcn.1400ceaf4
jmp 0x14004fa2b
lea r8, [rbp + 0x40]
call fcn.1400cebf0
cmp edi, dword [rbx - 0xc]
jg 0x14004fd48
mov dword [rbx - 0x10], edi
xor ecx, ecx
mov word [r15 + rbx], cx
xor r15d, r15d
mov r9d, dword [0x1401c4d60]
lea ecx, [r9 + 1]
imul ecx, r9d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0x11
jne 0x14004fadc
mov edi, r15d
lea rsi, [rbp - 0x60]
mov r10d, r15d
nop word [rax + rax]
lea ebx, [r10 + 1]
lea ecx, [rdi + 1]
mov eax, r9d
cdq
idiv ecx
mov r8d, edx
mov ecx, r9d
sub ecx, edi
imul r8d, ecx
mov eax, r9d
cdq
idiv ebx
add r8d, eax
sub r8d, r10d
mov dword [rsi], r8d
mov edx, r8d
lea rcx, [0x14014d9a0]
call fcn.1400cf1dc
mov r10d, ebx
add rsi, 4
cmp ebx, 0xa
jge 0x14004facc
mov r9d, dword [0x1401c4d60]
jmp 0x14004fa80
inc edi
cmp edi, 4
jge 0x14004fadc
mov r9d, dword [0x1401c4d60]
jmp 0x14004fa72
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140152a60]
test rdx, 0xffffffffffff0000
jne 0x14004fb27
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004fb3c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400025a0
jmp 0x14004fb37
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1400022b0
mov rbx, qword [rsp + 0x38]
mov ecx, dword [0x1401c4d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
cmp r8d, 7
jne 0x14004fb7d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401c4d60], eax
mov dword [rsp + 0x44], 0x800
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
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]
test eax, eax
jne 0x14004fd28
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x14004fd28
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14004fbe7
test al, 1
jne 0x14004fd28
shr rax, 1
cmp word [rbp + rax*2 + 0x3e], 0
je 0x14004fbec
jmp 0x14004fd28
mov word [rbp + 0x40], r15w
lea rax, [rbp + 0x40]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004fbf3
test edi, edi
jne 0x14004fc5d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004fcd6
cmp dword [rdx + 0x10], 0
jge 0x14004fc36
cmp dword [rbx - 0xc], 0
jge 0x14004fc29
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004fcd6
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fc46
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 0x14004fcd6
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp + 0x40]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x14004fc7a
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 0x14004fc9c
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400023a0
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14004fcc0
lea r8, [rbx + rsi*2]
call fcn.1400ceaf4
jmp 0x14004fcc9
lea r8, [rbp + 0x40]
call fcn.1400cebf0
cmp edi, dword [rbx - 0xc]
jg 0x14004fd1d
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r15w
lea r8, [rsp + 0x38]
lea rdx, [0x14014da30]
lea rcx, [rbp - 0x80]
call fcn.14001a800
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140010150
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fd16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
jmp 0x14004fd28
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fd3c
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 0x14004fd53
mov ecx, 0x80070057
call fcn.140001920
int3
test r14, r14
je 0x14004fd66
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
lea rcx, [rbx - 0x18]
call fcn.140002400
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x40], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004fd9b
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 0x14004fdc9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r15
jmp 0x14004fdc9
lea rdx, [0x140152530]
mov rcx, r13
call fcn.140002100
mov dword [rsp + 0x40], 1
mov rax, r13
mov dword [rsp + 0x58], r15d
mov rcx, qword [rbp + 0x840]
xor rcx, rsp
call fcn.1400ce2d0
lea r11, [rsp + 0x950]
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