Function at 0x4977b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497a13
mov edx, dword [esi + 4]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x30]
push ecx
push edx
call edi
mov ecx, dword [esi + 0x8c]
lea eax, [esp + 0x20]
push eax
push ecx
call edi
mov edx, dword [esi + 0x8c]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x497965
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x24], eax
call edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
call edi
mov edx, dword [esi + 0xd0]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
lea eax, [edx + edi]
cmp eax, ebx
jle 0x4978d4
xor eax, eax
sub ecx, edx
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xd4]
push 1
mov dword [esp + 0x58], eax
lea eax, [esp + 0x44]
push eax
lea edx, [ecx + ebx - 5]
mov ecx, dword [esi + 0x90]
push 2
push ecx
mov dword [esp + 0x50], 0x1c
mov dword [esp + 0x54], 7
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edx
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov edx, dword [esi + 0x90]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x4c
ret 4
mov ebp, ecx
sub ebp, dword [esp + 0x30]
lea eax, [edx + edi]
cmp eax, ebp
jle 0x49794c
xor eax, eax
sub ecx, edx
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xd4]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x90]
push 2
lea ecx, [ecx + ebx - 5]
push eax
mov dword [esp + 0x50], 0x1c
mov dword [esp + 0x54], 7
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 5
jmp 0x497a03
mov edx, dword [esi + 0x90]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x4c
ret 4
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0xd0]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x30]
mov ebp, ecx
lea eax, [edx + edi]
sub ebp, ebx
cmp eax, ebp
jle 0x497a01
xor eax, eax
sub ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
sub ecx, ebx
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xd4]
mov dword [esp + 0x54], eax
lea eax, [ecx + edx - 5]
mov edx, dword [esi + 0x90]
push 1
lea ecx, [esp + 0x44]
push ecx
push 2
push edx
mov dword [esp + 0x50], 0x1c
mov dword [esp + 0x54], 7
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [esi + 0x90]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x4c
ret 4
push 0
mov ecx, dword [esi + 0x90]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x4c
ret 4