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

Disassembly:
push 0x60
mov eax, 0x57d118
call fcn.00552eab
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 0x4079ec
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x407754
mov al, byte [edx]
jmp 0x407757
mov al, byte [ecx + 0x18]
test al, al
jne 0x407769
mov eax, edi
sub eax, dword [ebx + 0x34]
cmp eax, dword [esi + 0x50]
jbe 0x4079ec
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 0x4079e3
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.00403b10
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.00404998
mov byte [ebp - 4], 1
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
mov edx, str.LogParmsPollTime
push eax
call fcn.0040ad73
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.00406abf
mov edi, 0x5c9b58
push edi
call fcn.00403bf0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.00405210
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x20]
push edi
lea ecx, [ebp - 0x44]
call fcn.00405351
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403d90
push edi
lea ecx, [ebp - 0x5c]
call fcn.004095a9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403d80
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x40784e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x407870
cmp dword [edi + 0x14], 8
jb 0x407861
mov edi, dword [edi]
sub eax, edi
lea ecx, [ebp - 0x5c]
push 0
sar eax, 1
push eax
call fcn.00409526
lea eax, [ebp - 0x5c]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.0040a66d
test eax, eax
je 0x4078a8
push 0x5c9b58
call fcn.00403bf0
pop ecx
push eax
push 0x5c9b58
lea ecx, [ebp - 0x2c]
call fcn.00405210
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405351
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x2c]
test dword [eax + 0xc], 0x1000000
je 0x4078e2
call fcn.00403d80
cmp dword [eax + 0x14], 8
jb 0x4078c4
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 0x407906
call fcn.00403d80
cmp dword [eax + 0x14], 8
jb 0x4078ef
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.00403d80
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x40791d
mov eax, dword [edi]
jmp 0x40791f
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 0x4079a1
push dword [esi + 0x6c]
mov ecx, ebx
push eax
push dword [ebp - 0x68]
call fcn.00406abf
lea ecx, [esi + 0x20]
call fcn.00403d80
cmp dword [eax + 0x14], 8
jb 0x407958
mov eax, dword [eax]
mov ecx, dword [esi + 0x2d0]
push eax
push dword [ebp - 0x68]
call fcn.00406f5a
cmp dword [ebp - 0x64], 0
jne 0x407998
cmp dword [ebp - 0x60], 0
je 0x407998
push dword [esi + 0x6c]
mov ecx, ebx
push 0
push dword [ebp - 0x60]
call fcn.00406abf
cmp dword [edi + 0x14], 8
jb 0x40798a
mov edi, dword [edi]
push dword [esi + 0x6c]
mov ecx, ebx
push dword [ebp - 0x60]
push edi
call fcn.00406b81
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x64], 0
jne 0x4079b6
cmp dword [ebp - 0x60], 0
je 0x4079b6
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.004043b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004043b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004043b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x34], eax
call fcn.00552e55
ret 4