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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esi + 0xd0]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
call fcn.0046f8e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xd4]
cmp eax, ecx
je 0x4895b3
mov ebx, dword [eax + 0x10]
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x4895c9
mov dword [esi + 8], 0x10004008
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret 0x10
mov ecx, dword [ebx + 0x38]
mov eax, 1
cmp ecx, eax
je 0x4895e6
mov dword [esi + 8], 0x10004009
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push edi
push ebp
push eax
push ebx
push 2
mov ecx, esi
mov dword [esp + 0x2c], 2
call fcn.00489be0
test al, al
jne 0x48964d
cmp dword [ebx + 0x38], 2
je 0x48962c
lea ecx, [ebx + 0x20]
call fcn.00458c60
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jb 0x4897a0
test ecx, ecx
jbe 0x4897a0
mov ecx, dword [esp + 0x6c]
push edi
push ebp
push ecx
push ebx
push 3
mov ecx, esi
mov dword [esp + 0x2c], 3
call fcn.00489be0
test al, al
je 0x4897a0
mov edx, dword [esp + 0x6c]
mov eax, dword [esi + 0x20]
mov ebx, dword [ebp]
mov esi, dword [edi]
mul dword [edx]
xor ebp, ebp
add ebx, eax
adc ebp, edx
xor edi, edi
add esi, eax
mov ecx, 0xe
adc edi, edx
mov eax, ebx
mov edx, ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
call fcn.004a1240
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, esi
mov edx, edi
sub eax, 1
mov ecx, 0xe
sbb edx, 0
call fcn.004a1240
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
cmp ecx, eax
mov dword [esp + 0x38], edx
ja 0x4896c0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x68]
inc ecx
mov edx, dword [edx + 0xc4]
cmp ecx, eax
mov dword [edx + ecx*4 - 4], edi
jbe 0x4896a9
mov eax, dword [esp + 0x10]
mov ecx, 0xa
lea edi, [esp + 0x3c]
mov dword [eax + 0x2c], 1
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x50], ecx
call esi
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
push edx
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x60]
push 1
push eax
call fcn.0048ab00
call esi
mov esi, dword [esp + 0x28]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x34]
cmp esi, eax
ja 0x489794
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [eax + 0xc4]
push edx
push ebp
push ebx
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x88]
push ecx
push esi
mov ecx, dword [edx]
mov edx, dword [esp + 0x8c]
mov eax, dword [eax]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x8c]
push ecx
push edx
push eax
push str.__d._3d__AllocSlice_ok__index__d__from__d_to__d._i:_d_algo:_d_owner:_d_from_abs:_I64d__to_abs:_I64d
push 0x4d1048
call fcn.00453910
mov eax, dword [esp + 0x6c]
add esp, 0x38
inc esi
cmp esi, eax
jbe 0x489730
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret 0x10
mov dword [esi + 8], 0x1000400e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret 0x10