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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3d
push 0
push 0
dec ecx
jne 0x480268
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004049e0
xor eax, eax
push ebp
push 0x480690
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0047aca0
push 0
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 0x1b4], 9
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0046a98c
mov edx, dword [ebp - 0x1b0]
lea eax, [ebp - 0xc]
call fcn.004045d8
push 0
lea eax, [ebp - 0x1b8]
push eax
mov byte [ebp - 0x1b4], 9
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0046a98c
mov edx, dword [ebp - 0x1b8]
lea eax, [ebp - 0xc]
call fcn.004045d8
push 0
lea eax, [ebp - 0x1bc]
push eax
mov byte [ebp - 0x1b4], 9
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0046a98c
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0xc]
call fcn.004045d8
push 0
lea eax, [ebp - 0x1c0]
push eax
mov byte [ebp - 0x1b4], 9
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0046a98c
mov edx, dword [ebp - 0x1c0]
lea eax, [ebp - 0xc]
call fcn.004045d8
push 0
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 0x1b4], 9
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0046a98c
mov edx, dword [ebp - 0x1c4]
lea eax, [ebp - 0xc]
call fcn.004045d8
push 0
lea eax, [ebp - 0x1c8]
push eax
mov byte [ebp - 0x1b4], 9
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0046a98c
mov edx, dword [ebp - 0x1c8]
lea eax, [ebp - 0xc]
call fcn.004045d8
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4805b5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x48059b
mov eax, dword [0x488364]
mov eax, dword [eax]
call fcn.00477edc
test al, al
je 0x48059b
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.004788b4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x48059b
lea ecx, [ebp - 0x1ac]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00478910
test eax, eax
jl 0x48059b
cmp dword [ebp - 0x168], 5
jl 0x48043a
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x164]
cmp eax, 0x2bf20
jbe 0x480567
mov dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x1cc]
lea edx, [ebp - 0x117]
call fcn.0040479c
mov eax, dword [ebp - 0x1cc]
mov edx, dword [ebp - 0x14]
call fcn.0040493c
jne 0x4804b2
mov dword [ebp - 0x2c], 0xfffffffd
lea eax, [ebp - 0x1d0]
lea edx, [ebp - 0x102]
call fcn.0040479c
mov eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x18]
call fcn.0040493c
jne 0x4804b2
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0xaa]
call fcn.0040479c
mov eax, dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x28]
call fcn.0040493c
jne 0x4804b2
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 1
je 0x480529
lea eax, [ebp - 0x1d8]
lea edx, [ebp - 0xcc]
call fcn.0040479c
mov eax, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x1c]
call fcn.0040493c
jne 0x480529
mov dword [ebp - 0x2c], 0xfffffffd
lea eax, [ebp - 0x1dc]
lea edx, [ebp - 0xb7]
call fcn.0040479c
mov eax, dword [ebp - 0x1dc]
mov edx, dword [ebp - 0x20]
call fcn.0040493c
jne 0x480529
lea eax, [ebp - 0x1e0]
lea edx, [ebp - 0xaa]
call fcn.0040479c
mov eax, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x28]
call fcn.0040493c
jne 0x480529
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 1
jne 0x48053f
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x155]
call fcn.0040479c
jmp 0x48059b
inc dword [ebp - 0x168]
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x1ac]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00478ba0
jmp 0x48059b
mov dword [ebp - 0x2c], 0xfffffffe
call sub.kernel32.dll_GetTickCount
cmp eax, dword [ebp - 0x164]
jae 0x48059b
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x1ac]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00478ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4805bc
mov eax, dword [0x488364]
mov eax, dword [eax]
call fcn.00478034
ret