Function at 0x4f4b90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff7c
mov byte [esp + 1], cl
mov byte [esp], dl
mov ebx, eax
cmp dword [ebx + 0xc], 0
je 0x4f5101
mov eax, dword [0x52105c]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4f5101
cmp byte [ebx + 0x18], 0
jne 0x4f5101
mov eax, ebx
call fcn.004f514c
test eax, eax
je 0x4f5101
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x4f5101
mov eax, dword [ebx + 4]
mov edx, dword [0x4e13b8]
call fcn.00403b68
test al, al
je 0x4f4c7c
mov eax, dword [ebx + 4]
call fcn.004e1f30
test al, al
jne 0x4f5101
mov eax, dword [ebx + 8]
cmp byte [eax + 0x10], 0
jne 0x4f5101
mov eax, dword [ebx + 4]
test byte [eax + 0x1c], 8
jne 0x4f4c38
mov edx, dword [eax + 0x1d4]
test byte [edx + 0x1c], 8
je 0x4f4c44
xor edx, edx
call fcn.004f1848
jmp 0x4f5101
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1d4]
cmp byte [eax + 0x57], 0
je 0x4f4c67
mov eax, dword [0x52105c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4f4c91
push 0
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_ShowWindow
jmp 0x4f5101
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f5101
mov byte [ebx + 0x18], 1
mov eax, dword [ebx + 8]
cmp byte [eax + 0x2d], 0
je 0x4f4ca9
mov eax, ebx
call fcn.004f5278
mov byte [esp], 1
mov esi, dword [ebx + 4]
mov eax, esi
mov edi, dword [0x4e13b8]
mov edx, edi
call fcn.00403b68
test al, al
je 0x4f4ce9
cmp byte [esi + 0x1a8], 0
je 0x4f4ce9
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.004f5190
mov esi, dword [esp + 0x48]
mov eax, ebx
call fcn.004e1d90
add esi, eax
add esi, 4
mov dword [esp + 8], esi
jmp 0x4f4d24
xor edx, edx
mov eax, ebx
call fcn.004f51e8
push eax
mov eax, ebx
call fcn.004e1d50
mov esi, eax
pop eax
sub esi, eax
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.004f5190
add esi, dword [esp + 0x48]
mov eax, ebx
call fcn.004f514c
xor ecx, ecx
mov edx, ebx
call fcn.004e1ce8
sub esi, eax
mov dword [esp + 8], esi
mov eax, ebx
call fcn.004f514c
xor ecx, ecx
mov edx, ebx
call fcn.004e1ce8
push eax
mov eax, ebx
call fcn.004e1d70
mov esi, eax
pop eax
sub esi, eax
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.004f5190
add esi, dword [esp + 0x44]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebp, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
mov eax, ebx
call fcn.004f514c
mov dword [esp + 0x20], eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4f4d9a
mov dl, 3
mov eax, dword [ebx + 0xc]
call fcn.0046083c
jmp 0x4f4de9
mov eax, dword [ebx + 4]
mov edx, edi
call fcn.00403b68
test al, al
jne 0x4f4de9
push 0xfffffffffffffff0
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x4f4de9
push 0xfffffffffffffff0
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_SetWindowLongA
mov edi, 0x610
cmp byte [esp], 0
jne 0x4f4e08
mov eax, dword [ebx + 0xc]
cmp ebp, dword [eax + 0x48]
jne 0x4f4e08
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x4c]
cmp eax, dword [esp + 4]
je 0x4f4e0f
mov byte [esp + 0x1c], 1
jmp 0x4f4e17
or edi, 1
mov byte [esp + 0x1c], 0
cmp byte [esp], 0
jne 0x4f4e20
or edi, 8
mov edx, dword [esp + 0x24]
sub edx, esi
mov eax, dword [ebx + 0xc]
call fcn.004451a8
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 8]
mov eax, dword [ebx + 0xc]
call fcn.004451cc
mov edx, ebp
mov eax, dword [ebx + 0xc]
call fcn.004451f4
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0xc]
call fcn.00445218
call fcn.004c8e4c
and al, byte [esp + 0x1c]
je 0x4f50db
cmp byte [0x520828], 0
jne 0x4f50db
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
xor edx, edx
xor eax, eax
call fcn.00417c6c
mov esi, dword [ebx + 4]
mov eax, esi
mov edx, dword [0x4e13b8]
call fcn.00403b68
test al, al
je 0x4f4ed6
mov eax, dword [esi + 0x1d4]
cmp byte [eax + 0x2e0], 0
je 0x4f4ed6
mov eax, dword [esi + 0x1d4]
mov dl, 0xff
sub dl, byte [eax + 0x2e1]
mov eax, dword [0x520d9c]
mov byte [eax + 2], dl
jmp 0x4f4ee2
mov eax, dword [0x520d9c]
mov dl, byte [esp + 1]
mov byte [eax + 2], dl
mov eax, dword [0x520d9c]
mov byte [eax], 0
mov eax, dword [0x520d9c]
mov byte [eax + 1], 0
mov eax, dword [0x520d9c]
mov byte [eax + 3], 1
push 0xffffffffffffffec
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_SetWindowLongA
or edi, 1
or edi, 2
push edi
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_SetWindowPos
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x4f5013
mov eax, ebx
call fcn.004f514c
xor ecx, ecx
mov edx, ebx
call fcn.004e1ce8
mov esi, eax
mov eax, ebx
call fcn.004e1dcc
mov edi, eax
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.004f5190
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x4c]
sub eax, esi
sub eax, edi
sub eax, dword [esp + 0x50]
push eax
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x5c]
mov eax, ebx
call fcn.004f5190
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
sub eax, esi
sub eax, edi
sub eax, dword [esp + 0x64]
push eax
lea edx, [esp + 0x70]
mov eax, ebx
call fcn.004f5190
mov eax, dword [esp + 0x74]
add eax, 4
push eax
lea edx, [esp + 0x84]
mov eax, ebx
call fcn.004f5190
mov eax, dword [esp + 0x84]
add edi, esi
add eax, edi
pop edx
pop ecx
call fcn.00417c94
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.gdi32.dll_CreateRectRgn
mov esi, eax
push 0xffffffffffffffff
push esi
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_SetWindowRgn
jmp 0x4f5025
push 0
push 0
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_SetWindowRgn
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 2
mov eax, dword [0x520d9c]
push eax
push 0x1fffffff
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
call fcn.004286d4
call fcn.00423d24
push eax
lea eax, [esp + 0x20]
push eax
push 0
push esi
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
mov eax, dword [0x520d78]
mov eax, dword [eax]
call eax
cmp byte [esp + 1], 0
jne 0x4f5096
push 0xfffffffffffffff0
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_SetWindowLongA
push 4
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_ShowWindow
cmp byte [esp + 1], 0
jne 0x4f50d1
push 0xfffffffffffffff0
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, ebx
call fcn.004f514c
push eax
call sub.user32.dll_SetWindowLongA
push 0
push esi
call sub.user32.dll_ReleaseDC
jmp 0x4f50fd
or edi, 1
or edi, 2
push edi
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [ebx + 0xc]
call fcn.0044c258
push eax
call sub.user32.dll_SetWindowPos
mov byte [ebx + 0x18], 0
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret