Function at 0x42c1a0
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 0x42c1d0
test edi, edi
je 0x42c1d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x42c1d3
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 0x42c381
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 0x42c223
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 0x42c25e
cmp edi, 0x102
jne 0x42c316
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x42c316
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42c28d
push 1
push esi
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x42c28d
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 0x42c274
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 0x42c2c3
test edi, edi
je 0x42c2c3
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 0x42c2f2
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 0x42c2eb
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 0x42c220
cmp dword [ebp - 4], 0
je 0x42c37f
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 0x42c37f
mov eax, dword [0x54bec4]
test eax, eax
jne 0x42c358
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x54bec4], eax
test eax, eax
je 0x42c36d
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
mov eax, dword [0x54bec4]
jne 0x42c358
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