Function at 0x41595e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
mov esi, ecx
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
sub edi, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x18]
push 0
push 0x9f
push 0
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 8
jne 0x4159d8
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
push 0x40
sub eax, dword [ebp - 0x28]
sub eax, 3
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
push 0
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 8]
sub ebx, eax
add dword [ebp - 0x18], eax
jmp 0x4159e3
push 0
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 2]
push 0x40
push eax
lea eax, [edi + 2]
push eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x1c]
dec eax
push eax
push 0
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [esi + 0x3a11], 0
jne 0x415ac2
mov ecx, esi
call fcn.0041a3ac
test al, al
je 0x415a39
push 0
push 0
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_ShowScrollBar]
push 0
push 1
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_ShowScrollBar]
jmp 0x415bda
xor eax, eax
cmp ebx, dword [esi + 0x3a94]
mov ebx, dword [sym.imp.USER32.dll_ShowScrollBar]
setl al
push eax
push 1
push dword [esi + 0x70]
call ebx
xor eax, eax
cmp edi, dword [esi + 0x3a90]
setl al
push eax
push 0
push dword [esi + 0x70]
call ebx
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
sub edi, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, dword [esi + 0x3a94]
setl cl
push ecx
push 1
push dword [esi + 0x70]
call ebx
xor eax, eax
cmp edi, dword [esi + 0x3a90]
setl al
push eax
push 0
push dword [esi + 0x70]
call ebx
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
sub edi, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x18]
jmp 0x415bda
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x415bda
mov edi, dword [sym.imp.USER32.dll_ShowScrollBar]
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x70]
call edi
push ebx
push 1
push dword [esi + 0x70]
call edi
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
sub edi, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x18]
cmp edi, 1
jl 0x415d9c
cmp ebx, 1
jl 0x415d9c
movzx ecx, word [esi + 0x3a4c]
imul ecx, ecx, 0x64
mov eax, ecx
cdq
idiv ebx
mov dword [ebp - 8], eax
movzx eax, word [esi + 0x3a4a]
imul eax, eax, 0x64
mov dword [ebp - 0xc], eax
cdq
idiv edi
mov edx, dword [ebp - 8]
cmp eax, edx
mov dword [ebp - 4], eax
jg 0x415b44
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
lea eax, [ecx + eax - 1]
mov ecx, dword [ebp - 4]
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
push eax
push 0
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cmp eax, edi
jg 0x415b7f
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cmp eax, ebx
jle 0x415ba4
movzx eax, word [esi + 0x3a4c]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x64
inc ecx
mov dword [ebp - 4], ecx
lea eax, [eax + ecx - 1]
cdq
idiv ecx
push eax
movzx eax, word [esi + 0x3a4a]
imul eax, eax, 0x64
jmp 0x415b55
mov eax, dword [ebp - 4]
lea ecx, [esi + 0x39f8]
mov dword [esi + 0x3a14], 0x64
mov dword [esi + 0x3a18], eax
call fcn.004237b9
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov dword [esi + 0x3a90], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [esi + 0x3a94], eax
mov ecx, dword [esi + 0x3a90]
cmp edi, ecx
jle 0x415bef
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x415bf2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x3a94]
mov dword [ebp - 8], eax
cmp ebx, ecx
jle 0x415c0a
mov eax, ebx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x415c0d
mov eax, dword [ebp - 0x18]
cmp ebx, ecx
jge 0x415c13
mov ecx, ebx
mov edx, dword [esi + 0x3a90]
cmp edi, edx
jge 0x415c1f
mov edx, edi
push 0x40
push ecx
push edx
push eax
push dword [ebp - 8]
push 0
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x3a90]
cmp edi, eax
jl 0x415c3e
mov edi, eax
mov ecx, dword [esi + 0x3a94]
mov dword [esi + 0x3a88], edi
cmp ebx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
jl 0x415c57
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp byte [esi + 0x3a11], 0
mov dword [esi + 0x3a8c], edx
mov dword [esi + 0x3a7c], eax
mov dword [esi + 0x3a84], ecx
jne 0x415d2f
test edi, edi
jle 0x415c81
mov ecx, edi
jmp 0x415c83
xor ecx, ecx
mov ebx, dword [esi + 0x3a78]
mov edx, eax
sub edx, ecx
cmp ebx, edx
jge 0x415c95
mov ecx, ebx
jmp 0x415ca3
test edi, edi
jle 0x415c9d
mov edx, edi
jmp 0x415c9f
xor edx, edx
mov ecx, eax
sub ecx, edx
test ecx, ecx
jge 0x415cad
and dword [ebp - 4], 0
jmp 0x415cd3
test edi, edi
jle 0x415cb5
mov ecx, edi
jmp 0x415cb7
xor ecx, ecx
mov edx, eax
sub edx, ecx
cmp ebx, edx
jge 0x415cc4
mov dword [ebp - 4], ebx
jmp 0x415cd3
test edi, edi
jle 0x415ccc
mov ecx, edi
jmp 0x415cce
xor ecx, ecx
sub eax, ecx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x415cde
mov eax, ebx
jmp 0x415ce0
xor eax, eax
mov edi, dword [ebp - 0xc]
mov edx, dword [esi + 0x3a80]
mov ecx, edi
sub ecx, eax
cmp edx, ecx
jge 0x415cf5
mov eax, edx
jmp 0x415d03
test ebx, ebx
jle 0x415cfd
mov ecx, ebx
jmp 0x415cff
xor ecx, ecx
mov eax, edi
sub eax, ecx
test eax, eax
jge 0x415d0b
xor edi, edi
jmp 0x415d34
test ebx, ebx
jle 0x415d13
mov eax, ebx
jmp 0x415d15
xor eax, eax
mov ecx, edi
sub ecx, eax
cmp edx, ecx
jge 0x415d21
mov edi, edx
jmp 0x415d34
test ebx, ebx
jle 0x415d29
mov eax, ebx
jmp 0x415d2b
xor eax, eax
sub edi, eax
jmp 0x415d34
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_GetClientRect]
xor ebx, ebx
push 2
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov eax, dword [esi + 0x3a80]
push ebx
sub eax, edi
push eax
mov eax, dword [esi + 0x3a78]
sub eax, dword [ebp - 4]
push eax
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_ScrollWindowEx]
mov eax, dword [ebp - 4]
cmp byte [esi + 0x3a11], bl
mov dword [esi + 0x3a78], eax
mov dword [esi + 0x3a80], edi
jne 0x415d88
mov ecx, esi
call fcn.00417e14
jmp 0x415d93
push ebx
push ebx
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
leave
ret