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

Disassembly:
mov eax, 0x8020
call fcn.004c78a0
push ebx
push ebp
mov ebp, ecx
mov ebx, edx
push esi
push edi
test ebp, ebp
je 0x49fe63
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0049e6b0
mov eax, dword [esp + 0x803c]
mov edi, 0x1f4
test eax, eax
mov ecx, 0x32
mov esi, 1
cmovne edi, eax
cmp dword [esp + 0x8040], 1
cmovge ecx, dword [esp + 0x8040]
cmp dword [esp + 0x8034], esi
mov dword [esp + 0x1c], ecx
cmovge esi, dword [esp + 0x8034]
test ebx, ebx
je 0x4a0098
lea eax, [esp + 0x28]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4a0098
cmp esi, dword [esp + 0x28]
jg 0x4a0098
push 0
push ebx
mov edx, 0x8000
lea ecx, [esp + 0x2c]
call fcn.0049b9c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a0098
mov eax, dword fs:[0x24]
dec esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push 0
push esi
push 0x403
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x49ff9e
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4a0038
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push esi
push dword [esp + 0x24]
push 0x402
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x49ff9e
movzx eax, word [esp + 0x10]
push 0
inc eax
push eax
lea eax, [esp + 0x38]
push eax
push esi
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4a0033
mov edx, dword [esp + 0x8038]
lea ecx, [esp + 0x30]
call fcn.0049f340
test al, al
jne 0x4a001b
test ebp, ebp
jne 0x4a003c
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a0091
mov eax, dword [esp + 0x2c]
cmp dword [0x4e9a38], eax
jne 0x49fff1
test edi, edi
js 0x49ffda
mov esi, dword [esp + 0x18]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x49fff7
mov ecx, dword [esp + 0x1c]
mov edx, 1
call fcn.00401a30
mov esi, dword [esp + 0x14]
jmp 0x49ff15
mov esi, dword [esp + 0x18]
add esi, edi
test edi, edi
js 0x4a0008
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4a007b
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x49ff15
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
jmp 0x4a0038
mov byte [esp + 0x30], 0
test ebp, ebp
je 0x4a0091
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0049e6b0
mov esi, eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 0x8000
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8020
ret
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
mov esi, 1
jmp 0x4a0050
test ebp, ebp
mov ecx, 0x4d07c0
mov eax, 0x4d6028
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4a00b2
cmp byte [ecx + 1], 0
je 0x4a00c0
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x4a00dd
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e7934]
call fcn.0049e6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8020
ret
push 0x4d0335
push 0
push ecx
mov ecx, dword [0x4e9dfc]
call fcn.00446950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8020
ret