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

Disassembly:
mov eax, 0x10028
call fcn.004cd440
mov eax, dword [esp + 0x10034]
mov dword [esp + 0x18], ecx
push ebx
mov ebx, edx
push ebp
mov ebp, dword [esp + 0x10034]
push esi
mov esi, dword [esp + 0x10044]
push edi
test ecx, ecx
je 0x4b7101
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b55f0
mov eax, dword [esp + 0x10044]
test eax, eax
mov edi, 0x1f4
cmovne edi, eax
cmp esi, 1
mov eax, 0x32
cmovge eax, esi
mov esi, 1
cmp ebp, esi
mov dword [esp + 0x1c], eax
cmovge esi, ebp
test ebx, ebx
je 0x4b7196
lea eax, [esp + 0x2c]
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 0x4b7196
cmp esi, dword [esp + 0x2c]
jg 0x4b7196
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x30]
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x4b7196
push 4
push 0x3000
push 0x10000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4b71e4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0
mov ecx, 0x4e613c
mov eax, 0x4e6674
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4b71b5
cmp word [ecx + 2], 0
je 0x4b71c7
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x4b739b
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4fb9e4]
call fcn.004b55f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10028
ret
mov eax, dword fs:[0x24]
dec esi
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x14], esi
mov word [esp + 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], eax
nop dword [eax + eax]
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 0x4b729f
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4b733b
mov esi, dword [esp + 0x20]
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 0x4b729f
movzx eax, word [esp + 0x10]
push 0
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4b7334
mov edx, dword [esp + 0x10040]
lea ecx, [esp + 0x38]
call fcn.004b62e0
test al, al
jne 0x4b731c
test ebp, ebp
jne 0x4b733f
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b7394
mov eax, dword [esp + 0x34]
cmp dword [0x4fdb70], eax
jne 0x4b72f2
test edi, edi
js 0x4b72db
mov esi, dword [esp + 0x18]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x4b72fc
mov ecx, dword [esp + 0x1c]
mov edx, 1
call fcn.004018d0
mov esi, dword [esp + 0x14]
jmp 0x4b7210
mov esi, dword [esp + 0x18]
add esi, edi
test edi, edi
js 0x4b7309
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4b737e
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4b7210
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
jmp 0x4b733b
xor eax, eax
mov word [esp + 0x38], ax
test ebp, ebp
je 0x4b7394
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, ebp
push eax
call fcn.004b55f0
mov esi, eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
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, 0x10028
ret
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
mov esi, 1
jmp 0x4b7353
push 0x4cfc30
push 0
push ecx
mov ecx, dword [0x4fe1dc]
call fcn.0044e0b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10028
ret