Function at 0x140008d64
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov rcx, qword [rbx + 0x90]
xor r12d, r12d
test rcx, rcx
je 0x140009120
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x140008dc7
mov cl, byte [rdx]
jmp 0x140008dca
mov cl, byte [rcx + 0x20]
test cl, cl
jne 0x140008dda
sub eax, dword [rsi + 0x48]
cmp eax, dword [rbx + 0x68]
jbe 0x140009120
mov dword [rsi + 0x48], r8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareHPNGLogging
mov r14, 0xffffffff80000001
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009117
mov qword [rbp - 0x51], r12
mov eax, 0x10624dd3
mul dword [rbx + 0x68]
shr edx, 6
mov dword [rbp - 0x55], edx
lea rdx, str.SoftwareHPNGLogging
lea rcx, [rbp - 0x11]
call fcn.1400043a0
nop
lea rcx, [rbp - 0x31]
call fcn.1400049d0
lea rcx, [rbp - 0x31]
call fcn.140004a50
mov qword [rax], 7
lea rcx, [rbp - 0x31]
call fcn.1400044e0
mov word [rbp - 0x59], r12w
mov qword [rax + 0x10], r12
cmp qword [rax + 0x18], 8
jb 0x140008e70
mov rax, qword [rax]
lea rdx, [rbp - 0x59]
mov rcx, rax
call fcn.140004a60
nop
lea r8, [rbp - 0x55]
lea rdx, str.LogParmsPollTime
mov rcx, qword [rbp - 0x41]
call fcn.14000de00
mov ecx, 0x1e
mov eax, dword [rbp - 0x55]
test eax, eax
cmovne ecx, eax
imul eax, ecx, 0x3e8
mov dword [rbx + 0x68], eax
mov r9, qword [rbx + 0x90]
xor r8d, r8d
mov rdx, qword [rbp - 0x41]
mov rcx, rsi
call fcn.140007968
mov r8d, 1
lea rdx, [0x140270ca8]
lea rcx, [rbp - 0x11]
call fcn.140005e00
lea r15, [rbx + 0x28]
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140006034
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x31]
call fcn.1400044f0
mov rdx, r15
lea rcx, [rbp + 0xf]
call fcn.14000ba18
nop
lea rcx, [rbp + 0xf]
call fcn.1400044e0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x140008f25
mov rcx, qword [rax]
jmp 0x140008f28
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x140008f52
cmp qword [rdi + 0x18], 8
jb 0x140008f3d
mov rdi, qword [rdi]
xor r8d, r8d
sub rax, rdi
sar rax, 1
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.14000b924
lea rdx, [rbp + 0xf]
lea rcx, [rbx + 8]
call fcn.14000d308
test eax, eax
je 0x140008f8d
mov r8d, 1
lea rdx, [0x140270ca8]
lea rcx, [rbp - 0x31]
call fcn.140005e00
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rbp - 0x31]
call fcn.140006034
mov rax, qword [rbx + 0x90]
lea rcx, [rbp - 0x31]
test dword [rax + 0xc], 0x1000000
je 0x140008fe4
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x140008fb0
mov rax, qword [rax]
mov qword [rsp + 0x40], r12
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x140009011
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x140008ff3
mov rax, qword [rax]
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
lea rcx, [rbp - 0x11]
call fcn.1400044e0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14000902c
mov rdx, qword [rax]
jmp 0x14000902f
mov rdx, rdi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400090db
mov r9, qword [rbx + 0x90]
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
mov rcx, rsi
call fcn.140007968
mov rcx, r15
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000907e
mov rax, qword [rax]
mov r8, rax
mov rdx, qword [rbp - 0x49]
mov rcx, qword [rbx + 0x330]
call fcn.140007fd0
test r14d, r14d
jne 0x1400090d1
mov rdx, qword [rbp - 0x51]
test rdx, rdx
je 0x1400090d1
mov r9, qword [rbx + 0x90]
xor r8d, r8d
mov rcx, rsi
call fcn.140007968
cmp qword [rdi + 0x18], 8
jb 0x1400090bb
mov rdi, qword [rdi]
mov r9, qword [rbx + 0x90]
mov r8, qword [rbp - 0x51]
mov rdx, rdi
mov rcx, rsi
call fcn.140007a78
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14d, r14d
jne 0x1400090ef
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1400090ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0xf]
call fcn.140004af0
nop
lea rcx, [rbp - 0x31]
call fcn.140004af0
nop
lea rcx, [rbp - 0x11]
call fcn.140004af0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x48], eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401c4500
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret