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

Disassembly:
sub esp, 0x44
xor eax, eax
mov dword [esp], ecx
push ebx
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x58]
push ebp
lea eax, [edi - 1]
cmp eax, 7
ja case.0x402639.5
xor ecx, ecx
mov cl, byte [eax + 0x402854]
jmp dword [ecx*4 + 0x402840]
mov dword [esp + 0x14], 0xffffffff
jmp case.0x402639.5
mov dword [esp + 0x14], 1
jmp case.0x402639.5
mov dword [esp + 0x18], 0xffffffff
jmp case.0x402639.5
mov dword [esp + 0x18], 1
lea eax, [esp + 0x1c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x58]
push eax
mov ecx, dword [esp + 0x14]
push ebx
push esi
call fcn.00402e40
lea eax, [esp + 0x1c]
push 1
push 1
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esi + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x10]
call fcn.00402ce0
mov edx, dword [esp + 0x10]
push 1
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
call dword [eax + 0x64]
lea ecx, [esp + 0x30]
push ecx
push esi
mov ecx, dword [esp + 0x18]
call fcn.00402960
test dword [esp + 0x30], edi
je 0x4026db
mov ecx, dword [esp + 0x10]
push 0
push ebx
push edi
push esi
call fcn.00402610
cmp dword [esp + 0x64], 0
je 0x402836
push 1
mov ecx, 0x4053b0
push 0x405330
push 0x405328
call sub.MFC42.DLL_CWinApp::GetProfileIntA
test eax, eax
je 0x402712
push 0x20001
push 0
push 0x40531c
call dword [sym.imp.WINMM.dll_Ordinal_2]
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push esi
call fcn.00402e40
lea eax, [esp + 0x44]
push 1
push 1
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x2c], 0
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x48], eax
jne 0x402771
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x44], eax
je 0x40280f
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub ecx, ebp
sub edx, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
add eax, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
add eax, ebp
test edi, edi
mov dword [esp + 0x40], eax
mov eax, 0
je 0x4027b1
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0x34]
push 0xcc0020
push ebp
mov ebp, dword [esp + 0x40]
push ebp
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, 5
mov eax, dword [esp + 0x2c]
cdq
idiv ecx
test edx, edx
jne 0x402806
call esi
cmp eax, ebx
je 0x4027fc
call esi
mov ebx, eax
inc dword [esp + 0x2c]
jmp 0x402759
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x64]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x64]
push 0
mov edx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [edx + 4]
call sub.MFC42.DLL_CDocument::UpdateAllViews
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret 0x10