Function at 0x48e34c
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 0x48e565
cmp edi, dword [ebx + 0x50]
jge 0x48e565
mov edx, dword [esp + 0x34]
test edx, edx
jl 0x48e565
mov ebp, dword [esp + 0x30]
jg 0x48e38e
test ebp, ebp
jb 0x48e565
test edx, edx
jl 0x48e39c
jg 0x48e38e
test ebp, ebp
je 0x48e39c
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.00490993
test al, al
je 0x48e565
xor esi, esi
mov ecx, ebx
push esi
push esi
push ebp
push 5
push dword [ebx + 0xa0]
push edi
call fcn.00490e6b
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 0x48e415
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 0x48e565
cmp edi, esi
jl 0x48e565
jg 0x48e430
cmp ebp, esi
jbe 0x48e565
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xac]
add ecx, 0x64
cmp eax, ecx
jbe 0x48e565
xorps xmm0, xmm0
mov dword [esp + 0x30], esi
movlpd qword [esp + 0x20], xmm0
cmp dword [ebx + 0x50], esi
jle 0x48e4bf
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.004938f8
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 0x48e46b
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
jmp 0x48e4c7
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.00502c48
mov esi, eax
pop ecx
test esi, esi
je 0x48e4fa
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 0x48e4fc
xor esi, esi
test esi, esi
je 0x48e565
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 0x48e52e
and dword [esi + 0x18], eax
jmp 0x48e547
push 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0050b3b0
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.00490e6b
call edi
mov dword [ebx + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14