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

Disassembly:
push 0x60
mov eax, 0x553ee9
call fcn.00534d23
mov esi, ecx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x6c]
mov ebx, eax
test ecx, ecx
je 0x4075fe
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x407364
mov al, byte [edx]
jmp 0x407367
mov al, byte [ecx + 0x18]
test al, al
jne 0x407379
mov eax, ebx
sub eax, dword [edi + 0x34]
cmp eax, dword [esi + 0x50]
jbe 0x4075fe
mov dword [edi + 0x34], ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x68]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareHPNGLogging
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4075f5
mov eax, dword [esi + 0x50]
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x60], ebx
div ecx
push str.SoftwareHPNGLogging
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x64], eax
call fcn.00404880
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], ebx
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
call fcn.004046d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov edx, str.LogParmsPollTime
push eax
call fcn.0040a641
cmp dword [ebp - 0x64], ebx
pop ecx
push 0x1e
pop eax
cmovne eax, dword [ebp - 0x64]
mov ecx, edi
push dword [esi + 0x6c]
imul eax, eax, 0x3e8
push ebx
push dword [ebp - 0x68]
mov dword [esi + 0x50], eax
call fcn.00406754
mov ebx, 0x59a7e0
push ebx
call fcn.00404800
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040557a
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x20]
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040566e
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004042f0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408edf
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x407499
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
sub eax, ecx
lea ecx, [ebp - 0x2c]
sar eax, 1
cmp eax, dword [ebp - 0x1c]
ja 0x40748e
push eax
call fcn.004046d0
jmp 0x407499
sub eax, dword [ebp - 0x1c]
push 0
push eax
call fcn.00409565
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ebx, [esi + 8]
push eax
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.0040a0a9
test eax, eax
je 0x4074e0
push 0x59a7e0
call fcn.00404800
pop ecx
push eax
push 0x59a7e0
lea ecx, [ebp - 0x44]
call fcn.0040557a
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040566e
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x60]
mov ebx, 0x20019
test dword [eax + 0xc], 0x1000000
lea eax, [ebp - 0x44]
je 0x407516
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
xor edx, edx
push edx
push ecx
push edx
push ebx
push edx
push edx
push edx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x40752e
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push ebx
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ebx
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4075bb
push dword [esi + 0x6c]
mov ecx, edi
push 0
push dword [ebp - 0x6c]
call fcn.00406754
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x407573
mov eax, dword [eax]
mov ecx, dword [esi + 0x2d0]
push eax
push dword [ebp - 0x6c]
call fcn.00406b48
cmp dword [ebp - 0x64], 0
jne 0x4075b6
cmp dword [ebp - 0x60], 0
je 0x4075b6
push dword [esi + 0x6c]
mov ecx, edi
push 0
push dword [ebp - 0x60]
call fcn.00406754
push dword [esi + 0x6c]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00406811
push dword [ebp - 0x6c]
call ebx
cmp dword [ebp - 0x64], 0
jne 0x4075cc
cmp dword [ebp - 0x60], 0
je 0x4075cc
push dword [ebp - 0x60]
call ebx
push dword [ebp - 0x68]
call ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404190
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00404190
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x34], eax
call fcn.00534cd2
ret 4