Function at 0x4af260
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 0x4af743
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 0x18], 0
je 0x4af743
jmp 0x4af2e7
call sub.kernel32.dll_GetTickCount_1
add eax, 0x1388
mov dword [rbp + 0x80], eax
call fcn.004aeac0
test al, al
jne 0x4af2cd
call sub.kernel32.dll_GetTickCount_1
cmp dword [rbp + 0x80], eax
jb 0x4af743
mov rax, qword [rbp + 0xd0]
cmp byte [rax + 0x24], 0
jne 0x4af2bc
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 0x4af342
mov rax, qword [rbp + 0xd8]
mov eax, dword [rax + 0x1c]
mov dword [rbp + 0x9c], eax
jmp 0x4af356
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 0x4af3aa
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov ecx, dword [rbp + 0x98]
cmp ecx, dword [rax + 0x18]
jle 0x4af4bf
mov ecx, dword [rbp + 0x9c]
mov edx, dword [rbp + 0x98]
mov r8b, 7
call fcn.004a9c20
mov qword [rbp + 0xa0], rax
call fcn.004adb70
cmp al, 2
jbe 0x4af408
mov rax, qword [rbp + 0xd0]
cmp dword [rax + 0x29], 0x20
jne 0x4af3ed
or ecx, 0xffffffff
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
jmp 0x4af41a
mov ecx, 0xf
call sub.user32.dll_GetSysColor
mov ecx, eax
call sub.gdi32.dll_CreateSolidBrush
mov qword [rbp + 0x88], rax
jmp 0x4af41a
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 0x4af4d1
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x1c]
mov qword [rbp + 0xa0], rax
call fcn.004adb70
cmp al, 2
ja 0x4af4f1
mov rcx, qword [rbp + 0xd8]
or edx, 0xffffffff
mov r8d, 0xff00ff
call fcn.004acf20
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 0x4af62d
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 0x4af717
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 0x4af743
mov eax, dword [rbp + 0xac]
lea rsp, [rbp + 0xb0]
pop rbx
pop rsi
pop rbp
ret