Function at 0x4b4af0
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 0x4b4b20
test edi, edi
je 0x4b4b20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4b4b23
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 0x4b4cd1
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 0x4b4b73
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 0x4b4bae
cmp edi, 0x102
jne 0x4b4c66
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x4b4c66
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4b4bdd
push 1
push esi
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x4b4bdd
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 0x4b4bc4
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 0x4b4c13
test edi, edi
je 0x4b4c13
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 0x4b4c42
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 0x4b4c3b
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 0x4b4b70
cmp dword [ebp - 4], 0
je 0x4b4ccf
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 0x4b4ccf
mov eax, dword [0x567498]
test eax, eax
jne 0x4b4ca8
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x567498], eax
test eax, eax
je 0x4b4cbd
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
mov eax, dword [0x567498]
jne 0x4b4ca8
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