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

Disassembly:
mov eax, 0x61d010
call fcn.0044c384
sub esp, 0x94
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebx]
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.00463797
cmp dword [ebx + 0x188], esi
pop ecx
mov dword [ebp - 0x18], eax
je 0x4909be
push 1
push ebx
call fcn.0048e7d2
pop ecx
pop ecx
cmp dword [ebp - 0x18], esi
je 0x490cae
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.0048fdfc
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
call fcn.005a259d
mov dword [ebx + 0x1a8], eax
mov dword [ebp - 4], esi
call fcn.005989f0
mov dword [ebp - 0x44], eax
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
mov dword [eax], ecx
mov dword [ebp - 0x48], 0x5989d1
push 1
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push ebx
call fcn.0048eec0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
add esp, 0x18
mov dword [eax], ecx
jmp 0x490a2f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0048e8d7
pop ecx
pop ecx
cmp dword [ebp - 0x28], 0
mov dword [ebp - 4], 3
je 0x490c7d
lea eax, [ebp - 0x28]
push eax
call fcn.004f85a1
push ebx
call fcn.0048e96f
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
pop ecx
je 0x490c7d
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.00428162
push ebx
call fcn.0048fc30
push dword [ebx + 0x138]
call fcn.005a0fe4
fstp dword [esp + 0x10]
add esp, 0x10
push dword [ebx + 0x12c]
push dword [ebx + 4]
call fcn.0046eef5
pop ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004f89ee
add esp, 0x10
mov dword [ebp - 0x14], eax
test ax, ax
jne 0x490c72
push dword [ebx + 0x130]
call fcn.0050ef73
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
je 0x490c72
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0050e80a
mov esi, eax
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x58]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0050edca
push 6
mov esi, eax
pop ecx
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 6
lea eax, [ebp - 0x90]
pop ecx
lea esi, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
lea edi, [ebp - 0x90]
lea eax, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0050df4f
mov esi, eax
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x83
movsd dword es:[edi], dword [esi]
call fcn.0045d9d1
add esp, 0x20
test ax, ax
je 0x490b7d
push dword [ebx + 4]
call fcn.00471d4e
test ax, ax
pop ecx
jne 0x490b7d
push 1
push dword [ebp + 0xc]
call fcn.005111f3
pop ecx
xor esi, esi
pop ecx
jmp 0x490b8a
xor esi, esi
push esi
push dword [ebp + 0xc]
call fcn.005111f3
pop ecx
pop ecx
push 0x8b
call fcn.0045d9d1
push dword [ebx]
call fcn.0046393b
pop ecx
mov byte [ebp - 4], 4
pop ecx
call fcn.005989f0
mov dword [ebp - 0x44], eax
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
mov dword [eax], ecx
mov dword [ebp - 0x48], 0x5989d1
push dword [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.005106df
pop ecx
lea eax, [ebp - 0x78]
push esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
push esi
push esi
lea eax, [ebp - 0x28]
push dword [ebx + 0x138]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0xc]
call fcn.0050f751
add esp, 0x2c
cmp word [ebx + 0x126], si
jne 0x490bfd
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
jmp 0x490c10
push dword [ebx]
mov dword [ebp - 4], 3
call fcn.00463952
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.0051120d
add esp, 0xc
mov edi, eax
lea esi, [ebx + 0x1a0]
push edi
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0041c673
mov eax, dword [edi + 4]
cmp dword [ebp - 0x38], 0
mov dword [esi + 4], eax
mov byte [ebp - 4], 3
je 0x490c5d
push dword [ebp - 0x38]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
push 0
push dword [ebp + 0xc]
call fcn.005111f3
push dword [ebp + 0xc]
call fcn.0053ee66
add esp, 0xc
push dword [ebp + 0x18]
push ebx
call fcn.0048e9a2
pop ecx
pop ecx
push dword [ebp - 0x18]
push dword [ebx]
call fcn.004637df
pop ecx
add ebx, 0x1a8
pop ecx
call fcn.005a259d
sub eax, dword [ebx]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
mov dword [ebx], eax
je 0x490cae
push dword [ebp - 0x28]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret