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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
and ecx, 0x30000
cmp ecx, 0x30000
jne 0x451f90
mov edx, dword [eax + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, esi
call fcn.004523a0
mov ecx, esi
call fcn.00455610
test eax, eax
jne 0x45221c
mov eax, dword [esi]
push 1
mov dword [eax + 0x98], 0
mov ecx, dword [esi]
add ecx, 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esi + 0x610], eax
mov edx, dword [esi]
push 2
add edx, 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, eax
mov eax, dword [esi + 0x37c]
cdq
mov ecx, 0x18
idiv ecx
shl edx, 4
cmp edi, 3
lea ebx, [edx + esi + 0x1e8]
jne 0x452040
mov edx, dword [esi]
push edi
add edx, 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x14
call ebp
mov eax, dword [esi]
add eax, 0x9c
push 3
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, eax
cmp edi, 3
je 0x452015
mov ecx, dword [esi]
push edi
add ecx, 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp edi, 4
je 0x452209
cmp edi, 2
jne 0x451fd5
xor edi, edi
push edi
call ebp
mov ecx, esi
call fcn.00452250
cmp dword [esi + 0x368], edi
jne 0x452079
mov edx, dword [esi]
cmp dword [edx + 0x84], edi
je 0x452079
mov ecx, esi
call fcn.00455850
mov dword [esi + 0x394], edi
cmp dword [ebx], edi
je 0x452103
mov eax, dword [esi]
cmp dword [eax + 0x98], 2
jg 0x45209e
mov edx, ebx
mov ecx, esi
call fcn.00453850
mov ecx, esi
call fcn.004524b0
jmp 0x4520be
mov eax, dword [ebx + 0xc]
cmp eax, 2
je 0x4520b5
cmp eax, 1
je 0x4520b5
cmp eax, 6
je 0x4520b5
cmp eax, 5
jne 0x4520be
mov edx, ebx
mov ecx, esi
call fcn.00453850
mov eax, dword [esi]
test dword [eax + 4], 0x40000
je 0x4520dd
mov eax, dword [eax + 0xb0]
cmp eax, edi
je 0x4520dd
call eax
test eax, eax
jne 0x452209
lea eax, [esi + 0x37c]
mov dword [ebx], edi
push eax
mov dword [ebx + 4], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 0x384]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
call fcn.00452a30
mov edx, dword [esi]
add edx, 0x94
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [esi + 0x384], edi
jne 0x452173
mov eax, dword [esi]
cmp dword [eax + 0x84], edi
je 0x452209
test dword [eax + 4], 0x800000
je 0x452209
cmp dword [esi + 0x388], edi
jne 0x452173
mov eax, dword [eax + 0x5c]
cmp eax, edi
je 0x452209
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x24]
test byte [esp + 0x18], 4
je 0x452168
mov eax, dword [esi]
push edi
push edi
push edi
mov eax, dword [eax + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test byte [esp + 0x18], 1
je 0x452209
mov eax, dword [esi]
cmp dword [eax + 0x84], edi
je 0x451fd5
mov edx, dword [esi + 0x394]
xor edi, edi
sub edx, 9
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x94]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub edx, ecx
cmp edx, 1
jl 0x4521d8
push 0
call ebp
push 2
call ebp
mov eax, dword [esi + 0x394]
mov ecx, edi
sub eax, 9
inc edi
cmp ecx, 0x96
mov dword [esp + 0x10], eax
jg 0x4521d8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub eax, edx
cmp eax, 1
jge 0x4521a9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
sub ecx, edx
mov dword [eax + 0x98], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x98]
test ecx, ecx
jge 0x451fd5
mov dword [eax + 0x98], 0
jmp 0x451fd5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x614], eax
call fcn.00455650
mov ecx, esi
call fcn.004559c0
mov ecx, esi
call fcn.004523a0
mov ecx, dword [esi]
add ecx, 0x9c
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret