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

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x140083040]
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 [0x1400831a8], rdx
mov qword [r11 - 0x78], rsi
lea ecx, [rsi + 2]
jne 0x140058895
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 [0x140083f88]
mov ecx, dword [0x14008402c]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x140083148]
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 0x1400587c0
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 [0x140083ec0]
mov ecx, dword [0x140083f40]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x140083148]
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 0x140058840
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 0x140058bb2
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 [0x140083fcc]
mov ecx, dword [0x14008400c]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x140083148]
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 0x1400588f0
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 [0x140083148]
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 0x140058960
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 [0x1400831b0], 0xf
lea r15, [0x140083198]
jbe 0x1400589cd
mov rdi, qword [0x140083198]
mov rcx, rdi
mov rdx, rdi
jmp 0x1400589d6
mov rdi, r15
mov rcx, r15
mov rdx, r15
mov r14, qword [0x1400831a8]
add r14, rcx
cmp rdx, r14
je 0x140058a85
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 [0x140083104]
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 0x140058a55
inc rdi
cmp rdi, r14
jne 0x1400589f0
mov edx, dword [0x140083f88]
mov ecx, dword [0x14008402c]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x140083148]
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 0x140058ac2
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 [0x140083ec0]
mov ecx, dword [0x140083f40]
call qword [sym.imp.USER32.dll_SetCursorPos]
movsxd rbx, dword [0x140083148]
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 0x140058b40
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 [0x1400831b0], 0xf
mov qword [0x1400831a8], rsi
cmova r15, qword [0x140083198]
mov byte [r15], sil
mov r15, qword [rsp + 0x80]
movzx eax, byte [0x140083e5b]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
test al, al
je 0x140058bd2
call fcn.14004c790
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140068c30
add rsp, 0x90
pop rbp
ret