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

Disassembly:
mov eax, 0x8028
call fcn.004db810
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov dword [esp + 0x24], edi
test edi, edi
je 0x4b1b07
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b01a0
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 0x4b1bb8
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 0x4b1bb8
cmp esi, dword [esp + 0x2c]
jg 0x4b1bb8
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 0x4b1bb8
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 0x4b1c01
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov ecx, 0x4e37f8
mov eax, 0x4e9060
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4b1bd2
cmp byte [ecx + 1], 0
je 0x4b1be4
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x4b1e27
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4fb94c]
call fcn.004b01a0
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 0x4b1d25
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4b1dc3
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 0x4b1d25
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 0x4b1dbe
cmp byte [edi], 0
je 0x4b1da6
mov eax, dword [0x4f898c]
mov eax, dword [eax + 0x20]
sub eax, 1
je 0x4b1cfa
sub eax, 1
je 0x4b1ce5
sub eax, 2
je 0x4b1cd3
lea eax, [esp + 0x38]
push edi
push eax
call fcn.004c4262
add esp, 8
jmp 0x4b1d18
mov edx, edi
lea ecx, [esp + 0x38]
call fcn.0046cc90
test eax, eax
setne al
jmp 0x4b1d1d
lea eax, [esp + 0x38]
push edi
push eax
call fcn.004cac80
add esp, 8
test eax, eax
setne al
jmp 0x4b1d1d
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1d00
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push edi
push eax
call fcn.004cc747
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x4b1da6
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4b1dcb
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b1e20
mov eax, dword [esp + 0x34]
cmp dword [0x4fda50], eax
jne 0x4b1d7c
test ebx, ebx
js 0x4b1d65
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 0x4b1d86
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.004018a0
mov esi, dword [esp + 0x14]
jmp 0x4b1c26
mov esi, dword [esp + 0x1c]
add esi, ebx
test ebx, ebx
js 0x4b1d93
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4b1e0a
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4b1c26
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
call fcn.004b01a0
jmp 0x4b1dc3
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b1e20
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004b01a0
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 [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
mov esi, 1
jmp 0x4b1ddf
push 0x4e3371
push 0
push ecx
mov ecx, dword [0x4fde14]
call fcn.0044d4a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8028
ret