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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x1060
call fcn.1400de970
sub rsp, rax
cmp byte [0x14012d1ac], 0
mov rbx, rdx
mov rsi, rcx
jne 0x140018ac7
cmp dword [0x14012aff8], 0
mov qword [rsp + 0x1070], rbp
mov qword [rsp + 0x1078], rdi
jne 0x14001888b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012aff8], eax
inc dword [0x14012d1a8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x14012d1a8]
xor ebp, ebp
mov edx, dword [0x140124b84]
mov ecx, eax
sub ecx, dword [0x14012aff8]
cmp r9d, dword [0x140124b88]
mov dword [0x14012aff4], eax
jbe 0x1400188c4
lea edi, [rbp + 1]
cmp ecx, edx
jb 0x1400188c6
mov edi, ebp
test edi, edi
je 0x140018998
mov dword [rsp + 0x20], ecx
lea r8, [0x140106180]
lea rcx, [rsp + 0x60]
mov edx, 0x800
call fcn.1400a1160
movzx r9d, word [0x14012ae64]
mov r8d, ebp
cmp bp, r9w
jae 0x140018945
mov rdx, rbp
nop dword [rax]
mov rax, qword [0x14012afe0]
mov rcx, qword [rdx + rax]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140018935
nop dword [rax]
nop dword [rax + rax]
mov byte [rax + 0x2f], bpl
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140018920
movzx r9d, word [0x14012ae64]
inc r8d
movzx eax, r9w
add rdx, 8
cmp r8d, eax
jl 0x140018900
xor r8d, r8d
mov byte [0x14012d1ac], 1
xorps xmm3, xmm3
mov dword [0x1401241d0], ebp
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
lea edx, [r8 + 4]
call fcn.1400a7cd0
cmp eax, 7
jne 0x14001897f
lea edx, [rax - 3]
lea rcx, [0x14012c670]
call fcn.140047480
mov eax, dword [0x14012aff4]
mov dword [0x1401241d0], 1
mov byte [0x14012d1ac], bpl
jmp 0x14001899c
cmp ecx, edx
jbe 0x1400189b0
mov dword [0x14012d1a8], ebp
mov dword [0x14012aff8], eax
test edi, edi
jne 0x140018ab7
movzx eax, byte [rsi + 0xf]
mov byte [0x14012cdce], al
inc byte [rbx + 0x2a]
mov rcx, qword [0x140126aa8]
cmp rcx, qword [0x140126ab0]
mov rax, qword [rsi + 0x20]
mov rdi, qword [0x14012cd38]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1400189f6
call fcn.140007a08
mov rcx, qword [0x140126aa8]
cmp rcx, qword [0x140126aa0]
jb 0x140018a10
mov rax, qword [0x14012cd28]
mov qword [rcx], rax
mov rcx, qword [0x140126aa8]
add rcx, 0x18
mov byte [rsp + 0x38], bpl
mov qword [0x140126aa8], rcx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov qword [rcx], rbp
mov qword [rcx + 8], rdi
mov dword [rcx + 0x10], ebp
mov rcx, qword [rbx]
mov rdx, rcx
call fcn.1400909d0
mov rcx, qword [0x140126aa8]
sub rcx, 0x18
cmp rcx, qword [0x140126aa0]
mov qword [0x140126aa8], rcx
jb 0x140018a76
mov rcx, qword [rcx]
mov qword [0x140126ac8], rcx
mov qword [0x14012cd28], rcx
dec byte [rbx + 0x2a]
test eax, eax
jne 0x140018a83
mov byte [rbx + 0x2f], bpl
jmp 0x140018ab7
cmp byte [rbx + 0x2f], bpl
je 0x140018ab7
mov byte [rbx + 0x2f], bpl
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x20]
cmp eax, 0x3e8
ja 0x140018ab7
movzx r8d, word [rsi + 4]
xor r9d, r9d
mov rcx, qword [0x14012ab78]
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbp, qword [rsp + 0x1070]
mov rdi, qword [rsp + 0x1078]
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1060
pop rsi
ret