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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8240
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, ecx
cmp dword [esi + 0x40a4], 0
jne 0x420a16
cmp byte [0x52fdf6], 0
jne 0x420a16
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
mov dword [ebp - 0x20], eax
call fcn.004b7150
mov byte [ebp - 0xe], al
mov eax, dword [0x52fe14]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
jne 0x420142
mov ecx, dword [0x52fe30]
cmp byte [ecx + 0x1220], al
je 0x42011e
cmp byte [esi + 0x40ee], al
jne 0x420138
cmp byte [esi + 0x4090], 0
jne 0x42013e
mov edx, dword [0x52fe14]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42013e
mov byte [ebp - 0xd], 1
jmp 0x420142
mov byte [ebp - 0xd], 0
mov eax, dword [0x52fe14]
push ebx
mov bl, byte [ebp - 0xd]
push edi
push eax
mov byte [ebp - 0xf], bl
call dword [sym.imp.USER32.dll_IsWindowVisible]
movzx edx, byte [ebp - 0xe]
mov edi, dword [ebp + 8]
push eax
movzx ecx, bl
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
push edi
lea ecx, [ebp - 0x13c]
push str.DoMinimizeRestore__i__Forex_08X_Our_u_Iconic_u_Vis_u
push ecx
call ebx
mov edx, dword [0x52fe34]
add esp, 0x1c
cmp byte [edx + 0x125fa], 1
jb 0x4201b6
mov eax, dword [0x52fe2c]
test eax, eax
je 0x4201b6
mov ecx, dword [eax + 0x40b0]
test ecx, ecx
je 0x4201b6
push 1
push 0
push 1
lea eax, [ebp - 0x13c]
push eax
call fcn.004c77f0
cmp edi, 8
jne 0x420229
cmp byte [ebp - 0xd], 0
je 0x42022e
cmp dword [esi + 0x4858], 0
je 0x42021f
mov ecx, dword [0x52fe30]
call fcn.0044e5b0
test al, al
je 0x42021f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x4858]
cmp eax, 0x1f4
jae 0x42021f
push eax
lea ecx, [ebp - 0x13c]
push str.DoMinimizeRestore_skipped__delay_was__u_ms
push ecx
call ebx
lea edx, [ebp - 0x13c]
push 1
push edx
call fcn.0040d530
add esp, 0x14
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov edi, 3
mov dword [ebp + 8], edi
jmp 0x420287
cmp edi, 7
jne 0x42025f
mov ecx, dword [0x52fe30]
cmp byte [ecx + 0x1220], 0
je 0x420255
push 0
call fcn.0044e5d0
xor ecx, ecx
test al, al
sete cl
add ecx, 5
mov edi, ecx
mov dword [ebp + 8], edi
jmp 0x420269
mov edi, 6
mov dword [ebp + 8], edi
jmp 0x420269
cmp edi, 5
je 0x420269
cmp edi, 6
jne 0x420287
cmp byte [ebp - 0xd], 0
mov dword [esi + 0x4850], 0
jne 0x420a14
cmp dword [ebp - 0x1c], 0
je 0x420a14
mov byte [0x52fdf6], 1
test edi, edi
jne 0x4202ab
mov ecx, dword [0x52fe30]
push edi
call fcn.0044e5d0
xor edx, edx
test al, al
setne dl
inc edx
mov edi, edx
mov dword [ebp + 8], edi
cmp edi, 3
jne 0x4202b7
mov edi, 3
jmp 0x42032a
cmp edi, 1
je 0x4202ee
cmp edi, 6
je 0x4202ee
cmp edi, 2
je 0x4202ee
cmp edi, 5
je 0x4202ee
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4202b0
cmp byte [ebp - 0xe], 0
jne 0x4202e7
cmp byte [ebp - 0xd], 0
jne 0x4202b0
mov edi, 4
jmp 0x42032a
cmp dword [ebp - 0x1c], 0
je 0x42030f
cmp byte [ebp - 0xe], 0
jne 0x420309
mov ecx, dword [0x52fe30]
cmp byte [ecx + 0x1235], 0
je 0x42030f
cmp byte [ebp - 0xd], 0
je 0x420320
cmp edi, 5
je 0x420325
cmp edi, 6
je 0x420320
mov edi, 3
jmp 0x42032a
cmp edi, 5
jne 0x42032a
mov edi, 2
mov ecx, dword [0x52fe30]
xor ebx, ebx
push ebx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x18], 0
call fcn.0044e5d0
mov byte [ebp - 0xe], al
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1220], bl
je 0x420364
cmp dword [eax + 0x1224], ebx
jbe 0x420364
call fcn.004b7370
test al, al
jne 0x420364
mov byte [ebp - 0x18], 1
mov edx, dword [0x52fe34]
cmp byte [edx + 0x125fa], bl
jbe 0x42051d
cmp edi, 8
ja case.default.0x42037f
jmp dword [edi*4 + 0x420a28]
push 1
push str.DoMinimizeRestore_sih_None_
call fcn.0040d530
add esp, 8
mov byte [esi + 0x40ee], 1
cmp dword [ebp - 0x1c], ebx
je 0x4203ad
cmp byte [ebp - 0xd], bl
jne 0x4203ad
mov ecx, esi
call fcn.004152e0
mov eax, dword [0x52ff6c]
cmp eax, dword [0x52fe14]
je 0x4203ea
cmp eax, dword [0x5306c8]
je 0x4203ea
push eax
call fcn.004b7150
add esp, 4
test al, al
je 0x4203ea
mov edx, dword [0x52fe14]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x52fe14]
push eax
call fcn.004c57c0
add esp, 4
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1220], bl
je 0x420994
cmp byte [ebp - 0x18], bl
je 0x4208dd
mov eax, dword [eax + 0x1224]
cmp eax, 0x7d0
jbe 0x420416
mov eax, 0x7d0
mov ecx, dword [0x52fe14]
push 0x50008
push eax
push ecx
call dword [sym.imp.USER32.dll_AnimateWindow]
mov ecx, esi
call fcn.0041ff20
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x408c], 1
call fcn.0041e140
mov edx, dword [0x52fe14]
push 4
push edx
call fcn.004c57d0
mov eax, dword [0x52fe14]
push 0
push eax
call fcn.004c57d0
add esp, 0x10
cmp byte [ebp - 0xe], bl
jne 0x420994
cmp dword [ebp - 0x14], 2
je 0x420994
mov ecx, dword [0x52fe14]
push 4
push ecx
call fcn.004c57d0
add esp, 8
jmp 0x420994
push 1
push str.DoMinimizeRestore_sih_ShowMinimize_
jmp 0x42038d
push 1
push str.DoMinimizeRestore_sih_ShowHideTSA_
jmp 0x42038d
push 1
push str.DoMinimizeRestore_sih_Show_
call fcn.0040d530
add esp, 8
jmp 0x42053e
push 1
push str.DoMinimizeRestore_sih_SetForeground_
call fcn.0040d530
mov eax, dword [0x52fe14]
add esp, 8
push eax
call fcn.004c57c0
add esp, 4
jmp 0x4209f2
push 1
push str.DoMinimizeRestore_sih_HideTSA_
jmp 0x42038d
push 1
push str.DoMinimizeRestore_sih_Minimize_
jmp 0x42038d
push 1
push str.DoMinimizeRestore_sih_AutoHide_
jmp 0x42038d
push 1
push str.DoMinimizeRestore_sih_QuakeShowHide_
jmp 0x42038d
push 1
push str.DoMinimizeRestore_Unknown_cmd_
call fcn.0040d530
add esp, 8
cmp edi, 4
jne 0x420535
mov eax, dword [0x52fe14]
push eax
call fcn.004c57c0
add esp, 4
jmp 0x4209f2
cmp edi, 3
jne 0x420395
mov byte [ebp + 0xb], bl
mov byte [ebp - 0x14], bl
cmp byte [ebp - 0xd], bl
je 0x420559
mov ecx, dword [esi + 0x409c]
push 1
call fcn.00447f90
mov byte [ebp - 0x14], al
mov ecx, dword [0x52fe30]
cmp byte [ecx + 0x11295], bl
je 0x4205b9
lea ecx, [ebp - 0x2c]
call fcn.004bc8c0
lea edx, [ebp - 0x2c]
push ebx
push edx
mov dword [ebp - 4], ebx
call fcn.004b69a0
add esp, 8
test eax, eax
jl 0x4205aa
mov edi, dword [esi + 0x408c]
push ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x408c], 0x64
call fcn.004bc9d0
mov ecx, eax
call fcn.004c41c0
mov dword [esi + 0x408c], edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1220], 0
je 0x4205ed
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [0x52fe14]
jne 0x420797
cmp byte [ebp - 0xd], 0
jne 0x420797
cmp dword [ebp - 0x1c], ebx
je 0x420797
mov byte [ebp + 0xb], 1
mov dword [esi + 0x408c], ebx
cmp byte [0x532db9], 0
jne 0x42060d
mov edx, dword [0x52fe14]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42064d
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ebp - 0x18]
mov edi, dword [esi + 0x550c]
push ecx
push ebx
mov ecx, 0x532a10
mov dword [esi + 0x5508], 1
mov dword [esi + 0x550c], eax
call fcn.004ae3e0
push ebx
mov ecx, esi
mov dword [esi + 0x550c], edi
mov dword [esi + 0x5508], ebx
call fcn.004098e0
mov byte [ebp - 0xf], al
mov edx, dword [0x52fe14]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x420694
mov ecx, dword [esi + 0x409c]
push 1
call fcn.00447f70
push ebx
push 0xf120
mov byte [ebp - 0x20], al
mov eax, dword [0x52fe14]
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x409c]
call fcn.00447f70
mov edx, dword [0x52fe30]
cmp byte [edx + 0x1220], 0
je 0x4206c7
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.004141f0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [0x52fe14]
push 5
push ebx
push ebx
push ecx
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [esi + 0x40ee], 0
mov ecx, dword [0x52fe14]
push ecx
call fcn.004c57c0
mov eax, dword [0x52fe30]
add esp, 4
cmp byte [eax + 0x1220], 0
je 0x420866
cmp byte [ebp + 0xb], 0
jne 0x420844
cmp byte [ebp - 0x18], 0
je 0x4207bc
mov ebx, dword [eax + 0x1224]
cmp ebx, 0x7d0
jbe 0x420716
mov ebx, 0x7d0
lea edx, [ebp - 0x4c]
push edx
mov ecx, esi
call fcn.004141f0
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x420742
mov ecx, dword [0x52fe14]
push 0
push ecx
call fcn.004c57d0
add esp, 8
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push 4
sub ecx, edi
push ecx
sub eax, edx
push eax
push edi
push edx
mov edx, dword [0x52fe14]
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x408c], 0x64
call fcn.0041e140
mov eax, dword [0x52fe14]
push 0x60004
push ebx
push eax
call dword [sym.imp.USER32.dll_AnimateWindow]
jmp 0x420844
mov ecx, esi
call fcn.0041ff20
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x408c], 1
call fcn.0041e140
jmp 0x4205f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov edi, eax
call fcn.0041ff20
mov ecx, dword [0x52fe30]
mov ecx, dword [ecx + 0x1224]
test ecx, ecx
jbe 0x420844
mov eax, 0xcccccccd
mul ecx
mov ebx, edx
shr ebx, 3
cmp dword [esi + 0x408c], 0x64
jge 0x420844
add dword [esi + 0x408c], 0xa
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e140
mov edx, dword [0x52fe14]
push 0x100
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
add ecx, edi
test ecx, ecx
jle 0x420833
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x408c], 0x64
mov edi, eax
jl 0x4207f0
mov eax, 0x64
cmp dword [esi + 0x408c], eax
je 0x420866
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x408c], eax
call fcn.0041e140
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x408c], 0
call fcn.004bc8c0
lea eax, [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.004b69a0
add esp, 8
test eax, eax
jl 0x4208a3
lea ecx, [ebp - 0x3c]
call fcn.004bc9d0
mov ecx, eax
add ecx, 8
call fcn.004b34a0
push 0
push 0x486d60
push 2
call fcn.004b68a0
add esp, 0xc
cmp byte [ebp - 0xf], 0
je 0x4208c9
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x409c]
call fcn.00447f90
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
jmp 0x4209f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [0x52fe30]
xor edx, edx
cmp edx, dword [eax + 0x1224]
mov ecx, esi
sbb eax, eax
and eax, 0x5a
inc eax
mov dword [esi + 0x408c], eax
call fcn.0041ff20
mov ecx, dword [0x52fe30]
mov ecx, dword [ecx + 0x1224]
test ecx, ecx
jbe 0x420985
mov eax, 0xcccccccd
mul ecx
mov ebx, edx
shr ebx, 3
cmp dword [esi + 0x408c], 0
jle 0x420994
lea ebx, [ebx]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e140
mov edx, dword [0x52fe14]
push 0x100
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
add dword [esi + 0x408c], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebx + edi]
sub ecx, eax
test ecx, ecx
jle 0x420972
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x408c], 0
mov edi, eax
jg 0x420930
jmp 0x420994
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e140
mov eax, dword [ebp - 0x14]
xor edi, edi
mov dword [esi + 0x408c], edi
cmp eax, 2
jne 0x4209c1
push edi
mov ecx, 0x532a10
mov dword [esi + 0x5508], 1
call fcn.004ae350
mov dword [esi + 0x5508], edi
jmp 0x4209f2
cmp eax, 1
je 0x4209cc
cmp dword [ebp + 8], 6
jne 0x4209f2
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1220], 0
jne 0x4209f2
mov ecx, dword [0x52fe14]
push edi
push 0xf020
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
push str.DoMinimizeRestore_finished
mov dword [esi + 0x4858], eax
call fcn.0040d530
add esp, 8
mov byte [0x52fdf6], 0
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4