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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0xd0], rcx
mov qword [rbp + 0xd8], rdx
mov byte [rbp + 0xe0], r8b
mov dword [rbp + 0xe8], r9d
mov dword [rbp + 0xac], 0xffffffff
nop
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 0x1c], 0
je 0x4aea83
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 0x18], 0
je 0x4aea83
jmp 0x4ae627
call sub.kernel32.dll_GetTickCount_1
add eax, 0x1388
mov dword [rbp + 0x80], eax
call fcn.004ade00
test al, al
jne 0x4ae60d
call sub.kernel32.dll_GetTickCount_1
cmp dword [rbp + 0x80], eax
jb 0x4aea83
mov rax, qword [rbp + 0xd0]
cmp byte [rax + 0x24], 0
jne 0x4ae5fc
mov rax, qword [rbp + 0xd0]
mov byte [rax + 0x24], 1
nop
call sub.kernel32.dll_GetTickCount_1
mov dword [rbp + 0x80], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xd0]
mov rcx, qword [rcx + 0x1c]
mov eax, dword [rax + 0x1c]
cmp eax, dword [rcx + 0x1c]
jle 0x4ae682
mov rax, qword [rbp + 0xd8]
mov eax, dword [rax + 0x1c]
mov dword [rbp + 0x9c], eax
jmp 0x4ae696
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov eax, dword [rax + 0x1c]
mov dword [rbp + 0x9c], eax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040d970
add eax, 1
mov rcx, qword [rbp + 0xd0]
imul eax, dword [rcx + 0x18]
mov dword [rbp + 0x98], eax
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov ecx, dword [rbp + 0x9c]
cmp ecx, dword [rax + 0x1c]
jg 0x4ae6ea
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov ecx, dword [rbp + 0x98]
cmp ecx, dword [rax + 0x18]
jle 0x4ae7ff
mov ecx, dword [rbp + 0x9c]
mov edx, dword [rbp + 0x98]
mov r8b, 7
call fcn.004a9100
mov qword [rbp + 0xa0], rax
call fcn.004aceb0
cmp al, 2
jbe 0x4ae748
mov rax, qword [rbp + 0xd0]
cmp dword [rax + 0x29], 0x20
jne 0x4ae72d
or ecx, 0xffffffff
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
jmp 0x4ae75a
mov ecx, 0xf
call sub.user32.dll_GetSysColor
mov ecx, eax
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
jmp 0x4ae75a
mov ecx, 0xff00ff
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0xa0]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rcx, rax
mov rdx, qword [rbp + 0x88]
call sub.gdi32.dll_SelectObject
mov qword [rbp + 0x90], rax
mov rcx, qword [rbp + 0xa0]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rbx, rax
lea rcx, [rbp + 0x58]
xor rdx, rdx
xor r8, r8
mov r9d, dword [rbp + 0x9c]
mov eax, dword [rbp + 0x98]
mov dword [rsp + 0x20], eax
call fcn.0049d7d0
mov rcx, rbx
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x88]
call sub.user32.dll_FillRect
mov rcx, qword [rbp + 0xa0]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rcx, rax
mov rdx, qword [rbp + 0x90]
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x88]
call sub.gdi32.dll_DeleteObject
jmp 0x4ae811
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov qword [rbp + 0xa0], rax
call fcn.004aceb0
cmp al, 2
ja 0x4ae831
mov rcx, qword [rbp + 0xd8]
or edx, 0xffffffff
mov r8d, 0xff00ff
call fcn.004ac460
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040d970
mov rcx, qword [rbp + 0xd0]
add rcx, 8
mov rdx, qword [0x004997f0]
mov r8d, 1
lea r9, [rax + 1]
call fcn.0040dbd0
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 0x10]
call fcn.0040d970
mov rcx, qword [rbp + 0xd0]
add rcx, 0x10
mov rdx, qword [0x00499840]
mov r8d, 1
lea r9, [rax + 1]
call fcn.0040dbd0
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040d980
mov rcx, qword [rbp + 0xd0]
mov rcx, qword [rcx + 8]
mov rdx, qword [rbp + 0xd8]
mov edx, dword [rdx + 0x1c]
mov dword [rcx + rax*4], edx
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 0x10]
call fcn.0040d980
mov rcx, qword [rbp + 0xd0]
mov rcx, qword [rcx + 0x10]
mov byte [rcx + rax], 1
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
cmp rax, qword [rbp + 0xa0]
je 0x4ae96d
mov rcx, qword [rbp + 0xa0]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rbx, rax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 0x1c]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rcx, rbx
xor rdx, rdx
xor r8, r8
mov r9, qword [rbp + 0xd0]
mov r9, qword [r9 + 0x1c]
mov r9d, dword [r9 + 0x1c]
mov r10, qword [rbp + 0xd0]
mov r10, qword [r10 + 0x1c]
mov r10d, dword [r10 + 0x18]
mov dword [rsp + 0x20], r10d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xcc0020
call sub.gdi32.dll_BitBlt
mov rcx, qword [rbp + 0xa0]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rbx, rax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040d980
mov rsi, rax
mov rcx, qword [rbp + 0xd8]
call fcn.004aa0e0
mov rcx, rax
call fcn.0049ec00
mov rcx, rbx
xor rdx, rdx
mov r8, qword [rbp + 0xd0]
imul esi, dword [r8 + 0x18]
add esi, dword [rbp + 0xe8]
mov r8d, esi
mov r9, qword [rbp + 0xd8]
mov r9d, dword [r9 + 0x1c]
mov r10, qword [rbp + 0xd0]
mov r10d, dword [r10 + 0x18]
mov dword [rsp + 0x20], r10d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xcc0020
call sub.gdi32.dll_BitBlt
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
cmp rax, qword [rbp + 0xa0]
je 0x4aea57
mov rax, qword [rbp + 0xd0]
add rax, 0x1c
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov rax, qword [rax]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x78]
mov qword [rax], 0
mov rcx, qword [rbp + 0x70]
call fcn.00407660
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0xa0]
mov qword [rax + 0x1c], rcx
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040d980
mov dword [rbp + 0xac], eax
nop
mov rax, qword [rbp + 0xd0]
mov byte [rax + 0x24], 0
jmp 0x4aea83
mov eax, dword [rbp + 0xac]
lea rsp, [rbp + 0xb0]
pop rbx
pop rsi
pop rbp
ret