Function at 0x40a6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x463444]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 0xd0], 0
push 0xc7
push 0
lea eax, [ebp - 0xcf]
push eax
call fcn.0043b290
add esp, 0xc
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x140], edx
cmp dword [ebp - 0x140], 0
je 0x40a729
cmp dword [ebp - 0x140], 1
je 0x40a754
cmp dword [ebp - 0x140], 2
je 0x40a8e7
jmp 0x40ae63
push str.Microsoft_Win32s
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0xa4], 1
jmp 0x40ae9f
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 8], 4
jne 0x40a7d6
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0xc], 0
jne 0x40a7d6
push str.Microsoft_Windows_95
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0xa4], 3
mov ecx, dword [ebp - 0x13c]
movsx edx, byte [ecx + 0x19]
cmp edx, 0x43
je 0x40a7b0
mov eax, dword [ebp - 0x13c]
movsx ecx, byte [eax + 0x19]
cmp ecx, 0x42
jne 0x40a7d6
push str._OSR2
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 4
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 4
jne 0x40a849
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0xc], 0xa
jne 0x40a849
push str.Microsoft_Windows_98
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 5
mov eax, dword [ebp - 0x13c]
movsx ecx, byte [eax + 0x19]
cmp ecx, 0x41
jne 0x40a849
push 0x45544c
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 6
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 4
jne 0x40a887
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0xc], 0x5a
jne 0x40a887
push str.Microsoft_Windows_Me
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 7
mov eax, dword [ebp - 0x13c]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 8]
push eax
push str.Version__d._d_Build__d__s
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [ebp - 0xd0]
push edx
mov ecx, dword [ebp - 0x13c]
add ecx, 0xc4
call fcn.00406ac0
jmp 0x40ae9f
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 4
ja 0x40a919
push str.Microsoft_Windows_NT
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 2
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 5
jne 0x40a957
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 0
jne 0x40a957
push str.Microsoft_Windows_2000
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 8
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 5
jne 0x40a995
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 1
jne 0x40a995
push str.Microsoft_Windows_XP
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 9
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 5
jne 0x40a9d3
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 2
jb 0x40a9d3
push str.Microsoft_Windows_Server_2003
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 0xa
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 6
jne 0x40aa11
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 0
jne 0x40aa11
push str.Microsoft_Windows_Vista
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 0xb
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 6
jne 0x40aa51
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 1
jne 0x40aa51
push str.Microsoft_Windows_seven
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 0xc
jmp 0x40aa9b
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 6
ja 0x40aa75
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 6
jne 0x40aa9b
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0xc], 1
jbe 0x40aa9b
push str.Unknown_Windows_version__but_above_Windows_7
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 0xc
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0xa0]
test ecx, ecx
je 0x40ad31
mov edx, dword [ebp - 0x13c]
movzx eax, byte [edx + 0x9e]
cmp eax, 1
jne 0x40acae
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 8], 6
jne 0x40ac69
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0xc], 0
jne 0x40ac69
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x40ac51
push 0x455560
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x40ac51
lea ecx, [ebp - 0xd4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 8]
push edx
call dword [ebp - 0xd8]
test eax, eax
je 0x40ac51
cmp dword [ebp - 0xd4], 6
je 0x40ab7c
cmp dword [ebp - 0xd4], 0x10
jne 0x40ab92
push str._Business
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
cmp dword [ebp - 0xd4], 1
je 0x40aba4
cmp dword [ebp - 0xd4], 0x1c
jne 0x40abba
push str._Ultimate
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
cmp dword [ebp - 0xd4], 0x13
jne 0x40abd9
push str._Home_Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
cmp dword [ebp - 0xd4], 2
je 0x40abeb
cmp dword [ebp - 0xd4], 5
jne 0x40ac01
push str._Home_Basic
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
cmp dword [ebp - 0xd4], 3
je 0x40ac13
cmp dword [ebp - 0xd4], 0x1a
jne 0x40ac29
push str._Home_Premium
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
cmp dword [ebp - 0xd4], 4
je 0x40ac3b
cmp dword [ebp - 0xd4], 0x1b
jne 0x40ac51
push str._Enterprise
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
cmp dword [ebp - 0xdc], 0
je 0x40ac67
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40acac
mov ecx, dword [ebp - 0x13c]
movzx edx, word [ecx + 0x9c]
and edx, 0x200
je 0x40ac96
push str._Personal
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
jmp 0x40acac
push 0x4555cc
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
jmp 0x40ad2c
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0x9e]
cmp ecx, 3
jne 0x40ad2c
mov edx, dword [ebp - 0x13c]
movzx eax, word [edx + 0x9c]
and eax, 0x80
je 0x40acec
push str._DataCenter_Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
jmp 0x40ad2c
mov ecx, dword [ebp - 0x13c]
movzx edx, word [ecx + 0x9c]
and edx, 2
je 0x40ad16
push 0x4555f0
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
jmp 0x40ad2c
push 0x455604
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
jmp 0x40ae07
lea eax, [ebp - 0x134]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x130]
push edx
push 0
push 0
push str.ProductType
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x130]
push edx
push str.WINNT
call fcn.004477c7
add esp, 8
test eax, eax
jne 0x40adab
push str._Professional
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
lea eax, [ebp - 0x130]
push eax
push str.LANMANNT
call fcn.004477c7
add esp, 8
test eax, eax
jne 0x40add9
push str._Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
lea ecx, [ebp - 0x130]
push ecx
push str.SERVERNT
call fcn.004477c7
add esp, 8
test eax, eax
jne 0x40ae07
push str._Advanced_Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404090
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x10]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 8]
push edx
push str.Version__d._d__s__Build__d_
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0xc4
call fcn.00406ac0
jmp 0x40ae9f
push 0x4556b0
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00406ac0
push 0x4556b8
mov ecx, dword [ebp - 0x13c]
add ecx, 0xc4
call fcn.00406ac0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381fb
mov esp, ebp
pop ebp
ret