Function at 0x48e382
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 0x48e59b
cmp edi, dword [ebx + 0x50]
jge 0x48e59b
mov edx, dword [esp + 0x34]
test edx, edx
jl 0x48e59b
mov ebp, dword [esp + 0x30]
jg 0x48e3c4
test ebp, ebp
jb 0x48e59b
test edx, edx
jl 0x48e3d2
jg 0x48e3c4
test ebp, ebp
je 0x48e3d2
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.004909c9
test al, al
je 0x48e59b
xor esi, esi
mov ecx, ebx
push esi
push esi
push ebp
push 5
push dword [ebx + 0xa0]
push edi
call fcn.00490ea1
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 0x48e44b
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 0x48e59b
cmp edi, esi
jl 0x48e59b
jg 0x48e466
cmp ebp, esi
jbe 0x48e59b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xac]
add ecx, 0x64
cmp eax, ecx
jbe 0x48e59b
xorps xmm0, xmm0
mov dword [esp + 0x30], esi
movlpd qword [esp + 0x20], xmm0
cmp dword [ebx + 0x50], esi
jle 0x48e4f5
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.0049392e
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 0x48e4a1
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
jmp 0x48e4fd
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.00502c78
mov esi, eax
pop ecx
test esi, esi
je 0x48e530
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 0x48e532
xor esi, esi
test esi, esi
je 0x48e59b
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 0x48e564
and dword [esi + 0x18], eax
jmp 0x48e57d
push 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0050b400
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.00490ea1
call edi
mov dword [ebx + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14