Function at 0x14001f46c
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 [0x1401e7e78]
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 0x14001f4ad
mov rdi, r9
jmp 0x14001f4b5
call fcn.14002d944
mov rdi, rax
mov rax, qword [rbx + 0x7d10]
xor r12d, r12d
and dword [rsp + 0x40], esi
xor r15b, r15b
mov rcx, qword [rbx + 0x3fc0]
mov qword [rsp + 0x60], rax
mov eax, dword [rbx + 0x7d20]
mov dword [rsp + 0x50], eax
test rcx, rcx
je 0x14001f535
mov rdx, rdi
call fcn.140066e84
test al, al
je 0x14001f535
test r14, r14
je 0x14001f4f9
lea esi, [r12 + 8]
jmp 0x14001f535
mov rcx, qword [rbx + 0x3fc0]
call fcn.140065dc0
mov r12, rax
test rax, rax
je 0x14001f535
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 + 0x7d10]
je 0x14001f6d5
xor r15d, r15d
mov r14b, r15b
test rdi, rdi
je 0x14001f68e
cmp rdi, qword [0x14021c5e0]
jne 0x14001f55f
or esi, 1
jmp 0x14001f5a5
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 0x14001f57e
or esi, 2
jmp 0x14001f5a5
mov rcx, qword [rbx + 0x3fc0]
test rcx, rcx
je 0x14001f596
mov rdx, rdi
call fcn.140066e84
test al, al
jne 0x14001f5a5
mov rcx, rdi
call fcn.14011452c
test al, al
je 0x14001f5a5
or esi, 4
test esi, esi
jne 0x14001f68e
cmp dword [rsp + 0x40], r15d
je 0x14001f68e
mov rax, qword [rbx + 0x3fd8]
test rax, rax
je 0x14001f68e
cmp byte [rax + 0xb], r15b
je 0x14001f68e
cmp byte [rax + 9], r15b
je 0x14001f68e
mov rax, qword [0x14021c740]
cmp byte [rax + 0xa60], r15b
je 0x14001f68e
call fcn.14011ff24
test al, al
je 0x14001f68e
mov r8d, dword [rsp + 0x40]
mov r9b, 1
mov rcx, qword [rbx + 0x3fd8]
mov rdx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.14001492c
test al, al
je 0x14001f68e
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 0x14001f672
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.140003da0
jmp 0x14001f68e
mov r8d, dword [rsp + 0x40]
mov r9b, 1
mov rcx, qword [rbx + 0x3fd8]
mov rdx, rdi
mov byte [rsp + 0x20], 1
call fcn.14000ff78
mov eax, dword [rbx + 0x7d24]
mov r15b, 1
test eax, eax
je 0x14001f6a0
test r14b, r14b
je 0x14001f6a6
cmp eax, dword [rsp + 0x40]
je 0x14001f6cc
mov al, r14b
neg al
sbb ecx, ecx
and ecx, dword [rsp + 0x40]
mov dword [rbx + 0x7d24], ecx
test r14b, r14b
je 0x14001f6c4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x14001f6c6
xor eax, eax
mov dword [rbx + 0x7d28], eax
cmp rdi, qword [rbx + 0x7d10]
jne 0x14001f6de
cmp qword [rbx + 0x7d18], r12
je 0x14001f6fd
cmp dword [rbx + 0x7d20], esi
je 0x14001f6ef
mov r15b, 1
mov dword [rbx + 0x7d20], esi
mov qword [rbx + 0x7d10], rdi
mov qword [rbx + 0x7d18], r12
xor r14d, r14d
test r15b, r15b
je 0x14001f770
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.140003da0
mov rcx, qword [0x14021c740]
lea edx, [r14 + 1]
call fcn.140087888
test eax, eax
je 0x14001f770
mov rcx, qword [rbx + 0x3fa0]
test rcx, rcx
je 0x14001f770
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8b, 1
lea rdx, [rsp + 0x70]
call fcn.1401298e4
cmp dword [rbx + 0x7d24], r14d
je 0x14001f803
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x7d28]
cmp eax, 0x5dc
jbe 0x14001f803
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rbx + 0x7d24]
cmp dword [rsp + 0x40], eax
jne 0x14001f7fc
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 0x14001f803
mov r8d, dword [rsp + 0x40]
mov r9b, 1
mov rcx, qword [rbx + 0x3fd8]
mov rdx, rdi
mov byte [rsp + 0x20], 1
call fcn.14000ff78
test al, al
je 0x14001f803
mov qword [rbx + 0x7d24], r14
test r13, r13
je 0x14001f80c
mov qword [r13], rdi
mov al, byte [rbx + 0x7d20]
and al, 1
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret