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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, rcx
xor eax, eax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov rax, qword [rcx + 0x178]
mov qword [rsp + 0x30], rax
movzx eax, byte [rcx + 0x19]
test al, al
jne 0x1800cf5aa
xor r13d, r13d
movabs rsi, 0x3ff0000000000000
movsd xmm6, qword [0x1803f6ef0]
nop word [rax + rax]
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
movzx eax, byte [r14 + 0x19]
test al, al
jne 0x1800cf5aa
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x59]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1800cf459
mov eax, dword [rbp - 0x51]
sub eax, 0x5f6
je 0x1800cf197
cmp eax, 2
jne 0x1800cf440
mov rcx, qword [r14 + 0x148]
test rcx, rcx
je 0x1800cf189
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [r14 + 0x38]
call fcn.1800d1bb0
jmp 0x1800cf440
cmp dword [r14 + 0x10c], 1
je 0x1800cf440
lea rcx, [r14 + 0x38]
call fcn.1800d1bb0
mov rdi, r13
mov qword [rsp + 0x38], r13
mov rsi, r13
mov qword [rbp - 0x79], r13
lea rbx, [r14 + 0x1b8]
mov qword [rbp - 0x71], rbx
test rbx, rbx
je 0x1800cf1dc
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800cf1dc
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r15, qword [r14 + 0x1a8]
test r15, r15
je 0x1800cf1f8
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rdi, r15
mov qword [rsp + 0x38], r15
mov r15, qword [r14 + 0x1b0]
test r15, r15
je 0x1800cf213
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rsi, r15
mov qword [rbp - 0x79], r15
test rbx, rbx
je 0x1800cf22a
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800cf226
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x71], r13
mov dword [r14 + 0x10c], 2
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.1800d1030
test al, al
je 0x1800cf3b7
mov qword [rbp - 0x69], rbx
test rbx, rbx
je 0x1800cf263
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800cf263
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r15, qword [r14 + 0x1a8]
test r15, r15
je 0x1800cf39e
test rdi, rdi
je 0x1800cf39e
mov rax, qword [rdi]
lea rdx, [rbp - 1]
mov rcx, rdi
call qword [rax + 0xc0]
mov r12, rax
mov r8, qword [r15]
lea rdx, [rbp - 0x21]
mov rcx, r15
call qword [r8 + 0xc0]
nop
mov rcx, r12
cmp qword [r12 + 0x18], 8
jb 0x1800cf2b0
mov rcx, qword [r12]
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x1800cf2bd
mov r8, qword [rax]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [r12 + 0x10]
jne 0x1800cf2e9
test rdx, rdx
je 0x1800cf2e4
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800cf2e9
add rcx, 2
sub rdx, 1
jne 0x1800cf2d0
mov r15b, 1
jmp 0x1800cf2ec
xor r15b, r15b
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x1800cf32c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800cf327
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800cf5dc
call fcn.180393fb0
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r13w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1800cf37d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800cf378
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800cf5e3
call fcn.180393fb0
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r13w
mov eax, r13d
test r15b, r15b
setne al
mov dword [r14 + 0x10c], eax
test rbx, rbx
je 0x1800cf406
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800cf3b1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x69], r13
jmp 0x1800cf406
mov qword [rbp - 0x61], rbx
test rbx, rbx
je 0x1800cf3cf
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800cf3cf
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov dword [r14 + 0x10c], r13d
mov rcx, qword [r14 + 0x1a8]
test rcx, rcx
je 0x1800cf3ef
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [r14 + 0x1a8], r13
test rbx, rbx
je 0x1800cf406
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800cf402
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x61], r13
mov rcx, qword [r14 + 0x118]
test rcx, rcx
je 0x1800cf419
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test rsi, rsi
je 0x1800cf428
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
nop
test rdi, rdi
je 0x1800cf436
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
movabs rsi, 0x3ff0000000000000
lea rcx, [rbp - 0x59]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x59]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1800cf59d
cmp dword [r14 + 0x10c], 1
jne 0x1800cf597
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea rbx, [r14 + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 8]
mov ecx, eax
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
mov ecx, dword [rbx + 0xc]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm1, xmm0
movsd qword [rbx + 0x10], xmm1
comisd xmm1, xmm6
jb 0x1800cf4c6
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800cf4c6
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x10]
test al, al
je 0x1800cf4c6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rbx]
movsd xmm1, qword [rbx + 0x10]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800cf4f2
mov eax, edi
sub eax, dword [rbx + 0x38]
cmp eax, dword [rbx + 0x20]
jb 0x1800cf4f2
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov dword [rbx + 0x38], edi
movsd xmm0, qword [rbx + 0x10]
ucomisd xmm0, xmm6
jp 0x1800cf51e
jne 0x1800cf51e
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800cf515
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x10]
test al, al
je 0x1800cf51e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
movzx eax, byte [r14 + 0x1d8]
test al, al
je 0x1800cf59d
mov rcx, qword [r14 + 0x148]
test rcx, rcx
je 0x1800cf53c
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r14
call fcn.1800cf5f0
test al, al
jne 0x1800cf583
mov rcx, qword [r14 + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x88]
test al, al
je 0x1800cf57a
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5f7
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, r14
call fcn.1800cf5f0
test al, al
jne 0x1800cf583
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [r14 + 0x148]
test rcx, rcx
je 0x1800cf59d
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1800cf59d
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
movzx eax, byte [r14 + 0x19]
test al, al
je 0x1800cf110
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3