Function at 0x4f9378
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004f9bbc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x4f9ae6
mov eax, dword [0x570430]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4f9ae6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x4f9ae6
cmp dword [ebp - 0x44], 0
je 0x4f9ae6
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x54], 0
jne 0x4f9ae6
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4e1dc8]
call fcn.00403d30
test al, al
je 0x4f9536
mov eax, dword [ebx + 0x54]
mov ax, word [eax + 0x4e]
and ax, 0x800
cmp ax, 0x800
je 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004e3f70
test al, al
jne 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x18], 0
jne 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x78], 0
je 0x4f9ae6
mov eax, dword [0x5706f8]
mov eax, dword [eax]
cmp word [eax + 0x8c], 1
je 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x1c], 8
jne 0x4f9482
mov edx, dword [eax + 0x22c]
test byte [edx + 0x1c], 8
je 0x4f948e
xor edx, edx
call fcn.004f52f4
jmp 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.0044f898
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4f94e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x20c]
test ebx, ebx
je 0x4f94c1
cmp ebx, 0x8000
jne 0x4f94e3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov byte [eax + 0x35], 1
jmp 0x4f9ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x22f], 3
jne 0x4f9510
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x4f952f
call fcn.004e3e18
test al, al
je 0x4f952f
mov dword [ebp - 0x1c], 5
jmp 0x4f9577
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x4f9577
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f9ae6
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4f9572
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowPos
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
mov eax, dword [ebp - 4]
call fcn.004fa124
test eax, 0x1180
jne 0x4f959b
mov eax, dword [0x57074c]
cmp byte [eax], 0
je 0x4f96fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x35], 0
je 0x4f95af
mov eax, dword [ebp - 4]
call fcn.004f9cfc
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4e1dc8]
call fcn.00403d30
test al, al
je 0x4f95dc
mov edx, ebx
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
call fcn.004e3990
jmp 0x4f9715
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4f96f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x44]
call fcn.004cb91c
push 0xcc0020
mov esi, dword [ebp - 0x50]
push esi
mov ebx, dword [ebp - 0x54]
push ebx
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004fc824
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004fc810
push eax
mov eax, dword [ebp - 4]
call fcn.004f9b68
add eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.004f9b30
add eax, ebx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
call fcn.0042ba54
call fcn.004273e0
push eax
call sub.gdi32.dll_BitBlt
push 0
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004fc824
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004f9b68
add eax, dword [ebp - 0x50]
add ebx, eax
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004fc810
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004f9b30
add eax, dword [ebp - 0x54]
add ebx, eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004f9b68
add eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9b30
add eax, dword [ebp - 0x54]
pop edx
pop ecx
call fcn.00406e78
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov cl, 0xff
call fcn.004c4670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9715
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_ReleaseDC
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x35], 0
je 0x4f9715
mov eax, dword [ebp - 4]
call fcn.004f9cfc
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4e1dc8]
call fcn.00403d30
test al, al
je 0x4f9763
cmp byte [ebx + 0x1ec], 0
je 0x4f9763
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
call fcn.004e3c44
mov ebx, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004f9c14
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.004e3cec
add esi, eax
add ebx, esi
mov dword [ebp - 0x14], ebx
jmp 0x4f976e
mov eax, dword [ebp - 4]
call fcn.004f9b68
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
call fcn.004e3c44
push eax
mov eax, dword [ebp - 4]
call fcn.004e3ccc
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004f9c14
add ebx, dword [ebp - 0x74]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4f97d7
mov eax, dword [ebp - 4]
call fcn.004fa124
and eax, 1
cmp eax, 1
jne 0x4f97e7
push 3
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x3c], eax
jmp 0x4f97ed
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov ebx, 0x610
cmp byte [ebp - 5], 0
jne 0x4f980e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp edi, dword [eax + 0x48]
jne 0x4f980e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp esi, dword [eax + 0x4c]
je 0x4f9814
mov byte [ebp - 0x35], 1
jmp 0x4f981b
or ebx, 1
mov byte [ebp - 0x35], 0
cmp byte [ebp - 5], 0
jne 0x4f9824
or ebx, 8
lea ecx, [ebp - 0xe]
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x18]
call fcn.00406e94
call fcn.004fd398
and al, byte [ebp - 0x35]
je 0x4f9ab7
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x4f9ab7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x34]
xor edx, edx
xor eax, eax
call fcn.00406e94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x4e1dc8]
call fcn.00403d30
test al, al
je 0x4f98c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4f98c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
mov al, byte [eax + 0x2e1]
mov byte [ebp - 0x3e], al
jmp 0x4f98c8
mov al, byte [ebp - 6]
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3d], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp edi, dword [eax + 0x48]
jne 0x4f98e4
cmp esi, dword [eax + 0x4c]
je 0x4f98fd
push edi
sub esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x84]
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004f9ffc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, esi
mov edx, dword [0x4e1dc8]
call fcn.00403d30
test al, al
je 0x4f99b1
mov eax, dword [esi + 0x22c]
cmp byte [eax + 0x22b], 2
jne 0x4f99b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004f9c14
sub esi, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.0044f898
mov cl, 1
mov edx, dword [ebp - 4]
call fcn.004e3c44
mov edx, esi
sub edx, eax
sub edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.00448890
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x24], eax
push 2
lea eax, [ebp - 0x40]
push eax
push 0x1fffffff
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
call fcn.0042ba54
call fcn.004273e0
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
mov eax, dword [0x56ff10]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x10000000
cmp eax, 0x10000000
je 0x4f9a91
cmp byte [ebp - 6], 0
jne 0x4f9a4b
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowLongA
push 0x253
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
call sub.user32.dll_SetWindowPos
cmp byte [ebp - 6], 0
jne 0x4f9adf
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x4f9adf
or ebx, 1
or ebx, 2
push ebx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4f9adf
or ebx, 1
or ebx, 4
push ebx
push 0
push 0
mov eax, dword [ebp - 0xa]
push eax
mov eax, dword [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0044f898
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret