Function at 0x14003492c
Capabilities:
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0xe8]
xor r12d, r12d
cmp qword [rax + 0x3fc0], r12
jne 0x140035509
cmp byte [0x14021c829], r12b
jne 0x140035509
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.14011452c
movzx r14d, al
xor edx, edx
mov rcx, rdi
call fcn.14003de70
movzx r15d, al
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov r13d, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
mov r9d, ebx
mov r8d, esi
lea rdx, str.DoMinimizeRestore__i__Forex_08X_Our_u_Iconic_u_Vis_u
lea rcx, [rbp - 0x30]
call fcn.140003da0
lea ebx, [r12 + 1]
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.14001658c
cmp esi, 8
jne 0x140034a5e
test r15b, r15b
je 0x140034a63
cmp dword [rdi + 0xf8], r12d
je 0x140034a49
mov rcx, qword [0x14021c740]
call fcn.140087944
test al, al
je 0x140034a49
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0xf8]
cmp eax, 0x1f4
jae 0x140034a49
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, eax
lea rdx, str.DoMinimizeRestore_skipped__delay_was__u_ms
mov rcx, rdi
call fcn.140037d58
jmp 0x140035509
mov ebx, 3
mov esi, ebx
lea ecx, [rbx - 2]
mov byte [0x14021c829], cl
jmp 0x140034bbf
cmp esi, 7
jne 0x140034a8a
mov rcx, qword [0x14021c740]
cmp byte [rcx + 0x10fed], r12b
je 0x140034a83
xor edx, edx
call fcn.140087924
neg al
sbb esi, esi
add esi, 6
jmp 0x140034a96
mov esi, 6
jmp 0x140034a96
mov eax, esi
cmp esi, 5
je 0x140034a96
cmp eax, 6
jne 0x140034ab6
mov rax, qword [rdi + 0xe8]
mov dword [rax + 0x498c], r12d
test r15b, r15b
jne 0x140035509
test r13d, r13d
je 0x140035509
mov byte [0x14021c829], bl
test esi, esi
jne 0x140034b59
mov rcx, qword [0x14021c740]
cmp byte [rcx + 0x10ff4], r12b
je 0x140034b4a
cmp byte [rcx + 0x10ff5], r12b
je 0x140034b4a
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetCursorPos]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140032e90
mov esi, 2
mov edx, esi
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_MonitorFromRect]
mov rbx, rax
mov edx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_MonitorFromPoint]
test rbx, rbx
je 0x140034b3e
test rax, rax
je 0x140034b3e
cmp rbx, rax
je 0x140034b3e
lea ebx, [rsi + 1]
mov esi, ebx
mov dword [rsp + 0x44], r12d
jmp 0x140034bbf
mov rcx, qword [0x14021c740]
mov ebx, 1
xor edx, edx
call fcn.140087924
neg al
sbb esi, esi
neg esi
add esi, ebx
mov ebx, 3
cmp esi, ebx
je 0x140034bbf
lea eax, [rsi - 1]
test eax, 0xfffffffa
je 0x140034b8f
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140034bbf
test r14b, r14b
jne 0x140034b87
test r15b, r15b
jne 0x140034bbf
mov r12d, 4
jmp 0x140034bd3
test r13d, r13d
je 0x140034b9e
test r14b, r14b
je 0x140034b9e
test r15b, r15b
je 0x140034bc4
test r15b, r15b
jne 0x140034bb3
mov rax, qword [0x14021c740]
cmp byte [rax + 0x10ff5], r12b
je 0x140034bc4
lea eax, [rsi - 5]
mov ecx, 1
cmp eax, ecx
jbe 0x140034bc4
mov r12d, ebx
jmp 0x140034bd3
mov r12d, esi
cmp esi, 5
mov eax, 2
cmove r12d, eax
xor r13b, r13b
xor edx, edx
mov rcx, qword [0x14021c740]
call fcn.140087924
mov byte [rsp + 0x41], al
mov rcx, qword [0x14021c740]
cmp byte [rcx + 0x10fed], r13b
je 0x140034c1f
cmp dword [rcx + 0x10ff0], 0
jbe 0x140034c1f
call fcn.140113b9c
movzx r13d, r13b
test al, al
mov r14d, 1
cmove r13d, r14d
mov rcx, qword [0x14021c740]
jmp 0x140034c25
mov r14d, 1
mov edx, r14d
call fcn.140087888
test eax, eax
je 0x140034c90
mov ecx, r12d
mov edx, r14d
test r12d, r12d
je 0x140034dc8
sub ecx, 1
je 0x140034dbc
sub ecx, 1
je 0x140034db0
sub ecx, 1
je 0x140034da2
sub ecx, 1
je 0x140034d91
sub ecx, 1
je 0x140034d85
sub ecx, 1
je 0x140034d79
sub ecx, 1
je 0x140034d6d
cmp ecx, 1
je 0x140034cab
lea rcx, str.DoMinimizeRestore_Unknown_cmd_
call fcn.14001658c
cmp r12d, 4
jne 0x140034dd4
mov rcx, qword [0x14021c5e0]
call fcn.14012c370
jmp 0x1400354e7
lea rcx, str.DoMinimizeRestore_sih_QuakeShowHide_
call fcn.14001658c
mov byte [rdi + 0x1ce], r14b
xor ebx, ebx
cmp dword [rsp + 0x44], ebx
je 0x140034cd5
test r15b, r15b
jne 0x140034cd5
xor edx, edx
mov rcx, rdi
call fcn.14003d478
mov rcx, qword [0x14021c750]
cmp rcx, qword [0x14021c5e0]
je 0x140034d0f
cmp rcx, qword [0x14021d130]
je 0x140034d0f
call fcn.14011452c
test al, al
je 0x140034d0f
mov rcx, qword [rdi + 0xe8]
call fcn.140027e3c
mov rcx, qword [0x14021c5e0]
call fcn.14012c370
mov cl, bl
mov byte [rsp + 0x40], bl
mov r15, rdi
mov qword [rbp - 0x50], rdi
mov r14b, bl
mov byte [rbp - 0x48], bl
mov rax, qword [0x14021c740]
cmp byte [rax + 0x10fed], bl
je 0x140035442
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
lea rdx, [rbp - 0x40]
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
je 0x1400352f3
movups xmm0, xmmword [rbp - 0x40]
jmp 0x1400352f6
lea rcx, str.DoMinimizeRestore_sih_AutoHide_
jmp 0x140034cb2
lea rcx, str.DoMinimizeRestore_sih_Minimize_
jmp 0x140034cb2
lea rcx, str.DoMinimizeRestore_sih_HideTSA_
jmp 0x140034cb2
lea rcx, str.DoMinimizeRestore_sih_SetForeground_
call fcn.14001658c
jmp 0x140034c9a
lea rcx, str.DoMinimizeRestore_sih_Show_
call fcn.14001658c
jmp 0x140034ddd
lea rcx, str.DoMinimizeRestore_sih_ShowHideTSA_
jmp 0x140034cb2
lea rcx, str.DoMinimizeRestore_sih_ShowMinimize_
jmp 0x140034cb2
lea rcx, str.DoMinimizeRestore_sih_None_
jmp 0x140034cb2
cmp r12d, ebx
jne 0x140034cb7
xor ebx, ebx
mov r14b, bl
mov r12b, bl
test r15b, r15b
je 0x140034e03
mov rcx, qword [rdi + 0xe8]
lea edx, [rbx + 1]
mov rcx, qword [rcx + 0x3fb0]
call fcn.140079b88
mov r12b, al
mov rcx, qword [0x14021c740]
cmp byte [rcx + 0x1107f], bl
je 0x140034e6d
lea rcx, [rsp + 0x50]
call fcn.140114b80
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0xe8]
call fcn.140014004
test eax, eax
js 0x140034e5c
mov ebx, dword [rdi + 0xfc]
mov dword [rdi + 0xfc], 0x64
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14011c3b0
mov dword [rdi + 0xfc], ebx
xor ebx, ebx
lea rcx, [rsp + 0x50]
call fcn.140114c28
mov rcx, qword [0x14021c740]
mov rsi, rdi
mov qword [rbp - 0x50], rdi
mov byte [rbp - 0x48], bl
cmp byte [rcx + 0x10fed], bl
je 0x140034ea9
mov rax, qword [rbp - 0x40]
cmp rax, qword [0x14021c5e0]
jne 0x140035061
test r15b, r15b
jne 0x140035061
cmp dword [rsp + 0x44], ebx
je 0x140035061
mov r14d, 1
mov dword [rdi + 0xfc], ebx
cmp byte [0x14021f9f9], bl
jne 0x140034ec8
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140034f0c
mov eax, 1
mov byte [rdi + 0x210], al
mov bl, byte [rdi + 0x211]
mov byte [rdi + 0x211], r13b
mov r8b, r13b
xor edx, edx
lea rcx, [0x14021f640]
call fcn.140101f2c
mov byte [rdi + 0x211], bl
xor ebx, ebx
mov byte [rdi + 0x210], bl
xor edx, edx
mov rcx, rdi
call fcn.14003de70
mov r15b, al
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140034f86
lea rdx, [rdi + 0x214]
lea rcx, [rsp + 0x50]
call fcn.14012b4fc
nop
mov rcx, qword [rdi + 0xe8]
mov edx, 1
mov rcx, qword [rcx + 0x3fb0]
call fcn.140079b80
mov bl, al
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xf120
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0xe8]
mov dl, bl
mov rcx, qword [rcx + 0x3fb0]
call fcn.140079b80
nop
lea rcx, [rsp + 0x50]
call fcn.14012b530
xor ebx, ebx
mov rax, qword [0x14021c740]
cmp byte [rax + 0x10fed], bl
jne 0x140034fa1
cmp byte [rax + 0x10ff4], bl
je 0x1400350ae
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140036700
mov rax, qword [0x14021c740]
cmp byte [rax + 0x10ff4], bl
je 0x140035088
mov edx, 2
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_MonitorFromRect]
mov rbx, rax
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_MonitorFromPoint]
test rbx, rbx
je 0x140035086
test rax, rax
je 0x140035086
cmp rbx, rax
je 0x140035086
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rdi + 0x164]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8, rax
mov rdx, qword [0x14021c5e0]
mov rcx, rdi
call fcn.140037778
xor ebx, ebx
test al, al
je 0x140035088
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140036700
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x40], xmm0
jmp 0x140035088
lea rcx, [rbp - 0x50]
call fcn.140034354
mov eax, 1
mov dword [rdi + 0xfc], eax
mov rcx, rdi
call fcn.14003da64
mov rsi, qword [rbp - 0x50]
jmp 0x140034eaf
xor ebx, ebx
mov r9, qword [rbp - 0x40]
shr r9, 0x20
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r8d, dword [rbp - 0x40]
xor edx, edx
mov rcx, rdi
call fcn.14003e138
mov byte [rdi + 0x1ce], bl
mov rcx, qword [0x14021c5e0]
call fcn.14012c370
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140039264
mov rax, qword [0x14021c740]
cmp byte [rax + 0x10fed], bl
je 0x140035227
test r14b, r14b
jne 0x14003520a
test r13b, r13b
je 0x140035184
mov ebx, dword [rax + 0x10ff0]
mov eax, 0x7d0
cmp ebx, eax
cmova ebx, eax
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140036700
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14003512f
xor edx, edx
mov rcx, qword [0x14021c5e0]
call fcn.14012c384
mov ecx, dword [rbp - 0x38]
mov r8d, dword [rbp - 0x40]
sub ecx, r8d
mov eax, dword [rbp - 0x34]
mov r9d, dword [rbp - 0x3c]
sub eax, r9d
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
xor edx, edx
mov rcx, rdi
call fcn.14003e138
mov dword [rdi + 0xfc], 0x64
mov rcx, rdi
call fcn.14003da64
mov r8d, 0x60004
mov edx, ebx
mov rcx, rdi
call fcn.140031dd4
jmp 0x14003520a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rcx, [rbp - 0x50]
call fcn.140034354
mov rcx, qword [0x14021c740]
mov edx, dword [rcx + 0x10ff0]
test edx, edx
je 0x140035206
mov eax, 0xcccccccd
mul edx
mov ebx, edx
shr ebx, 3
mov ecx, dword [rdi + 0xfc]
cmp ecx, 0x64
jge 0x140035206
lea eax, [rcx + 0xa]
mov dword [rdi + 0xfc], eax
mov rcx, rdi
call fcn.14003da64
mov r9d, 0x100
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_RedrawWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
add ecx, esi
test ecx, ecx
jle 0x1400351fc
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x1400351b2
mov rsi, qword [rbp - 0x50]
cmp dword [rdi + 0xfc], 0x64
je 0x140035225
mov dword [rdi + 0xfc], 0x64
mov rcx, rdi
call fcn.14003da64
xor ebx, ebx
mov dword [rdi + 0xfc], ebx
xorps xmm0, xmm0
movdqu xmmword [rdi + 0x164], xmm0
cmp byte [rbp - 0x48], bl
je 0x140035252
mov byte [rbp - 0x48], bl
mov byte [rsi + 0x100], bl
mov rcx, qword [rsi + 0xe8]
call fcn.14001fc6c
lea rcx, [rbp - 0x70]
call fcn.140114b80
nop
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rdi + 0xe8]
call fcn.140014004
test eax, eax
js 0x140035280
mov rcx, qword [rbp - 0x68]
add rcx, 0x18
call fcn.14010b14c
lea rax, vtable.std::_Func_impl_no_alloc_bool____cdecl___class_CVirtualConsole____ptr64__long_long___int64____bool__class_CVirtualConsole____ptr64__long_long___int64__.0
mov qword [rsp + 0x50], rax
lea rax, [0x1400bb9e8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [r8 + 2]
call fcn.14010ea70
test r15b, r15b
je 0x1400352ce
mov rcx, qword [rdi + 0xe8]
mov dl, r12b
mov rcx, qword [rcx + 0x3fb0]
call fcn.140079b88
nop
lea rcx, [rbp - 0x70]
call fcn.140114c28
nop
cmp byte [rbp - 0x48], bl
je 0x1400354e1
mov byte [rsi + 0x100], bl
mov rcx, qword [rsi + 0xe8]
jmp 0x1400354db
xorps xmm0, xmm0
movdqu xmmword [rdi + 0x164], xmm0
xor ebx, ebx
test r13b, r13b
je 0x14003537f
mov rax, qword [0x14021c740]
mov edx, dword [rax + 0x10ff0]
mov eax, 0x7d0
cmp edx, eax
cmova edx, eax
mov r8d, 0x50008
mov rcx, rdi
call fcn.140031dd4
mov rcx, rdi
call fcn.14003d414
lea r13d, [rbx + 1]
mov dword [rdi + 0xfc], r13d
mov rcx, rdi
call fcn.14003da64
cmp byte [rsp + 0x41], bl
jne 0x140035358
lea eax, [rbx + 2]
cmp r12d, eax
je 0x140035358
lea edx, [rbx + 7]
jmp 0x14003536b
mov edx, 4
mov rcx, qword [0x14021c5e0]
call fcn.14012c384
xor edx, edx
mov rcx, qword [0x14021c5e0]
call fcn.14012c384
mov cl, r13b
jmp 0x140035453
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov edx, 1
lea eax, [rdx + 0x5a]
mov rcx, qword [0x14021c740]
cmp dword [rcx + 0x10ff0], ebx
cmova edx, eax
mov dword [rdi + 0xfc], edx
mov rcx, rdi
call fcn.14003d414
mov rcx, qword [0x14021c740]
mov edx, dword [rcx + 0x10ff0]
test edx, edx
je 0x140035436
mov eax, 0xcccccccd
mul edx
mov ebx, edx
shr ebx, 3
lea rcx, [rbp - 0x50]
call fcn.140034354
jmp 0x14003541d
mov rcx, rdi
call fcn.14003da64
mov r9d, 0x100
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_RedrawWindow]
add dword [rdi + 0xfc], 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
add ecx, r13d
test ecx, ecx
jle 0x140035414
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
cmp dword [rdi + 0xfc], 0
jg 0x1400353d6
mov r14b, byte [rbp - 0x48]
mov r15, qword [rbp - 0x50]
mov cl, byte [rsp + 0x40]
xor ebx, ebx
jmp 0x14003544d
mov rcx, rdi
call fcn.14003da64
mov cl, bl
jmp 0x14003544d
xorps xmm0, xmm0
movdqu xmmword [rdi + 0x164], xmm0
mov r13d, 1
mov dword [rdi + 0xfc], ebx
mov eax, 2
cmp r12d, eax
jne 0x140035480
mov byte [rdi + 0x210], r13b
xor edx, edx
lea rcx, [0x14021f640]
call fcn.140101ab0
mov byte [rdi + 0x210], bl
jmp 0x1400354a9
cmp r12d, r13d
je 0x14003548a
cmp esi, 6
jne 0x1400354a9
test cl, cl
jne 0x1400354a9
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xf020
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_SendMessageW]
test r14b, r14b
je 0x1400354c8
mov r14b, bl
mov byte [rbp - 0x48], bl
mov byte [r15 + 0x100], bl
mov rcx, qword [r15 + 0xe8]
call fcn.14001fc6c
nop
test r14b, r14b
je 0x1400354e1
mov byte [r15 + 0x100], bl
mov rcx, qword [r15 + 0xe8]
call fcn.14001fc6c
nop
mov r14d, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0xf8], eax
mov edx, r14d
lea rcx, str.DoMinimizeRestore_finished
call fcn.14001658c
mov byte [0x14021c829], 0
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret