Function at 0x4224f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x6c
cmp eax, 0xf020
push ebp
push esi
mov ebp, ecx
je 0x4226d2
cmp eax, 0xf120
je 0x42251c
push 0
call fcn.00420230
pop esi
pop ebp
add esp, 0x6c
ret 0xc
mov eax, dword [ebp + 0x18]
xor esi, esi
cmp eax, esi
je 0x42253f
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 0x422749
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 0x42258e
mov eax, dword [ebp + 4]
push eax
call edi
jmp 0x42259a
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 0x422611
test esi, esi
je 0x4225cc
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4225ca
test eax, 0x20000000
je 0x4225cc
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 0x422603
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 0x42263e
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x42263e
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 0x42269b
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x42269d
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x4226b2
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebx]
cmp edx, eax
jle 0x4226b4
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 + 0x3bc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4226f1
mov edx, dword [ebp + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x422712
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x422712
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 + 0x5d8]
test eax, eax
je 0x422749
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov dword [ebp + 0x5d8], 0
xor edx, edx
add ebp, 0x5dc
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