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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov ebx, 0xdac
nop dword [eax]
mov esi, dword [ebx*4 + 0x20a514c]
mov dword [esp + 0x10], ebx
cmp dword [esi + 4], 3
jne 0x489f67
cmp dword [esi + 0x718], 0
lea edi, [esi + 0x718]
je 0x489f67
movzx ebx, byte [esi + 0x149]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push eax
mov ecx, 0x9f436c
call fcn.00405650
mov eax, dword [esp + 0x20]
cmp byte [eax + 0xd], 0
jne 0x489d46
cmp ebx, dword [eax + 0x10]
jge 0x489d4b
mov eax, dword [0x9f436c]
mov ebx, dword [esp + 0x10]
cmp eax, dword [0x9f436c]
je 0x489f2c
mov eax, dword [eax + 0x38]
cmp eax, 0xffffffff
je 0x489f2c
test eax, eax
je 0x489f2c
movsx eax, word [esi + 0x144]
imul ecx, dword [esp + 0x14], 0x15d38
movsx edx, word [esi + 0x146]
test eax, eax
js 0x489de7
cmp eax, dword [ecx + 0xd2f384]
jge 0x489de7
test edx, edx
js 0x489de7
mov eax, dword [ecx + 0xd2f388]
cmp edx, eax
jge 0x489de7
imul eax, edx
add eax, dword [ecx + 0xd2f380]
movsx ecx, word [esi + 0x144]
mov al, byte [eax + ecx]
mov ecx, edi
test al, 1
je 0x489de7
cmp dword [ecx], 0
je 0x489f67
mov dword [esp + 0x24], 0x51bf10c1
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov byte [esp + 0x30], 1
jmp 0x489f4d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x165e9f81
sub ecx, dword [esi + 0x71c]
mul ecx
mov eax, edx
shr eax, 0x14
mov dword [esp + 0x10], eax
cmp eax, 5
jl 0x489e39
cmp dword [edi], 0
je 0x489f67
mov dword [esp + 0x34], 0x51bf10c1
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 1
jmp 0x489f4d
mov eax, dword [edi]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul ecx, dword [0xbdac70], 0xea60
mov edx, dword [esp + 0x14]
sub eax, edx
cmp eax, ecx
jb 0x489f67
mov ecx, dword [esp + 0x10]
movsx eax, word [esi + 0xd0]
add eax, dword [esi + 0x608]
imul eax, dword [ecx*4 + 0xbdac74]
cmp dword [esi + 0xe4], eax
jae 0x489eac
test edx, edx
je 0x489f67
mov dword [esp + 0x44], 0x51bf10c1
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0x50], 1
jmp 0x489f4d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movsx eax, word [esi + 0xd0]
add eax, dword [esi + 0x608]
imul eax, dword [ecx*4 + 0xbdac74]
mov ecx, dword [esi]
sub dword [esi + 0xe4], eax
mov edx, dword [esi + 0xe4]
call fcn.004e9640
mov eax, dword [esp + 0x10]
movsx edi, word [esi + 0xd0]
add edi, dword [esi + 0x608]
mov dword [esp + 0x54], 0x51bf10c1
imul edi, dword [eax*4 + 0xbdac74]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [esp + 0x5c], edi
sub ecx, dword [esi + 0x71c]
mov eax, 0x45e7b273
mul ecx
mov byte [esp + 0x60], 0
lea eax, [esp + 0x54]
shr edx, 0xe
mov dword [esp + 0x58], edx
jmp 0x489f5d
mov dword [esp + 0x64], 0x51bf10c1
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov byte [esp + 0x70], 1
mov dword [edi], 0
mov dword [esi + 0x71c], 0
push 0x10
push eax
push dword [esi]
call fcn.005192f0
inc ebx
cmp ebx, 0x1194
jl 0x489cf0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret