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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479ace
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41bbd0]
call fcn.004218fc
mov esi, eax
mov eax, dword [0x480460]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x480460]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dl, 7
mov eax, esi
call fcn.00422e74
mov edx, dword [0x480460]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [0x480475], 0
je 0x4797db
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x480478]
cmp eax, 0x280
jbe 0x479765
mov eax, 5
call fcn.00402d14
inc eax
lea edx, [ebp - 0x30]
call fcn.00408088
mov ecx, dword [ebp - 0x30]
mov eax, 0x48175c
mov edx, 0x479ae4
call fcn.004043cc
mov eax, 5
call fcn.00402d14
inc eax
lea edx, [ebp - 0x34]
call fcn.00408088
mov ecx, dword [ebp - 0x34]
mov eax, 0x481760
mov edx, 0x479af4
call fcn.004043cc
call sub.kernel32.dll_GetTickCount_1
mov dword [0x480478], eax
mov eax, dword [0x48175c]
mov edx, 0x479b04
call fcn.004044cc
je 0x4797a0
mov edx, dword [0x48175c]
mov eax, dword [0x48045c]
call fcn.00419cd8
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0xc]
push eax
mov eax, esi
call fcn.00421ec4
xor ecx, ecx
xor edx, edx
call fcn.0041d640
mov eax, dword [0x481760]
mov edx, 0x479b14
call fcn.004044cc
je 0x4797db
mov edx, dword [0x481760]
mov eax, dword [0x48045c]
call fcn.00419cd8
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0xc]
push eax
mov eax, esi
call fcn.00421ec4
xor ecx, ecx
xor edx, edx
call fcn.0041d640
cmp byte [0x480476], 0
je 0x4799a0
mov dword [ebp - 0x24], 0x96
mov ebx, 0x480484
fld qword [ebx]
fcomp dword [0x479b1c]
fnstsw ax
sahf
jne 0x479855
mov eax, 0xb4
call fcn.00402d14
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebx]
wait
mov eax, 0x118
call fcn.00402d14
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebx + 8]
wait
mov eax, 0xc
call fcn.00402d14
mov dword [ebx - 8], eax
mov eax, 0x32
call fcn.00402d14
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fdiv dword [0x479b20]
fsub dword [0x479b24]
fstp qword [ebx + 0x10]
wait
cmp dword [ebx - 8], 0xb
jl 0x479860
xor eax, eax
mov dword [ebx - 8], eax
fld qword [ebx + 8]
fcomp dword [0x479b28]
fnstsw ax
sahf
jb 0x4798ba
mov eax, 0xb4
call fcn.00402d14
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebx]
wait
mov eax, 0x14
call fcn.00402d14
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebx + 8]
wait
xor eax, eax
mov dword [ebx - 8], eax
mov eax, 0x32
call fcn.00402d14
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fdiv dword [0x479b20]
fsub dword [0x479b24]
fstp qword [ebx + 0x10]
wait
fld qword [ebx]
fcomp dword [0x479b20]
fnstsw ax
sahf
jae 0x4798d9
cmp dword [ebx - 8], 0
jne 0x4798d9
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x4075e000
fld qword [ebx]
fcomp dword [0x479b2c]
fnstsw ax
sahf
jbe 0x4798f8
cmp dword [ebx - 8], 0
jne 0x4798f8
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x4075e000
fld qword [ebx + 8]
fcomp dword [0x479b30]
fnstsw ax
sahf
jbe 0x479918
cmp dword [ebx - 8], 0
jne 0x479918
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x4075e000
mov edi, dword [ebx - 8]
inc edi
cmp edi, 6
jle 0x47992a
mov eax, 0xd
sub eax, edi
mov edi, eax
lea edx, [ebp - 0x3c]
mov eax, edi
call fcn.00408088
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
mov edx, 0x479b3c
call fcn.004043cc
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x48045c]
call fcn.00419cd8
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0xc]
push eax
mov eax, esi
call fcn.00421ec4
push eax
fld qword [ebx + 8]
call fcn.00402ab0
push eax
fld qword [ebx]
call fcn.00402ab0
mov edx, eax
pop ecx
pop eax
call fcn.0041d640
inc dword [ebx - 8]
fld qword [ebx + 8]
fadd dword [0x479b44]
fstp qword [ebx + 8]
wait
fld qword [ebx]
fadd qword [ebx + 0x10]
fstp qword [ebx]
wait
add ebx, 0x20
dec dword [ebp - 0x24]
jne 0x4797f4
mov eax, esi
call fcn.00421fb0
cmp al, 7
je 0x4799b4
mov dl, 7
mov eax, esi
call fcn.00422e74
mov eax, esi
call fcn.00421f30
test al, al
je 0x4799c8
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
lea ecx, [ebp - 0xc]
mov eax, dword [0x48045c]
mov edx, dword [eax + 0x44]
mov eax, dword [0x48045c]
mov eax, dword [eax + 0x40]
call fcn.004129a0
lea ecx, [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.004129a0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov al, byte [0x480474]
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], 1
push 0
call sub.user32.dll_GetDC
mov edi, eax
push edi
call sub.gdi32.dll_CreateCompatibleDC
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x64]
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x28], eax
push 2
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov eax, dword [0x48045c]
call fcn.00438aa4
push eax
call sub.user32.dll_UpdateLayeredWindow
test eax, eax
jne 0x479a6a
mov eax, 0x479b50
call fcn.00427c58
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.gdi32.dll_SelectObject
push ebx
call sub.gdi32.dll_DeleteDC
push edi
push 0
call sub.user32.dll_ReleaseDC
mov eax, esi
call fcn.00403370
cmp byte [0x480476], 0
jne 0x479aab
cmp byte [0x480475], 0
jne 0x479aab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
xor edx, edx
call fcn.00428c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479ad5
lea eax, [ebp - 0x3c]
call fcn.004040c0
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004040e4
ret