Function at 0x41a1d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586981
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5ef60c]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push eax
mov dword [esp + 0x20], ecx
call fcn.00468a45
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CBrush.0
lea edi, [ebx + 0x1c]
push edi
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x170], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0x1c]
mov eax, 2
add dword [esp + 0x2c], eax
sub dword [esp + 0x34], eax
add dword [esp + 0x30], eax
sub dword [esp + 0x38], eax
cmp dword [edx + 0x54], 0
je 0x41a29d
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0xffffff
mov ecx, esi
call edx
push 0x8b2110
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00468d2b
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x41a384
mov eax, dword [ebx + 0x10]
test al, 0x10
jne 0x41a307
test byte [ebx + 0xc], 0x10
jne 0x41a307
test al, 4
je 0x41a2e3
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push 0x969696
mov ecx, esi
call eax
push 0xe6e6e6
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00468d2b
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0041a520
jmp 0x41a384
push 0xcccccc
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00468d2b
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.0041a520
jmp 0x41a384
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xff6666
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00468d2b
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CBrush.0
push 0xcccccc
mov byte [esp + 0x16c], 1
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00468d2b
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 4]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.00413780
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a39e
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov byte [esp + 0x16c], 2
call fcn.00464199
push 1
mov ecx, esi
call fcn.00468009
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x25
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x114
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.0055b030
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x40], 5
jbe 0x41a482
cmp dword [ebx + 0x5c], 0
je 0x41a482
push 0x7f06
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41a482
fld dword [ebx + 0x60]
fld qword [0x5c4c28]
fmul st(1), st(0)
fxch st(1)
call fcn.0055d3a0
mov ecx, eax
mov eax, dword [esp + 0x38]
cmp ecx, eax
jge 0x41a454
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x41a459
mov edi, 6
fmul dword [ebx + 0x60]
mov esi, dword [esi + 4]
call fcn.0055d3a0
mov ebx, dword [esp + 0x1c]
push 3
push 0
push 0
push eax
push eax
push ebx
push edi
push 2
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00413780
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0055799e
mov esp, ebp
pop ebp
ret 4