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

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 4
mov eax, ebp
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
call main
mov dword [ebp + 0x10], eax
push 0
push 4
mov eax, ebp
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0x10000
pop eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.0040341d
push eax
pop eax
mov dword [ebp + 0x1c], eax
push 0
pop eax
and eax, 0xff
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push dword [ebp + 0x28]
pop eax
mov dword [ebp + 0x14], eax
push dword [ebp + 0x24]
pop eax
mov dword [ebp + 0x18], eax
push 0
push 4
mov eax, ebp
add eax, 8
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
pop eax
mov dword [ebp + 8], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
pop eax
push 0
push eax
fild qword [esp]
add esp, 8
pop eax
push 0
push eax
fild qword [esp]
add esp, 4
fdivrp st(1)
fstp dword [esp]
push 0x64
fild dword [esp]
add esp, 4
fld dword [esp]
fmulp st(1)
fstp dword [esp]
fld dword [esp]
sub esp, 0x10
mov dword [esp + 4], eax
fnstcw word [esp]
mov ax, word [esp]
or ah, 0xc
mov word [esp + 2], ax
fldcw word [esp + 2]
mov eax, dword [esp + 4]
add esp, 0x10
fistp dword [esp]
sub esp, 0x10
fldcw word [esp]
add esp, 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push 0x4109fe
call fcn.00408504
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, 0x411fb0
mov eax, dword [eax]
mov ecx, eax
call fcn.0040c679
push eax
push 0
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x40892d
mov eax, 0xffffffff
not eax
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x408975
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x1c]
push 0
pop ebx
pop ecx
add ecx, ebx
xor eax, eax
mov al, byte [ecx]
push eax
push dword [ebp + 0x18]
push 0x410a27
call fcn.00408504
mov eax, dword [ebp + 0x18]
push ecx
push eax
push dword [ebp + 0xc]
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
pop ecx
mov dword [ebp + 0x18], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jae 0x4089b4
mov ecx, 0
mov dword [esp], ecx
pop eax
cmp eax, 0
je 0x4089c6
jmp 0x4089cb
jmp 0x408869
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
pop eax
mov dword [ebp + 4], eax
xor ecx, ecx
lea eax, [ecx + 0x411f9c]
mov ecx, dword [eax]
add ecx, 0x224
push dword [ecx]
call fcn.00409fdf
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 4]
push dword [ebp + 8]
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
push 0x410a57
call fcn.00408504
push dword [ebp + 0x1c]
call fcn.0040337c
push 0
mov eax, 0x411f9c
mov eax, dword [eax]
mov ecx, eax
call fcn.00406aee
push dword [ebp + 0x10]
call fcn.00403b1e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
add esp, 0x1c
ret 8