Function at 0x422480
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4387cb
push eax
mov dword fs:[0], esp
sub esp, 0x334
push esi
push edi
call fcn.00421eb0
mov esi, eax
and eax, 1
xor ecx, ecx
mov edi, edx
or eax, ecx
je 0x422797
lea ecx, [esp + 8]
call fcn.00424950
lea eax, [esp + 0x18]
mov dword [esp + 0x344], 0
push eax
mov dword [esp + 0x1c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422554
mov eax, dword [esp + 0x130]
test al, 0x80
je 0x4224ef
or edi, 0x80000
test al, 2
je 0x4224f9
or edi, 0x100000
test al, 0x40
je 0x422503
or edi, 0x200000
test ah, 2
je 0x42250e
or edi, 0x400000
test ah, 0x20
je 0x422519
or edi, 0x800000
mov ecx, eax
and ecx, 0x110
cmp ecx, 0x10
jne 0x42252c
or edi, 0x1000000
test ah, 0x80
je 0x422537
or edi, 0x2000000
mov al, byte [esp + 0x132]
cmp al, 2
jne 0x42254a
or edi, 0x4000000
jmp 0x422554
cmp al, 3
jne 0x422554
or edi, 0x8000
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
call fcn.00413a00
cmp eax, 1
jne 0x4225f6
push 0
lea edx, [esp + 0x138]
push 0x104
push edx
push str.ProductType
lea ecx, [esp + 0x18]
call fcn.00413b10
cmp eax, 1
jne 0x4225ed
lea eax, [esp + 0x134]
push str.WinNT
push eax
call fcn.0042ac26
add esp, 8
test eax, eax
je 0x4225ed
lea ecx, [esp + 0x134]
push str.ServerNT
push ecx
call fcn.0042ac26
add esp, 8
test eax, eax
jne 0x4225ce
or edi, 0x8000
jmp 0x4225ed
lea edx, [esp + 0x134]
push str.LanmanNT
push edx
call fcn.0042ac26
add esp, 8
test eax, eax
jne 0x4225ed
or edi, 0x10000
lea ecx, [esp + 8]
call fcn.00413d00
push 0
push str.SYSTEMCurrentControlSetControlMiniNT
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
call fcn.00413a00
cmp eax, 1
jne 0x42261f
lea ecx, [esp + 8]
call fcn.00413d00
or edi, 0x4000
push 0
push str.SYSTEMCurrentControlSetControlPE_Builder
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
call fcn.00413a00
cmp eax, 1
jne 0x422648
lea ecx, [esp + 8]
call fcn.00413d00
or edi, 0x2000
push 0
push str.SYSTEMWPAFundamentals
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
call fcn.00413a00
cmp eax, 1
jne 0x42268d
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push str.Installed
call fcn.00413a30
cmp eax, 1
jne 0x422684
cmp dword [esp + 0x10], 1
jne 0x422684
or edi, 1
lea ecx, [esp + 8]
call fcn.00413d00
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x56
call ebx
test eax, eax
je 0x42269f
or edi, 0x40
push 0x57
call ebx
test eax, eax
je 0x4226ad
or edi, 0x80
push 0x1000
call ebx
test eax, eax
je 0x4226be
or edi, 0x1000
push 0x58
call ebx
test eax, eax
je 0x4226c9
or edi, 0x10
push 0x59
call ebx
test eax, eax
pop ebx
je 0x4226d5
or edi, 0x20
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionMedia_Center
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
call fcn.00413a00
cmp eax, 1
jne 0x422783
push 0
lea ecx, [esp + 0x138]
push 0x104
push ecx
push str.Ident
lea ecx, [esp + 0x18]
call fcn.00413b10
cmp eax, 1
jne 0x42277a
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x13c]
push str._u._u
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call fcn.0042ab86
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 2
jne 0x422755
or edi, 0x100
jmp 0x42277a
cmp eax, 3
jne 0x422762
or edi, 0x200
jmp 0x42277a
cmp eax, 4
jne 0x42276f
or edi, 0x400
jmp 0x42277a
cmp eax, 5
jne 0x42277a
or edi, 0x800
lea ecx, [esp + 8]
call fcn.00413d00
lea ecx, [esp + 8]
mov dword [esp + 0x344], 0xffffffff
call fcn.004139b0
mov ecx, dword [esp + 0x33c]
mov edx, edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x340
ret