Function at 0x40ceb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], vtable.CRgn.0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
push 3
push 3
push eax
push ecx
push edx
push edi
mov dword [esp + 0x5c], ebp
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.0044ed07
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], vtable.CBrush.0
push 0xfafafa
mov byte [esp + 0x48], 1
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call fcn.0044ed07
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
mov edi, dword [esp + 0x18]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x14]
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
mov edi, dword [esp + 0x50]
push ecx
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], vtable.CPen.0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
add eax, 5
mov byte [esp + 0x44], 2
push eax
push ecx
mov ecx, dword [esp + 0x20]
mov ebx, 0xfa
push ecx
mov dword [esp + 0x58], 1
call dword [sym.imp.GDI32.dll_PtInRegion]
cmp eax, ebp
jne 0x40cf96
mov dword [esp + 0x4c], 2
mov eax, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
add ebp, 8
lea edx, [eax - 1]
cmp ebp, edx
jge 0x40d040
add eax, 0xfffffffd
cmp ebp, eax
jle 0x40cfb5
inc dword [esp + 0x4c]
mov cl, bl
mov eax, ebx
sub cl, 5
xor edx, edx
and eax, 0xff
mov dh, cl
or edx, eax
shl edx, 8
or edx, eax
push edx
push 2
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0044ed07
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0044e5e0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
push ebp
add ecx, eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, edi
call fcn.0044e8d0
mov eax, dword [esi + 0x14]
push ebp
sub eax, 2
mov ecx, edi
push eax
call fcn.0044e91c
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0044e5e0
lea ecx, [esp + 0x2c]
call fcn.0044ed5e
mov eax, dword [esi + 0x18]
add ebp, 2
sub ebx, 0xc
lea edx, [eax - 1]
cmp ebp, edx
jl 0x40cfaa
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CBrush.0
push 0xff0000
mov byte [esp + 0x48], 3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x20]
call fcn.0044ed07
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
push 1
and eax, ebx
push 1
neg ecx
sbb ecx, ecx
push eax
mov eax, dword [edi + 4]
and ecx, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_FrameRgn]
lea ecx, [esp + 0x14]
call fcn.0044ed5e
lea ecx, [esp + 0x24]
call fcn.0044ed5e
lea ecx, [esp + 0x1c]
call fcn.0044ed5e
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 4
call fcn.0044ed5e
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 5
call fcn.0044ed5e
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 6
call fcn.0044ed5e
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x14], vtable.CRgn.0
call fcn.00402960
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4