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

Disassembly:
mov eax, 0x10024
call fcn.004cc6a0
mov eax, dword [esp + 0x10030]
mov dword [esp + 0x14], ecx
push ebx
mov ebx, edx
push ebp
mov ebp, dword [esp + 0x10030]
push esi
push edi
mov edi, dword [esp + 0x10044]
test ecx, ecx
je 0x4b6701
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b4bf0
mov eax, dword [esp + 0x10040]
test eax, eax
mov esi, 0x1f4
cmovne esi, eax
cmp edi, 1
mov eax, 0x32
cmovge eax, edi
mov edi, 1
cmp ebp, edi
mov dword [esp + 0x20], eax
cmovge edi, ebp
test ebx, ebx
je 0x4b6792
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 0x4b6792
cmp edi, dword [esp + 0x28]
jg 0x4b6792
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 ebp, eax
test ebp, ebp
je 0x4b6792
push 4
push 0x3000
push 0x10000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4b67e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
mov ecx, 0x4e513c
mov eax, 0x4e5674
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4b67b1
cmp word [ecx + 2], 0
je 0x4b67c3
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x4b6984
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4faa64]
call fcn.004b4bf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10024
ret
lea eax, [edi - 1]
mov dword [esp + 0x18], eax
mov eax, dword fs:[0x24]
mov dword [esp + 0x30], eax
xor eax, eax
mov word [esp + 0x34], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push 0
push dword [esp + 0x28]
push 0x40c
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4b6897
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4b6929
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push dword [esp + 0x20]
push dword [esp + 0x28]
push 0x40d
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4b6897
movzx eax, word [esp + 0x10]
push 0
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4b6922
mov edx, dword [esp + 0x1003c]
lea ecx, [esp + 0x34]
call fcn.004b58e0
test al, al
jne 0x4b690a
test edi, edi
jne 0x4b692d
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b697d
mov eax, dword [esp + 0x30]
cmp dword [0x4fcbf0], eax
jne 0x4b68e4
test esi, esi
js 0x4b68d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
add ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x4b68e8
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.004018d0
jmp 0x4b6806
test esi, esi
js 0x4b68fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
add ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x4b6967
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b6806
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
jmp 0x4b6929
xor eax, eax
mov word [esp + 0x34], ax
test edi, edi
je 0x4b697d
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.004b4bf0
mov esi, eax
push 0x8000
push 0
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebp
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 [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
mov esi, 1
jmp 0x4b6941
push 0x4cec30
push 0
push ecx
mov ecx, dword [0x4fd25c]
call fcn.0044d640
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10024
ret