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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.00405aa4
xor eax, eax
push ebp
push 0x4767f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
or eax, 0xff000000
push eax
call fcn.0047302c
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
or eax, 0xff000000
push eax
call fcn.0047302c
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0047520c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405864
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x18]
cmp eax, 0x96
jbe 0x4764bc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x1c]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 3
jl 0x4764bc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
cmp byte [ebp + 0x18], 0
je 0x476523
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00475274
fild dword [ebp - 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.00475274
fild dword [ebp - 0x20]
add esp, 0xfffffffc
fstp dword [esp]
wait
push 2
mov cl, 1
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.00476af4
cmp byte [ebp + 8], 0
je 0x47668f
cmp byte [ebp + 0x10], 0
je 0x476645
or ecx, 0xffffffff
mov edx, 0xff000000
mov eax, dword [ebp - 0x14]
call fcn.0047552c
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp + 0x1c]
dec eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp + 0x1c]
inc eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
jmp 0x4767e3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
jmp 0x4767e3
cmp byte [ebp + 0x10], 0
je 0x4767a1
or ecx, 0xffffffff
mov edx, 0xff000000
mov eax, dword [ebp - 0x14]
call fcn.0047552c
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp + 0x1c]
dec eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp + 0x1c]
inc eax
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
jmp 0x4767e3
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
fild dword [ebp - 0xc]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp + 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00405974
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004753d8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0047552c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476800
lea eax, [ebp - 8]
call fcn.00405800
ret