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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov ebx, ecx
test edi, edi
js 0x4941e2
cmp edi, dword [ebx + 0x50]
jge 0x4941e2
mov edx, dword [esp + 0x34]
test edx, edx
jl 0x4941e2
mov ebp, dword [esp + 0x30]
jg 0x49400b
test ebp, ebp
jb 0x4941e2
test edx, edx
jl 0x494019
jg 0x49400b
test ebp, ebp
je 0x494019
mov eax, dword [ebx + 0x60]
imul ecx, edi, 0x18
mov dword [eax + ecx + 0x10], ebp
mov dword [eax + ecx + 0x14], edx
lea esi, [ebx + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x38]
add dword [ebx + 0x10], eax
mov eax, dword [esp + 0x3c]
adc dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x14]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.004965f5
test al, al
je 0x4941e2
xor esi, esi
mov ecx, ebx
push esi
push esi
push ebp
push 5
push dword [ebx + 0xa0]
push edi
call fcn.00496acd
mov eax, dword [ebx + 0x54]
or ebp, 0xffffffff
or edi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
test eax, eax
je 0x494092
mov ebp, dword [eax + 0x80]
mov edi, dword [eax + 0x84]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
cmp dword [ebx + 0x58], esi
je 0x4941e2
cmp edi, esi
jl 0x4941e2
jg 0x4940ad
cmp ebp, esi
jbe 0x4941e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xac]
add ecx, 0x64
cmp eax, ecx
jbe 0x4941e2
xorps xmm0, xmm0
mov dword [esp + 0x30], esi
movlpd qword [esp + 0x20], xmm0
cmp dword [ebx + 0x50], esi
jle 0x49413c
mov eax, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx + 0x58]
add ecx, edx
mov edi, dword [ecx + 0xd0]
mov esi, dword [ecx + 0xd4]
call fcn.0049955a
mov ecx, dword [esp + 0x2c]
sub eax, edi
sbb edx, esi
add ecx, eax
mov eax, dword [esp + 0x30]
adc ebp, edx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x38]
inc eax
add edx, 0x100
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edx
cmp eax, dword [ebx + 0x50]
jl 0x4940e8
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
jmp 0x494144
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, ebp
sub edx, ecx
mov ecx, edi
push 0x20
sbb ecx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
call fcn.00508738
mov esi, eax
pop ecx
test esi, esi
je 0x494177
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jmp 0x494179
xor esi, esi
test esi, esi
je 0x4941e2
mov eax, dword [ebx + 0xa0]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x14], eax
mov dword [esi + 8], ebp
call edi
sub eax, dword [ebx + 0x38]
jne 0x4941ab
and dword [esi + 0x18], eax
jmp 0x4941c4
push 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.00510e90
imul eax, eax, 0x3e8
mov dword [esi + 0x18], eax
push 0
push 0
push esi
push 3
push dword [ebx + 0xa0]
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00496acd
call edi
mov dword [ebx + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14