Function at 0x4090f3
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push esi
push edi
push 1
push 0x200
call fcn.004132fe
mov edi, dword [ebp + 8]
mov esi, 0x9c
mov dword [ebp - 4], eax
push esi
and byte [edi], 0
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004109d0
add esp, 0x14
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
mov dword [ebp + 8], eax
jne 0x40916a
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call esi
test eax, eax
jne 0x40916a
push str.Unknown_OS
push edi
call fcn.004108e0
pop ecx
pop ecx
mov eax, dword [ebp - 0x94]
sub eax, 0
je 0x409522
dec eax
je 0x409492
dec eax
jne 0x40952f
push 5
pop esi
cmp dword [ebp - 0xa0], esi
jne 0x4091e4
cmp dword [ebp - 0x9c], 2
jne 0x4091b0
push str.Microsoft_Windows_Server_2003_family_
push edi
call fcn.004108f0
cmp dword [ebp - 0xa0], esi
pop ecx
pop ecx
jne 0x4091e4
cmp dword [ebp - 0x9c], 1
jne 0x4091ce
push str.Microsoft_Windows_XP
push edi
call fcn.004108f0
cmp dword [ebp - 0xa0], esi
pop ecx
pop ecx
jne 0x4091e4
cmp dword [ebp - 0x9c], 0
jne 0x4091fa
push str.Microsoft_Windows_2000
push edi
call fcn.004108f0
pop ecx
pop ecx
cmp dword [ebp - 0xa0], 4
ja 0x4091fa
push str.Microsoft_Windows_NT
push edi
call fcn.004108f0
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp + 8], eax
je 0x4092c8
cmp byte [ebp - 0xa], 1
jne 0x409235
cmp dword [ebp - 0xa0], 4
jne 0x40921e
push str.Workstation_4.0
jmp 0x4092b4
test byte [ebp - 0xb], 2
je 0x40922e
push str.Home_Edition
jmp 0x4092b4
push str.Professional
jmp 0x4092b4
cmp byte [ebp - 0xa], 3
jne 0x4093ac
cmp dword [ebp - 0xa0], esi
jne 0x4092a9
cmp dword [ebp - 0x9c], 2
jne 0x409280
test byte [ebp - 0xc], 0x80
je 0x40925d
push str.Datacenter_Edition
jmp 0x4092b4
test byte [ebp - 0xc], 2
je 0x40926a
push str.Enterprise_Edition
jmp 0x4092b4
cmp word [ebp - 0xc], 0x400
jne 0x409279
push str.Web_Edition
jmp 0x4092b4
push str.Standard_Edition
jmp 0x4092b4
cmp dword [ebp - 0x9c], eax
jne 0x4092a9
test byte [ebp - 0xc], 0x80
je 0x409295
push str.Datacenter_Server
jmp 0x4092b4
test byte [ebp - 0xc], 2
je 0x4092a2
push str.Advanced_Server
jmp 0x4092b4
push str.Server
jmp 0x4092b4
test byte [ebp - 0xc], 2
je 0x4092c1
push str.Server_4.0__Enterprise_Edition
push edi
call fcn.004108f0
pop ecx
pop ecx
jmp 0x4093ac
push str.Server_4.0
jmp 0x4092b4
push 0x50
lea ecx, [ebp - 8]
pop esi
push ecx
push 1
push eax
push str.SYSTEMCurrentControlSetControlProductOptions
push 0x80000002
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409477
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xf4]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409477
cmp dword [ebp + 8], esi
ja 0x409477
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
lea eax, [ebp - 0xf4]
push eax
push str.WINNT
call esi
test eax, eax
jne 0x409349
push str.Workstation
push edi
call fcn.004108f0
pop ecx
pop ecx
lea eax, [ebp - 0xf4]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x409368
push str.Server
push edi
call fcn.004108f0
pop ecx
pop ecx
lea eax, [ebp - 0xf4]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x409387
push str.Advanced_Server
push edi
call fcn.004108f0
pop ecx
pop ecx
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push str._d._d
push dword [ebp - 4]
call fcn.0041088a
push dword [ebp - 4]
push edi
call fcn.004108f0
add esp, 0x18
cmp dword [ebp - 0xa0], 4
jne 0x409446
lea eax, [ebp - 0x90]
push str.Service_Pack_6
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x409446
lea eax, [ebp + 8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [ebp - 0x98]
jne 0x409412
and eax, 0xffff
push eax
push str.Service_Pack_6a__Build__d_
push dword [ebp - 4]
call fcn.0041088a
push dword [ebp - 4]
push edi
call fcn.004108f0
add esp, 0x14
jmp 0x409438
and eax, 0xffff
push eax
lea eax, [ebp - 0x90]
push eax
push str._s__Build__d_
push dword [ebp - 4]
call fcn.0041088a
push dword [ebp - 4]
push edi
call fcn.004108f0
add esp, 0x18
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40952f
mov eax, dword [ebp - 0x98]
and eax, 0xffff
push eax
lea eax, [ebp - 0x90]
push eax
push str._s__Build__d_
push dword [ebp - 4]
call fcn.0041088a
push dword [ebp - 4]
push edi
call fcn.004108f0
add esp, 0x18
jmp 0x40952f
push str.Unknown_OS
push edi
call fcn.004108e0
push dword [ebp - 4]
call fcn.004120c8
add esp, 0xc
jmp 0x409538
cmp dword [ebp - 0xa0], 4
jne 0x40952f
cmp dword [ebp - 0x9c], 0
jne 0x4094dd
push str.Microsoft_Windows_95
push edi
call fcn.004108f0
cmp byte [ebp - 0x8f], 0x43
pop ecx
pop ecx
je 0x4094c7
cmp byte [ebp - 0x8f], 0x42
jne 0x4094d4
push str.OSR2
push edi
call fcn.004108f0
pop ecx
pop ecx
cmp dword [ebp - 0xa0], 4
jne 0x40952f
cmp dword [ebp - 0x9c], 0xa
jne 0x409512
push str.Microsoft_Windows_98
push edi
call fcn.004108f0
cmp byte [ebp - 0x8f], 0x41
pop ecx
pop ecx
jne 0x409509
push 0x4209b4
push edi
call fcn.004108f0
pop ecx
pop ecx
cmp dword [ebp - 0xa0], 4
jne 0x40952f
cmp dword [ebp - 0x9c], 0x5a
jne 0x40952f
push str.Microsoft_Windows_Millennium_Edition
jmp 0x409527
push str.Microsoft_Win32s
push edi
call fcn.004108f0
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004120c8
pop ecx
pop edi
pop esi
leave
ret