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

Disassembly:
push 0x444
mov eax, 0x575efd
call fcn.0056127f
mov edi, ecx
mov eax, dword [ebp + 0x20]
push dword [ebp + 0x18]
mov ecx, dword [edi + 0x2d0]
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], eax
call fcn.004a56fe
push eax
call fcn.004a5740
mov ebx, eax
test ebx, ebx
je 0x499ecd
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x14], ecx
cmp dword [ebx + 0x238], esi
je 0x499e63
cmp dword [edi + 0x6c], esi
jne 0x499ddb
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x444], eax
test eax, eax
je 0x499ddb
mov ecx, ebx
call fcn.004a7d7e
test al, al
jne 0x499ddb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x444]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x444], eax
test eax, eax
je 0x499e0c
mov ecx, ebx
call fcn.004a7d7e
test al, al
jne 0x499e0c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x444]
cmp eax, 0xfa00
jae 0x499e0c
add dword [edi + 0x74], eax
inc dword [edi + 0x78]
mov eax, dword [edi + 0x324]
cmp eax, 0x10
je 0x499e39
cmp eax, 0x14
je 0x499e39
cmp eax, 3
je 0x499e2e
test eax, eax
je 0x499e2e
cmp eax, 0x15
jne 0x499eff
inc dword [edi + 0x66c]
jmp 0x499eff
lea edx, [edi + 0x248]
lea ecx, [ebp - 0x430]
call fcn.00532cea
push ecx
mov dword [ebp - 4], esi
mov ecx, dword [edi + 0x58c]
push eax
call fcn.00485ffe
mov ecx, eax
call fcn.004a4132
jmp 0x499ea7
mov eax, dword [edi + 0x324]
cmp eax, 0x10
je 0x499e73
cmp eax, 0x14
jne 0x499eb7
cmp dword [edi + 0x10c], esi
jle 0x499eb7
lea edx, [edi + 0x248]
lea ecx, [ebp - 0x430]
call fcn.00532cea
push ecx
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x58c]
push eax
call fcn.00485ffe
mov ecx, eax
call fcn.004a418d
push esi
push 1
lea ecx, [ebp - 0x430]
call fcn.00401d84
jmp 0x499eff
cmp eax, 3
je 0x499ec5
test eax, eax
je 0x499ec5
cmp eax, 0x15
jne 0x499eff
inc dword [edi + 0x668]
jmp 0x499eff
lea ecx, [ebp + 0x18]
push ecx
lea eax, [edi + 0x684]
mov esi, dword [eax]
lea ecx, [ebp - 0x444]
push ecx
mov ecx, eax
call fcn.0045a17b
cmp dword [eax], esi
je 0x499efd
lea eax, [ebp + 0x18]
push eax
lea ecx, [edi + 0x684]
call fcn.004a12d1
mov byte [eax], 1
xor esi, esi
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 2
je 0x499fd7
push dword [ebp + 0x24]
lea ecx, [ebp - 0x440]
push dword [ebp - 0x448]
call fcn.005321e4
mov byte [ebp - 4], 3
cmp esi, dword [ebp + 0x1c]
jge 0x499ff7
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x440]
call fcn.00441a62
cmp dword [ebp - 0x448], 0
jl 0x499ff7
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x440]
call fcn.00441a4a
movzx ecx, word [ebp - 0x444]
lea eax, [ecx - 1]
cmp eax, 0x3ff
ja 0x499ff7
mov eax, ecx
lea ecx, [ebp - 0x440]
cdq
push edx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00531dda
cmp dword [edi + 0x318], 2
jne 0x499fb1
mov eax, dword [edi + 0x2c0]
dec eax
cmp dword [ebp - 0x448], eax
jne 0x499fb1
mov eax, 0x17d9
cmp word [ebp + 0x14], ax
jb 0x499fd1
movzx eax, word [ebp - 0x444]
mov ecx, edi
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x448]
push dword [ebp + 0x18]
push ebx
call fcn.0049da24
inc esi
jmp 0x499f28
mov eax, dword [edi + 0x318]
dec eax
jne 0x499ff7
push dword [ebp + 0x24]
mov ecx, edi
push dword [ebp - 0x448]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
call fcn.0049da24
call fcn.005611d1
ret 0x20