Function at 0x4e1390
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 0x4e13c0
test edi, edi
je 0x4e13c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4e13c3
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 0x4e1571
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 0x4e1413
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 0x4e144e
cmp edi, 0x102
jne 0x4e1506
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x4e1506
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e147d
push 1
push esi
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x4e147d
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 0x4e1464
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 0x4e14b3
test edi, edi
je 0x4e14b3
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 0x4e14e2
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 0x4e14db
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 0x4e1410
cmp dword [ebp - 4], 0
je 0x4e156f
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 0x4e156f
mov eax, dword [0x562174]
test eax, eax
jne 0x4e1548
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x562174], eax
test eax, eax
je 0x4e155d
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
mov eax, dword [0x562174]
jne 0x4e1548
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