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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 1
je 0x4076f6
xor eax, eax
jmp 0x407903
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x54c
call fcn.00401190
test eax, eax
je 0x407723
mov ecx, dword [ebp - 8]
add ecx, 0x5e4
call fcn.00401d40
jmp 0x4078cc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x568
call fcn.00401190
test eax, eax
je 0x407750
mov ecx, dword [ebp - 8]
add ecx, 0x5e4
call fcn.00401d90
jmp 0x4078cc
mov ecx, dword [ebp - 8]
add ecx, 0x7c
call fcn.00403560
movzx ecx, al
test ecx, ecx
je 0x407805
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x640
call fcn.00401760
test eax, eax
je 0x407805
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x7d0
jae 0x4077c7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 4]
jne 0x4077ba
jmp 0x4077c7
push 0x96
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40778d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0x640
call fcn.00401790
test eax, eax
je 0x4077f8
mov ecx, dword [ebp - 8]
add ecx, 0x5e4
call fcn.00401c10
jmp 0x407800
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4078cc
mov ecx, dword [ebp - 8]
add ecx, 0x7c
call fcn.00403560
movzx eax, al
cmp eax, 1
jle 0x4078c8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0x584
call fcn.00401190
test eax, eax
je 0x407854
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x640
call fcn.00401520
test eax, eax
jne 0x407852
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4078c6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x5a4
call fcn.00401190
test eax, eax
je 0x40788a
mov ecx, dword [ebp - 8]
add ecx, 0x640
call fcn.004015b0
test eax, eax
jne 0x407888
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4078c6
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x5c4
call fcn.00401190
test eax, eax
je 0x4078c2
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x640
call fcn.00401490
test eax, eax
jne 0x4078c0
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4078c6
xor eax, eax
jmp 0x407903
jmp 0x4078cc
xor eax, eax
jmp 0x407903
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 8]
add eax, 0x7c
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x530
call fcn.00402520
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc