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

Disassembly:
mov eax, 0x10024
call fcn.004bdab0
push ebx
push ebp
mov ebp, ecx
mov ebx, edx
push esi
push edi
test ebp, ebp
je 0x4a7a73
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a6070
mov eax, dword [esp + 0x10040]
mov edi, 0x1f4
test eax, eax
mov ecx, 0x32
mov esi, 1
cmovne edi, eax
cmp dword [esp + 0x10044], 1
cmovge ecx, dword [esp + 0x10044]
cmp dword [esp + 0x10038], esi
mov dword [esp + 0x20], ecx
cmovge esi, dword [esp + 0x10038]
test ebx, ebx
je 0x4a7b24
lea eax, [esp + 0x28]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4a7b24
cmp esi, dword [esp + 0x28]
jg 0x4a7b24
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x2c]
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a7b24
push 4
push 0x3000
push 0x10000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4a7b6f
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov ecx, 0x4d4ebc
mov eax, 0x4d53f4
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4a7b40
cmp word [ecx + 2], 0
je 0x4a7b52
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x4a7d1b
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e97d8]
call fcn.004a6070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10024
ret
mov eax, dword fs:[0x24]
dec esi
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x14], esi
mov word [esp + 0x34], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
nop
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push 0
push esi
push 0x40c
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4a7c1f
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4a7cbb
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push esi
push dword [esp + 0x24]
push 0x40d
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4a7c1f
movzx eax, word [esp + 0x10]
push 0
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4a7cb4
mov edx, dword [esp + 0x1003c]
lea ecx, [esp + 0x34]
call fcn.004a6d40
test al, al
jne 0x4a7c9c
test ebp, ebp
jne 0x4a7cbf
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a7d14
mov eax, dword [esp + 0x30]
cmp dword [0x4eb0cc], eax
jne 0x4a7c72
test edi, edi
js 0x4a7c5b
mov esi, dword [esp + 0x1c]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x4a7c7c
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.00401700
mov esi, dword [esp + 0x14]
jmp 0x4a7b90
mov esi, dword [esp + 0x1c]
add esi, edi
test edi, edi
js 0x4a7c89
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4a7cfe
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4a7b90
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
jmp 0x4a7cbb
xor eax, eax
mov word [esp + 0x34], ax
test ebp, ebp
je 0x4a7d14
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x40]
mov ecx, ebp
push eax
call fcn.004a6070
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
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, 0x10024
ret
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
mov esi, 1
jmp 0x4a7cd3
push 0x4bfba0
push 0
push ecx
mov ecx, dword [0x4ebfa4]
call fcn.0043e4d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10024
ret