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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], edi
cmp esi, 0xffffffff
je 0x4d1900
test esi, esi
je 0x4d1900
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4d1903
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 8], eax
test edi, edi
lea ecx, [ebp - 0x10]
push 0
setne bl
push 0
inc ebx
mov eax, ebx
mov dword [ebp + 0x18], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, ebx
cmp eax, ecx
jb 0x4d1aac
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp dword [ebp + 0x10], edx
setne dl
lea edx, [edx*8 + 0x40]
mov dword [ebp - 8], edx
push edx
cmp esi, 0xa
mov eax, esi
mov ebx, 0xa
cmova eax, ebx
push eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x10]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, eax
cmp ebx, dword [ebp + 0x18]
je 0x4d197c
cmp ebx, 0x102
jne 0x4d1a3b
cmp dword [ebp + 0x14], esi
je 0x4d1a3b
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4d19bb
push 1
push edi
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x4d19bb
jmp 0x4d19a0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x4d19a0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call ebx
cmp esi, 0xffffffff
je 0x4d19ea
test esi, esi
je 0x4d19ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp + 8]
cmp ecx, esi
jbe 0x4d19e5
xor esi, esi
jmp 0x4d19e7
sub esi, ecx
mov dword [ebp + 8], eax
cmp dword [ebp - 4], 0
jne 0x4d1a19
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp + 0xc], eax
cmp eax, 2
jae 0x4d1a12
push 2
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp + 0x18]
mov ebx, eax
mov edx, dword [ebp - 8]
cmp ebx, ecx
jae 0x4d1941
cmp dword [ebp - 4], 0
je 0x4d1aaa
push dword [ebp + 0xc]
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 0x4d1aaa
mov eax, dword [0x57c8a0]
test eax, eax
jne 0x4d1a7d
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x57c8a0], eax
test eax, eax
je 0x4d1a98
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
mov eax, dword [0x57c8a0]
jne 0x4d1a83
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14