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

Disassembly:
sub esp, 0x424
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x214]
push edi
call fcn.0040b6e3
push 0x208
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004183a0
mov eax, dword [esi + 0x54]
add esp, 0xc
cmp dword [eax + 8], 3
je 0x440f7a
cmp dword [eax + 8], 9
jne 0x4410f7
mov ebp, 0x103
lea eax, [esp + 0x10]
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str.SoftwareMetaQuotes_SoftwareMetaTrader_4
lea ecx, [esp + 0x21c]
call fcn.0040c54b
mov edx, dword [esp + 0x21c]
lea ebx, [ebp - 3]
push ebx
mov ecx, SysReAllocString
call fcn.00406c90
mov edx, dword [esp + 0x220]
lea eax, [esp + 0x14]
pop ecx
push ebx
push eax
xor edi, edi
mov ecx, SysReAllocString
inc edi
push edi
push str.PackagePath
call fcn.00406cf0
mov eax, dword [esi + 0x54]
add eax, 0x29c
push eax
push str._smetaeditor.exe
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.0041144b
add esp, 0x20
lea eax, [esp + 0x10]
mov ecx, str..mq4
push edi
push edi
push 0x461500
push str.MQL4_Source_File
push str.MQL4.File
push eax
call fcn.00440c2b
xor ebx, ebx
jmp 0x4410f7
mov ebp, 0x103
lea eax, [esp + 0x10]
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str.SoftwareMetaQuotes_SoftwareMetaTrader_5
lea ecx, [esp + 0x21c]
call fcn.0040c54b
mov edx, dword [esp + 0x21c]
lea ebx, [ebp - 3]
push ebx
mov ecx, SysReAllocString
call fcn.00406c90
mov edx, dword [esp + 0x220]
lea eax, [esp + 0x14]
pop ecx
push ebx
push eax
xor edi, edi
mov ecx, SysReAllocString
inc edi
push edi
push str.PackagePath
call fcn.00406cf0
mov ecx, dword [esi + 0x54]
mov edx, 0x45ad90
mov eax, 0x4615a4
cmp dword [ecx + 4], 2
cmovne eax, edx
push eax
lea eax, [ecx + 0x29c]
push eax
push str._s_terminal_s.exe
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.0041144b
add esp, 0x24
lea eax, [esp + 0x10]
mov ecx, str..mt5
push 0
push 0xf
push str._import:__1_
push str.MetaTrader_5_Export
push str.MetaTrader_5_Export_File
push eax
call fcn.00440c2b
push 0
push 2
push str._ex5:__1_
push str.MQL5_Program
push str.EX5.File
lea eax, [esp + 0x24]
mov ecx, str..ex5
push eax
call fcn.00440c2b
push 0
push edi
push 0x461500
push str.URL:MQL5_Buy_Protocol
push str.mql5buy
lea eax, [esp + 0x24]
xor ecx, ecx
push eax
call fcn.00440c2b
test al, al
je 0x441089
push ebx
mov ebx, 0x45ad90
mov edx, str.mql5buy
push ebx
push edi
push str.URL_Protocol
mov ecx, SysReAllocString
call fcn.00406cf0
add esp, 0x10
jmp 0x44108e
mov ebx, 0x45ad90
mov eax, dword [esi + 0x54]
mov ecx, 0x4615a4
cmp dword [eax + 4], 2
cmovne ecx, ebx
add eax, 0x29c
push ecx
push eax
push str._smetaeditor_s.exe
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.0041144b
add esp, 0x14
lea eax, [esp + 0x10]
mov ecx, str..mq5
push edi
push edi
mov edi, 0x461500
push edi
push str.MQL5_Source_File
push str.MQL5.File
push eax
call fcn.00440c2b
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push 2
push edi
push str.MQL5_Header_File
push str.MQL5.Header
push eax
mov ecx, str..mqh
call fcn.00440c2b
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ebp, 0x2ee0
jmp 0x441121
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
mov ecx, dword [esi + 0x54]
sub eax, dword [ecx + 0xc34]
cmp eax, ebp
jb 0x441114
push ebx
push 5
push 0x464
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret