Function at 0x407730
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 0x407a26
cmp byte [edi + 0x401], 0
push ebx
push esi
jne 0x4077e5
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 0x4077cb
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 0x4077e5
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.00406910
mov edx, dword [edi + 0xdbc]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edx
call ebx
test eax, eax
je 0x40780f
mov ecx, dword [edi + 0xdbc]
mov eax, 5
call fcn.00403fd0
mov eax, dword [edi + 0xdc0]
push eax
call ebx
test eax, eax
je 0x407852
mov ecx, dword [edi + 0xdc0]
mov eax, 5
call fcn.00403fd0
cmp byte [ebp + 8], 0
je 0x407852
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 0x407858
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xdc4]
push eax
call ebx
test eax, eax
je 0x407875
mov ecx, dword [edi + 0xdc4]
mov eax, 5
call fcn.00403fd0
cmp byte [edi + 0x401], 0
je 0x40796b
mov eax, dword [edi + 0xdbc]
test eax, eax
je 0x407959
push eax
call ebx
test eax, eax
je 0x407959
mov eax, dword [edi + 0xdd4]
test eax, eax
je 0x407959
push eax
call ebx
test eax, eax
je 0x407959
mov ecx, dword [edi + 0xdd4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x407959
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 0x40792d
mov dword [edi + 0x50c], 1
jmp 0x407940
cmp dword [edi + 0x504], 0
je 0x407940
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.004063c0
add esp, 4
jmp 0x407991
mov ecx, dword [edi + 0xdbc]
push ecx
call ebx
test eax, eax
je 0x407991
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 0x4079b7
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 0x4079d2
mov edi, dword [edi + 0xdd4]
call sub.USER32.dll_GetForegroundWindow
cmp eax, edi
jne 0x407a24
push edi
jmp 0x407a1c
cmp byte [ebp + 0x10], 0
jne 0x407a24
call sub.USER32.dll_GetForegroundWindow
mov ecx, dword [0x413970]
cmp eax, ecx
jne 0x4079f0
push ecx
call fcn.0040e2e0
add esp, 4
call dword [sym.imp.USER32.dll_GetFocus]
mov edx, dword [0x413970]
push edx
mov esi, eax
call fcn.0040e2e0
mov ecx, dword [0x413970]
add esp, 4
cmp esi, ecx
je 0x407a15
cmp eax, ecx
jne 0x407a24
mov eax, dword [edi + 0xdc0]
push eax
call fcn.0040e2e0
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e620
mov esp, ebp
pop ebp
ret