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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov r14, r9
mov r15d, r8d
mov r12, rdx
mov rsi, rcx
mov eax, r8d
sub eax, 0x111
je 0x1801bee77
sub eax, 2
je 0x1801bed64
cmp eax, 0x6d6
jne 0x1801bed3f
lea rbp, [rcx + 0x58]
mov qword [r11 - 0x40], rbp
mov dword [rsp + 0x40], 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x40]
mov r8, rdx
sub r8, rcx
cmp r8, 8
jb 0x1801bed36
sar r8, 3
movzx r9d, byte [rsp + 0x90]
call fcn.1801bef00
mov rax, qword [rsi + 0x40]
mov rcx, qword [rax]
mov ebx, dword [rcx + 0xc]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x1801becee
mov rax, qword [rsi + 0x40]
mov rcx, qword [rax]
mov ebx, dword [rcx + 0xc]
mov edi, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
ja 0x1801becee
mov rax, qword [rsi + 0x40]
mov rcx, qword [rax]
mov edi, dword [rcx + 8]
mov ebx, dword [rcx + 0xc]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, edi
sub ebx, eax
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1801bed36
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801bed36
xor r9d, r9d
mov r8d, ebx
lea edx, [r9 + 0x64]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x1801bed36
mov rax, qword [rsi + 0x40]
mov rbx, qword [rax]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1801bed1d
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801bed1d
mov r9, rbx
xor r8d, r8d
mov edx, 0x111
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsi + 0x40]
mov r8, qword [rsi + 0x48]
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.1801c9a10
add qword [rsi + 0x48], 0xfffffffffffffff8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8d, r15d
mov rdx, r12
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x1801beec4
cmp r14, 0x64
jne 0x1801bee68
lea rbp, [rcx + 0x58]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x40]
mov r8, rdx
sub r8, rcx
cmp r8, 8
jb 0x1801bee5f
sar r8, 3
movzx r9d, byte [rsp + 0x90]
call fcn.1801bef00
mov rax, qword [rsi + 0x40]
mov rcx, qword [rax]
mov ebx, dword [rcx + 0xc]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x1801bede0
mov rax, qword [rsi + 0x40]
mov rcx, qword [rax]
mov ebx, dword [rcx + 0xc]
mov edi, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jbe 0x1801bee28
mov rax, qword [rsi + 0x40]
mov rbx, qword [rax]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1801bee0f
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801bee0f
mov r9, rbx
xor r8d, r8d
mov edx, 0x111
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsi + 0x40]
mov r8, qword [rsi + 0x48]
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.1801c9a10
add qword [rsi + 0x48], 0xfffffffffffffff8
mov rax, qword [rsi + 0x48]
sub rax, qword [rsi + 0x40]
cmp rax, 8
jb 0x1801bee5f
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1801bee5f
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801bee5f
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7e9
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, qword [rsi]
mov rdx, r14
mov rcx, rsi
call qword [r8 + reloc.WS2_32.dll_recv]
jmp 0x1801beec2
mov rbx, qword [rsp + 0xa0]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801beeb5
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1801beeb5
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret