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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0xec], 9
je 0x41627f
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x416126
cmp dword [ebp - 0x18], 0x12
je 0x4162a5
lea eax, [ebp - 0x1c]
push eax
call fcn.004159d0
add esp, 4
jmp 0x416272
mov eax, dword [esi + 0xec]
dec eax
cmp eax, 7
ja case.0x416136.4
jmp dword [eax*4 + 0x4162d0]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call edi
cmp dword [ebp - 0x18], 0x12
je 0x4162a5
lea eax, [ebp - 0x1c]
push eax
call fcn.004159d0
add esp, 4
cmp dword [esi + 0xec], 3
je case.0x416136.3
push 0x4ff
push 0x3e8
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x416272
cmp dword [0x4560c8], 0xffffffff
jne 0x416197
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x416199
call ebx
push eax
call fcn.00404de0
add esp, 4
mov dword [esi + 0xec], eax
cmp dword [0x4560c8], 0xffffffff
jne 0x4161eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov dword [ebp + 8], eax
call fcn.00404d80
add esp, 4
test eax, eax
je 0x416249
mov ecx, dword [esi + 0xf8]
sub ecx, dword [ebp + 8]
push 0x4ff
push ecx
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x416272
call ebx
add eax, 5
push eax
mov dword [ebp + 8], eax
call fcn.00404d80
add esp, 4
test eax, eax
je 0x41621d
mov eax, dword [esi + 0xf8]
sub eax, dword [ebp + 8]
push 0x4ff
push eax
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x416272
call ebx
cmp eax, dword [esi + 0xf8]
jge 0x416239
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
cmp eax, dword [esi + 0xf8]
jl 0x416227
mov dword [esi + 0xfc], eax
mov dword [esi + 0xec], 0
mov eax, dword [0x457bdc]
test byte [eax + 0x30c], 2
je 0x416272
mov eax, dword [0x457bf0]
test eax, eax
je 0x416272
dec eax
mov dword [0x457bf0], eax
jmp 0x416272
mov dword [esi + 0xec], 3
cmp dword [esi + 0xec], 9
jne 0x4160f5
mov dword [esi + 0xec], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4533b8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2b
push eax
call fcn.00424aac
push 0x4533b8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
call fcn.00424aac
push 0x4533b8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xa
push eax
call fcn.00424aac
nop
xchg byte [ecx + 0x41], ah
add byte [eax + 1073758561], ch
popal
inc ecx
add byte [ecx - 0x76ffbe9e], cl
bound eax, qword [ecx]
mov edx, 0x90004162
bound eax, qword [ecx]
push 0x55004162
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 8], 1
jge 0x416307
mov dword [ebx + 8], 1
push ebx
call fcn.0040a4f0
mov esi, eax
lea eax, [esi*4]
push eax
mov dword [ebp + 8], eax
call fcn.0040be20
mov edi, eax
add esp, 8
mov eax, 1
mov dword [ebp - 4], edi
test esi, esi
mov word [ebx + 2], ax
mov esi, dword [ebp + 8]
jle 0x416343
mov ecx, esi
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
cmp dword [ebp + 0xc], 0
je 0x416370
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push edi
call fcn.00423fa0
push dword [ebx + 0x1c]
call fcn.0040bfe0
mov eax, dword [ebx + 0x20]
add esp, 0x10
test eax, eax
je 0x416370
push eax
call fcn.0040bfe0
add esp, 4
mov dword [ebx + 0x1c], edi
pop edi
mov dword [ebx + 0x18], esi
pop esi
mov dword [ebx + 0x20], 0
pop ebx
mov esp, ebp
pop ebp
ret