Function at 0x40b6a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4554a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14c]
push edi
mov edi, dword [ecx + 0x2c]
mov ebx, dword [ecx + 0x18]
mov dword [esp + 0x64], edi
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 8]
lea ebp, [ecx + 0x1c]
test ah, 8
mov dword [esp + 0x148], 0
mov dword [esp + 0x50], ebp
je 0x40b72a
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
sub eax, ecx
cdq
sub eax, edx
push 2
sar eax, 1
add ecx, eax
lea eax, [esp + 0x58]
push 6
push eax
push ebx
mov dword [esp + 0x68], ecx
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x40bd9c
mov eax, dword [ecx + 0x10]
mov edx, eax
and edx, 2
mov dword [esp + 0x24], edx
mov edx, eax
and eax, 8
and edx, 1
mov ebx, eax
xor eax, eax
cmp word [ecx + 8], 0xffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x4c], eax
jne 0x40b756
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov edx, dword [esi + 0x94]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x28], eax
add eax, edx
mov edx, dword [esi + 0x98]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
add edx, ecx
sub eax, ecx
sub eax, edx
mov dword [esp + 0x34], edx
add eax, ecx
mov dword [esp + 0x2c], ecx
cdq
sub eax, edx
lea ecx, [esp + 0x28]
sar eax, 1
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [esp + 0x68], eax
jl 0x40ba8a
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x8c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esi + 0x90]
sub eax, ecx
mov ecx, dword [esp + 0x34]
sub ecx, edi
mov dword [esp + 0x4c], 1
sub ecx, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar edi, 1
sar eax, 1
add edi, edx
add eax, ecx
test ebx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
je 0x40b919
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b811
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b921
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebp
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x14
mov edi, eax
call ebp
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push ecx
call fcn.0040c5a0
mov ebp, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push 0
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x10]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
test ebp, ebp
je 0x40b898
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40b94f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40b8b4
test ebx, ebx
je 0x40b8f4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], eax
neg ebx
sbb ebx, ebx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10]
and ebx, 0xfffffffe
add ebx, 4
push 0xf
lea eax, [esp + 0x70]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
push ebx
push eax
push ecx
mov dword [esp + 0x88], edx
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
push 1
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esi + 0x44]
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
jmp 0x40bb5c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40b938
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push 5
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x40b8a8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 5
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x40b89c
mov edi, dword [sym.imp.USER32.dll_GetSysColorBrush]
test ebx, ebx
je 0x40b963
mov dword [esp + 0x1c], 0
jmp 0x40b96b
push 4
call edi
mov dword [esp + 0x1c], eax
push 0x10
call edi
push 0x14
mov ebp, eax
call edi
xor ebx, ebx
mov edi, eax
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ebx
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x8c]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
mov byte [esp + 0x154], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x90]
push 0xff0062
push eax
push ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
sub eax, 0xffffff
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
mov ecx, dword [esi + 0x44]
and al, 0xf0
add eax, 0x10
push eax
mov eax, dword [esp + 0x6c]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x90]
push ebp
push edi
push edx
mov edx, dword [esi + 0x8c]
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040cd10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
call ebx
mov eax, dword [esp + 0x48]
mov byte [esp + 0x148], 1
test eax, eax
je 0x40ba70
lea ecx, [esp + 0x48]
call fcn.00407f00
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 0
call fcn.0040bdc0
mov ebp, dword [esp + 0x50]
jmp 0x40bb5c
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x7c], 0x30
push ecx
mov dword [esp + 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40bae5
mov eax, dword [esp + 0xb0]
cmp eax, 5
jae 0x40baed
cmp eax, 4
jne 0x40bae5
cmp dword [esp + 0xb4], 0x5a
jae 0x40baed
mov dword [esp + 0x7c], 0x2c
mov eax, dword [esp + 0x150]
lea edx, [esp + 0x7c]
push edx
push 0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
push ecx
push edx
mov dword [esp + 0x90], 0x18
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov ecx, dword [esp + 0x98]
test ebx, ebx
jne 0x40bb23
test ecx, ecx
je 0x40bb5c
mov eax, dword [esp + 0x84]
shr eax, 9
and eax, 1
test ebx, ebx
je 0x40bb3b
mov ecx, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.0040c610
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0x94]
neg edi
sbb edi, edi
and edi, 9
add edi, 4
push edi
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bb90
mov ecx, dword [esp + 0x150]
cmp dword [ecx + 0xc], 2
jne 0x40bbcf
mov edx, ebp
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [edx + 0xc]
test ecx, ecx
mov dword [esp + 0x44], edx
je 0x40bbbd
lea eax, [eax + ebx + 1]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x10]
inc edi
lea ecx, [esp + 0x38]
push edi
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 8]
lea eax, [eax + ebx + 3]
sub ecx, ebx
push 1
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edi, dword [esp + 0x24]
test edi, edi
je 0x40bc16
mov edx, dword [esp + 0x14]
xor eax, eax
test edx, edx
setne al
add eax, 0x10
jmp 0x40bc24
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 7
add eax, 7
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push eax
call ebx
test edi, edi
mov dword [esp + 0x1c], eax
je 0x40bd0f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40bc4b
cmp eax, dword [esp + 0x20]
jne 0x40bd0f
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
push 1
lea eax, [esp + 0x3c]
push 1
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x14
call ebx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x20], 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 0x40bcaf
cmp byte [ebx + edi], 9
je 0x40bcad
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp ebx, eax
jl 0x40bc99
jmp 0x40bcaf
mov ebp, ebx
mov edx, dword [esp + 0x20]
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 + 0x38]
push ecx
push edx
push ebp
push edi
push eax
call ebx
cmp ebp, 0xffffffff
je 0x40bd0f
mov cl, byte [esi + 0x81]
lea edx, [esp + 0x38]
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 edx, dword [esp + 0x64]
or ebp, 0xffffffff
xor ebx, ebx
mov edi, dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40bd3c
cmp byte [ebx + edi], 9
je 0x40bd3a
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp ebx, eax
jl 0x40bd26
jmp 0x40bd3c
mov ebp, ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dl, byte [esi + 0x81]
mov ecx, dword [esp + 0x10]
not dl
and edx, 4
mov ebx, dword [sym.imp.USER32.dll_DrawTextA]
shl edx, 0x12
or edx, 0x24
lea eax, [esp + 0x54]
push edx
push eax
push ebp
push edi
push ecx
call ebx
cmp ebp, 0xffffffff
je 0x40bd9c
mov dl, byte [esi + 0x81]
lea eax, [esp + 0x54]
not dl
and edx, 4
lea ecx, [edi + ebp + 1]
shl edx, 0x12
or edx, 0x26
push edx
mov edx, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
push ecx
push edx
call ebx
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4