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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e1556
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4e1536
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4e1511
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [0x5bfd64]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, ebx
mov eax, dword [0x5bfd64]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov edx, 0x4e156c
call fcn.00403d9c
je 0x4e1440
mov eax, dword [ebp - 0xc]
mov edx, 0x4e1578
call fcn.00403d9c
je 0x4e1440
jmp 0x4e1404
inc ebx
inc dword [ebp - 8]
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [0x5bfd64]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebp - 0xc], 0
je 0x4e13a8
mov eax, dword [ebp - 0xc]
mov edx, 0x4e1584
call fcn.00403d9c
jne 0x4e13b1
mov eax, dword [0x5bfd64]
mov byte [eax + 0x1a], 1
mov edx, ebx
mov eax, dword [0x5bfd64]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ecx, eax
mov eax, ecx
sub eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jle 0x4e1404
mov dword [ebp - 0x18], ecx
mov cl, 1
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004b8490
mov eax, dword [ebp - 4]
call fcn.004b8538
cmp byte [0x5bb9b0], 0
je 0x4e1404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1540
mov eax, dword [ebp - 0xc]
call fcn.00403c8c
cmp eax, 2
jne 0x4e1440
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
call fcn.004b6324
test al, al
jne 0x4e1440
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004bcc34
test al, al
je 0x4e1440
mov eax, dword [0x5bfd64]
mov eax, dword [eax + 0x10]
sub eax, 4
cmp ebx, eax
jl 0x4e1380
call sub.kernel32.dll_GetTickCount
mov ecx, eax
mov eax, ecx
sub eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jle 0x4e1485
mov dword [ebp - 0x18], ecx
mov cl, 1
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004b8490
mov eax, dword [ebp - 4]
call fcn.004b8538
cmp byte [0x5bb9b0], 0
je 0x4e1485
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1540
cmp dword [ebp - 8], 0
je 0x4e14ce
cmp dword [ebp - 8], 8
jl 0x4e14be
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004e38b0
test al, al
je 0x4e14be
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jge 0x4e14be
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004df898
jmp 0x4e14cf
inc ebx
call sub.kernel32.dll_GetTickCount
mov ecx, eax
mov eax, ecx
sub eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jle 0x4e1511
mov dword [ebp - 0x18], ecx
mov cl, 1
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004b8490
mov eax, dword [ebp - 4]
call fcn.004b8538
cmp byte [0x5bb9b0], 0
je 0x4e1511
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1540
mov eax, dword [0x5bfd64]
mov eax, dword [eax + 0x10]
sub eax, 4
cmp ebx, eax
jl 0x4e1330
mov eax, dword [ebp - 4]
call fcn.004ca8cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e155d
lea eax, [ebp - 0xc]
call fcn.00403a10
ret