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

Disassembly:
push 0x15c
mov eax, 0x50df52
call fcn.004f41e2
mov ebx, ecx
mov dword [ebp - 0x154], ebx
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0x3e68], 0
jne 0x42ad73
cmp byte [0x5a2485], 0
jne 0x42ad73
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push esi
mov dword [ebp - 0x144], esi
call fcn.004d7f24
pop ecx
push 0
mov ecx, ebx
mov byte [ebp - 0x132], al
call fcn.00432292
push dword [0x5a22a4]
mov byte [ebp - 0x131], al
call dword [sym.imp.USER32.dll_IsWindowVisible]
movzx ecx, byte [ebp - 0x131]
mov edi, eax
push edi
push ecx
movzx ecx, byte [ebp - 0x132]
lea eax, [ebp - 0x100]
push ecx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x140], edi
push str.DoMinimizeRestore__i__Forex_08X_Our_u_Iconic_u_Vis_u
push eax
call fcn.00403213
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004109c9
mov ecx, dword [ebp + 8]
add esp, 0x24
mov dl, byte [ebp - 0x131]
push 2
pop esi
cmp ecx, 8
jne 0x42a34f
test dl, dl
je 0x42a349
cmp dword [ebx + 0xd8], 0
je 0x42a336
mov ecx, dword [0x5a23ec]
call fcn.00467469
test al, al
je 0x42a336
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0xd8]
cmp eax, 0x1f4
jae 0x42a336
push 0
push 0
push eax
push str.DoMinimizeRestore_skipped__delay_was__u_ms
mov ecx, ebx
call fcn.0042d216
jmp 0x42ad73
push 3
xor eax, eax
pop esi
inc eax
mov dword [ebp + 8], esi
mov byte [0x5a2485], al
jmp 0x42a464
push 7
pop ecx
mov dword [ebp + 8], ecx
cmp ecx, 7
jne 0x42a386
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f91], 0
je 0x42a380
push 0
mov ecx, eax
call fcn.00467449
mov dl, byte [ebp - 0x131]
xor ecx, ecx
test al, al
sete cl
add ecx, 5
mov dword [ebp + 8], ecx
jmp 0x42a390
push 6
pop ecx
mov dword [ebp + 8], ecx
cmp ecx, 5
je 0x42a390
cmp ecx, 6
jne 0x42a3ad
mov eax, dword [ebx + 0xcc]
and dword [eax + 0x45d0], 0
test dl, dl
jne 0x42ad73
test edi, edi
je 0x42ad73
xor eax, eax
inc eax
mov byte [0x5a2485], al
test ecx, ecx
jne 0x42a45d
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f98], cl
je 0x42a43c
cmp byte [eax + 0x10f99], cl
je 0x42a43c
and dword [ebp - 0x108], ecx
lea eax, [ebp - 0x108]
and dword [ebp - 0x104], ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push 0
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.00428a12
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
push 2
push dword [ebp - 0x104]
mov esi, eax
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_MonitorFromPoint]
test esi, esi
je 0x42a43c
test eax, eax
je 0x42a43c
cmp esi, eax
je 0x42a43c
and dword [ebp - 0x140], 0
push 3
pop esi
mov dword [ebp + 8], esi
jmp 0x42a464
mov ecx, dword [0x5a23ec]
push 0
call fcn.00467449
mov dl, byte [ebp - 0x131]
xor ecx, ecx
test al, al
setne cl
xor eax, eax
inc ecx
inc eax
mov dword [ebp + 8], ecx
push 3
pop esi
cmp ecx, esi
jne 0x42a468
mov edi, esi
jmp 0x42a4e4
cmp ecx, eax
je 0x42a4a3
cmp ecx, 6
je 0x42a4a3
cmp ecx, 2
je 0x42a4a3
cmp ecx, 5
je 0x42a4a3
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42a464
cmp byte [ebp - 0x132], 0
jne 0x42a49e
mov al, byte [ebp - 0x131]
test al, al
jne 0x42a464
push 4
pop edi
jmp 0x42a4e4
test edi, edi
je 0x42a4b4
cmp byte [ebp - 0x132], 0
je 0x42a4b4
test dl, dl
je 0x42a4d9
test dl, dl
jne 0x42a4c5
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f99], dl
je 0x42a4d9
cmp ecx, 5
je 0x42a4d9
cmp ecx, 6
je 0x42a4d9
mov edi, esi
mov dword [ebp - 0x138], esi
jmp 0x42a4ea
push 2
cmp ecx, 5
mov edi, ecx
pop eax
cmove edi, eax
mov dword [ebp - 0x138], edi
mov ecx, dword [0x5a23ec]
xor al, al
push 0
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x104], al
call fcn.00467449
mov ecx, dword [0x5a23ec]
mov byte [ebp - 0x132], al
cmp byte [ecx + 0x10f91], 0
je 0x42a54d
cmp dword [ecx + 0x10f94], 0
jbe 0x42a54d
call fcn.004d7732
mov ecx, dword [ebp - 0x13c]
test al, al
push 1
movzx ecx, cl
pop eax
cmove ecx, eax
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 0x104], cl
mov ecx, dword [0x5a23ec]
jmp 0x42a550
xor eax, eax
inc eax
push eax
call fcn.004673c5
test eax, eax
je 0x42a6bd
cmp edi, 8
ja case.default.0x42a567
jmp dword [edi*4 + 0x42ad7e]
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_None_
call fcn.004109c9
pop ecx
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 0x140], 0
mov byte [ebx + 0x19e], al
je 0x42a5a2
cmp byte [ebp - 0x131], 0
jne 0x42a5a2
push 0
mov ecx, ebx
call fcn.00431bf7
mov eax, dword [0x5a23f8]
cmp eax, dword [0x5a22a4]
je 0x42a5d9
cmp eax, dword [0x5a2c8c]
je 0x42a5d9
push eax
call fcn.004d7f24
pop ecx
test al, al
je 0x42a5d9
mov ecx, dword [ebx + 0xcc]
call fcn.0041f399
push dword [0x5a22a4]
call fcn.004ea440
pop ecx
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f91], 0
je 0x42acdf
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov esi, eax
lea edi, [ebp - 0x130]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x130]
push eax
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edi, [ebx + 0x144]
test esi, esi
je 0x42abaf
lea esi, [ebp - 0x130]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x42abb5
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_ShowMinimize_
jmp 0x42a577
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_ShowHideTSA_
jmp 0x42a577
xor esi, esi
inc esi
push esi
push str.DoMinimizeRestore_sih_Show_
call fcn.004109c9
pop ecx
pop ecx
jmp 0x42a6de
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_SetForeground_
call fcn.004109c9
pop ecx
pop ecx
jmp 0x42a6c2
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_HideTSA_
jmp 0x42a577
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_Minimize_
jmp 0x42a577
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_AutoHide_
jmp 0x42a577
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_sih_QuakeShowHide_
jmp 0x42a577
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_Unknown_cmd_
call fcn.004109c9
pop ecx
pop ecx
cmp edi, 4
jne 0x42a6d3
push dword [0x5a22a4]
call fcn.004ea440
pop ecx
jmp 0x42ad50
cmp edi, esi
jne 0x42a57e
xor esi, esi
inc esi
cmp byte [ebp - 0x131], 0
mov byte [ebp - 0x132], 0
mov byte [ebp - 0x138], 0
je 0x42a70d
mov ecx, dword [ebx + 0xcc]
push esi
mov ecx, dword [ecx + 0x3e60]
call fcn.0045c115
mov byte [ebp - 0x138], al
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x11007], 0
je 0x42a77b
lea ecx, [ebp - 0x164]
call fcn.004d840a
mov ecx, dword [ebx + 0xcc]
lea eax, [ebp - 0x164]
and dword [ebp - 4], 0
push 0
push eax
call fcn.0040ef51
test eax, eax
js 0x42a767
mov esi, dword [ebx + 0xdc]
mov ecx, dword [ebp - 0x160]
push 0
push 0
mov dword [ebx + 0xdc], 0x64
call fcn.004deeb9
mov dword [ebx + 0xdc], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.004d84a5
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f91], 0
je 0x42a7b9
mov eax, dword [ebp - 0x144]
cmp eax, dword [0x5a22a4]
jne 0x42aa74
cmp byte [ebp - 0x131], 0
jne 0x42aa74
cmp dword [ebp - 0x140], 0
je 0x42aa74
xor eax, eax
inc eax
mov byte [ebp - 0x132], al
and dword [ebx + 0xdc], 0
cmp byte [0x5a54f9], 0
jne 0x42a7d9
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42a82a
mov esi, dword [ebp - 0x154]
xor eax, eax
push dword [ebp - 0x104]
inc eax
mov ecx, 0x5a5150
mov byte [ebx + 0x1e0], al
mov bl, byte [ebx + 0x1e1]
mov eax, dword [ebp - 0x13c]
push 0
mov byte [esi + 0x1e1], al
call fcn.004c954c
mov byte [esi + 0x1e1], bl
mov ebx, esi
push 0
mov ecx, ebx
mov byte [ebx + 0x1e0], 0
call fcn.00432292
mov byte [ebp - 0x131], al
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x42a8a8
lea eax, [ebx + 0x1e4]
push eax
lea ecx, [ebp - 0x168]
call fcn.004e97f9
mov ecx, dword [ebx + 0xcc]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
mov ecx, dword [ecx + 0x3e60]
call fcn.0045c105
push 0
push 0xf120
push 0x112
push dword [0x5a22a4]
mov byte [ebp - 0x144], al
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0xcc]
push dword [ebp - 0x144]
mov ecx, dword [ecx + 0x3e60]
call fcn.0045c105
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.004e983b
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f91], 0
jne 0x42a8c3
cmp byte [eax + 0x10f98], 0
je 0x42a996
lea eax, [ebp - 0x110]
mov ecx, ebx
push eax
call fcn.0042bcbd
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f98], 0
je 0x42a97c
push 2
pop edi
push edi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
and dword [ebp - 0x148], 0
mov esi, eax
and dword [ebp - 0x144], 0
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push dword [ebp - 0x144]
push dword [ebp - 0x148]
call dword [sym.imp.USER32.dll_MonitorFromPoint]
mov ecx, eax
test esi, esi
je 0x42a97c
test ecx, ecx
je 0x42a97c
cmp esi, ecx
je 0x42a97c
lea eax, [ebx + 0x144]
push eax
sub esp, 0x10
lea esi, [ebp - 0x110]
mov edi, esp
xor eax, eax
inc eax
push eax
movsd dword es:[edi], dword [esi]
push ecx
push dword [0x5a22a4]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042cc36
test al, al
je 0x42a97c
lea eax, [ebp - 0x164]
mov ecx, ebx
push eax
call fcn.0042bcbd
lea esi, [ebp - 0x164]
lea edi, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 5
xor eax, eax
mov ecx, ebx
push eax
push eax
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push eax
call fcn.004324ee
mov byte [ebx + 0x19e], 0
push dword [0x5a22a4]
call fcn.004ea440
pop ecx
xor eax, eax
mov ecx, ebx
push 0
inc eax
push eax
call fcn.0042e3bf
mov esi, dword [0x5a23ec]
cmp byte [esi + 0x10f91], 0
je 0x42ab21
cmp byte [ebp - 0x132], 0
jne 0x42ab09
cmp byte [ebp - 0x13c], 0
je 0x42aa90
mov esi, dword [esi + 0x10f94]
lea eax, [ebp - 0x150]
mov ecx, 0x7d0
cmp esi, ecx
push eax
cmova esi, ecx
mov ecx, ebx
call fcn.0042bcbd
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42aa20
push 0
push dword [0x5a22a4]
call fcn.004ea453
pop ecx
pop ecx
mov eax, dword [ebp - 0x144]
sub eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
sub ecx, dword [ebp - 0x150]
push 4
push eax
push ecx
push dword [ebp - 0x14c]
mov ecx, ebx
push dword [ebp - 0x150]
push 0
call fcn.004324ee
mov ecx, ebx
mov dword [ebx + 0xdc], 0x64
call fcn.00432086
push 0x60004
push esi
mov ecx, ebx
call fcn.00427baf
jmp 0x42ab09
mov ecx, ebx
call fcn.00431bac
xor eax, eax
mov ecx, ebx
inc eax
mov dword [ebx + 0xdc], eax
call fcn.00432086
jmp 0x42a7c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
mov esi, eax
call fcn.00431bac
mov ecx, dword [0x5a23ec]
mov eax, dword [ecx + 0x10f94]
test eax, eax
je 0x42ab09
push 0xa
xor edx, edx
pop ecx
div ecx
mov edi, eax
jmp 0x42aafe
lea eax, [ecx + 0xa]
mov ecx, ebx
mov dword [ebx + 0xdc], eax
call fcn.00432086
push 0x100
push 0
push 0
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
add ecx, esi
test ecx, ecx
jle 0x42aaf6
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, dword [ebx + 0xdc]
cmp ecx, 0x64
jl 0x42aaba
push 0x64
pop ecx
cmp dword [ebx + 0xdc], ecx
je 0x42ab21
mov dword [ebx + 0xdc], ecx
mov ecx, ebx
call fcn.00432086
and dword [ebx + 0xdc], 0
lea edi, [ebx + 0x144]
xor eax, eax
lea ecx, [ebp - 0x120]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004d840a
mov ecx, dword [ebx + 0xcc]
lea eax, [ebp - 0x120]
push 2
pop esi
push 0
push eax
mov dword [ebp - 4], esi
call fcn.0040ef51
test eax, eax
js 0x42ab6b
mov ecx, dword [ebp - 0x11c]
lea ecx, [ecx + 0xc]
call fcn.004d08d2
push 0
push 0x491338
push esi
call fcn.004d37e8
add esp, 0xc
cmp byte [ebp - 0x131], 0
je 0x42ab9b
mov ecx, dword [ebx + 0xcc]
push dword [ebp - 0x138]
mov ecx, dword [ecx + 0x3e60]
call fcn.0045c115
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.004d84a5
jmp 0x42ad50
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp byte [ebp - 0x13c], 0
je 0x42ac47
mov eax, dword [0x5a23ec]
mov ecx, 0x7d0
push 0x50008
mov eax, dword [eax + 0x10f94]
cmp eax, ecx
cmova eax, ecx
mov ecx, ebx
push eax
call fcn.00427baf
mov ecx, ebx
call fcn.00431bac
xor eax, eax
mov ecx, ebx
inc eax
mov dword [ebx + 0xdc], eax
call fcn.00432086
cmp byte [ebp - 0x132], 0
mov esi, dword [ebp - 0x138]
jne 0x42ac25
push 2
pop eax
cmp esi, eax
je 0x42ac25
push 7
push dword [0x5a22a4]
call fcn.004ea453
pop ecx
pop ecx
jmp 0x42acf1
push 4
push dword [0x5a22a4]
call fcn.004ea453
push 0
push dword [0x5a22a4]
call fcn.004ea453
add esp, 0x10
jmp 0x42acf1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x5a23ec]
mov esi, eax
xor eax, eax
cmp eax, dword [ecx + 0x10f94]
sbb ecx, ecx
and ecx, 0x5a
inc ecx
mov dword [ebx + 0xdc], ecx
mov ecx, ebx
call fcn.00431bac
mov eax, dword [0x5a23ec]
mov eax, dword [eax + 0x10f94]
test eax, eax
je 0x42acd6
push 0xa
xor edx, edx
pop ecx
div ecx
mov edi, eax
jmp 0x42accb
mov ecx, ebx
call fcn.00432086
push 0x100
push 0
push 0
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_RedrawWindow]
add dword [ebx + 0xdc], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [edi + esi]
sub ecx, eax
test ecx, ecx
jle 0x42acc3
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
cmp dword [ebx + 0xdc], 0
jg 0x42ac8a
jmp 0x42aceb
mov ecx, ebx
call fcn.00432086
jmp 0x42aceb
xor eax, eax
lea edi, [ebx + 0x144]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [ebp - 0x138]
and dword [ebx + 0xdc], 0
push 2
pop eax
cmp esi, eax
jne 0x42ad1d
xor eax, eax
mov ecx, 0x5a5150
inc eax
push 0
mov byte [ebx + 0x1e0], al
call fcn.004c9173
mov byte [ebx + 0x1e0], 0
jmp 0x42ad50
xor eax, eax
inc eax
cmp esi, eax
je 0x42ad2a
cmp dword [ebp + 8], 6
jne 0x42ad50
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10f91], 0
jne 0x42ad50
push 0
push 0xf020
push 0x112
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xd8], eax
xor eax, eax
inc eax
push eax
push str.DoMinimizeRestore_finished
call fcn.004109c9
pop ecx
pop ecx
mov byte [0x5a2485], 0
call fcn.004f418c
ret 4