Function at 0x420080
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x48]
mov ebx, dword [esi + 0x44]
sub edi, dword [esi + 0x4c]
sub ebx, dword [esi + 0x64]
mov ecx, dword [esi + 0xac]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xd0]
mov dword [ebp - 4], ecx
mov eax, dword [eax]
imul eax, dword [esi + 0x50]
mov dword [ebp - 0xc], eax
cmp eax, edi
jle 0x4200c2
sub ebx, dword [esi + 0x54]
cmp ecx, ebx
jle 0x4200c9
sub edi, dword [esi + 0x58]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x1c
push eax
push 2
push dword [esi + 0x10]
mov dword [ebp - 0x38], 4
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xd0]
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0
mov eax, dword [eax]
test eax, eax
je 0x42010c
dec eax
mov dword [ebp - 0x30], eax
jmp 0x420113
mov dword [ebp - 0x30], 0
mov eax, edi
cdq
idiv dword [esi + 0x50]
push 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetScrollInfo]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 4
push eax
push 2
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x28]
mov ecx, eax
sub ecx, dword [ebp - 8]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp eax, edi
jle 0x42016f
test eax, eax
je 0x42016f
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [esi + 0x10]
call edi
or dword [esi + 0x20], 4
jmp 0x420180
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x10]
call edi
and dword [esi + 0x20], 0xfffffffb
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x1c
push eax
push 2
push dword [esi + 0x14]
mov dword [ebp - 0x38], 4
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4201be
dec eax
mov dword [ebp - 0x30], eax
jmp 0x4201c5
mov dword [ebp - 0x30], 0
push 1
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
push eax
push 2
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetScrollInfo]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 4
push eax
push 2
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x28]
mov ecx, eax
sub ecx, dword [ebp - 0xc]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x20]
shr eax, 3
and eax, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, ebx
jle 0x420221
test eax, eax
je 0x420221
push 5
push dword [esi + 0x14]
call edi
or dword [esi + 0x20], 8
jmp 0x42022c
push 0
push dword [esi + 0x14]
call edi
and dword [esi + 0x20], 0xfffffff7
mov ecx, dword [esi + 0x20]
mov eax, ecx
shr eax, 3
and eax, 1
cmp eax, dword [ebp - 0xc]
je 0x42026a
and ecx, 0x60
cmp cl, 0x60
jne 0x42026a
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ecx + 1]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test edx, edx
jne 0x420278
test eax, eax
je 0x420280
push eax
mov ecx, esi
call fcn.004203c0
mov eax, dword [esi + 0x20]
xor edx, edx
and eax, 0xc
mov ecx, 5
cmp al, 0xc
cmovne ecx, edx
push ecx
push dword [esi + 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret