Function at 0x40bde0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4554d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
push esi
mov eax, dword [ebx + 0x2c]
mov esi, ecx
mov ecx, dword [ebx + 0x18]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x130], 0
mov edi, eax
mov ecx, eax
and edi, 1
and ecx, 2
and eax, 8
lea ebp, [ebx + 0x1c]
test edi, edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jne 0x40beab
cmp dword [ebx + 0xc], 2
jne 0x40be5f
push 4
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, dword [esp + 0x10]
push eax
push ebp
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 8]
test ah, 8
je 0x40bed7
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x54], edx
cdq
sub eax, edx
push 2
sar eax, 1
add ecx, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
push 6
push eax
push ecx
mov dword [esp + 0x68], ebp
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x40c2e9
push 0x1d
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov edx, dword [esp + 0x10]
push eax
push ebp
push edx
call dword [sym.imp.USER32.dll_FillRect]
push 0xd
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.USER32.dll_FrameRect]
jmp 0x40be5f
cmp word [ebx + 8], 0xffff
jne 0x40beeb
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [esi + 0x94]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], eax
add eax, edx
mov edx, dword [esi + 0x98]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
add edx, ecx
sub eax, ecx
mov dword [esp + 0x28], edx
sub eax, edx
mov edx, ecx
mov dword [esp + 0x20], ecx
add eax, edx
cdq
sub eax, edx
lea edx, [esp + 0x1c]
sar eax, 1
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bf9c
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_InflateRect]
test edi, edi
je 0x40bf83
push 4
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push 0xd
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x38], eax
jl 0x40c136
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x8c]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x90]
sub eax, edx
mov edx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, ebx
sub ecx, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
sar ebx, 1
add eax, edx
mov edx, dword [esp + 0x34]
add ecx, ebx
mov dword [esp + 0x40], eax
test edx, edx
mov dword [esp + 0x3c], ecx
jne 0x40c01a
mov edx, dword [esi + 0x44]
push 1
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
jmp 0x40c1fc
test edi, edi
je 0x40c02b
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, 0x1d
je 0x40c030
mov eax, 4
mov edi, dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
call edi
push 0x10
mov ebx, eax
call edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x60], edi
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x138], 2
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x8c]
push 0xff0062
push edx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_PatBlt]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
sub eax, 0xffffff
mov ecx, dword [esp + 0x38]
neg eax
sbb eax, eax
mov edx, dword [esi + 0x44]
and al, 0xf0
add eax, 0x10
push eax
push 0
push 0
push edi
push ecx
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x8c]
push eax
mov eax, dword [esp + 0x44]
push ebx
push ebx
push 0
push 0
push 0
push edi
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040cd10
mov edx, dword [esp + 0x30]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c122
lea ecx, [esp + 0x18]
call fcn.00407f00
test edi, edi
je 0x40c1f8
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x40c1f8
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x64], 0x30
push eax
mov dword [esp + 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c191
mov eax, dword [esp + 0x98]
cmp eax, 5
jae 0x40c199
cmp eax, 4
jne 0x40c191
cmp dword [esp + 0x9c], 0x5a
jae 0x40c199
mov dword [esp + 0x64], 0x2c
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], 0x18
push ecx
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
test edx, edx
jne 0x40c1c9
test ecx, ecx
je 0x40c1f8
mov eax, dword [esp + 0x6c]
shr eax, 9
and eax, 1
test edx, edx
je 0x40c1db
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0040c610
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 4]
mov eax, dword [esi + 0x94]
mov ecx, dword [ebp]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 8]
sub edx, eax
lea ecx, [ecx + eax + 3]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x10]
push 1
push edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x54], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40c247
xor eax, eax
test edi, edi
setne al
add eax, 0x10
mov edi, eax
jmp 0x40c251
neg edi
sbb edi, edi
and edi, 7
add edi, 7
push edi
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
or ebp, 0xffffffff
xor ebx, ebx
mov edi, dword [ecx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40c289
cmp byte [ebx + edi], 9
je 0x40c287
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp ebx, eax
jl 0x40c273
jmp 0x40c289
mov ebp, ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov cl, byte [esi + 0x81]
mov eax, dword [esp + 0x10]
not cl
and ecx, 4
mov ebx, dword [sym.imp.USER32.dll_DrawTextA]
shl ecx, 0x12
or ecx, 0x24
lea edx, [esp + 0x4c]
push ecx
push edx
push ebp
push edi
push eax
call ebx
cmp ebp, 0xffffffff
je 0x40c2e9
mov cl, byte [esi + 0x81]
lea edx, [esp + 0x4c]
not cl
and ecx, 4
lea eax, [edi + ebp + 1]
shl ecx, 0x12
or ecx, 0x26
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0xffffffffffffffff
push eax
push ecx
call ebx
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4