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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, 1
test eax, eax
je 0x421fbe
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xec], 9
jne 0x421d61
mov edx, dword [ebp + 8]
mov dword [edx + 0xec], 0
jmp 0x421fbe
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x421da0
cmp dword [ebp - 0x30], 0x12
jne 0x421d92
mov dword [ebp - 0xc], 0
push 0x465e94
lea ecx, [ebp - 0xc]
push ecx
call fcn.004363b5
lea edx, [ebp - 0x34]
push edx
call fcn.00421bb0
add esp, 4
jmp 0x421d36
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xec]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 7
ja case.0x421dc2.3
mov eax, dword [ebp - 8]
jmp dword [eax*4 + 0x421fc4]
mov ecx, 1
test ecx, ecx
je 0x421e19
push 0
push 0
push 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp dword [ebp - 0x30], 0x12
jne 0x421dfd
mov dword [ebp - 0x10], 0
push 0x465e94
lea eax, [ebp - 0x10]
push eax
call fcn.004363b5
lea ecx, [ebp - 0x34]
push ecx
call fcn.00421bb0
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0xec], 3
je 0x421e17
jmp 0x421e19
jmp case.0x421dc2.2
push 0x4ff
push 0x3e8
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x421fb9
cmp dword [0x4690c8], 0xffffffff
jne 0x421e48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
jmp 0x421e51
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004032e0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xec], eax
cmp dword [0x4690c8], 0xffffffff
jne 0x421ed6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00403330
add esp, 4
test eax, eax
je 0x421ea8
push 0x4ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf8]
sub ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x421ed1
mov edx, dword [0x46b3a4]
mov eax, dword [edx + 0x30c]
and eax, 2
je 0x421ed1
cmp dword [0x46b3b8], 0
je 0x421ed1
mov ecx, dword [0x46b3b8]
sub ecx, 1
mov dword [0x46b3b8], ecx
jmp 0x421f7c
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00403330
add esp, 4
test eax, eax
je 0x421f12
push 0x4ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf8]
sub ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x421f7c
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0xf8]
jge 0x421f3c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
jmp 0x421f1b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xfc], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], 0
mov ecx, dword [0x46b3a4]
mov edx, dword [ecx + 0x30c]
and edx, 2
je 0x421f7c
cmp dword [0x46b3b8], 0
je 0x421f7c
mov eax, dword [0x46b3b8]
sub eax, 1
mov dword [0x46b3b8], eax
jmp 0x421fb9
mov dword [ebp - 0x14], 0xa
push 0x465e94
lea ecx, [ebp - 0x14]
push ecx
call fcn.004363b5
mov dword [ebp - 0x18], 0x2b
push 0x465e94
lea edx, [ebp - 0x18]
push edx
call fcn.004363b5
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], 3
jmp 0x421fb9
jmp 0x421fbe
jmp 0x421d36
mov esp, ebp
pop ebp
ret