Function at 0x4217a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x6c
cmp eax, 0xf020
push ebp
push esi
mov ebp, ecx
je 0x421982
cmp eax, 0xf120
je 0x4217cc
push 0
call fcn.0041f580
pop esi
pop ebp
add esp, 0x6c
ret 0xc
mov eax, dword [ebp + 0x18]
xor esi, esi
cmp eax, esi
je 0x4217ef
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esp + 0x30], esi
jg 0x4219f9
mov edx, dword [ebp + 4]
push ebx
push edi
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
and ebx, 0x40000000
je 0x42183e
mov eax, dword [ebp + 4]
push eax
call edi
jmp 0x42184a
mov ecx, dword [ebp + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
jne 0x4218c1
test esi, esi
je 0x42187c
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x42187a
test eax, 0x20000000
je 0x42187c
xor esi, esi
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test esi, esi
jne 0x4218b3
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x4218ee
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4218ee
mov ecx, dword [ebp + 4]
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x20]
mov edi, eax
push edx
push edi
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 2
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
sub ebx, edx
mov edx, dword [esp + 0x18]
sub edi, esi
add eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x42194b
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x42194d
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x421962
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebx]
cmp edx, eax
jle 0x421964
sub eax, ebx
mov esi, eax
mov eax, dword [ebp + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x6c
ret 0xc
mov ecx, dword [ebp + 0x3b0]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4219a1
mov edx, dword [ebp + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4219c2
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4219c2
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov eax, dword [ebp + 0x5cc]
test eax, eax
je 0x4219f9
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov dword [ebp + 0x5cc], 0
xor edx, edx
add ebp, 0x5d0
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
pop esi
pop ebp
add esp, 0x6c
ret 0xc