Function at 0x4085c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x178]
push eax
push ecx
call edi
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub ebx, edx
mov edx, dword [esi + 0x178]
push 0
push 0x9f
push 0
push edx
sub ebp, ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 8
jne 0x408663
mov ecx, dword [esi + 0x17c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x17c]
sub edi, edx
mov edx, dword [esp + 0x18]
sub edi, 3
push 0x40
push edi
push ebx
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
sub ebp, edi
add eax, edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x18], eax
jmp 0x408672
mov edx, dword [esi + 0x17c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x18]
lea eax, [ebp + 2]
push 0x40
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 2]
dec edx
push ecx
mov ecx, dword [esi + 0x180]
dec eax
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [esi + 0x3d65]
test al, al
jne 0x408788
mov ecx, esi
call fcn.0040dfb0
test al, al
je 0x4086d5
mov edx, dword [esi + 0x180]
mov edi, dword [sym.imp.USER32.dll_ShowScrollBar]
push 0
push 0
push edx
call edi
mov eax, dword [esi + 0x180]
push 0
push 1
push eax
call edi
jmp 0x4088db
mov eax, dword [esi + 0x4460]
mov edx, dword [esi + 0x180]
xor ecx, ecx
cmp ebp, eax
mov ebp, dword [sym.imp.USER32.dll_ShowScrollBar]
setl cl
push ecx
push 1
push edx
call ebp
mov ecx, dword [esi + 0x445c]
xor eax, eax
cmp ebx, ecx
mov ecx, dword [esi + 0x180]
setl al
push eax
push 0
push ecx
call ebp
mov eax, dword [esi + 0x180]
lea edx, [esp + 0x14]
push edx
push eax
call edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ebx, eax
mov eax, dword [esi + 0x4460]
sub ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [esi + 0x180]
setl dl
push edx
push 1
push eax
call ebp
mov eax, dword [esi + 0x445c]
mov edx, dword [esi + 0x180]
xor ecx, ecx
cmp ebx, eax
setl cl
push ecx
push 0
push edx
call ebp
mov ecx, dword [esi + 0x180]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub ebx, ecx
sub ebp, eax
jmp 0x4088db
mov edx, dword [esi + 0x178]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4088db
mov ebx, dword [sym.imp.USER32.dll_ShowScrollBar]
push eax
push eax
mov eax, dword [esi + 0x180]
push eax
call ebx
mov ecx, dword [esi + 0x180]
push 0
push 1
push ecx
call ebx
mov eax, dword [esi + 0x180]
lea edx, [esp + 0x14]
push edx
push eax
call edi
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub ebx, edx
sub ebp, ecx
cmp ebx, 1
jl 0x408a9f
cmp ebp, 1
jl 0x408a9f
xor eax, eax
mov ax, word [esi + 0x4402]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 2
mov eax, ecx
cdq
idiv ebp
mov edi, eax
xor eax, eax
mov ax, word [esi + 0x4400]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x10], eax
cdq
idiv ebx
cmp eax, edi
jle 0x408827
mov edi, eax
lea eax, [ecx + edi - 1]
mov ecx, dword [esp + 0x10]
cdq
idiv edi
push eax
lea eax, [ecx + edi - 1]
cdq
idiv edi
lea edx, [esp + 0x28]
push eax
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
invalid