Function at 0x407490
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d441
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x98]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
push edi
mov dword [ebp - 0x250], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x20c]
mov esi, eax
sub ecx, dword [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
sub ecx, dword [ebp - 0x218]
push ecx
push edi
mov dword [ebp - 0x240], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x258], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetClipBox]
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
push 0
push 0
mov dword [ebp - 0x22c], 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [ebp - 0x228], eax
push 5
push dword [ebp - 0x22c]
call sub.gdiplus.dll_GdipSetStringFormatTrimming
mov ecx, dword [ebp - 0x228]
test eax, eax
push 0x1000
push dword [ebp - 0x22c]
cmovne ecx, eax
mov dword [ebp - 0x228], ecx
call sub.gdiplus.dll_GdipSetStringFormatFlags
mov ecx, dword [ebp - 0x228]
test eax, eax
push 1
push dword [ebp - 0x22c]
cmovne ecx, eax
mov dword [ebp - 0x228], ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
mov ecx, dword [ebp - 0x228]
test eax, eax
mov dword [ebp - 0x208], 0x114
cmovne ecx, eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x228], ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push 0x5c
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
lea eax, [ebp - 0x2b8]
cmp dword [ebp - 0x204], 6
jb 0x40763d
push 0x516dd4
jmp 0x407642
push 0x516de0
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x2d4], 0xfffffff4
push eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x230], 0
push eax
push dword [ebp - 0x240]
mov ecx, 0x17
lea esi, [ebp - 0x2d4]
lea edi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
call sub.gdiplus.dll_GdipCreateFontFromLogfontW
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebx + 0x3c]
mov eax, 0x66666667
sub ecx, dword [ebx + 0x38]
xor esi, esi
imul ecx
mov byte [ebp - 4], 2
sar edx, 5
mov eax, edx
mov dword [ebp - 0x238], esi
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x407a27
mov dword [ebp - 0x23c], esi
nop dword [eax]
mov eax, esi
cdq
idiv dword [ebx + 0x18]
push 1
push dword [ebx + 0x10]
mov edi, edx
mov esi, eax
call dword [sym.imp.USER32.dll_GetScrollPos]
imul esi, esi, 0x52
xor ecx, ecx
imul edi, edi, 0x4a
sub esi, eax
add esi, 5
add edi, 5
test esi, esi
mov dword [ebp - 0x24c], esi
mov eax, esi
mov dword [ebp - 0x248], edi
cmovs eax, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [edi + 0x4a]
mov dword [ebp - 0x30], eax
lea eax, [esi + 0x52]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x407742
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4079f4
mov eax, dword [ebx + 0x38]
add eax, dword [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x238]
cmp dword [ebx + 0x1c], eax
jne 0x407789
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x407771
mov eax, dword [eax + 4]
jmp 0x407773
xor eax, eax
push esi
push edi
push eax
push dword [ebp - 0x224]
call sub.gdiplus.dll_GdipDrawImageI
test eax, eax
je 0x4077bb
mov ecx, eax
jmp 0x4077b5
cmp dword [ebx + 0x20], eax
jne 0x4077bb
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x40779a
mov eax, dword [eax + 4]
jmp 0x40779c
xor eax, eax
push esi
push edi
push eax
push dword [ebp - 0x224]
call sub.gdiplus.dll_GdipDrawImageI
mov ecx, dword [ebp - 0x220]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
mov eax, dword [ebp - 0x234]
push dword [eax + 4]
call sub.gdiplus.dll_GdipGetImageHeight
mov ecx, eax
test ecx, ecx
je 0x4077e9
mov eax, dword [ebp - 0x234]
mov dword [eax + 8], ecx
mov ecx, 0x43
mov eax, 0xaaaaaaab
sub ecx, dword [ebp - 0x21c]
mul ecx
push 0
push 0
shr edx, 1
mov eax, 0
push 0
cmovs edx, eax
lea eax, [edi + 0xd]
push 2
sub esp, 0x20
movd xmm1, eax
cvtdq2ps xmm1, xmm1
lea eax, [esi + edx]
mov esi, dword [ebp - 0x234]
mov dword [esp + 0x1c], 0x42400000
mov dword [esp + 0x18], 0x42400000
mov dword [esp + 0x14], 0
movd xmm0, eax
mov dword [esp + 0x10], 0
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0x42400000
mov dword [esp + 8], 0x42400000
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
push dword [esi + 4]
push dword [ebp - 0x224]
call sub.gdiplus.dll_GdipDrawImageRectRect
mov ecx, dword [ebp - 0x220]
test eax, eax
mov dword [ebp - 0x21c], 0
cmovne ecx, eax
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 4]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x274], ecx
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4078aa
mov dword [esi + 8], eax
mov ecx, 0x43
mov dword [ebp - 0x14], 7
sub ecx, dword [ebp - 0x21c]
mov eax, 0xaaaaaaab
mul ecx
mov eax, 0xf
mov dword [ebp - 0x18], 0
shr edx, 1
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
lea esi, [edx*2 + 0xf]
cmp esi, 0xf
cmovl esi, eax
xor eax, eax
push eax
push dword [ebp - 0x244]
mov word [ebp - 0x28], ax
call fcn.00405080
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0xff000000
call sub.gdiplus.dll_GdipCreateSolidFill
movd xmm0, dword [ebp - 0x248]
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x21c]
sub eax, esi
cvtdq2ps xmm0, xmm0
add eax, 0x52
mov dword [ebp - 0x260], 0x42940000
cmp dword [ebp - 0x14], 8
push edi
push dword [ebp - 0x22c]
movss dword [ebp - 0x268], xmm0
movd xmm0, eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cvtdq2ps xmm0, xmm0
push ecx
push dword [ebp - 0x230]
movss dword [ebp - 0x264], xmm0
push dword [ebp - 0x18]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push eax
push dword [ebp - 0x224]
movss dword [ebp - 0x25c], xmm0
call sub.gdiplus.dll_GdipDrawString
mov ecx, dword [ebp - 0x220]
test eax, eax
push edi
cmovne ecx, eax
mov dword [ebp - 0x220], ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4079f4
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x407adb
add eax, eax
cmp eax, 0x1000
jb 0x4079eb
test cl, 0x1f
jne 0x407adb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407adb
sub ecx, eax
cmp ecx, 4
jb 0x407adb
cmp ecx, 0x23
ja 0x407adb
mov ecx, eax
push ecx
call fcn.00475290
add esp, 4
mov ecx, dword [ebx + 0x3c]
mov eax, 0x66666667
sub ecx, dword [ebx + 0x38]
mov esi, dword [ebp - 0x238]
add dword [ebp - 0x23c], 0x50
inc esi
imul ecx
mov dword [ebp - 0x238], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jl 0x4076d0
mov eax, dword [ebp - 0x20c]
sub eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x240]
mov edi, dword [ebp - 0x250]
push 0xcc0020
push 0
push 0
push esi
push eax
mov eax, dword [ebp - 0x210]
sub eax, dword [ebp - 0x218]
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x254]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x258]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [ebp - 0x98]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_EndPaint]
push edi
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x230]
call sub.gdiplus.dll_GdipDeleteFont
push dword [ebp - 0x22c]
call sub.gdiplus.dll_GdipDeleteStringFormat
push dword [ebp - 0x224]
call sub.gdiplus.dll_GdipDeleteGraphics
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
call fcn.004e8490
int3