Function at 0x407910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x401], 0
jne 0x407be8
mov eax, dword [esi + 0xdbc]
push ebx
push edi
push eax
call fcn.004024f0
push 0x413148
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x16], 0
call fcn.0040ee10
mov ecx, dword [esi + 0xdd4]
mov edx, dword [esi + 0xdc0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push ecx
push 0
push 0x8fbf
push edx
call edi
push 0xffffffffffffffff
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x16]
mov edx, esi
mov byte [esi + 0x401], 1
call fcn.004033d0
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x40799f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
jmp 0x4079a5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x41396c]
push 0
push edx
mov edx, dword [ebp - 0x20]
push 0
push 0
push edx
mov edx, dword [ebp - 0x24]
push edx
push eax
push ecx
push 0x6cf0000
push str.MexalUnpinnedTab
push str.clMexalUnpinnedTab
push 0x40000
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0xdd4], eax
call fcn.00404e10
mov eax, dword [0x413970]
push 0
push 0
push 0x7f
push eax
call edi
mov ecx, dword [esi + 0xdd4]
mov ebx, eax
push ebx
push 0
push 0x80
push ecx
call edi
mov edx, dword [0x413970]
push 0
push 1
push 0x7f
push edx
call edi
push eax
mov eax, dword [esi + 0xdd4]
push 1
push 0x80
push eax
call edi
mov edx, dword [esi + 0xdd4]
mov eax, dword [ebp - 0x1c]
push edx
lea ecx, [esi + 0x514]
push eax
mov edx, ebx
call fcn.004068a0
mov ecx, dword [esi + 0xdc0]
add esp, 8
push 0
push 0
push 0x8052
push ecx
call edi
mov edx, dword [esi + 0xdbc]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call ebx
mov eax, dword [esi + 0xdc4]
push 0
push eax
call ebx
mov ecx, dword [esi + 0xdd4]
mov edx, dword [esi + 0xdbc]
mov ebx, dword [sym.imp.USER32.dll_SetParent]
push ecx
push edx
call ebx
mov eax, dword [esi + 0xdd4]
mov ecx, dword [esi + 0xdc4]
push eax
push ecx
call ebx
mov edx, dword [0x413974]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0xdd4]
mov ecx, dword [esi + 0xdc0]
push eax
push 1
push 0x8fc0
push ecx
call edi
push 1
mov ebx, esi
mov byte [esi + 0x511], 1
call fcn.00404ae0
mov edx, dword [esi + 0xdd4]
movzx eax, word [ebp - 0x1c]
mov ecx, dword [esi + 0xdc0]
add esp, 4
push edx
push eax
push 0x8fbb
push ecx
call edi
mov edx, dword [esi + 0xdd4]
mov eax, dword [esi + 0xdc0]
push edx
push 1
push 0x8fbc
push eax
call edi
mov edx, dword [esi + 0xdd4]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0xdbc]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x10
sub eax, 0x1a
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 0xdc4]
push 0x10
push 0x1a
push eax
add ecx, 0xffffffe6
push ecx
push 0
push 0
push edx
call edi
mov eax, dword [esi + 0xdd4]
push esi
push 0x410cf0
push eax
call dword [sym.imp.USER32.dll_SetPropA]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov eax, dword [esi + 0xdbc]
push 0x10
sub ecx, 0x1a
push ecx
push edx
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [esi + 0xdbc]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call edi
mov edx, dword [esi + 0xdc4]
push 5
push edx
call edi
mov ecx, dword [esi + 0xdd4]
xor eax, eax
cmp byte [ebp - 0x15], al
setne al
lea eax, [eax + eax + 1]
push eax
push ecx
call edi
mov edx, dword [esi + 0xdd4]
push edx
call fcn.0040ece0
add esp, 4
cmp byte [ebp + 0x14], 0
pop edi
pop ebx
jne 0x407bdb
mov eax, dword [esi + 0xdd4]
push eax
call fcn.00404aa0
add esp, 4
push 0x413148
call fcn.0040ee20
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040f020
mov esp, ebp
pop ebp
ret