Function at 0x4e26e0
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 0x4e2710
test edi, edi
je 0x4e2710
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4e2713
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 0x4e28c1
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 0x4e2763
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 0x4e279e
cmp edi, 0x102
jne 0x4e2856
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x4e2856
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e27cd
push 1
push esi
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x4e27cd
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 0x4e27b4
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 0x4e2803
test edi, edi
je 0x4e2803
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 0x4e2832
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 0x4e282b
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 0x4e2760
cmp dword [ebp - 4], 0
je 0x4e28bf
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 0x4e28bf
mov eax, dword [0x563174]
test eax, eax
jne 0x4e2898
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x563174], eax
test eax, eax
je 0x4e28ad
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
mov eax, dword [0x563174]
jne 0x4e2898
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