Function at 0x50dcf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov byte [esp + 1], cl
mov byte [esp], dl
mov ebx, eax
cmp dword [ebx + 0x10], 0
je 0x50e25b
mov eax, dword [0x52acd0]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x50e25b
cmp byte [ebx + 0x20], 0
jne 0x50e25b
mov eax, ebx
call fcn.0050e2f8
test eax, eax
je 0x50e25b
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x50e25b
mov eax, dword [0x52ab10]
cmp dword [eax], 0
jne 0x50e25b
mov esi, dword [ebx + 4]
mov eax, esi
mov edx, dword [0x4f8980]
call fcn.00403b08
test al, al
je 0x50de1e
mov eax, dword [esi + 0x1fc]
test byte [eax + 0x2ec], 4
jne 0x50e25b
mov eax, dword [esi + 0x54]
mov ax, word [eax + 0x46]
and ax, 0x800
cmp ax, 0x800
je 0x50e25b
mov eax, dword [ebx + 4]
call fcn.004f96ec
test al, al
jne 0x50e25b
mov eax, dword [ebx + 8]
cmp byte [eax + 0x10], 0
jne 0x50e25b
mov eax, dword [ebx + 4]
cmp byte [eax + 0x78], 0
je 0x50e25b
mov esi, dword [ebx + 4]
test byte [esi + 0x1c], 8
jne 0x50dde6
mov eax, dword [esi + 0x1fc]
test byte [eax + 0x1c], 8
je 0x50ddf4
xor edx, edx
mov eax, esi
call fcn.0050a288
jmp 0x50e25b
mov eax, dword [esi + 0x1fc]
call fcn.004454f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x50de33
push 0
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_ShowWindow
jmp 0x50e25b
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50e25b
mov byte [ebx + 0x20], 1
mov eax, dword [ebx + 8]
cmp byte [eax + 0x2d], 0
jne 0x50de52
mov eax, dword [ebx + 4]
mov edx, dword [0x4f8980]
call fcn.00403b08
test al, al
je 0x50de5d
mov eax, ebx
call fcn.0050e438
mov byte [esp], 1
mov esi, dword [ebx + 4]
mov eax, esi
mov edx, dword [0x4f8980]
call fcn.00403b08
test al, al
je 0x50deac
cmp byte [esi + 0x1c8], 0
je 0x50deac
mov eax, ebx
call fcn.0050e2f8
xor ecx, ecx
mov edx, ebx
call fcn.004f93c8
mov esi, eax
lea edx, [esp + 0x34]
mov eax, ebx
call fcn.0050e350
mov edi, dword [esp + 0x38]
mov eax, ebx
call fcn.004f9470
add edi, eax
add esi, edi
mov dword [esp + 4], esi
jmp 0x50deb7
mov eax, ebx
call fcn.0050e2a4
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0050e2f8
xor ecx, ecx
mov edx, ebx
call fcn.004f93c8
push eax
mov eax, ebx
call fcn.004f9450
mov esi, eax
pop eax
sub esi, eax
lea edx, [esp + 0x34]
mov eax, ebx
call fcn.0050e350
add esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebp, eax
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x50df27
push 3
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_GetWindow
mov dword [esp + 0x20], eax
jmp 0x50df32
mov eax, ebx
call fcn.0050e2f8
mov dword [esp + 0x20], eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x50df55
mov dl, 3
mov eax, dword [ebx + 0x10]
call fcn.00459e14
jmp 0x50dfa8
mov eax, dword [ebx + 4]
mov edx, dword [0x4f8980]
call fcn.00403b08
test al, al
jne 0x50dfa8
push 0xfffffffffffffff0
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x50dfa8
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_SetWindowLongA
mov esi, 0x610
cmp byte [esp], 0
jne 0x50dfc3
mov eax, dword [ebx + 0x10]
cmp edi, dword [eax + 0x48]
jne 0x50dfc3
mov eax, dword [ebx + 0x10]
cmp ebp, dword [eax + 0x4c]
je 0x50dfca
mov byte [esp + 0x1c], 1
jmp 0x50dfd2
or esi, 1
mov byte [esp + 0x1c], 0
cmp byte [esp], 0
jne 0x50dfdb
or esi, 8
push edi
push ebp
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
mov edi, dword [eax]
call dword [edi + 0x84]
call fcn.004d5a90
and al, byte [esp + 0x1c]
je 0x50e235
cmp byte [ebx + 0xc], 0
jne 0x50e235
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.00415bc4
mov edi, dword [ebx + 4]
mov eax, edi
mov edx, dword [0x4f8980]
call fcn.00403b08
test al, al
je 0x50e076
mov eax, dword [edi + 0x1fc]
cmp byte [eax + 0x2e0], 0
je 0x50e076
mov eax, dword [edi + 0x1fc]
mov al, byte [eax + 0x2e1]
mov edx, dword [0x52aa2c]
mov byte [edx + 2], al
jmp 0x50e082
mov eax, dword [0x52aa2c]
mov dl, byte [esp + 1]
mov byte [eax + 2], dl
mov eax, dword [0x52aa2c]
mov byte [eax], 0
mov eax, dword [0x52aa2c]
mov byte [eax + 1], 0
mov eax, dword [0x52aa2c]
mov byte [eax + 3], 1
push 0xffffffffffffffec
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_SetWindowLongA
or esi, 1
or esi, 2
push esi
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, ebx
call fcn.0050e4f0
push eax
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_SetWindowRgn
mov esi, dword [ebx + 4]
mov eax, esi
mov edx, dword [0x4f8980]
call fcn.00403b08
test al, al
je 0x50e17f
mov eax, dword [esi + 0x1fc]
cmp byte [eax + 0x22b], 2
jne 0x50e17f
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x38]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
lea edx, [esp + 0x34]
mov eax, ebx
call fcn.0050e350
sub edi, dword [esp + 0x40]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1fc]
call fcn.004454f4
mov cl, 1
mov edx, ebx
call fcn.004f93c8
mov edx, edi
sub edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov dword [esp + 0x10], esi
mov edx, esi
mov eax, dword [ebx + 0x10]
call fcn.0043e490
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 2
mov eax, dword [0x52aa2c]
push eax
push 0x1fffffff
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
call fcn.004283c0
call fcn.00423c50
push eax
lea eax, [esp + 0x20]
push eax
push 0
push esi
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
mov eax, dword [0x52aa08]
mov eax, dword [eax]
call eax
push esi
push 0
call sub.user32.dll_ReleaseDC
cmp byte [esp + 1], 0
jne 0x50e1f8
push 0xfffffffffffffff0
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_SetWindowLongA
push 4
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_ShowWindow
cmp byte [esp + 1], 0
jne 0x50e257
push 0xfffffffffffffff0
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, ebx
call fcn.0050e2f8
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x50e257
or esi, 1
or esi, 2
push esi
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [ebx + 0x10]
call fcn.004454f4
push eax
call sub.user32.dll_SetWindowPos
mov byte [ebx + 0x20], 0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret