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

Disassembly:
push 0x60
mov eax, 0x57d048
call fcn.00552ddc
mov esi, ecx
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x6c]
mov edi, eax
test ecx, ecx
je 0x40797c
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x4076e4
mov al, byte [edx]
jmp 0x4076e7
mov al, byte [ecx + 0x18]
test al, al
jne 0x4076f9
mov eax, edi
sub eax, dword [ebx + 0x34]
cmp eax, dword [esi + 0x50]
jbe 0x40797c
mov dword [ebx + 0x34], edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push 0
push str.SoftwareHPNGLogging
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407973
mov eax, dword [esi + 0x50]
xor edx, edx
mov ecx, 0x3e8
xor edi, edi
div ecx
push str.SoftwareHPNGLogging
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], eax
call fcn.00403aa0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.00404928
mov byte [ebp - 4], 1
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
mov edx, str.LogParmsPollTime
push eax
call fcn.0040ad00
cmp dword [ebp - 0x64], edi
pop ecx
push 0x1e
pop eax
cmovne eax, dword [ebp - 0x64]
mov ecx, ebx
push dword [esi + 0x6c]
imul eax, eax, 0x3e8
push edi
push dword [ebp - 0x6c]
mov dword [esi + 0x50], eax
call fcn.00406a4f
mov edi, 0x5c9b48
push edi
call fcn.00403b80
pop ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.004051a0
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x20]
push edi
lea ecx, [ebp - 0x44]
call fcn.004052e1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403d20
push edi
lea ecx, [ebp - 0x5c]
call fcn.00409536
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403d10
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4077de
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x407800
cmp dword [edi + 0x14], 8
jb 0x4077f1
mov edi, dword [edi]
sub eax, edi
lea ecx, [ebp - 0x5c]
push 0
sar eax, 1
push eax
call fcn.004094b3
lea eax, [ebp - 0x5c]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.0040a5fa
test eax, eax
je 0x407838
push 0x5c9b48
call fcn.00403b80
pop ecx
push eax
push 0x5c9b48
lea ecx, [ebp - 0x2c]
call fcn.004051a0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.004052e1
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x2c]
test dword [eax + 0xc], 0x1000000
je 0x407872
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x407854
mov eax, dword [eax]
xor edx, edx
lea ecx, [ebp - 0x60]
push edx
push ecx
push edx
push 0x20019
push edx
push edx
push edx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x407896
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40787f
mov eax, dword [eax]
lea ecx, [ebp - 0x60]
push ecx
push 0x20019
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x64], eax
call fcn.00403d10
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4078ad
mov eax, dword [edi]
jmp 0x4078af
mov eax, edi
lea ecx, [ebp - 0x68]
push ecx
push 0x20019
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407931
push dword [esi + 0x6c]
mov ecx, ebx
push eax
push dword [ebp - 0x68]
call fcn.00406a4f
lea ecx, [esi + 0x20]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x4078e8
mov eax, dword [eax]
mov ecx, dword [esi + 0x2d0]
push eax
push dword [ebp - 0x68]
call fcn.00406eea
cmp dword [ebp - 0x64], 0
jne 0x407928
cmp dword [ebp - 0x60], 0
je 0x407928
push dword [esi + 0x6c]
mov ecx, ebx
push 0
push dword [ebp - 0x60]
call fcn.00406a4f
cmp dword [edi + 0x14], 8
jb 0x40791a
mov edi, dword [edi]
push dword [esi + 0x6c]
mov ecx, ebx
push dword [ebp - 0x60]
push edi
call fcn.00406b11
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x64], 0
jne 0x407946
cmp dword [ebp - 0x60], 0
je 0x407946
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00404340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404340
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404340
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x34], eax
call fcn.00552d86
ret 4