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

Disassembly:
mov eax, 0x413d64
call fcn.00411610
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esi + 0x128]
push edi
call fcn.00405bb9
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esi + 0x120]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 4], edi
call dword [ecx + 0x14]
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0041064d
push 0x41c31c
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x18]
inc bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40e0f2
push 0x41bb10
lea ecx, [ebp - 0x18]
call fcn.0041114c
mov eax, dword [esi + 0x120]
mov byte [ebp - 4], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [ebp - 0x34]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
add eax, 5
add ecx, 0xa
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x128]
call fcn.00405aac
mov esi, dword [esi + 0x120]
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x40e23f
cmp dword [esi + 0x338], edi
jne 0x40e174
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x338], eax
mov eax, dword [esi + 0x120]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x18]
cmp dword [ebp - 0x24], edi
jle 0x40e215
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x26c]
push dword [esi + 0x268]
call fcn.0040be77
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edi
push edx
mov ecx, dword [eax - 8]
mov byte [ebp - 4], 4
push ecx
push eax
mov ecx, esi
call fcn.0040fcce
cmp eax, edi
jge 0x40e1f3
and byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40e23f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40e23f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x338]
cmp ecx, 0x64
jae 0x40e100
mov dword [ebp - 0x18], edi
push dword [esi + 0x11c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004109a9
push 0x41badc
lea ecx, [ebp - 0x1c]
call fcn.0041114c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 8]
mov ebx, dword [edx]
push ecx
push eax
push edx
call dword [ebx + 0x14]
mov esi, dword [esi + 0x120]
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetFocus
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
jmp 0x40e161
mov eax, dword [esi + 0x11c]
push 1
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
and byte [ebp - 4], 0
cmp eax, edi
je 0x40e215
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x120]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetFocus
mov esi, dword [esi + 0x120]
push 0x41c0f8
push esi
mov eax, dword [esi]
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret