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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
cmp edi, 0xffffffff
je 0x42c270
test edi, edi
je 0x42c270
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x42c273
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp + 0x18], eax
push 0
test esi, esi
lea eax, [ebp - 0x14]
push 0
setne bl
inc ebx
push eax
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jb 0x42c421
mov esi, dword [ebp + 0x14]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
mov edx, 0xa
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
setne cl
lea ecx, [ecx*8 + 0x40]
mov dword [ebp - 0xc], ecx
jmp 0x42c2c3
mov edi, dword [ebp + 0xc]
push ecx
cmp edi, 0xa
mov eax, edi
cmova eax, edx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, dword [ebp + 8]
je 0x42c2fe
cmp edi, 0x102
jne 0x42c3b6
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x42c3b6
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42c32d
push 1
push esi
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x42c32d
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push esi
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
jne 0x42c314
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call ebx
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x42c363
test edi, edi
je 0x42c363
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, edi
sub edx, dword [ebp + 0x18]
mov dword [ebp + 0x18], eax
sub ecx, edx
xor eax, eax
cmp edx, edi
cmovbe eax, ecx
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], 0
jne 0x42c392
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp + 0x14], eax
cmp eax, 2
jae 0x42c38b
push 2
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov edx, 0xa
cmp edi, dword [ebp + 8]
jae 0x42c2c0
cmp dword [ebp - 4], 0
je 0x42c41f
push dword [ebp + 0x14]
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 0x42c41f
mov eax, dword [0x54cec4]
test eax, eax
jne 0x42c3f8
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x54cec4], eax
test eax, eax
je 0x42c40d
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
mov eax, dword [0x54cec4]
jne 0x42c3f8
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
mov esp, ebp
pop ebp
ret 0x14