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

Disassembly:
push 0x74
mov eax, 0x420948
call fcn.0040c90a
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
je 0x403742
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x4034c5
mov cl, byte [esi]
jmp 0x4034c8
mov cl, byte [ecx + 0x18]
test cl, cl
jne 0x4034da
mov ecx, eax
sub ecx, dword [edi + 0x3c]
cmp ecx, dword [ebx + 0x5c]
jbe 0x403742
mov dword [edi + 0x3c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
mov esi, str.SoftwareHPNGLogging
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403739
and dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x5c]
xor edx, edx
mov ecx, 0x3e8
div ecx
push esi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x68], eax
call fcn.004014ab
and dword [ebp - 4], 0
lea eax, [ebp - 0x64]
call fcn.00401bf0
mov byte [ebp - 4], 1
push str.LogParmsPollTime
push dword [ebp - 0x7c]
lea edi, [ebp - 0x68]
call fcn.00407081
mov eax, dword [ebp - 0x68]
pop ecx
pop ecx
test eax, eax
jne 0x40354f
push 0x1e
pop eax
mov ecx, dword [ebp - 0x7c]
imul eax, eax, 0x3e8
push 0
push dword [ebp - 0x70]
mov dword [ebx + 0x5c], eax
mov ebx, dword [ebx + 0x7c]
call fcn.004029ca
push 0x425f24
lea eax, [ebp - 0x48]
push eax
call fcn.004053d2
mov edi, dword [ebp - 0x74]
xor ebx, ebx
add edi, 0x24
push ebx
push edi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
mov dword [ebp - 0x80], edi
call fcn.004055d1
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [ebp - 0x64]
call fcn.0040112e
push edi
lea esi, [ebp - 0x2c]
call fcn.00404f02
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4035b3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x4035d6
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x4035ca
lea ecx, [ebp - 0x2c]
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x2c]
call fcn.00404f7c
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x2c]
add esi, 8
cmp dword [ebp - 0x18], 8
jae 0x4035e8
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x10]
mov ecx, esi
call fcn.004065a8
test eax, eax
je 0x403615
push 0x425f24
lea eax, [ebp - 0x64]
push eax
call fcn.004053d2
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x64]
call fcn.004055d1
mov esi, dword [ebp - 0x74]
mov eax, dword [esi + 0x7c]
test dword [eax + 0xc], 0x1000000
mov eax, dword [ebp - 0x64]
je 0x40364c
cmp dword [ebp - 0x50], 8
jae 0x403630
lea eax, [ebp - 0x64]
push ebx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x40366b
cmp dword [ebp - 0x50], 8
jae 0x403655
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x6c]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x48]
jae 0x40367a
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x78]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4036ff
mov ecx, dword [ebp - 0x78]
push ebx
push dword [ebp - 0x70]
mov ebx, dword [esi + 0x7c]
call fcn.004029ca
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x14], 8
jb 0x4036b4
mov eax, dword [eax]
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ebp - 0x78]
push eax
call fcn.00402e49
cmp dword [ebp - 0x68], 0
jne 0x4036f8
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4036f8
mov ebx, dword [esi + 0x7c]
push 0
push dword [ebp - 0x70]
call fcn.004029ca
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4036e9
lea eax, [ebp - 0x48]
push dword [esi + 0x7c]
push dword [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call fcn.00402a87
push dword [ebp - 0x78]
call edi
xor ebx, ebx
cmp dword [ebp - 0x68], ebx
jne 0x40370e
cmp dword [ebp - 0x6c], ebx
je 0x40370e
push dword [ebp - 0x6c]
call edi
push dword [ebp - 0x7c]
call edi
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.00401075
mov byte [ebp - 4], bl
lea esi, [ebp - 0x64]
call fcn.00401075
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00401075
mov edi, dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x3c], eax
call fcn.0040c98d
ret