Function at 0x48f763
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 0x48f97c
cmp edi, dword [ebx + 0x50]
jge 0x48f97c
mov edx, dword [esp + 0x34]
test edx, edx
jl 0x48f97c
mov ebp, dword [esp + 0x30]
jg 0x48f7a5
test ebp, ebp
jb 0x48f97c
test edx, edx
jl 0x48f7b3
jg 0x48f7a5
test ebp, ebp
je 0x48f7b3
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.00491d8f
test al, al
je 0x48f97c
xor esi, esi
mov ecx, ebx
push esi
push esi
push ebp
push 5
push dword [ebx + 0xa0]
push edi
call fcn.00492267
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 0x48f82c
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 0x48f97c
cmp edi, esi
jl 0x48f97c
jg 0x48f847
cmp ebp, esi
jbe 0x48f97c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xac]
add ecx, 0x64
cmp eax, ecx
jbe 0x48f97c
xorps xmm0, xmm0
mov dword [esp + 0x30], esi
movlpd qword [esp + 0x20], xmm0
cmp dword [ebx + 0x50], esi
jle 0x48f8d6
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.00494cf5
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 0x48f882
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
jmp 0x48f8de
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.005040a8
mov esi, eax
pop ecx
test esi, esi
je 0x48f911
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 0x48f913
xor esi, esi
test esi, esi
je 0x48f97c
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 0x48f945
and dword [esi + 0x18], eax
jmp 0x48f95e
push 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0050c810
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.00492267
call edi
mov dword [ebx + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14