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

Disassembly:
mov eax, 0x8028
call fcn.004c1c60
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov dword [esp + 0x24], edi
test edi, edi
je 0x4b1e77
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b04f0
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 0x4b1f28
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 0x4b1f28
cmp esi, dword [esp + 0x2c]
jg 0x4b1f28
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 0x4b1f28
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 0x4b1f71
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov ecx, 0x4c40b0
mov eax, 0x4c9918
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4b1f42
cmp byte [ecx + 1], 0
je 0x4b1f54
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne 0x4b2199
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4d995c]
call fcn.004b04f0
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 0x4b2097
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x4b2135
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 0x4b2097
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 0x4b2130
cmp byte [edi], 0
je 0x4b2118
mov eax, dword [0x4d70f4]
mov eax, dword [eax + 0x20]
sub eax, 1
je 0x4b206c
sub eax, 1
je 0x4b2056
sub eax, 2
je 0x4b2044
lea eax, [esp + 0x38]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
jmp 0x4b208a
mov edx, edi
lea ecx, [esp + 0x38]
call fcn.0046cb70
test eax, eax
setne al
jmp 0x4b208f
lea eax, [esp + 0x38]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
add esp, 8
test eax, eax
setne al
jmp 0x4b208f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2071
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x4b2118
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4b213d
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b2192
mov eax, dword [esp + 0x34]
cmp dword [0x4dba60], eax
jne 0x4b20ee
test ebx, ebx
js 0x4b20d7
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 0x4b20f8
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.00401870
mov esi, dword [esp + 0x14]
jmp 0x4b1f96
mov esi, dword [esp + 0x1c]
add esi, ebx
test ebx, ebx
js 0x4b2105
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, eax
cmp esi, 5
jle 0x4b217c
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4b1f96
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c3cb0
call fcn.004b04f0
jmp 0x4b2135
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b2192
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004b04f0
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 [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
mov esi, 1
jmp 0x4b2151
push 0x4c3c29
push 0
push ecx
mov ecx, dword [0x4dbe24]
call fcn.0044d1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8028
ret