Function at 0x407c00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x407ef6
cmp byte [edi + 0x401], 0
push ebx
push esi
jne 0x407cb5
mov ecx, dword [0x413974]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x413974]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x24]
sub esi, dword [ebp - 0x20]
xor eax, eax
cmp dword [0x413168], eax
je 0x407c9b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
lea edx, [ebp - 0x14]
push edx
push 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x413974]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 8]
push 0x1328
push eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x10]
sub esi, eax
cmp byte [ebp + 0xc], 0
jne 0x407cb5
mov ecx, dword [edi + 0xdbc]
push 0
push esi
push ebx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, edi
call fcn.00406df0
mov edx, dword [edi + 0xdbc]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edx
call ebx
test eax, eax
je 0x407cdf
mov ecx, dword [edi + 0xdbc]
mov eax, 5
call fcn.00403d30
mov eax, dword [edi + 0xdc0]
push eax
call ebx
test eax, eax
je 0x407d22
mov ecx, dword [edi + 0xdc0]
mov eax, 5
call fcn.00403d30
cmp byte [ebp + 8], 0
je 0x407d22
movzx ecx, byte [ebp + 0x10]
mov edx, dword [edi + 0xdc0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
shl ecx, 0x10
push ecx
push 1
push 0x8052
push edx
call esi
jmp 0x407d28
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xdc4]
push eax
call ebx
test eax, eax
je 0x407d45
mov ecx, dword [edi + 0xdc4]
mov eax, 5
call fcn.00403d30
cmp byte [edi + 0x401], 0
je 0x407e3b
mov eax, dword [edi + 0xdbc]
test eax, eax
je 0x407e29
push eax
call ebx
test eax, eax
je 0x407e29
mov eax, dword [edi + 0xdd4]
test eax, eax
je 0x407e29
push eax
call ebx
test eax, eax
je 0x407e29
mov ecx, dword [edi + 0xdd4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x407e29
mov edx, dword [edi + 0xdc0]
push 0
push 0xf120
push 0x801e
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [edi + 0xdc0]
push 0
push 0
push 0x8052
push eax
call esi
mov ecx, dword [edi + 0xdc0]
push 0
push 1
push 0x8052
push ecx
call esi
mov edx, dword [edi + 0xdc0]
push 0
push 0
push 0x8053
push edx
call esi
cmp dword [edi + 0x508], 0
je 0x407dfd
mov dword [edi + 0x50c], 1
jmp 0x407e10
cmp dword [edi + 0x504], 0
je 0x407e10
mov dword [edi + 0x50c], 2
mov eax, dword [edi + 0xdd4]
push 1
push eax
mov dword [edi + 0x508], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [edi + 0xdd4]
push 1
call fcn.00406870
add esp, 4
jmp 0x407e61
mov ecx, dword [edi + 0xdbc]
push ecx
call ebx
test eax, eax
je 0x407e61
mov edx, dword [edi + 0xdbc]
push 3
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi + 0xdc4]
push eax
call ebx
test eax, eax
je 0x407e87
mov ecx, dword [edi + 0xdc4]
push 3
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [edi + 0x401], 0
je 0x407ea2
mov edi, dword [edi + 0xdd4]
call sub.USER32.dll_GetForegroundWindow
cmp eax, edi
jne 0x407ef4
push edi
jmp 0x407eec
cmp byte [ebp + 0x10], 0
jne 0x407ef4
call sub.USER32.dll_GetForegroundWindow
mov ecx, dword [0x413970]
cmp eax, ecx
jne 0x407ec0
push ecx
call fcn.0040ece0
add esp, 4
call dword [sym.imp.USER32.dll_GetFocus]
mov edx, dword [0x413970]
push edx
mov esi, eax
call fcn.0040ece0
mov ecx, dword [0x413970]
add esp, 4
cmp esi, ecx
je 0x407ee5
cmp eax, ecx
jne 0x407ef4
mov eax, dword [edi + 0xdc0]
push eax
call fcn.0040ece0
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040f020
mov esp, ebp
pop ebp
ret