Function at 0x40e930
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x458504]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0x26c], 0
je 0x40eb69
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f4
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ec
push dword [edi + 4]
call esi
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x40e99c
lea eax, [ebp - 0xc]
push eax
push dword [edi + 4]
call ebx
push 0x3ff
push dword [edi + 4]
call esi
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x40e9c7
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call ebx
push 0x3ec
push dword [edi + 4]
call esi
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x40e9f2
lea eax, [ebp - 0x3c]
push eax
push dword [edi + 4]
call ebx
push 0x3ec
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3eb
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f5
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ff
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f4
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3fc
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ec
push dword [edi + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x230]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x34]
mov ecx, edi
add eax, 0xfffffffb
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffffb
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040a640
push 0x3f6
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 0x18]
push 0
push 0x12
push 0x78
add ecx, 8
push ecx
push dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [edi + 0x2b0], 0
jbe 0x40eb67
cmp dword [edi + 0x29c], 8
lea esi, [edi + 0x288]
jb 0x40eaf2
mov eax, dword [esi]
jmp 0x40eaf4
mov eax, esi
push eax
push dword [edi + 0x230]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esi + 0x14], 8
jb 0x40eb09
mov esi, dword [esi]
push esi
lea ecx, [edi + 0x22c]
call fcn.00413050
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x230]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
add eax, esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x40eb45
lea eax, [ebp - 0xc]
push eax
push dword [edi + 4]
call ebx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 1
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push dword [edi + 0x230]
call dword [sym.imp.USER32.dll_MoveWindow]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043d084
mov esp, ebp
pop ebp
ret