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

Disassembly:
mov eax, 0x8028
call fcn.004b4520
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov dword [esp + 0x24], edi
test edi, edi
je 0x4a4737
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a2db0
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 0x4a47e8
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 0x4a47e8
cmp esi, dword [esp + 0x2c]
jg 0x4a47e8
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 0x4a47e8
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 0x4a4831
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov ecx, 0x4bb578
mov eax, 0x4bb828
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4a4802
cmp byte [ecx + 1], 0
je 0x4a4814
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x4a4a59
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4ca738]
call fcn.004a2db0
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 0x4a4957
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4a49f5
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 0x4a4957
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 0x4a49f0
cmp byte [edi], 0
je 0x4a49d8
mov eax, dword [0x4c8024]
mov eax, dword [eax + 0x20]
sub eax, 1
je 0x4a492c
sub eax, 1
je 0x4a4916
sub eax, 2
je 0x4a4904
lea eax, [esp + 0x38]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
jmp 0x4a494a
mov edx, edi
lea ecx, [esp + 0x38]
call fcn.0045e500
test eax, eax
setne al
jmp 0x4a494f
lea eax, [esp + 0x38]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
add esp, 8
test eax, eax
setne al
jmp 0x4a494f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4931
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x4a49d8
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4a49fd
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a4a52
mov eax, dword [esp + 0x34]
cmp dword [0x4cc810], eax
jne 0x4a49ae
test ebx, ebx
js 0x4a4997
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 0x4a49b8
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.00401730
mov esi, dword [esp + 0x14]
jmp 0x4a4856
mov esi, dword [esp + 0x1c]
add esi, ebx
test ebx, ebx
js 0x4a49c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4a4a3c
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4a4856
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
jmp 0x4a49f5
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a4a52
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004a2db0
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 [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
mov esi, 1
jmp 0x4a4a11
push 0x4b6ba9
push 0
push ecx
mov ecx, dword [0x4ccbd4]
call fcn.0043e6c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8028
ret