Function at 0x4134d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5d1614]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
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.00451ff7
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 0x41359d
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.004522dd
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x413684
mov eax, dword [ebx + 0x10]
test al, 0x10
jne 0x413607
test byte [ebx + 0xc], 0x10
jne 0x413607
test al, 4
je 0x4135e3
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.004522dd
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00413820
jmp 0x413684
push 0xcccccc
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.004522dd
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00413820
jmp 0x413684
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xff6666
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004522dd
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.004522dd
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.0040b250
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41369e
push 0x80004005
call fcn.00401fc0
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.0044d6e8
push 1
mov ecx, esi
call fcn.00451590
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.005440c0
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 0x413782
cmp dword [ebx + 0x5c], 0
je 0x413782
push 0x7f06
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x413782
fld dword [ebx + 0x60]
fld qword [0x5a91e8]
fmul st(1), st(0)
fxch st(1)
call fcn.00546440
mov ecx, eax
mov eax, dword [esp + 0x38]
cmp ecx, eax
jge 0x413754
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x413759
mov edi, 6
fmul dword [ebx + 0x60]
mov esi, dword [esi + 4]
call fcn.00546440
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 0x4137aa
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.0040b250
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.00540a86
mov esp, ebp
pop ebp
ret 4