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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
mov rbx, rdx
mov rdi, rcx
sub rax, 0x202
je 0x140101c29
sub rax, 3
je 0x140101d75
sub rax, 0x1fd
je 0x140101d64
sub rax, 2
je 0x140101ceb
cmp rax, 1
jne 0x140101ec3
mov rcx, qword [0x14021c740]
xor ebx, ebx
cmp byte [rcx + 0x10fed], bl
je 0x140101e17
xor edx, edx
lea ebp, [rbx + 8]
call fcn.140087924
mov rcx, qword [0x14021c5e0]
neg al
sbb esi, esi
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140101e00
mov rcx, qword [0x14021c5d8]
xor edx, edx
add rcx, 0x260
call fcn.14003de70
test al, al
jne 0x140101e00
mov rax, qword [0x14021c740]
cmp byte [rax + 0x11002], bl
jne 0x140101dfd
cmp byte [rax + 0x10fed], 2
je 0x140101dfd
mov rcx, qword [0x14021c5d8]
call fcn.140014e4c
cmp eax, 0x50
jae 0x140101dfd
cmp eax, 0xa
jb 0x140101e00
mov rcx, qword [0x14021c5d8]
xor edx, edx
add rcx, 0x260
call fcn.14003de70
test al, al
jne 0x140101e00
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140101e81
xor ebx, ebx
cmp byte [rcx + 0x3c0], bl
jne 0x140101d48
mov esi, dword [rcx + 0x3c4]
mov ebp, 0x7d0
test esi, esi
je 0x140101ec3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, ebp
ja 0x140101d48
cmp byte [rdi + 0x3c0], bl
jne 0x140101ec3
test esi, esi
je 0x140101ec3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x3c4]
cmp eax, ebp
jbe 0x140101ec3
mov byte [rdi + 0x3c0], 1
jmp 0x140101ec3
xor r8d, r8d
mov dword [rdi + 0x3bc], ebx
mov dl, 1
lea rcx, [0x14021f640]
call fcn.140101f2c
jmp 0x140101ec3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x3c4], eax
jmp 0x140101ec3
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [0x14021c5d8]
mov dl, 1
add rcx, 0x260
call fcn.14003b50c
mov rcx, qword [0x14021c5e0]
call fcn.14012c370
mov r8b, 1
lea rcx, str.ShowSysmenu_called_from__TSA_
mov dl, r8b
call fcn.14002b004
mov rcx, qword [0x14021c5d8]
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rcx + 0x3fb0]
call fcn.14007a0d8
mov rcx, qword [0x14021c5d8]
xor edx, edx
add rcx, 0x260
call fcn.14003b50c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140101ec3
lea ebp, [rsi + 6]
mov rcx, qword [0x14021c5d8]
mov edx, ebp
add rcx, 0x260
call fcn.14003492c
jmp 0x140101e81
call fcn.1400876b0
test al, al
je 0x140101e70
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140101e70
mov rcx, qword [0x14021c740]
xor edx, edx
call fcn.140087924
test al, al
je 0x140101e53
xor edx, edx
lea rcx, [0x14021f640]
call fcn.140101ab0
jmp 0x140101e81
mov rcx, qword [0x14021c5e0]
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xf020
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140101e81
xor r8d, r8d
lea rcx, [0x14021f640]
xor edx, edx
call fcn.140101f2c
mov ecx, dword [rdi + 0x3bc]
sub ecx, 1
je 0x140101eac
cmp ecx, 4
jne 0x140101ec3
mov rcx, qword [0x14021c5d8]
mov rcx, qword [rcx + 0x15c0]
call fcn.140099b84
mov dword [rdi + 0x3bc], ebx
jmp 0x140101ec3
mov dword [rdi + 0x3bc], ebx
mov edx, 2
mov rcx, qword [0x14021c5d8]
call fcn.140011054
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret