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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0049fcce
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49fcbe
cmp dword [ebp + 0xc], 3
jne 0x49fa49
call fcn.0049fd6e
mov dword [0x7f33f1], 0
jmp 0x49fc63
cmp dword [ebp + 0xc], 1
jne 0x49fb89
mov ebx, dword [0x7f33e5]
call fcn.004759e1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x49fa73
push 4
call fcn.006b9b79
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49fa86
push 1
call fcn.006b9b79
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x49faf1
mov eax, dword [ebp + 0x10]
cmp dword [0x7f33f5], eax
jne 0x49fab8
mov eax, 0
jmp 0x49fcc8
mov eax, dword [ebp + 0x10]
mov dword [0x7f33f5], eax
call fcn.0049fd6e
mov eax, dword [ebp - 4]
mov dword [0x7f33f1], eax
mov eax, dword [ebp + 8]
mov dword [0x7f33f9], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x7f33fd], eax
jmp 0x49fb84
mov ebx, dword [0x7f33e5]
call fcn.004759e1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x49fb11
push 4
call fcn.006b9b79
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49fb24
push 1
call fcn.006b9b79
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 2
jne 0x49fb84
mov eax, dword [ebp + 0x10]
cmp dword [0x7f33f5], eax
jne 0x49fb56
mov eax, 0
jmp 0x49fcc8
mov eax, dword [ebp + 0x10]
mov dword [0x7f33f5], eax
cmp dword [0x7f3401], 0
je 0x49fb84
call fcn.0049fd6e
mov dword [0x7f33f1], 0
mov dword [0x7f33f9], 0
jmp 0x49fc63
cmp dword [ebp + 0xc], 2
jne 0x49fc63
mov ebx, dword [0x7f33e5]
call fcn.004759e1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x49fbb3
push 4
call fcn.006b9b79
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49fbc6
push 1
call fcn.006b9b79
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
je 0x49fc2f
mov ebx, dword [0x7f33e5]
call fcn.004759e1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x49fbff
push 4
call fcn.006b9b79
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49fc12
push 1
call fcn.006b9b79
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
je 0x49fc2f
xor eax, eax
jmp 0x49fc34
mov eax, 1
test eax, eax
je 0x49fc63
mov eax, dword [ebp - 4]
mov dword [0x7f33f1], eax
mov eax, dword [ebp + 8]
mov dword [0x7f33f9], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x7f33fd], eax
mov ebx, dword [0x7f33e5]
call fcn.004759e1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x49fc83
push 4
call fcn.006b9b79
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49fc96
push 1
call fcn.006b9b79
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.0047c474
jmp 0x49fcc8
mov eax, 0
jmp 0x49fcc8
mov esp, ebp
pop ebp
ret 0x10