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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
push eax
mov ebx, ecx
call fcn.0056fa15
lea ecx, [edi + 0x1c]
push ecx
lea edx, [esp + 0x2c]
mov esi, eax
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.user32.dll_CopyRect]
mov eax, dword [edi + 0x10]
push 0x2e
mov dword [esp + 0x18], eax
call fcn.0055dd4d
mov edi, eax
push 0x2d
mov dword [esp + 0x20], edi
call fcn.0055dd4d
neg edi
push edi
neg eax
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.user32.dll_InflateRect]
mov edx, dword [esi + 8]
push 0x26
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4b8c8d
cmp dword [ebx + 0x108], 0
je 0x4b8c8d
push 1
lea eax, [ebx + 0x100]
push eax
mov ecx, esi
call fcn.0056fe08
mov ecx, dword [esi + 4]
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.gdi32.dll_RealizePalette]
cmp dword [ebx + 0x54], 0xfffffffd
jne 0x4b8ca3
push 0x14
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea edx, [esp + 0x2c]
push edx
jmp 0x4b8cb1
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.005704bb
lea eax, [ebx + 0xbc]
test eax, eax
je 0x4b8ded
cmp dword [eax + 4], 0
je 0x4b8ded
mov eax, dword [ebx + 0xc0]
push eax
call fcn.00568851
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.0047da90
test eax, eax
jle 0x4b8ded
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + 0xc4]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [ebx + 0xc8]
mov esi, eax
mov eax, dword [esp + 0x34]
sub eax, edx
sub eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x30]
sar esi, 1
add esi, ecx
cmp dword [ebx + 0x118], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], eax
jne 0x4b8d5e
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ecx]
sub eax, edx
mov dword [esp + 0x3c], eax
jmp 0x4b8d7d
mov eax, dword [ebx + 0xc8]
add eax, edi
push eax
mov eax, dword [ebx + 0xc4]
add eax, esi
push eax
push edi
push esi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.user32.dll_SetRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov edx, dword [edx + 0x16c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
push esi
mov ecx, ebx
call edx
test byte [esp + 0x14], 4
je 0x4b8dd5
mov eax, dword [esp + 0x20]
push edi
push eax
lea eax, [ebx + 0xbc]
push 0
push eax
mov ecx, esi
call fcn.004cac60
add esp, 0x10
jmp 0x4b8e1f
mov ecx, dword [esp + 0x20]
push 1
push edi
push ecx
push 0
push esi
lea ecx, [ebx + 0xbc]
call fcn.0046dc40
jmp 0x4b8e1f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx]
mov edx, dword [edx + 0x16c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
push esi
mov ecx, ebx
call edx
cmp dword [ebx + 0x54], 0xfffffffd
jne 0x4b8e8d
test byte [esp + 0x14], 4
jne 0x4b8e8d
push 0x16
call dword [sym.imp.user32.dll_GetSysColor]
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
jge 0x4b8e8d
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
lea ebx, [ebx]
cmp esi, eax
jge 0x4b8e80
lea ecx, [esi + edi]
test cl, 1
je 0x4b8e75
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push edx
push esi
push edi
push ecx
call dword [sym.imp.gdi32.dll_SetPixelV]
mov eax, dword [esp + 0x34]
add esi, 1
cmp esi, eax
jl 0x4b8e54
mov esi, dword [esp + 0x2c]
add edi, 1
cmp edi, dword [esp + 0x30]
jl 0x4b8e50
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 8]
push 0x26
push edx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4b8ebb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b8ebb
cmp dword [ebx + 0x108], 0
je 0x4b8ebb
push 1
push eax
mov ecx, esi
call fcn.0056fe08
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4