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

Disassembly:
mov eax, 0x8028
call fcn.004cd3a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov dword [esp + 0x24], edi
test edi, edi
je 0x4a4087
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a2730
mov eax, dword [esp + 0x8044]
mov ebx, 0x1f4
test eax, eax
mov ecx, 0x32
mov esi, 1
cmovne ebx, eax
cmp dword [esp + 0x8048], 1
cmovge ecx, dword [esp + 0x8048]
cmp dword [esp + 0x803c], esi
mov dword [esp + 0x20], ecx
cmovge esi, dword [esp + 0x803c]
test ebp, ebp
je 0x4a4138
lea eax, [esp + 0x2c]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push ebp
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4a4138
cmp esi, dword [esp + 0x2c]
jg 0x4a4138
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x30]
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a4138
push 4
push 0x3000
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4a4181
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov ecx, 0x4d9c00
mov eax, 0x4d9eb0
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4a4152
cmp byte [ecx + 1], 0
je 0x4a4164
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x4a43a7
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4eb720]
call fcn.004a2730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8028
ret
mov eax, dword fs:[0x24]
dec esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x8040]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push 0
push esi
push 0x403
push ebp
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4a42a5
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4a4343
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push esi
push dword [esp + 0x24]
push 0x402
push ebp
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4a42a5
movzx eax, word [esp + 0x10]
push 0
inc eax
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4a433e
cmp byte [edi], 0
je 0x4a4326
mov eax, dword [0x4e88cc]
mov eax, dword [eax + 0x20]
sub eax, 1
je 0x4a427a
sub eax, 1
je 0x4a4265
sub eax, 2
je 0x4a4253
lea eax, [esp + 0x38]
push edi
push eax
call fcn.004b6442
add esp, 8
jmp 0x4a4298
mov edx, edi
lea ecx, [esp + 0x38]
call fcn.0045e2e0
test eax, eax
setne al
jmp 0x4a429d
lea eax, [esp + 0x38]
push edi
push eax
call fcn.004b886a
add esp, 8
test eax, eax
setne al
jmp 0x4a429d
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4280
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push edi
push eax
call fcn.004bdf03
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x4a4326
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4a434b
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a43a0
mov eax, dword [esp + 0x34]
cmp dword [0x4ed7f8], eax
jne 0x4a42fc
test ebx, ebx
js 0x4a42e5
mov esi, dword [esp + 0x1c]
add esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x4a4306
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.00401730
mov esi, dword [esp + 0x14]
jmp 0x4a41a6
mov esi, dword [esp + 0x1c]
add esi, ebx
test ebx, ebx
js 0x4a4313
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4a438a
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4a41a6
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
call fcn.004a2730
jmp 0x4a4343
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a43a0
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004a2730
mov esi, eax
mov eax, dword [esp + 0x28]
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, 0x8028
ret
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
mov esi, 1
jmp 0x4a435f
push 0x4d5231
push 0
push ecx
mov ecx, dword [0x4edbbc]
call fcn.0043e650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8028
ret