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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f0754
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov byte [ebp - 0x19], 0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5f071a
push dword fs:[edx]
mov dword fs:[edx], esp
test ebx, ebx
je 0x5f0710
cmp dword [ebx + 0x10], 0
jle 0x5f0710
mov eax, 0x64
call fcn.00403484
cmp eax, dword [ebx + 0x18]
jge 0x5f064c
mov edi, dword [ebx + 0x14]
mov eax, edi
add eax, eax
inc eax
call fcn.00403484
mov edx, dword [ebx + 0x20]
sub edx, edi
add eax, edx
mov dword [ebp - 0x10], eax
mov edi, dword [ebx + 0x14]
mov eax, edi
add eax, eax
inc eax
call fcn.00403484
mov edx, dword [ebx + 0x24]
sub edx, edi
add eax, edx
mov dword [ebp - 0x14], eax
mov edi, esi
dec edi
test edi, edi
jl 0x5f0710
inc edi
mov eax, 0x14
call fcn.00403484
mov edx, dword [ebp - 0x14]
sub edx, 0xa
add eax, edx
push eax
mov eax, dword [ebx + 0x10]
push eax
lea eax, [ebp - 0x20]
lea edx, [ebx + 0x28]
call fcn.004055f8
mov eax, dword [ebp - 0x20]
push eax
mov eax, 0x14
call fcn.00403484
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, 0xa
add ecx, eax
mov edx, dword [ebx + 0x50]
mov eax, dword [ebp - 4]
call fcn.005ef954
mov esi, eax
test esi, esi
je 0x5f061f
mov eax, dword [ebx + 0x4c]
mov edx, esi
call fcn.0041fa48
mov eax, dword [ebx + 0x7c]
mov edx, eax
or edx, 1
cmp eax, edx
jne 0x5f0602
mov byte [esi + 0x2a0], 1
cmp byte [ebp - 0x19], 0
jne 0x5f061f
mov byte [ebp - 0x19], 1
mov eax, dword [ebx + 0x64]
mov dword [esi + 0xbd0], eax
mov edx, dword [ebx + 0x5c]
mov eax, esi
call fcn.00662014
cmp byte [ebp + 8], 0
je 0x5f0640
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
mov edx, dword [0x6c0594]
cmp eax, dword [edx]
jbe 0x5f0640
mov byte [ebp - 5], 0
jmp 0x5f0710
dec edi
jne 0x5f059a
jmp 0x5f0710
mov edi, esi
dec edi
test edi, edi
jl 0x5f0710
inc edi
mov esi, dword [ebx + 0x14]
mov eax, esi
add eax, eax
inc eax
call fcn.00403484
mov edx, dword [ebx + 0x20]
sub edx, esi
add eax, edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x14]
mov eax, esi
add eax, eax
inc eax
call fcn.00403484
mov edx, dword [ebx + 0x24]
sub edx, esi
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x28]
call fcn.004055f8
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebx + 0x50]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005ef954
mov esi, eax
test esi, esi
je 0x5f06eb
mov eax, dword [ebx + 0x4c]
mov edx, esi
call fcn.0041fa48
mov eax, dword [ebx + 0x7c]
mov edx, eax
or edx, 1
cmp eax, edx
jne 0x5f06ce
mov byte [esi + 0x2a0], 1
cmp byte [ebp - 0x19], 0
jne 0x5f06eb
mov byte [ebp - 0x19], 1
mov eax, dword [ebx + 0x64]
mov dword [esi + 0xbd0], eax
mov edx, dword [ebx + 0x5c]
mov eax, esi
call fcn.00662014
cmp byte [ebp + 8], 0
je 0x5f0709
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
mov edx, dword [0x6c0594]
cmp eax, dword [edx]
jbe 0x5f0709
mov byte [ebp - 5], 0
jmp 0x5f0710
dec edi
jne 0x5f0658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f0739
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f075b
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004053b8
ret