Function at 0x579360
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb8
mov byte [esp], cl
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x10], 0
je 0x5798c7
mov eax, dword [0x5a4a1c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x5798c7
cmp byte [esi + 0x20], 0
jne 0x5798c7
mov eax, esi
call fcn.0057999c
test eax, eax
je 0x5798c7
lea eax, [esp + 0x28]
push eax
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x5798c7
mov eax, dword [0x5a47ac]
cmp dword [eax], 0
jne 0x5798c7
mov edi, dword [esi + 4]
mov eax, edi
mov edx, dword [0x561538]
call fcn.004052c4
test al, al
je 0x579487
mov eax, dword [edi + 0x204]
test byte [eax + 0x384], 4
jne 0x5798c7
mov eax, dword [edi + 0x58]
movzx eax, word [eax + 0x46]
and ax, 0x800
cmp ax, 0x800
je 0x5798c7
mov eax, dword [esi + 4]
call fcn.0056462c
test al, al
jne 0x5798c7
mov eax, dword [esi + 8]
cmp byte [eax + 0x10], 0
jne 0x5798c7
mov eax, dword [esi + 4]
cmp byte [eax + 0x80], 0
je 0x5798c7
mov edi, dword [esi + 4]
test byte [edi + 0x1c], 8
jne 0x57944f
mov eax, dword [edi + 0x204]
test byte [eax + 0x1c], 8
je 0x57945d
xor edx, edx
mov eax, edi
call fcn.005756e4
jmp 0x5798c7
mov eax, dword [edi + 0x204]
call fcn.004b18ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x57949c
push 0
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_ShowWindow
jmp 0x5798c7
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5798c7
mov byte [esi + 0x20], 1
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x5794bb
mov eax, dword [esi + 4]
mov edx, dword [0x561538]
call fcn.004052c4
test al, al
je 0x5794c4
mov eax, esi
call fcn.00579adc
mov bl, 1
mov ebp, dword [esi + 4]
mov eax, ebp
mov edi, dword [0x561538]
mov edx, edi
call fcn.004052c4
test al, al
je 0x579517
cmp byte [ebp + 0x1d0], 0
je 0x579517
mov eax, esi
call fcn.0057999c
xor ecx, ecx
mov edx, esi
call fcn.005642d0
mov ebp, eax
lea edx, [esp + 0x38]
mov eax, esi
call fcn.005799f4
mov eax, dword [esp + 0x3c]
push eax
mov eax, esi
call fcn.00564378
pop edx
add edx, eax
add ebp, edx
mov dword [esp + 8], ebp
jmp 0x579522
mov eax, esi
call fcn.00579948
mov dword [esp + 8], eax
mov eax, esi
call fcn.0057999c
xor ecx, ecx
mov edx, esi
call fcn.005642d0
push eax
mov eax, esi
call fcn.00564358
mov ebp, eax
pop eax
sub ebp, eax
lea edx, [esp + 0x38]
mov eax, esi
call fcn.005799f4
add ebp, dword [esp + 0x38]
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebp, eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [esp + 4], eax
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x579594
push 3
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_GetWindow
mov dword [esp + 0x24], eax
jmp 0x57959f
mov eax, esi
call fcn.0057999c
mov dword [esp + 0x24], eax
push 0xffffffffffffffec
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_GetWindowLongW
and eax, 8
cmp eax, 8
jne 0x5795c2
mov dl, 3
mov eax, dword [esi + 0x10]
call fcn.004d0fa8
jmp 0x579611
mov eax, dword [esi + 4]
mov edx, edi
call fcn.004052c4
test al, al
jne 0x579611
push 0xfffffffffffffff0
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_GetWindowLongW
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x579611
push 0xfffffffffffffff0
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowLongW
mov edi, 0x610
test bl, bl
jne 0x57962e
mov eax, dword [esi + 0x10]
cmp ebp, dword [eax + 0x48]
jne 0x57962e
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x4c]
cmp eax, dword [esp + 4]
je 0x579635
mov byte [esp + 0x20], 1
jmp 0x57963d
or edi, 1
mov byte [esp + 0x20], 0
test bl, bl
jne 0x579644
or edi, 8
push ebp
mov eax, dword [esp + 8]
push eax
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x98]
call fcn.00514a84
and al, byte [esp + 0x20]
je 0x5798a1
cmp byte [esi + 0xc], 0
jne 0x5798a1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
xor edx, edx
xor eax, eax
call fcn.0040a8c8
mov ebx, dword [esi + 4]
mov eax, ebx
mov edx, dword [0x561538]
call fcn.004052c4
test al, al
je 0x5796e4
mov eax, dword [ebx + 0x204]
cmp byte [eax + 0x340], 0
je 0x5796e4
mov eax, dword [ebx + 0x204]
movzx eax, byte [eax + 0x341]
mov edx, dword [0x5a4680]
mov byte [edx + 2], al
jmp 0x5796f0
mov eax, dword [0x5a4680]
movzx edx, byte [esp]
mov byte [eax + 2], dl
mov eax, dword [0x5a4680]
mov byte [eax], 0
mov eax, dword [0x5a4680]
mov byte [eax + 1], 0
mov eax, dword [0x5a4680]
mov byte [eax + 3], 1
push 0xffffffffffffffec
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowLongW
or edi, 1
or edi, 2
push edi
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, esi
call fcn.00579c84
push eax
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowRgn
mov ebx, dword [esi + 4]
mov eax, ebx
mov edx, dword [0x561538]
call fcn.004052c4
test al, al
je 0x5797ed
mov eax, dword [ebx + 0x204]
cmp byte [eax + 0x29a], 2
jne 0x5797ed
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x38]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
mov edi, eax
lea edx, [esp + 0x38]
mov eax, esi
call fcn.005799f4
sub edi, dword [esp + 0x44]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x204]
call fcn.004b18ac
mov cl, 1
mov edx, esi
call fcn.005642d0
mov edx, edi
sub edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov edx, ebx
mov eax, dword [esi + 0x10]
call fcn.004a7fd8
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 2
mov eax, dword [0x5a4680]
push eax
push 0x1fffffff
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x38]
call fcn.0045bfa4
call fcn.0045670c
push eax
lea eax, [esp + 0x24]
push eax
push 0
push ebx
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
mov eax, dword [0x5a4658]
mov eax, dword [eax]
call eax
push ebx
push 0
call sub.user32.dll_ReleaseDC
cmp byte [esp], 0
jne 0x579865
push 0xfffffffffffffff0
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_GetWindowLongW
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_SetWindowLongW
push 4
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
jne 0x5798c3
push 0xfffffffffffffff0
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, esi
call fcn.0057999c
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x5798c3
or edi, 1
or edi, 2
push edi
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esi + 0x10]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowPos
mov byte [esi + 0x20], 0
add esp, 0x48
pop ebp
pop edi
pop esi
pop ebx
ret