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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 0x14], eax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov dword [rbp - 0x18], eax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x18]
imul eax, dword [rbp - 0x1c]
mov edx, eax
mov eax, dword [rbp - 0x18]
add eax, edx
cdqe
shl rax, 2
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetDC]
call rax
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_CreateCompatibleDC]
call rax
mov qword [rbp - 0x38], rax
mov edx, dword [rbp - 0x1c]
mov eax, dword [rbp - 0x18]
mov rcx, qword [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20
mov r8d, 1
mov ecx, eax
mov rax, qword [sym.imp.GDI32.dll_CreateBitmap]
call rax
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SelectObject]
call rax
mov ecx, dword [rbp - 0x18]
mov rax, qword [rbp - 0x38]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rdx, qword [rbp - 0x30]
mov qword [rsp + 0x28], rdx
mov edx, dword [rbp - 0x1c]
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_BitBlt]
call rax
mov eax, dword [rbp - 0x18]
imul eax, dword [rbp - 0x1c]
lea edx, [rax*4]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x40]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_GetBitmapBits]
call rax
mov dword [rbp - 8], 0
mov byte [rbp - 9], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov edx, dword [rbp - 0x14]
sub eax, edx
cmp eax, 0xea60
seta al
test al, al
je 0x401f8e
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0xffffffff80808081
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 7
cdq
sub ecx, edx
mov edx, ecx
mov ecx, edx
shl ecx, 8
sub ecx, edx
sub eax, ecx
mov edx, eax
mov byte [rbp - 9], dl
mov dword [rbp - 0x10], 0
mov eax, dword [rbp - 0x18]
imul eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x10], eax
jge 0x402067
mov eax, dword [rbp - 0x10]
cdq
idiv dword [rbp - 0x1c]
mov eax, edx
test eax, eax
jne 0x401fe1
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
mov ecx, edx
sar ecx, 5
cdq
sub ecx, edx
mov edx, ecx
imul edx, edx, 0x64
sub eax, edx
mov edx, eax
test edx, edx
jne 0x401fe1
mov eax, 1
jmp 0x401fe6
mov eax, 0
test al, al
je 0x402018
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
mov ecx, edx
sar ecx, 6
cdq
sub ecx, edx
mov edx, ecx
mov dword [rbp - 8], edx
mov edx, dword [rbp - 8]
imul edx, edx, 0x3e8
sub eax, edx
mov dword [rbp - 8], eax
mov eax, dword [rbp - 0x10]
movsxd rdx, eax
mov eax, dword [rbp - 8]
cdqe
add rax, rdx
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rdx, rax
mov eax, dword [rbp - 8]
cdqe
add rax, rdx
movzx eax, byte [rax]
mov edx, dword [rbp - 0x10]
shl edx, 2
movsxd rcx, edx
mov edx, dword [rbp - 8]
movsxd rdx, edx
add rcx, rdx
mov rdx, qword [rbp - 0x28]
add rdx, rcx
xor al, byte [rbp - 9]
mov byte [rdx], al
add dword [rbp - 0x10], 1
jmp 0x401f95
mov eax, dword [rbp - 0x18]
imul eax, dword [rbp - 0x1c]
shl eax, 2
mov ecx, eax
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x40]
mov r8, rdx
mov edx, ecx
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SetBitmapBits]
call rax
mov ecx, dword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rdx, qword [rbp - 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rbp - 0x1c]
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_BitBlt]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_DeleteObject]
call rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_DeleteObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_DeleteObject]
call rax
add dword [rbp - 4], 1
mov edx, dword [rbp - 4]
movsxd rax, edx
imul rax, rax, 0x55555556
shr rax, 0x20
mov rcx, rax
mov eax, edx
sar eax, 0x1f
sub ecx, eax
mov eax, ecx
add eax, eax
add eax, ecx
sub edx, eax
mov eax, edx
mov dword [rbp - 4], eax
jmp 0x401e6a