Function at 0x4c2b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 4]
push edi
mov edi, dword [esp + 0x5c]
mov ebp, dword [edi]
lea ecx, [esp + 0x2c]
sub eax, 0xc
mov eax, dword [eax]
push ecx
push edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4c2c13
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x5c], 0
je 0x4c2bad
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x5c], eax
mov ecx, dword [esi + 0x18]
cmp edi, ecx
mov dword [esp + 0x14], ecx
je 0x4c2c01
mov eax, dword [edi + 8]
test eax, eax
mov dword [edi], ebp
je 0x4c2bfa
mov ecx, dword [esi + 0x68]
add ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebp
call fcn.004c2510
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ebp, edx
add edi, 0xc
cmp edi, ecx
jne 0x4c2bb8
cmp dword [esp + 0x5c], 0
je 0x4c2c13
mov eax, dword [esi + 8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x3c]
xor eax, eax
push ecx
push 1
push edx
mov dword [esp + 0x48], 0x1c
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_GetScrollInfo]
test eax, eax
jne 0x4c2c56
xor edx, edx
mov dword [esp + 0x50], edx
jmp 0x4c2c5a
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x18]
xor ebx, ebx
sub eax, 0xc
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], ebx
mov eax, dword [eax]
sub eax, 1
lea edi, [ecx - 1]
cmp eax, edi
mov dword [esp + 0x48], eax
jae 0x4c2c85
lea eax, [ecx - 1]
mov dword [esp + 0x48], eax
cmp byte [esi + 0x78], bl
je 0x4c2c90
mov edx, eax
mov dword [esp + 0x50], edx
sub eax, ecx
add eax, 1
cmp edx, eax
jle 0x4c2c9f
mov edx, eax
mov dword [esp + 0x50], edx
cmp edx, ebx
jge 0x4c2ca7
mov dword [esp + 0x50], ebx
mov ecx, dword [esi + 4]
push 1
lea eax, [esp + 0x40]
push eax
push 1
push ecx
mov dword [esp + 0x50], 0xf
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [esp + 0x50]
cmp eax, dword [esi + 0x74]
mov edi, eax
je 0x4c2cfa
mov eax, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push ebx
sub edx, edi
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_ScrollWindow]
mov eax, dword [esp + 0x50]
mov dword [esi + 0x74], edi
mov ecx, dword [esp + 0x4c]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [esp + 0x10]
lea edx, [ecx + eax]
cmp edx, eax
jle 0x4c2d4e
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jle 0x4c2d4e
cmp edi, eax
jle 0x4c2d4e
cmp edx, ecx
jle 0x4c2d4e
mov edx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
push 1
mov ecx, edi
sub ecx, eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], ecx
call ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add ecx, eax
cmp ecx, eax
jle 0x4c2d8d
cmp ebp, edi
jle 0x4c2d8d
cmp ebp, eax
jle 0x4c2d8d
cmp ecx, edi
jle 0x4c2d8d
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x34]
sub edi, eax
sub ebp, eax
push 1
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4