Function at 0x4af2c0
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 0x4af7a3
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 0x18], 0
je 0x4af7a3
jmp 0x4af347
call sub.kernel32.dll_GetTickCount_1
add eax, 0x1388
mov dword [rbp + 0x80], eax
call fcn.004aeb20
test al, al
jne 0x4af32d
call sub.kernel32.dll_GetTickCount_1
cmp dword [rbp + 0x80], eax
jb 0x4af7a3
mov rax, qword [rbp + 0xd0]
cmp byte [rax + 0x24], 0
jne 0x4af31c
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 0x4af3a2
mov rax, qword [rbp + 0xd8]
mov eax, dword [rax + 0x1c]
mov dword [rbp + 0x9c], eax
jmp 0x4af3b6
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.0040dd00
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 0x4af40a
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov ecx, dword [rbp + 0x98]
cmp ecx, dword [rax + 0x18]
jle 0x4af51f
mov ecx, dword [rbp + 0x9c]
mov edx, dword [rbp + 0x98]
mov r8b, 7
call fcn.004a9c20
mov qword [rbp + 0xa0], rax
call fcn.004adbd0
cmp al, 2
jbe 0x4af468
mov rax, qword [rbp + 0xd0]
cmp dword [rax + 0x29], 0x20
jne 0x4af44d
or ecx, 0xffffffff
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
jmp 0x4af47a
mov ecx, 0xf
call sub.user32.dll_GetSysColor
mov ecx, eax
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
jmp 0x4af47a
mov ecx, 0xff00ff
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0xa0]
call fcn.004aac00
mov rcx, rax
call fcn.0049fb80
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.004aac00
mov rcx, rax
call fcn.0049fb80
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.0049e810
mov rcx, rbx
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x88]
call sub.user32.dll_FillRect
mov rcx, qword [rbp + 0xa0]
call fcn.004aac00
mov rcx, rax
call fcn.0049fb80
mov rcx, rax
mov rdx, qword [rbp + 0x90]
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x88]
call sub.gdi32.dll_DeleteObject
jmp 0x4af531
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov qword [rbp + 0xa0], rax
call fcn.004adbd0
cmp al, 2
ja 0x4af551
mov rcx, qword [rbp + 0xd8]
or edx, 0xffffffff
mov r8d, 0xff00ff
call fcn.004acf80
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040dd00
mov rcx, qword [rbp + 0xd0]
add rcx, 8
mov rdx, qword [0x0049a830]
mov r8d, 1
lea r9, [rax + 1]
call fcn.0040df60
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 0x10]
call fcn.0040dd00
mov rcx, qword [rbp + 0xd0]
add rcx, 0x10
mov rdx, qword [0x0049a880]
mov r8d, 1
lea r9, [rax + 1]
call fcn.0040df60
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040dd10
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.0040dd10
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 0x4af68d
mov rcx, qword [rbp + 0xa0]
call fcn.004aac00
mov rcx, rax
call fcn.0049fb80
mov rbx, rax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 0x1c]
call fcn.004aac00
mov rcx, rax
call fcn.0049fb80
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.004aac00
mov rcx, rax
call fcn.0049fb80
mov rbx, rax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.0040dd10
mov rsi, rax
mov rcx, qword [rbp + 0xd8]
call fcn.004aac00
mov rcx, rax
call fcn.0049fb80
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 0x4af777
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.00407680
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.0040dd10
mov dword [rbp + 0xac], eax
nop
mov rax, qword [rbp + 0xd0]
mov byte [rax + 0x24], 0
jmp 0x4af7a3
mov eax, dword [rbp + 0xac]
lea rsp, [rbp + 0xb0]
pop rbx
pop rsi
pop rbp
ret