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

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov word [rsp + 0x10], dx
mov byte [rsp + 8], cl
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x40]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, byte [rsp + 0xc0]
movzx eax, byte [rsp + 0xd0]
movzx ecx, byte [rsp + 0xd8]
or eax, ecx
mov byte [rsp + 0x40], al
movzx ecx, byte [rsp + 0xc0]
call fcn.140028280
mov byte [rsp + 0x41], al
mov dword [rsp + 0x98], 0
jmp 0x14003af48
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x98], eax
jge 0x14003b13e
cmp dword [0x140322308], 0
jne 0x14003aff2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x94], eax
mov eax, dword [0x140322198]
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
mov rcx, qword [0x14031a1e8]
cmp eax, dword [rcx + 0x88]
jbe 0x14003aff2
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14003afd8
mov dword [0x140319840], 0
mov edx, 1
mov ecx, 0xffffffff
call fcn.1400070b0
mov dword [0x140319840], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x94]
mov dword [0x140322198], eax
movzx eax, byte [rsp + 0xf0]
test eax, eax
jne 0x14003b093
mov rax, qword [0x14031a1e8]
movzx eax, byte [rax + 0xc5]
test eax, eax
je 0x14003b034
mov rax, qword [0x14031a1e8]
movzx eax, byte [rax + 0xc5]
mov ecx, 0xffc3d44d
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xa0], eax
jmp 0x14003b03f
mov dword [rsp + 0xa0], 0xffc3d44f
cmp dword [0x140322308], 0
je 0x14003b058
movzx eax, byte [0x1403223cc]
mov byte [rsp + 0xa4], al
jmp 0x14003b066
xor ecx, ecx
call fcn.140037440
mov byte [rsp + 0xa4], al
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8, qword [rsp + 0xf8]
movzx edx, byte [rsp + 0xa4]
movzx ecx, byte [rsp + 0x40]
call fcn.14003d290
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x14003b0f4
cmp qword [rsp + 0xf8], 0
jne 0x14003b0f4
mov rax, qword [0x14031a1e8]
movzx eax, byte [rax + 0xc3]
movzx ecx, byte [rsp + 0x110]
mov byte [rsp + 0x30], cl
mov ecx, dword [rsp + 0xe8]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, dword [rsp + 0x108]
mov edx, dword [rsp + 0x100]
movzx ecx, byte [rsp + 0xc0]
call fcn.140038730
jmp 0x14003b139
mov rax, qword [0x14031a1e8]
movzx eax, byte [rax + 0xc5]
mov ecx, 0xffc3d44d
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 1
mov r9, qword [rsp + 0xf8]
movzx r8d, word [rsp + 0xc8]
movzx edx, byte [rsp + 0xc0]
mov ecx, dword [rsp + 0xe8]
call fcn.1400376b0
jmp 0x14003af38
movzx eax, byte [rsp + 0xf0]
test eax, eax
jne 0x14003b1d7
cmp dword [0x140322308], 0
je 0x14003b167
movzx eax, byte [0x1403223cc]
mov byte [rsp + 0xa5], al
jmp 0x14003b175
xor ecx, ecx
call fcn.140037440
mov byte [rsp + 0xa5], al
movzx eax, byte [rsp + 0xa5]
mov byte [rsp + 0x9c], al
movzx eax, byte [rsp + 0x9c]
movzx ecx, byte [rsp + 0xd8]
not ecx
and eax, ecx
and eax, 0xcc
mov byte [rsp + 0x9d], al
movzx eax, byte [rsp + 0x9d]
test eax, eax
je 0x14003b1d7
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8, qword [rsp + 0xf8]
movzx edx, byte [rsp + 0x9d]
xor ecx, ecx
call fcn.14003d290
mov rcx, rsp
lea rdx, [0x140273a50]
call fcn.140134a00
add rsp, 0xb0
pop rdi
ret