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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x48]
test eax, eax
je 0x4f2215
jmp 0x4f239a
mov eax, dword [ebp + 0x10]
and byte [eax], 0
mov eax, dword [ebp - 0x18]
and byte [eax + 0x30], 0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x1c]
push dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov ecx, dword [ebp - 0x18]
call fcn.004f1fa9
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp + 8]
mov eax, dword [eax + 0x24]
adc eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
cmp eax, dword [ecx + 0x1c]
jl 0x4f2293
jg 0x4f2281
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
cmp eax, dword [ecx + 0x18]
jbe 0x4f2293
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x20], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x18]
push dword [eax + 0x1c]
push dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov ecx, dword [ebp - 0x18]
call fcn.004f1fa9
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x2c], 0
je 0x4f231c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x4f231c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x28]
jbe 0x4f231c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x49]
test eax, eax
je 0x4f22e9
cmp dword [ebp - 4], 0x64
je 0x4f2309
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x28], ecx
push dword [ebp + 0x10]
push dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x2c]
mov eax, dword [eax]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x4f231a
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x30], 1
jmp 0x4f239a
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x2c], 0
je 0x4f239a
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x3c]
test eax, eax
jne 0x4f239a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4f235b
mov dword [ebp - 0xc], 0x12c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x4f239a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x34], ecx
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x2c]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x4f239a
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x30], 1
leave
ret 0xc