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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax]
and ecx, 0x30000
cmp ecx, 0x30000
jne 0x4a823f
mov edx, dword [eax + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call fcn.00410d70
add esp, 4
test eax, eax
jne 0x4a848d
mov eax, dword [esi]
push ebx
push ebp
push edi
mov dword [eax + 0x88], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
push 1
add ecx, 0x8c
mov dword [esi + 0x3e0], eax
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
push 2
add edx, 0x8c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, eax
mov eax, dword [esi + 0x350]
cdq
mov ecx, 0x18
idiv ecx
shl edx, 4
cmp edi, 3
lea ebx, [edx + esi + 0x1bc]
jne 0x4a82ed
mov edx, dword [esi]
push edi
add edx, 0x8c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x14
call ebp
mov eax, dword [esi]
push 3
add eax, 0x8c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, eax
cmp edi, 3
je 0x4a82c2
mov ecx, dword [esi]
push edi
add ecx, 0x8c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp edi, 4
je 0x4a8475
cmp edi, 2
jne 0x4a8282
xor edi, edi
push edi
call ebp
push esi
call fcn.004a6ee0
add esp, 4
mov eax, dword [esi + 0x33c]
cmp eax, edi
jne 0x4a8329
mov edx, dword [esi]
cmp dword [edx + 0x70], edi
je 0x4a8329
push esi
call fcn.00410f70
add esp, 4
mov dword [esi + 0x368], edi
cmp dword [ebx], edi
je 0x4a83b3
mov eax, dword [esi]
mov ecx, dword [eax + 0x88]
cmp ecx, 1
jg 0x4a8356
push ebx
push esi
call fcn.004d0c50
push esi
call fcn.004a79d0
push esi
call fcn.004cf610
add esp, 0x10
jmp 0x4a836d
mov eax, dword [ebx + 0xc]
cmp eax, 2
je 0x4a8363
cmp eax, 1
jne 0x4a836d
push ebx
push esi
call fcn.004d0c50
add esp, 8
mov eax, dword [esi]
test dword [eax], 0x40000
je 0x4a838b
mov eax, dword [eax + 0xa0]
cmp eax, edi
je 0x4a838b
call eax
test eax, eax
jne 0x4a8475
lea eax, [esi + 0x350]
mov dword [ebx], edi
push eax
mov dword [ebx + 4], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call fcn.004d0190
add esp, 4
mov edx, dword [esi]
add edx, 0x84
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x358]
cmp eax, edi
jne 0x4a83e5
mov eax, dword [esi]
cmp dword [eax + 0x70], edi
je 0x4a8475
mov eax, dword [esi + 0x35c]
cmp eax, edi
je 0x4a8475
mov eax, dword [esi]
cmp dword [eax + 0x70], edi
je 0x4a8282
xor edi, edi
mov ecx, dword [esi + 0x368]
sub ecx, 5
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, 1
jl 0x4a8444
push 0
call ebp
push 3
call ebp
mov edx, dword [esi + 0x368]
sub edx, 5
mov dword [esp + 0x18], edx
mov eax, edi
inc edi
cmp eax, 0x64
jg 0x4a8444
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
sub ecx, edx
cmp ecx, 1
jge 0x4a8418
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
sub ecx, eax
mov dword [edx + 0x88], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x88]
test ecx, ecx
jge 0x4a8282
mov dword [eax + 0x88], 0
jmp 0x4a8282
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [esi + 0x3e4], eax
call fcn.00410db0
add esp, 4
pop edi
pop ebp
pop ebx
push esi
call fcn.004110d0
mov eax, dword [esi]
add esp, 4
add eax, 0x8c
push 5
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
pop ecx
ret