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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, 1
test eax, eax
je 0x41e30e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xec], 9
jne 0x41e0b1
mov edx, dword [ebp + 8]
mov dword [edx + 0xec], 0
jmp 0x41e30e
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 0x41e0f0
cmp dword [ebp - 0x30], 0x12
jne 0x41e0e2
mov dword [ebp - 0xc], 0
push 0x45478c
lea ecx, [ebp - 0xc]
push ecx
call fcn.0042f6e4
lea edx, [ebp - 0x34]
push edx
call fcn.0041df50
add esp, 4
jmp 0x41e086
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.0x41e112.3
mov eax, dword [ebp - 8]
jmp dword [eax*4 + 0x41e314]
mov ecx, 1
test ecx, ecx
je 0x41e169
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 0x41e14d
mov dword [ebp - 0x10], 0
push 0x45478c
lea eax, [ebp - 0x10]
push eax
call fcn.0042f6e4
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041df50
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0xec], 3
je 0x41e167
jmp 0x41e169
jmp case.0x41e112.2
push 0x4ff
push 0x3e8
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41e309
cmp dword [0x4570a8], 0xffffffff
jne 0x41e198
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
jmp 0x41e1a1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.00403140
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xec], eax
cmp dword [0x4570a8], 0xffffffff
jne 0x41e226
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00403190
add esp, 4
test eax, eax
je 0x41e1f8
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 0x41e221
mov edx, dword [0x45a0ac]
mov eax, dword [edx + 0x30c]
and eax, 2
je 0x41e221
cmp dword [0x45a0c0], 0
je 0x41e221
mov ecx, dword [0x45a0c0]
sub ecx, 1
mov dword [0x45a0c0], ecx
jmp 0x41e2cc
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00403190
add esp, 4
test eax, eax
je 0x41e262
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 0x41e2cc
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 0x41e28c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
jmp 0x41e26b
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 [0x45a0ac]
mov edx, dword [ecx + 0x30c]
and edx, 2
je 0x41e2cc
cmp dword [0x45a0c0], 0
je 0x41e2cc
mov eax, dword [0x45a0c0]
sub eax, 1
mov dword [0x45a0c0], eax
jmp 0x41e309
mov dword [ebp - 0x14], 0xa
push 0x45478c
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042f6e4
mov dword [ebp - 0x18], 0x2a
push 0x45478c
lea edx, [ebp - 0x18]
push edx
call fcn.0042f6e4
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], 3
jmp 0x41e309
jmp 0x41e30e
jmp 0x41e086
mov esp, ebp
pop ebp
ret