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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov ecx, dword [esi + 0xfc]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0x7c]
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0xc4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004f2820
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x10]
lea eax, [edi + ebp]
mov dword [esp + 0x14], edi
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
push edx
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
call dword [0x62343c]
test eax, eax
lea ecx, [esp + 0x10]
jne 0x4f260f
lea ecx, [esp + 0x20]
mov edx, dword [ecx]
mov edi, eax
neg edi
sbb edi, edi
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 4]
and edi, 2
dec edi
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
neg eax
sbb eax, eax
mov dword [esp + 0x48], ecx
add eax, 5
push 0
mov ecx, esi
mov dword [esp + 0x48], edx
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], eax
call fcn.0048ee00
mov edx, dword [esi]
push edi
push 1
mov ecx, esi
call dword [edx + 0x160]
mov eax, dword [esi + 0xfc]
mov eax, dword [eax + 0x1c]
push eax
call dword [0x6231f4]
push eax
call fcn.0058214d
mov ecx, dword [esi + 0xfc]
push 0
push 0x212
push 0x1b3
mov edx, dword [ecx + 0x1c]
push edx
call dword [0x6231ec]
mov dword [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x623428]
mov eax, dword [esp + 0x24]
cmp eax, 0x202
je 0x4f27c0
cmp eax, 0x200
jne 0x4f270b
mov eax, dword [esp + 0x2c]
mov ebp, dword [esi]
mov ecx, eax
shr eax, 0x10
and ecx, 0xffff
push eax
push ecx
lea ecx, [esp + 0x44]
push ecx
call dword [0x62343c]
push eax
mov ecx, esi
call dword [ebp + 0xfc]
test eax, eax
je 0x4f27a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov ecx, esi
mov ebx, eax
call fcn.0048ee00
jmp 0x4f27a0
cmp eax, 0x113
jne 0x4f2781
cmp dword [esp + 0x28], 0x1b3
jne 0x4f2781
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4f2758
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov ecx, 1
shr eax, 0xa
cmp eax, 5
jb 0x4f2742
mov ecx, 0x14
jmp 0x4f274c
cmp eax, 2
jb 0x4f274c
mov ecx, 5
mov edx, dword [esi]
push edi
push ecx
mov ecx, esi
call dword [edx + 0x160]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4f2779
mov eax, dword [esi + 0xfc]
push 0
push 0x64
push 0x1b3
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x6231ec]
mov dword [esp + 0x50], 0
lea edx, [esp + 0x20]
push edx
call dword [0x623430]
call dword [0x6232e4]
push eax
call fcn.0058214d
cmp eax, dword [esi + 0xfc]
jne 0x4f27c0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x623428]
mov eax, dword [esp + 0x24]
cmp eax, 0x202
jne 0x4f26bf
mov ecx, dword [esi + 0xfc]
push 0x1b3
mov edx, dword [ecx + 0x1c]
push edx
call dword [0x6231f0]
mov dword [esi + 0xa4], 0
call dword [0x6231c8]
push 0
mov ecx, esi
call fcn.0048ee00
mov esi, dword [esi + 0xfc]
cmp dword [esi + 0xe8], 5
je 0x4f280d
mov eax, dword [esi]
push 0
push 1
push 0
mov ecx, esi
call dword [eax + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8