Function at 0x4b5f08
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.004b6794
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x4b66be
mov eax, dword [0x5090ac]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4b66be
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x4b66be
cmp dword [ebp - 0x44], 0
je 0x4b66be
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x54], 0
jne 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4b610b
mov eax, dword [eax + 0x54]
mov ax, word [eax + 0x4e]
and ax, 0x800
cmp ax, 0x800
je 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004a0728
test al, al
jne 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x18], 0
jne 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp byte [eax + 0x78], 0
je 0x4b66be
mov eax, dword [0x509274]
mov eax, dword [eax]
cmp word [eax + 0x8c], 1
je 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test byte [eax + 0x1c], 8
jne 0x4b6005
mov edx, dword [eax + 0x22c]
test byte [edx + 0x1c], 8
je 0x4b6011
xor edx, edx
call fcn.004b1d6c
jmp 0x4b66be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x22c]
call fcn.004489a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4b6066
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x20c]
test ebx, ebx
je 0x4b6044
cmp ebx, 0x8000
jne 0x4b6066
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004489a4
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov byte [eax + 0x35], 1
jmp 0x4b66be
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x22f], 3
jne 0x4b60ab
call sub.user32.dll_GetActiveWindow
cmp eax, dword [ebp - 0x44]
jne 0x4b60a4
push 0x213
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowPos
xor eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x4b60e5
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4b60df
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 dword [ebp - 0x3c], 0xffffffff
jmp 0x4b60e5
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x4b6104
call fcn.004a05d0
test al, al
je 0x4b6104
mov dword [ebp - 0x1c], 5
jmp 0x4b616d
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x4b616d
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b66be
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
mov ebx, eax
and ebx, 8
cmp ebx, 8
jne 0x4b6163
call sub.user32.dll_GetActiveWindow
cmp eax, dword [ebp - 0x44]
jne 0x4b615a
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 dword [ebp - 0x3c], 0xffffffff
jmp 0x4b6168
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.004b6df4
test eax, 0x1180
jne 0x4b618a
mov eax, dword [0x5092a4]
cmp byte [eax], 0
je 0x4b62df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x35], 0
je 0x4b619e
mov eax, dword [ebp - 4]
call fcn.004b68d4
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4b61be
mov edx, eax
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
call fcn.004a00d0
jmp 0x4b62f7
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 0x4b62d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x44]
call fcn.00490ee8
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.005017ec
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.005017d8
push eax
mov eax, dword [ebp - 4]
call fcn.004b6740
add eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.004b6708
add eax, ebx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
call fcn.00428000
call fcn.00423b34
push eax
call sub.gdi32.dll_BitBlt
push 0
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.005017ec
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004b6740
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.005017d8
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004b6708
add eax, dword [ebp - 0x54]
add ebx, eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004b6740
add eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.004b6708
add eax, dword [ebp - 0x54]
pop edx
pop ecx
call fcn.004069fc
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x40]
mov cl, 0xff
call fcn.004d4f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b62f7
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 0x4b62f7
mov eax, dword [ebp - 4]
call fcn.004b68d4
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4b6337
cmp byte [eax + 0x1ec], 0
je 0x4b632a
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004b67ec
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.004a04a4
add ebx, eax
add ebx, 4
mov dword [ebp - 0x14], ebx
jmp 0x4b6342
mov eax, dword [ebp - 4]
call fcn.004b6740
mov dword [ebp - 0x14], eax
jmp 0x4b6342
mov eax, dword [ebp - 4]
call fcn.004b6740
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
call fcn.004a0384
push eax
mov eax, dword [ebp - 4]
call fcn.004a0484
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004b67ec
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 esi, 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 edi, eax
cmp dword [ebp - 0x3c], 0
jne 0x4b63c7
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4b63b1
mov eax, dword [ebp - 4]
call fcn.004b6df4
and eax, 1
cmp eax, 1
jne 0x4b63c1
push 3
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x3c], eax
jmp 0x4b63c7
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov ebx, 0x610
cmp byte [ebp - 5], 0
jne 0x4b63e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp esi, dword [eax + 0x48]
jne 0x4b63e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp edi, dword [eax + 0x4c]
je 0x4b63ee
mov byte [ebp - 0x35], 1
jmp 0x4b63f5
or ebx, 1
mov byte [ebp - 0x35], 0
cmp byte [ebp - 5], 0
jne 0x4b63fe
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.00406a18
call fcn.004e1884
and al, byte [ebp - 0x35]
je 0x4b6692
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x4b6692
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.00406a18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x49e4f4]
call fcn.00403924
test al, al
je 0x4b649c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4b649c
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 0x4b64a2
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 esi, dword [eax + 0x48]
jne 0x4b64be
cmp edi, dword [eax + 0x4c]
je 0x4b64d7
push esi
sub edi, dword [ebp - 0x1c]
push edi
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.004b6ccc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, esi
mov edx, dword [0x49e4f4]
call fcn.00403924
test al, al
je 0x4b658c
mov eax, dword [esi + 0x22c]
cmp byte [eax + 0x22b], 2
jne 0x4b658c
cmp dword [ebp - 0x1c], 0
je 0x4b656c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov esi, dword [eax + 0x40]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004b67ec
sub edi, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.004489a4
mov cl, 1
mov edx, dword [ebp - 4]
call fcn.004a0384
mov edx, edi
sub edx, eax
sub edx, dword [ebp - 0x1c]
mov eax, esi
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.0044199c
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.00428000
call fcn.00423b34
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.004489a4
push eax
mov eax, dword [0x508dd0]
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.004489a4
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x10000000
cmp eax, 0x10000000
je 0x4b666c
cmp byte [ebp - 6], 0
jne 0x4b6626
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.004489a4
push eax
call sub.user32.dll_SetWindowPos
cmp byte [ebp - 6], 0
jne 0x4b66b7
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 0x4b66b7
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.004489a4
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4b66b7
or ebx, 1
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.004489a4
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