Function at 0x4134c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5701e1
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5d2614]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
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.00452b1d
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 0x41358d
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.00452e03
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x413674
mov eax, dword [ebx + 0x10]
test al, 0x10
jne 0x4135f7
test byte [ebx + 0xc], 0x10
jne 0x4135f7
test al, 4
je 0x4135d3
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.00452e03
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00413810
jmp 0x413674
push 0xcccccc
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00452e03
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00413810
jmp 0x413674
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xff6666
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00452e03
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.00452e03
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.0040b210
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41368e
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.0044e299
push 1
mov ecx, esi
call fcn.00452103
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.00544f30
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 0x413772
cmp dword [ebx + 0x5c], 0
je 0x413772
push 0x7f06
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x413772
fld dword [ebx + 0x60]
fld qword [0x5aa240]
fmul st(1), st(0)
fxch st(1)
call fcn.005472a0
mov ecx, eax
mov eax, dword [esp + 0x38]
cmp ecx, eax
jge 0x413744
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x413749
mov edi, 6
fmul dword [ebx + 0x60]
mov esi, dword [esi + 4]
call fcn.005472a0
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 0x41379a
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.0040b210
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.005418f3
mov esp, ebp
pop ebp
ret 4