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

Disassembly:
mov eax, 0x10020
call fcn.004aea90
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x481503
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0047faa0
mov eax, dword [esp + 0x1003c]
mov ecx, 0x1f4
test eax, eax
mov ebx, 1
cmovne ecx, eax
cmp dword [esp + 0x10040], 1
mov dword [esp + 0x18], ecx
mov ecx, 0x32
cmovge ecx, dword [esp + 0x10040]
cmp dword [esp + 0x10034], ebx
mov dword [esp + 0x2c], ecx
cmovge ebx, dword [esp + 0x10034]
test esi, esi
je 0x4815b3
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4815b3
cmp ebx, dword [esp + 0x20]
jg 0x4815b3
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x24]
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4815b3
push 4
push 0x3000
push 0x10000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4815fe
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov ecx, 0x4ca34c
mov eax, 0x4ca8a4
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4815cf
cmp word [ecx + 2], 0
je 0x4815e1
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x48175c
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4dc408]
call fcn.0047faa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
dec ebx
xor eax, eax
mov dword [esp + 0x1c], ebx
mov word [esp + 0x30], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push 0
push ebx
push 0x40c
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x48169c
mov eax, 0x7fff
cmp word [esp + 0x14], ax
ja 0x481704
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push ebx
push dword [esp + 0x2c]
push 0x40d
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x48169c
movzx eax, word [esp + 0x14]
push 0
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4816fd
mov edx, dword [esp + 0x10038]
lea ecx, [esp + 0x30]
call fcn.004807a0
test al, al
jne 0x4816e5
test edi, edi
jne 0x481708
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x481755
cmp dword [esp + 0x18], edi
jl 0x4816ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
sub ecx, eax
cmp ecx, 5
jle 0x48173f
mov ecx, dword [esp + 0x2c]
mov edx, 1
call fcn.004015d0
mov ebx, dword [esp + 0x1c]
jmp 0x481614
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
jmp 0x481704
xor eax, eax
mov word [esp + 0x30], ax
test edi, edi
je 0x481755
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0047faa0
mov esi, eax
push 0x8000
push 0
push ebx
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, 0x10020
ret
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
mov esi, 1
jmp 0x48171c
push 0x4b70dc
push 0
push ecx
mov ecx, dword [0x4de2d4]
call fcn.0042fd40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret