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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58388d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ebe74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x3c0], 0
je 0x407525
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [ebx + 0x3c0], 0
cmp byte [ebx + 0x182], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x3d4], eax
mov dword [ebx + 0x3d8], ecx
mov dword [ebx + 0x3b4], 1
mov byte [ebx + 0x185], 1
jne 0x407570
push ecx
push eax
push dword [ebx + 0x80]
call dword [sym.imp.chartdir60.dll_CViewPortManager_inPlotArea]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
test al, al
mov eax, dword [ebp + 0xc]
jne 0x407570
xor dl, dl
jmp 0x407572
mov dl, 1
cmp byte [ebx + 0x182], 0
mov byte [ebx + 0x181], dl
je 0x40758b
push ecx
push eax
push ecx
mov ecx, ebx
call fcn.00408b90
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041f397
mov esi, dword [ebx + 0x20]
mov ecx, ebx
mov edi, eax
call fcn.0041c40e
movzx ecx, ax
push esi
or ecx, 0x3e90000
push ecx
push 0x111
push dword [edi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x80]
call dword [sym.imp.chartdir60.dll_CViewPortManager_inExtendedPlotArea]
add esp, 0xc
test al, al
je 0x40763d
movsd xmm0, qword [ebx + 0x168]
ucomisd xmm0, qword [0x5cbd10]
lahf
test ah, 0x44
jnp 0x4075f7
mov ecx, ebx
call fcn.0041cf73
push dword [ebx + 0x20]
mov eax, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebx + 0x3dc], 1
call eax
push eax
call fcn.0041f397
mov esi, dword [ebx + 0x20]
mov ecx, ebx
mov edi, eax
call fcn.0041c40e
movzx ecx, ax
push esi
or ecx, 0x3eb0000
push ecx
push 0x111
push dword [edi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
jmp 0x4076bd
cmp dword [ebx + 0x3dc], 0
je 0x4076bd
push dword [ebx + 0x20]
mov eax, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebx + 0x3dc], 0
call eax
push eax
call fcn.0041f397
mov esi, dword [ebx + 0x20]
mov ecx, ebx
mov edi, eax
call fcn.0041c40e
movzx ecx, ax
push esi
or ecx, 0x3ec0000
push ecx
push 0x111
push dword [edi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
cmp dword [ebx + 0x3e0], 0x3ec
jne 0x4076bd
mov eax, dword [ebx + 0x90]
test eax, eax
je 0x4076a9
push dword [eax + 8]
call dword [sym.imp.chartdir60.dll_CBaseChart_removeDynamicLayer]
add esp, 4
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0x3e0], 0
call dword [eax + 0x1f4]
mov ecx, ebx
call fcn.00408740
cmp byte [ebx + 0x3d0], 0
mov byte [ebx + 0x185], 0
je 0x4076f2
cmp byte [ebx + 0x182], 0
mov byte [ebx + 0x3d0], 0
jne 0x4076f2
mov eax, dword [ebx]
mov ecx, ebx
push 1
push 0
call dword [eax + 0x1f0]
cmp byte [ebx + 0x140], 0
jne 0x407728
push 0
push 0
push 0xffffffffffffffff
push ebx
lea ecx, [ebx + 0xa0]
mov byte [ebx + 0x140], 1
call fcn.0042b9c7
push 0x7fff
push 0
push 0x418
push dword [ebx + 0xc0]
call edi
cmp dword [ebp + 8], 0
je 0x407746
push 0
push ebx
push 0x5c7d20
lea ecx, [ebx + 0xa0]
call fcn.0042c2fe
jmp 0x4078da
mov ecx, dword [ebx + 0x94]
xor eax, eax
test ecx, ecx
je 0x407763
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ecx]
call dword [sym.imp.chartdir60.dll_CImageMapHandler_getHotSpot]
add esp, 0xc
cmp eax, dword [ebx + 0x17c]
je 0x4078da
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x407798
push eax
push ebx
push dword [ebx + 0x98]
lea ecx, [ebx + 0xa0]
call fcn.0042c2fe
mov byte [ebx + 0x180], 0
jmp 0x4078da
mov eax, dword [ebx + 0x94]
mov esi, dword [sym.imp.chartdir60.dll_CImageMapHandler_getValue]
push str.path
push dword [eax]
call esi
add esp, 8
test eax, eax
je 0x4077bd
cmp byte [eax], 0
je 0x4077bd
mov al, 1
jmp 0x4077bf
xor al, al
mov byte [ebx + 0x180], al
mov eax, dword [ebx + 0x94]
push str.title
push dword [eax]
call esi
mov esi, eax
mov byte [ebp - 0x18], 0
add esp, 8
mov dword [ebp + 8], esi
test esi, esi
jne 0x4077ec
mov dword [ebp - 0x1c], esi
jmp 0x4078ae
mov al, byte [esi]
test al, al
jne 0x4077ff
mov esi, 0x5c7d20
mov dword [ebp - 0x1c], esi
jmp 0x4078ae
mov ecx, esi
lea ecx, [ecx + 1]
test al, al
js 0x407816
mov al, byte [ecx]
test al, al
jne 0x407801
mov dword [ebp - 0x1c], esi
jmp 0x4078ae
mov ecx, esi
mov byte [ebp - 0x18], 1
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407820
sub ecx, edx
mov edx, 2
mov dword [ebp - 0x14], ecx
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417a1d
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x14]
xor eax, eax
mov word [edi + esi*2], ax
lea eax, [esi*2 + 2]
push eax
call fcn.00417a1d
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [esi*2 + 1]
mov dword [ebp - 0x1c], eax
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
push edi
mov byte [eax + esi*2 + 1], 0
call fcn.00417a18
mov esi, dword [ebp + 8]
add esp, 4
push 0
push ebx
push esi
lea ecx, [ebx + 0xa0]
mov dword [ebp - 4], 0
call fcn.0042c2fe
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x18], 0
je 0x4078da
push esi
call fcn.00417a18
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
mov dword [ebx + 0x3bc], eax
call fcn.0041efaf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc