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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x48]
cmp ebx, 0xffffffff
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
je 0x68c665
test ebx, ebx
je 0x68c665
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x3c], eax
xor ecx, ecx
push 0
test esi, esi
setne cl
inc ecx
lea edx, [esp + 0x18]
mov esi, ecx
push 0
push edx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jb 0x68c84b
mov eax, dword [esp + 0x44]
push ebp
neg eax
mov ebp, dword [esp + 0x4c]
sbb eax, eax
and eax, 8
add eax, 0x40
mov dword [esp + 0x50], eax
jmp 0x68c6ac
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
cmp ebx, 0xa
jbe 0x68c6b6
mov ebx, 0xa
push eax
push ebx
lea eax, [esp + 0x20]
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, esi
je 0x68c6e6
cmp edi, 0x102
jne 0x68c7ba
mov esi, dword [esp + 0x44]
cmp ebx, esi
je 0x68c7ba
jmp 0x68c6ea
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x68c725
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ebx
push ecx
call edi
test eax, eax
je 0x68c72b
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebp
push ebp
lea eax, [esp + 0x2c]
push ebx
push eax
call edi
test eax, eax
jne 0x68c708
jmp 0x68c72b
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call edi
cmp esi, 0xffffffff
je 0x68c769
test esi, esi
je 0x68c769
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x40]
mov ecx, eax
sub ecx, edi
cmp ecx, esi
jbe 0x68c75f
mov dword [esp + 0x44], 0
jmp 0x68c765
sub esi, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x68c79c
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 2
mov dword [esp + 0x4c], eax
jae 0x68c794
push 2
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, esi
jae 0x68c6a4
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
je 0x68c849
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 8
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 8
je 0x68c849
mov eax, dword [0xcfcae8]
test eax, eax
jne 0x68c805
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
mov dword [0xcfcae8], eax
je 0x68c837
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push eax
push eax
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push ecx
call esi
test eax, eax
je 0x68c832
mov eax, dword [0xcfcae8]
push 1
push eax
push eax
lea edx, [esp + 0x28]
push 0xffffffffffffffff
push edx
call esi
test eax, eax
jne 0x68c81c
mov eax, dword [0xcfcae8]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0x14