Function at 0x412d00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x6c
cmp eax, 0xf020
push ebp
push esi
mov ebp, ecx
je 0x412ee2
cmp eax, 0xf120
je 0x412d2c
push 0
call fcn.00410fa0
pop esi
pop ebp
add esp, 0x6c
ret 0xc
mov eax, dword [ebp + 0x18]
xor esi, esi
cmp eax, esi
je 0x412d4f
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 0x412f59
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 0x412d9e
mov eax, dword [ebp + 4]
push eax
call edi
jmp 0x412daa
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 0x412e21
test esi, esi
je 0x412ddc
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x412dda
test eax, 0x20000000
je 0x412ddc
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 0x412e13
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 0x412e4e
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x412e4e
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 0x412eab
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x412ead
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x412ec2
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebx]
cmp edx, eax
jle 0x412ec4
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 + 0x31c]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412f01
mov edx, dword [ebp + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x412f22
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x412f22
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 + 0x4f4]
test eax, eax
je 0x412f59
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov dword [ebp + 0x4f4], 0
xor edx, edx
add ebp, 0x4f8
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