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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor esi, esi
mov qword [rsp + 0x58], rdx
mov r14, r9
mov r13, r8
mov rbx, rcx
test r9, r9
je 0x14001ded5
mov rdi, r9
jmp 0x14001dedd
call fcn.14002bef0
mov rdi, rax
mov rax, qword [rbx + 0x7bc8]
xor r12d, r12d
and dword [rsp + 0x40], esi
xor r15b, r15b
mov rcx, qword [rbx + 0x3e58]
mov qword [rsp + 0x60], rax
mov eax, dword [rbx + 0x7bd8]
mov dword [rsp + 0x50], eax
test rcx, rcx
je 0x14001df5d
mov rdx, rdi
call fcn.140062a80
test al, al
je 0x14001df5d
test r14, r14
je 0x14001df21
lea esi, [r12 + 8]
jmp 0x14001df5d
mov rcx, qword [rbx + 0x3e58]
call fcn.1400614fc
mov r12, rax
test rax, rax
je 0x14001df5d
and dword [rsp + 0x48], esi
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x48], eax
mov ecx, esi
mov esi, 8
cmove ecx, esi
mov esi, ecx
cmp rdi, qword [rbx + 0x7bc8]
je 0x14001e0fd
xor r15d, r15d
mov r14b, r15b
test rdi, rdi
je 0x14001e0b6
cmp rdi, qword [0x14022a9e8]
jne 0x14001df87
or esi, 1
jmp 0x14001dfcd
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x40], eax
jne 0x14001dfa6
or esi, 2
jmp 0x14001dfcd
mov rcx, qword [rbx + 0x3e58]
test rcx, rcx
je 0x14001dfbe
mov rdx, rdi
call fcn.140062a80
test al, al
jne 0x14001dfcd
mov rcx, rdi
call fcn.14010808c
test al, al
je 0x14001dfcd
or esi, 4
test esi, esi
jne 0x14001e0b6
cmp dword [rsp + 0x40], r15d
je 0x14001e0b6
mov rax, qword [rbx + 0x3e80]
test rax, rax
je 0x14001e0b6
cmp byte [rax + 0xb], r15b
je 0x14001e0b6
cmp byte [rax + 9], r15b
je 0x14001e0b6
mov rax, qword [0x14022ab50]
cmp byte [rax + 0xa60], r15b
je 0x14001e0b6
call fcn.140113cb4
test al, al
je 0x14001e0b6
mov r8d, dword [rsp + 0x40]
mov r9b, 1
mov rcx, qword [rbx + 0x3e80]
mov rdx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.1400138b8
test al, al
je 0x14001e0b6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x2ee
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14001e09a
mov r9d, dword [rsp + 0x40]
lea rdx, str.____DefTerm::CheckForeground_skipped__timer___x_08X_PID_u_is_non_responsive____
mov r8d, edi
lea rcx, [rsp + 0x70]
mov r14b, 1
call fcn.140003ab0
jmp 0x14001e0b6
mov r8d, dword [rsp + 0x40]
mov r9b, 1
mov rcx, qword [rbx + 0x3e80]
mov rdx, rdi
mov byte [rsp + 0x20], 1
call fcn.14000f47c
mov eax, dword [rbx + 0x7bdc]
mov r15b, 1
test eax, eax
je 0x14001e0c8
test r14b, r14b
je 0x14001e0ce
cmp eax, dword [rsp + 0x40]
je 0x14001e0f4
mov al, r14b
neg al
sbb ecx, ecx
and ecx, dword [rsp + 0x40]
mov dword [rbx + 0x7bdc], ecx
test r14b, r14b
je 0x14001e0ec
call qword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x14001e0ee
xor eax, eax
mov dword [rbx + 0x7be0], eax
cmp rdi, qword [rbx + 0x7bc8]
jne 0x14001e106
cmp qword [rbx + 0x7bd0], r12
je 0x14001e125
cmp dword [rbx + 0x7bd8], esi
je 0x14001e117
mov r15b, 1
mov dword [rbx + 0x7bd8], esi
mov qword [rbx + 0x7bc8], rdi
mov qword [rbx + 0x7bd0], r12
xor r14d, r14d
test r15b, r15b
je 0x14001e198
mov eax, dword [rsp + 0x50]
lea rdx, str.Foreground_state_changed___s_:_Statex_02X_HWNDx_08X_PID_u_OldHWNDx_08X_OldStatex_02X
mov r8, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov r9d, esi
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.140003ab0
mov rcx, qword [0x14022ab50]
lea edx, [r14 + 1]
call fcn.14007f158
test eax, eax
je 0x14001e198
mov rcx, qword [rbx + 0x3e70]
test rcx, rcx
je 0x14001e198
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8b, 1
lea rdx, [rsp + 0x70]
call fcn.14011c0a8
cmp dword [rbx + 0x7bdc], r14d
je 0x14001e22b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x7be0]
cmp eax, 0x5dc
jbe 0x14001e22b
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rbx + 0x7bdc]
cmp dword [rsp + 0x40], eax
jne 0x14001e224
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x2ee
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x14001e22b
mov r8d, dword [rsp + 0x40]
mov r9b, 1
mov rcx, qword [rbx + 0x3e80]
mov rdx, rdi
mov byte [rsp + 0x20], 1
call fcn.14000f47c
test al, al
je 0x14001e22b
mov qword [rbx + 0x7bdc], r14
test r13, r13
je 0x14001e234
mov qword [r13], rdi
mov al, byte [rbx + 0x7bd8]
and al, 1
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret