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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x48]
cmp ebx, 0xffffffff
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
je 0x1002bdd5
test ebx, ebx
je 0x1002bdd5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x3c], eax
xor ecx, ecx
push 0
test esi, esi
setne cl
inc ecx
lea edx, [esp + 0x18]
mov esi, ecx
push 0
push edx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jb 0x1002bfbb
mov eax, dword [esp + 0x44]
push ebp
neg eax
mov ebp, dword [esp + 0x4c]
sbb eax, eax
and eax, 8
add eax, 0x40
mov dword [esp + 0x50], eax
jmp 0x1002be1c
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
cmp ebx, 0xa
jbe 0x1002be26
mov ebx, 0xa
push eax
push ebx
lea eax, [esp + 0x20]
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, esi
je 0x1002be56
cmp edi, 0x102
jne 0x1002bf2a
mov esi, dword [esp + 0x44]
cmp ebx, esi
je 0x1002bf2a
jmp 0x1002be5a
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x1002be95
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ebx
push ecx
call edi
test eax, eax
je 0x1002be9b
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebp
push ebp
lea eax, [esp + 0x2c]
push ebx
push eax
call edi
test eax, eax
jne 0x1002be78
jmp 0x1002be9b
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call edi
cmp esi, 0xffffffff
je 0x1002bed9
test esi, esi
je 0x1002bed9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x40]
mov ecx, eax
sub ecx, edi
cmp ecx, esi
jbe 0x1002becf
mov dword [esp + 0x44], 0
jmp 0x1002bed5
sub esi, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1002bf0c
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 2
mov dword [esp + 0x4c], eax
jae 0x1002bf04
push 2
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, esi
jae 0x1002be14
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
je 0x1002bfb9
mov eax, dword [esp + 0x48]
push eax
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 0x1002bfb9
mov eax, dword [0x1004546c]
test eax, eax
jne 0x1002bf75
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
mov dword [0x1004546c], eax
je 0x1002bfa7
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push eax
push eax
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push ecx
call esi
test eax, eax
je 0x1002bfa2
mov eax, dword [0x1004546c]
push 1
push eax
push eax
lea edx, [esp + 0x28]
push 0xffffffffffffffff
push edx
call esi
test eax, eax
jne 0x1002bf8c
mov eax, dword [0x1004546c]
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
add esp, 0x2c
ret 0x14