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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fa5a4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fa55c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10], 7
jbe 0x4fa3ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fa589
mov dword [ebp - 0x28], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x2c4]
cmp eax, 0xea60
jbe 0x4fa3e4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c4], eax
mov eax, dword [ebp - 4]
mov si, 0xfff3
call fcn.00403bb0
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 4]
call fcn.004fa03c
mov byte [ebp - 0x1d], al
mov dword [ebp - 0x28], 3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a4], 0
je 0x4fa451
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xe0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x104]
add eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xe4]
push eax
mov al, byte [ebp + 0xc]
push eax
mov al, byte [ebp - 0x1d]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1a4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f9e5c
mov dword [ebp - 0x28], 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov si, 0xfff2
call fcn.00403bb0
mov dword [ebp - 0x28], 5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004fa0b4
mov dword [ebp - 0x28], 6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x150], 0
je 0x4fa54b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x180], 0
jle 0x4fa54b
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x16c]
dec edx
lea ecx, [ebp - 0x48]
mov ah, 0x20
call fcn.00403488
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
cmp eax, 0xff
ja 0x4fa4d8
bt dword [ebp - 0x48], eax
jae 0x4fa54b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
dec eax
xor edx, edx
call fcn.004ef780
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
add dword [ebp - 0x10], eax
cmp dword [ebp - 0x24], 0
je 0x4fa519
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.0049439c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fa54b
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0xe4]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0xe0]
mov eax, dword [ebp - 8]
call fcn.005031f4
mov dword [ebp - 0x28], 7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fa589
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa5ab
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004047ac
ret