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

Disassembly:
mov eax, 0x10020
call fcn.004b79a0
push ebx
push ebp
mov ebp, ecx
mov ebx, edx
push esi
push edi
test ebp, ebp
je 0x4a2133
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a0a20
mov eax, dword [esp + 0x1003c]
mov edi, 0x1f4
test eax, eax
mov ecx, 0x32
mov esi, 1
cmovne edi, eax
cmp dword [esp + 0x10040], 1
cmovge ecx, dword [esp + 0x10040]
cmp dword [esp + 0x10034], esi
mov dword [esp + 0x1c], ecx
cmovge esi, dword [esp + 0x10034]
test ebx, ebx
je 0x4a237b
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 0x4a237b
cmp esi, dword [esp + 0x28]
jg 0x4a237b
push 0
push ebx
mov edx, 0x10000
lea ecx, [esp + 0x2c]
call fcn.0049dc00
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a237b
mov eax, dword fs:[0x24]
dec esi
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x14], esi
mov word [esp + 0x30], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
nop word [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 0x4a227f
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4a231b
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 0x4a227f
movzx eax, word [esp + 0x10]
push 0
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x38]
push eax
push esi
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4a2314
mov edx, dword [esp + 0x10038]
lea ecx, [esp + 0x30]
call fcn.004a1630
test al, al
jne 0x4a22fc
test ebp, ebp
jne 0x4a231f
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a2374
mov eax, dword [esp + 0x2c]
cmp dword [0x4e72e4], eax
jne 0x4a22d2
test edi, edi
js 0x4a22bb
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 0x4a22d8
mov ecx, dword [esp + 0x1c]
mov edx, 1
call fcn.004019f0
mov esi, dword [esp + 0x14]
jmp 0x4a21f0
mov esi, dword [esp + 0x18]
add esi, edi
test edi, edi
js 0x4a22e9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4a235e
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4a21f0
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
call fcn.004a0a20
jmp 0x4a231b
xor eax, eax
mov word [esp + 0x30], ax
test ebp, ebp
je 0x4a2374
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.004a0a20
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, 0x10020
ret
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
mov esi, 1
jmp 0x4a2333
test ebp, ebp
mov ecx, 0x4d00fc
mov eax, 0x4d0634
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4a2397
cmp word [ecx + 2], 0
je 0x4a23a5
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x4a23c2
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e59cc]
call fcn.004a0a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
push 0x4b9c40
push 0
push ecx
mov ecx, dword [0x4e81bc]
call fcn.00447670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret