Function at 0x642b38
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [0x678800]
call fcn.00644290
mov eax, dword [ebp - 4]
or byte [eax + 0x18d], 4
xor eax, eax
push ebp
push 0x642d89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe5], 0
je 0x642cd7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x13e], 1
jne 0x642c14
mov eax, dword [ebp - 4]
cmp byte [eax + 0x13a], 2
jne 0x642bbd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x34]
shl edx, 0x10
or eax, edx
push eax
push 2
push 5
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
push 0x660a38
call sub.user32.dll_CallWindowProcW
jmp 0x642d71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x34]
shl edx, 0x10
or eax, edx
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
push 0x660a38
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
test byte [eax + 0xbd], 2
jne 0x642d71
push 0
push 0
push 0x22
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
push 0x660a38
call sub.user32.dll_CallWindowProcW
jmp 0x642d71
mov eax, dword [ebp - 4]
test byte [eax + 0x18d], 0x40
je 0x642c77
mov eax, dword [ebp - 4]
test byte [eax + 0x18d], 0x20
jne 0x642c6d
mov ecx, dword [0x6720b8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 4]
sub ecx, dword [eax + 0x34]
sar ecx, 1
jns 0x642c41
adc ecx, 0
mov eax, dword [0x6726c0]
add ecx, dword [eax + 4]
mov edx, dword [0x6720f0]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x30]
sar edx, 1
jns 0x642c5e
adc edx, 0
mov eax, dword [0x6726c0]
add edx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.0064624c
mov eax, dword [ebp - 4]
and byte [eax + 0x18d], 0xbf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x18c], 0
je 0x642ca2
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
call sub.user32.dll_SetWindowPos
jmp 0x642d71
mov eax, dword [ebp - 4]
test byte [eax + 0xbd], 2
jne 0x642d71
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x13a]
mov eax, dword [eax*4 + 0x6704c0]
push eax
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
call sub.user32.dll_ShowWindow
jmp 0x642d71
mov eax, dword [ebp - 4]
test byte [eax + 0x18d], 8
je 0x642d02
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
call sub.user32.dll_SetWindowPos
jmp 0x642d71
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0064a424
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x642d38
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x642d38
mov eax, dword [ebp - 4]
call fcn.0064a424
call fcn.00640514
mov ebx, eax
test ebx, ebx
je 0x642d61
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x642d71
push 0
mov eax, dword [ebp - 4]
call fcn.0064a424
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642d90
mov eax, dword [ebp - 4]
and byte [eax + 0x18d], 0xfb
ret