Function at 0x14004db60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [r11 + 8], rbx
xor r9d, r9d
mov qword [r11 + 0x10], rsi
xor r8d, r8d
xor esi, esi
xor edx, edx
cmp qword [0x140074138], rdx
mov qword [r11 - 0x78], rsi
lea ecx, [rsi + 2]
jne 0x14004dcc5
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea ecx, [rsi + 4]
xor edx, edx
call qword [sym.imp.USER32.dll_mouse_event]
mov edx, dword [0x140074f08]
mov ecx, dword [0x140074fac]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x1400740f8]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 9]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp + 7]
cmp rax, rbx
jl 0x14004dbf0
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov edx, dword [0x140074e4c]
mov ecx, dword [0x140074ec4]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x1400740f8]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 7]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp - 9]
cmp rax, rbx
jl 0x14004dc70
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
jmp 0x14004dfe2
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov edx, dword [0x140074f44]
mov ecx, dword [0x140074f88]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x1400740f8]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 7]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp - 9]
cmp rax, rbx
jl 0x14004dd20
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
movsxd rbx, dword [0x1400740f8]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax + rax]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 7]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp - 9]
cmp rax, rbx
jl 0x14004dd90
xor r9d, r9d
mov qword [rsp + 0xb0], rdi
xor r8d, r8d
xor edx, edx
mov cl, 8
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 8
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
cmp qword [0x140074140], 0xf
lea r15, [0x140074128]
jbe 0x14004ddfd
mov rdi, qword [0x140074128]
mov rcx, rdi
mov rdx, rdi
jmp 0x14004de06
mov rdi, r15
mov rcx, r15
mov rdx, r15
mov r14, qword [0x140074138]
add r14, rcx
cmp rdx, r14
je 0x14004deb5
nop dword [rax]
movsx eax, byte [rdi]
lea rdx, [rbp + 0xf]
mov r8d, 0x28
mov dword [rbp + 0xf], 1
mov word [rbp + 0x17], si
mov word [rbp + 0x19], ax
mov qword [rbp + 0x1b], 4
lea ecx, [r8 - 0x27]
mov qword [rbp + 0x27], rsi
call qword [sym.imp.USER32.dll_SendInput]
or dword [rbp + 0x1b], 2
lea rdx, [rbp + 0xf]
mov r8d, 0x28
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
movsxd rbx, dword [0x1400740e0]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 7]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp - 9]
cmp rax, rbx
jl 0x14004de85
inc rdi
cmp rdi, r14
jne 0x14004de20
mov edx, dword [0x140074f08]
mov ecx, dword [0x140074fac]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x1400740f8]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0xb0]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 7]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp - 9]
cmp rax, rbx
jl 0x14004def2
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov edx, dword [0x140074e4c]
mov ecx, dword [0x140074ec4]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x1400740f8]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 7]
sub rax, qword [rbp - 1]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp - 9]
cmp rax, rbx
jl 0x14004df70
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
cmp qword [0x140074140], 0xf
mov qword [0x140074138], rsi
cmova r15, qword [0x140074128]
mov byte [r15], sil
mov r15, qword [rsp + 0x80]
movzx eax, byte [0x140074dea]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
test al, al
je 0x14004e007
call fcn.140044c20
call fcn.1400436a0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14005b7d0
add rsp, 0x90
pop rbp
ret