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

Disassembly:
sub esp, 0xf0
push ebx
push esi
push edi
push ebp
mov edi, 0x40f878
mov ebp, dword [esp + 0x104]
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0x24], eax
push ebp
call dword [sym.imp.USER32.dll_SetCapture]
push ebp
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov esi, eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
push 6
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x44]
sub eax, 2
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x2c]
sub eax, 2
push eax
mov eax, dword [esp + 0x4c]
sub eax, 3
push eax
push 2
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
jne 0x40b4fd
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
push 2
lea eax, [esp + 0x4c]
push 0x108
mov dword [esp + 0x20], ebx
push 0x100
push ebp
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x40b6f4
lea eax, [esp + 0x48]
push 2
push 0x20a
push 0x200
push ebp
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40b57d
cmp dword [esp + 0x4c], 0x200
je 0x40b569
cmp dword [esp + 0x4c], 0xa0
jne 0x40b6f4
mov eax, dword [esp + 0x4c]
push 3
lea ecx, [esp + 0x4c]
push eax
push eax
push ebp
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x1c]
jb 0x40b6d4
add dword [esp + 0x1c], 0x32
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jne 0x40b5e4
lea ecx, [esp + 0x9c]
mov eax, ebx
or al, 0x80
inc ebx
xor al, byte [edi]
inc edi
mov byte [esp + 0x9c], al
cmp al, 0xd
je 0x40b5ce
cmp byte [ecx], 0x40
je 0x40b6f4
inc ecx
mov eax, ebx
or al, 0x80
inc ebx
xor al, byte [edi]
inc edi
mov byte [ecx], al
cmp al, 0xd
jne 0x40b5b6
cmp byte [ecx], 0x40
je 0x40b6f4
inc edi
inc ebx
mov dword [esp + 0x14], 0
mov byte [ecx], 0
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 3
sub eax, 2
push 2
push esi
push eax
mov eax, dword [esp + 0x44]
sub eax, 2
push eax
push 2
push 2
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
mov ecx, 5
cdq
and edx, 3
inc dword [esp + 0x18]
add eax, edx
sar eax, 2
cdq
idiv ecx
cmp edx, 4
ja case.default.0x40b627
jmp dword [edx*4 + 0x40b72c]
mov dword [esp + 0x10], 0xff
jmp case.default.0x40b627
mov dword [esp + 0x10], 0xffff
jmp case.default.0x40b627
mov dword [esp + 0x10], 0xff00
jmp case.default.0x40b627
mov dword [esp + 0x10], 0xffff00
jmp case.default.0x40b627
mov dword [esp + 0x10], 0xff00ff
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
inc dword [esp + 0x1c]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
lea ecx, [esp + 0x9c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xa0]
push eax
lea edx, [esp + 0x30]
push ecx
mov eax, dword [esp + 0x50]
push edx
sub eax, dword [esp + 0x24]
push 2
push eax
mov eax, dword [esp + 0x58]
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0xffffffffffffffff
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [esp + 0x48]
push 2
push 0x108
push 0x100
push ebp
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40b535
push 0xffffffffffffffff
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
push esi
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 1
push 0
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xf0
ret