Function at 0x140032a1c
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 - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0xe8]
xor r12d, r12d
cmp qword [rax + 0x3e58], r12
jne 0x14003360a
cmp byte [0x14022ac59], r12b
jne 0x14003360a
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.14010808c
movzx r14d, al
xor edx, edx
mov rcx, rdi
call fcn.14003b904
movzx r15d, al
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov r13d, eax
mov dword [rsp + 0x48], 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 + 0x80]
call fcn.140003ab0
lea ebx, [r12 + 1]
mov edx, ebx
lea rcx, [rbp + 0x80]
call fcn.140015084
cmp esi, 8
jne 0x140032b58
test r15b, r15b
je 0x140032b5d
cmp dword [rdi + 0xf8], r12d
je 0x140032b43
mov rcx, qword [0x14022ab50]
call fcn.14007f210
test al, al
je 0x140032b43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0xf8]
cmp eax, 0x1f4
jae 0x140032b43
lfence
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.140035cd4
jmp 0x14003360a
mov ebx, 3
mov esi, ebx
lea ecx, [rbx - 2]
mov byte [0x14022ac59], cl
jmp 0x140032cb9
cmp esi, 7
jne 0x140032b84
mov rcx, qword [0x14022ab50]
cmp byte [rcx + 0x10fe5], r12b
je 0x140032b7d
xor edx, edx
call fcn.14007f1f0
neg al
sbb esi, esi
add esi, 6
jmp 0x140032b90
mov esi, 6
jmp 0x140032b90
mov eax, esi
cmp esi, 5
je 0x140032b90
cmp eax, 6
jne 0x140032bb0
mov rax, qword [rdi + 0xe8]
mov dword [rax + 0x4834], r12d
test r15b, r15b
jne 0x14003360a
test r13d, r13d
je 0x14003360a
mov byte [0x14022ac59], bl
test esi, esi
jne 0x140032c53
mov rcx, qword [0x14022ab50]
cmp byte [rcx + 0x10fec], r12b
je 0x140032c44
cmp byte [rcx + 0x10fed], r12b
je 0x140032c44
mov qword [rsp + 0x70], r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetCursorPos]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140031000
mov esi, 2
mov edx, esi
lea rcx, [rbp + 0x70]
call qword [sym.imp.USER32.dll_MonitorFromRect]
mov rbx, rax
mov edx, esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_MonitorFromPoint]
test rbx, rbx
je 0x140032c38
test rax, rax
je 0x140032c38
cmp rbx, rax
je 0x140032c38
lea ebx, [rsi + 1]
mov esi, ebx
mov dword [rsp + 0x48], r12d
jmp 0x140032cb9
mov rcx, qword [0x14022ab50]
mov ebx, 1
xor edx, edx
call fcn.14007f1f0
neg al
sbb esi, esi
neg esi
add esi, ebx
mov ebx, 3
cmp esi, ebx
je 0x140032cb9
lea eax, [rsi - 1]
test eax, 0xfffffffa
je 0x140032c89
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140032cb9
test r14b, r14b
jne 0x140032c81
test r15b, r15b
jne 0x140032cb9
mov r12d, 4
jmp 0x140032ccd
test r13d, r13d
je 0x140032c98
test r14b, r14b
je 0x140032c98
test r15b, r15b
je 0x140032cbe
test r15b, r15b
jne 0x140032cad
mov rax, qword [0x14022ab50]
cmp byte [rax + 0x10fed], r12b
je 0x140032cbe
lea eax, [rsi - 5]
mov ecx, 1
cmp eax, ecx
jbe 0x140032cbe
mov r12d, ebx
jmp 0x140032ccd
mov r12d, esi
cmp esi, 5
mov eax, 2
cmove r12d, eax
xor r13b, r13b
xor edx, edx
mov rcx, qword [0x14022ab50]
call fcn.14007f1f0
mov byte [rsp + 0x41], al
mov rcx, qword [0x14022ab50]
cmp byte [rcx + 0x10fe5], r13b
je 0x140032d19
cmp dword [rcx + 0x10fe8], 0
jbe 0x140032d19
call fcn.1401076f0
movzx r13d, r13b
test al, al
mov r14d, 1
cmove r13d, r14d
mov rcx, qword [0x14022ab50]
jmp 0x140032d1f
mov r14d, 1
mov edx, r14d
call fcn.14007f158
test eax, eax
je 0x140032d8a
mov ecx, r12d
mov edx, r14d
test r12d, r12d
je 0x140032ec4
sub ecx, 1
je 0x140032eb8
sub ecx, 1
je 0x140032eac
sub ecx, 1
je 0x140032e9e
sub ecx, 1
je 0x140032e8d
sub ecx, 1
je 0x140032e81
sub ecx, 1
je 0x140032e75
sub ecx, 1
je 0x140032e69
cmp ecx, 1
je 0x140032da5
lea rcx, str.DoMinimizeRestore_Unknown_cmd_
call fcn.140015084
cmp r12d, 4
jne 0x140032ed0
mov rcx, qword [0x14022a9e8]
call fcn.14011e94c
jmp 0x1400335e8
lea rcx, str.DoMinimizeRestore_sih_QuakeShowHide_
call fcn.140015084
mov byte [rdi + 0x1be], r14b
xor ebx, ebx
cmp dword [rsp + 0x48], ebx
je 0x140032dcf
test r15b, r15b
jne 0x140032dcf
xor edx, edx
mov rcx, rdi
call fcn.14003b198
mov rcx, qword [0x14022ab60]
cmp rcx, qword [0x14022a9e8]
je 0x140032e09
cmp rcx, qword [0x14022b560]
je 0x140032e09
call fcn.14010808c
test al, al
je 0x140032e09
mov rcx, qword [rdi + 0xe8]
call fcn.1400268fc
mov rcx, qword [0x14022a9e8]
call fcn.14011e94c
mov cl, bl
mov byte [rsp + 0x40], bl
mov r15, rdi
mov qword [rsp + 0x50], rdi
mov r14b, bl
mov byte [rsp + 0x58], bl
mov rax, qword [0x14022ab50]
cmp byte [rax + 0x10fe5], bl
je 0x140033542
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
lea rdx, [rbp + 0x60]
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
je 0x1400333ed
movups xmm0, xmmword [rbp + 0x60]
jmp 0x1400333f0
lea rcx, str.DoMinimizeRestore_sih_AutoHide_
jmp 0x140032dac
lea rcx, str.DoMinimizeRestore_sih_Minimize_
jmp 0x140032dac
lea rcx, str.DoMinimizeRestore_sih_HideTSA_
jmp 0x140032dac
lea rcx, str.DoMinimizeRestore_sih_SetForeground_
call fcn.140015084
jmp 0x140032d94
lea rcx, str.DoMinimizeRestore_sih_Show_
call fcn.140015084
jmp 0x140032ed9
lea rcx, str.DoMinimizeRestore_sih_ShowHideTSA_
jmp 0x140032dac
lea rcx, str.DoMinimizeRestore_sih_ShowMinimize_
jmp 0x140032dac
lea rcx, str.DoMinimizeRestore_sih_None_
jmp 0x140032dac
cmp r12d, ebx
jne 0x140032db1
xor ebx, ebx
mov r14b, bl
mov r12b, bl
test r15b, r15b
je 0x140032eff
mov rcx, qword [rdi + 0xe8]
lea edx, [rbx + 1]
mov rcx, qword [rcx + 0x3e48]
call fcn.140071b24
mov r12b, al
mov rcx, qword [0x14022ab50]
cmp byte [rcx + 0x11077], bl
je 0x140032f65
lea rcx, [rbp - 0x50]
call fcn.1401086e4
nop
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0xe8]
call fcn.140013064
test eax, eax
js 0x140032f55
mov ebx, dword [rdi + 0xfc]
mov dword [rdi + 0xfc], 0x64
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x48]
call fcn.140110064
mov dword [rdi + 0xfc], ebx
xor ebx, ebx
lea rcx, [rbp - 0x50]
call fcn.14010878c
mov rcx, qword [0x14022ab50]
mov rsi, rdi
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x68], bl
cmp byte [rcx + 0x10fe5], bl
je 0x140032fa4
mov rax, qword [rsp + 0x50]
cmp rax, qword [0x14022a9e8]
jne 0x140033152
test r15b, r15b
jne 0x140033152
cmp dword [rsp + 0x48], ebx
je 0x140033152
mov r14d, 1
mov dword [rdi + 0xfc], ebx
cmp byte [0x14022de49], bl
jne 0x140032fc3
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140033007
mov eax, 1
mov byte [rdi + 0x200], al
mov bl, byte [rdi + 0x201]
mov byte [rdi + 0x201], r13b
mov r8b, r13b
xor edx, edx
lea rcx, [0x14022da90]
call fcn.1400f6988
mov byte [rdi + 0x201], bl
xor ebx, ebx
mov byte [rdi + 0x200], bl
xor edx, edx
mov rcx, rdi
call fcn.14003b904
mov r15b, al
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x14003307f
lea rdx, [rdi + 0x204]
lea rcx, [rbp + 0x30]
call fcn.14011dbbc
nop
mov rcx, qword [rdi + 0xe8]
mov edx, 1
mov rcx, qword [rcx + 0x3e48]
call fcn.140071b1c
mov bl, al
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xf120
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0xe8]
mov dl, bl
mov rcx, qword [rcx + 0x3e48]
call fcn.140071b1c
nop
lea rcx, [rbp + 0x30]
call fcn.14011dbf0
xor ebx, ebx
mov rax, qword [0x14022ab50]
cmp byte [rax + 0x10fe5], bl
jne 0x14003309a
cmp byte [rax + 0x10fec], bl
je 0x1400331a1
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.140034724
mov rax, qword [0x14022ab50]
cmp byte [rax + 0x10fec], bl
je 0x14003317b
mov edx, 2
lea rcx, [rbp + 0x50]
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 0x140033179
test rax, rax
je 0x140033179
cmp rbx, rax
je 0x140033179
movaps xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rdi + 0x164]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8, rax
mov rdx, qword [0x14022a9e8]
mov rcx, rdi
call fcn.1400357a0
xor ebx, ebx
test al, al
je 0x14003317b
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140034724
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp + 0x50], xmm0
jmp 0x14003317b
lea rcx, [rsp + 0x60]
call fcn.140032444
mov eax, 1
mov dword [rdi + 0xfc], eax
mov rcx, rdi
call fcn.14003b62c
mov rsi, qword [rsp + 0x60]
jmp 0x140032faa
xor ebx, ebx
mov r9, qword [rbp + 0x50]
shr r9, 0x20
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r8d, dword [rbp + 0x50]
xor edx, edx
mov rcx, rdi
call fcn.14003bb9c
mov byte [rdi + 0x1be], bl
mov rcx, qword [0x14022a9e8]
call fcn.14011e94c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.1400370f8
mov rax, qword [0x14022ab50]
cmp byte [rax + 0x10fe5], bl
je 0x140033322
test r14b, r14b
jne 0x140033305
test r13b, r13b
je 0x14003327a
mov ebx, dword [rax + 0x10fe8]
mov eax, 0x7d0
cmp ebx, eax
cmova ebx, eax
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140034724
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140033223
xor edx, edx
mov rcx, qword [0x14022a9e8]
call fcn.14011e960
mov ecx, dword [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
sub ecx, r8d
mov eax, dword [rbp - 0x7c]
mov r9d, dword [rsp + 0x7c]
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.14003bb9c
mov dword [rdi + 0xfc], 0x64
mov rcx, rdi
call fcn.14003b62c
mov r8d, 0x60004
mov edx, ebx
mov rcx, rdi
call fcn.14002fff8
jmp 0x140033305
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rcx, [rsp + 0x60]
call fcn.140032444
mov rcx, qword [0x14022ab50]
mov edx, dword [rcx + 0x10fe8]
test edx, edx
je 0x140033300
mov eax, 0xcccccccd
mul edx
mov ebx, edx
shr ebx, 3
mov ecx, dword [rdi + 0xfc]
cmp ecx, 0x64
jge 0x140033300
lea eax, [rcx + 0xa]
mov dword [rdi + 0xfc], eax
mov rcx, rdi
call fcn.14003b62c
mov r9d, 0x100
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14022a9e8]
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 0x1400332f6
lfence
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x1400332a9
mov rsi, qword [rsp + 0x60]
cmp dword [rdi + 0xfc], 0x64
je 0x140033320
mov dword [rdi + 0xfc], 0x64
mov rcx, rdi
call fcn.14003b62c
xor ebx, ebx
mov dword [rdi + 0xfc], ebx
xorps xmm0, xmm0
movdqu xmmword [rdi + 0x164], xmm0
cmp byte [rsp + 0x68], bl
je 0x14003334f
mov byte [rsp + 0x68], bl
mov byte [rsi + 0x100], bl
mov rcx, qword [rsi + 0xe8]
call fcn.14001e680
lea rcx, [rbp - 0x30]
call fcn.1401086e4
nop
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, qword [rdi + 0xe8]
call fcn.140013064
test eax, eax
js 0x14003337d
mov rcx, qword [rbp - 0x28]
add rcx, 0x18
call fcn.1400fef78
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 [rbp - 0x10], rax
lea rax, [0x1400b2350]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov qword [rbp + 0x28], rax
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea ecx, [r8 + 2]
call fcn.140102758
test r15b, r15b
je 0x1400333c7
mov rcx, qword [rdi + 0xe8]
mov dl, r12b
mov rcx, qword [rcx + 0x3e48]
call fcn.140071b24
nop
lea rcx, [rbp - 0x30]
call fcn.14010878c
nop
cmp byte [rsp + 0x68], bl
je 0x1400335e2
mov byte [rsi + 0x100], bl
mov rcx, qword [rsi + 0xe8]
jmp 0x1400335dc
xorps xmm0, xmm0
movdqu xmmword [rdi + 0x164], xmm0
xor ebx, ebx
test r13b, r13b
je 0x140033479
mov rax, qword [0x14022ab50]
mov edx, dword [rax + 0x10fe8]
mov eax, 0x7d0
cmp edx, eax
cmova edx, eax
mov r8d, 0x50008
mov rcx, rdi
call fcn.14002fff8
mov rcx, rdi
call fcn.14003b134
lea r13d, [rbx + 1]
mov dword [rdi + 0xfc], r13d
mov rcx, rdi
call fcn.14003b62c
cmp byte [rsp + 0x41], bl
jne 0x140033452
lea eax, [rbx + 2]
cmp r12d, eax
je 0x140033452
lea edx, [rbx + 7]
jmp 0x140033465
mov edx, 4
mov rcx, qword [0x14022a9e8]
call fcn.14011e960
xor edx, edx
mov rcx, qword [0x14022a9e8]
call fcn.14011e960
mov cl, r13b
jmp 0x140033553
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov edx, 1
lea eax, [rdx + 0x5a]
mov rcx, qword [0x14022ab50]
cmp dword [rcx + 0x10fe8], ebx
cmova edx, eax
mov dword [rdi + 0xfc], edx
mov rcx, rdi
call fcn.14003b134
mov rcx, qword [0x14022ab50]
mov edx, dword [rcx + 0x10fe8]
test edx, edx
je 0x140033536
mov eax, 0xcccccccd
mul edx
mov ebx, edx
shr ebx, 3
lea rcx, [rsp + 0x50]
call fcn.140032444
jmp 0x14003351b
mov rcx, rdi
call fcn.14003b62c
mov r9d, 0x100
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14022a9e8]
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 0x140033512
lfence
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
cmp dword [rdi + 0xfc], 0
jg 0x1400334d1
mov r14b, byte [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov cl, byte [rsp + 0x40]
xor ebx, ebx
jmp 0x14003354d
mov rcx, rdi
call fcn.14003b62c
mov cl, bl
jmp 0x14003354d
xorps xmm0, xmm0
movdqu xmmword [rdi + 0x164], xmm0
mov r13d, 1
mov dword [rdi + 0xfc], ebx
mov eax, 2
cmp r12d, eax
jne 0x140033580
mov byte [rdi + 0x200], r13b
xor edx, edx
lea rcx, [0x14022da90]
call fcn.1400f6514
mov byte [rdi + 0x200], bl
jmp 0x1400335a9
cmp r12d, r13d
je 0x14003358a
cmp esi, 6
jne 0x1400335a9
test cl, cl
jne 0x1400335a9
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xf020
mov rcx, qword [0x14022a9e8]
call qword [sym.imp.USER32.dll_SendMessageW]
test r14b, r14b
je 0x1400335c9
mov r14b, bl
mov byte [rsp + 0x58], bl
mov byte [r15 + 0x100], bl
mov rcx, qword [r15 + 0xe8]
call fcn.14001e680
nop
test r14b, r14b
je 0x1400335e2
mov byte [r15 + 0x100], bl
mov rcx, qword [r15 + 0xe8]
call fcn.14001e680
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.140015084
mov byte [0x14022ac59], 0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret