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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4b8c74
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b9067
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x316]
sub al, 2
jae 0x4b8cbd
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0049aa8c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
add eax, 0x310
call fcn.00409c20
jmp 0x4b8cf1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x30c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x334]
jb 0x4b8ce3
mov eax, dword [ebp - 4]
add eax, 0x310
call fcn.00409840
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x30c], eax
movzx eax, word [ebx]
sub ax, 8
je 0x4b8d3d
dec ax
je 0x4b8d0e
sub ax, 0x12
jne 0x4b8ec0
jmp 0x4b901d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x309], 0
je 0x4b901d
mov eax, dword [ebp - 4]
call fcn.004b74bc
test al, al
je 0x4b901d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004b74e0
jmp 0x4b901d
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.004b8b84
pop ecx
test al, al
je 0x4b8d60
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004b8bc8
pop ecx
jmp 0x4b8eaa
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x316]
sub al, 2
jae 0x4b8e66
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0049aa8c
mov eax, dword [ebp - 0x38]
call fcn.00409d60
test eax, eax
jle 0x4b8e66
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0049aa8c
mov esi, dword [ebp - 0x10]
jmp 0x4b8d9e
dec esi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00423b6c
cmp al, 2
je 0x4b8d9d
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040ac9c
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 4]
call fcn.004a3994
push eax
call sub.user32.dll_SendMessageW
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x14]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xc]
call fcn.0040ac9c
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.0040aacc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0049aadc
mov edi, esi
dec edi
mov edx, edi
mov eax, edi
call fcn.00412a4c
push eax
push 0
push 0x142
mov eax, dword [ebp - 4]
call fcn.004a3994
push eax
call sub.user32.dll_SendMessageW
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0049aa8c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x310
call fcn.00409c20
jmp 0x4b8eaa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00409d60
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x310
mov ecx, 1
call fcn.0040ace8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00409d60
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00423b6c
cmp al, 2
je 0x4b8e44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00409d60
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x310
mov ecx, 1
call fcn.0040ace8
mov word [ebx], 0
mov eax, dword [ebp - 4]
mov si, 0xffac
call fcn.00407e34
jmp 0x4b901d
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.004b8b84
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x316], 2
jae 0x4b8f4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00409d60
cmp eax, dword [ebp - 0x10]
jle 0x4b8f4f
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.0040ac9c
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
movzx edx, word [ebx]
call fcn.0040a8a0
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00409d60
mov ecx, eax
mov edx, dword [ebp - 0x14]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.0040ac9c
push dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040ab54
jmp 0x4b8f6e
lea eax, [ebp - 0x54]
movzx edx, word [ebx]
call fcn.0040a8a0
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x310]
lea eax, [ebp - 0xc]
call fcn.0040aacc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x309], 0
je 0x4b8f90
mov eax, dword [ebp - 4]
call fcn.004b74bc
test al, al
jne 0x4b8f90
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004b74e0
movzx eax, word [ebx]
call fcn.0041c0a8
test al, al
je 0x4b9009
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004a3994
push eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x4b901d
cmp dword [ebp - 0x2c], 0x102
jne 0x4b901d
lea eax, [ebp - 0x5c]
movzx edx, word [ebp - 0x28]
call fcn.0040a8a0
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0xc]
call fcn.0040aacc
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.004b9078
test al, al
je 0x4b901d
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004a3994
push eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PeekMessageW
mov word [ebx], 0
jmp 0x4b901d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b9078
test al, al
je 0x4b901d
mov word [ebx], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b906e
lea eax, [ebp - 0x5c]
mov edx, 6
call fcn.004098a0
lea eax, [ebp - 0x44]
call fcn.00409840
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004098a0
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004098a0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004098a0
ret