Function at 0x48e0c2
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 0x48e2db
cmp edi, dword [ebx + 0x50]
jge 0x48e2db
mov edx, dword [esp + 0x34]
test edx, edx
jl 0x48e2db
mov ebp, dword [esp + 0x30]
jg 0x48e104
test ebp, ebp
jb 0x48e2db
test edx, edx
jl 0x48e112
jg 0x48e104
test ebp, ebp
je 0x48e112
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.0049074a
test al, al
je 0x48e2db
xor esi, esi
mov ecx, ebx
push esi
push esi
push ebp
push 5
push dword [ebx + 0xa0]
push edi
call fcn.00490c22
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 0x48e18b
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 0x48e2db
cmp edi, esi
jl 0x48e2db
jg 0x48e1a6
cmp ebp, esi
jbe 0x48e2db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xac]
add ecx, 0x64
cmp eax, ecx
jbe 0x48e2db
xorps xmm0, xmm0
mov dword [esp + 0x30], esi
movlpd qword [esp + 0x20], xmm0
cmp dword [ebx + 0x50], esi
jle 0x48e235
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.00493aad
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 0x48e1e1
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
jmp 0x48e23d
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.00502508
mov esi, eax
pop ecx
test esi, esi
je 0x48e270
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 0x48e272
xor esi, esi
test esi, esi
je 0x48e2db
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 0x48e2a4
and dword [esi + 0x18], eax
jmp 0x48e2bd
push 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0050ac70
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.00490c22
call edi
mov dword [ebx + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14