Function at 0x40d730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4724e4]
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.004463a0
add esp, 0xc
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x140], edx
cmp dword [ebp - 0x140], 0
je 0x40d799
cmp dword [ebp - 0x140], 1
je 0x40d7c4
cmp dword [ebp - 0x140], 2
je 0x40d957
jmp 0x40ded3
push str.Microsoft_Win32s
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0xa4], 1
jmp 0x40df0f
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 8], 4
jne 0x40d846
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0xc], 0
jne 0x40d846
push str.Microsoft_Windows_95
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0xa4], 3
mov ecx, dword [ebp - 0x13c]
movsx edx, byte [ecx + 0x19]
cmp edx, 0x43
je 0x40d820
mov eax, dword [ebp - 0x13c]
movsx ecx, byte [eax + 0x19]
cmp ecx, 0x42
jne 0x40d846
push str._OSR2
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 4
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 4
jne 0x40d8b9
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0xc], 0xa
jne 0x40d8b9
push str.Microsoft_Windows_98
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 5
mov eax, dword [ebp - 0x13c]
movsx ecx, byte [eax + 0x19]
cmp ecx, 0x41
jne 0x40d8b9
push 0x463c54
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 6
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 4
jne 0x40d8f7
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0xc], 0x5a
jne 0x40d8f7
push str.Microsoft_Windows_Me
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
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.004050a0
jmp 0x40df0f
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 4
ja 0x40d989
push str.Microsoft_Windows_NT
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 2
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 5
jne 0x40d9c7
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 0
jne 0x40d9c7
push str.Microsoft_Windows_2000
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 8
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 5
jne 0x40da05
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 1
jne 0x40da05
push str.Microsoft_Windows_XP
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 9
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 5
jne 0x40da43
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 2
jb 0x40da43
push str.Microsoft_Windows_Server_2003
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 0xa
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 6
jne 0x40da81
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 0
jne 0x40da81
push str.Microsoft_Windows_Vista
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 0xb
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 6
jne 0x40dac1
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 1
jne 0x40dac1
push str.Microsoft_Windows_seven
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0xa4], 0xc
jmp 0x40db0b
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 8], 6
ja 0x40dae5
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 8], 6
jne 0x40db0b
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0xc], 1
jbe 0x40db0b
push str.Unknown_Windows_version__but_above_Windows_7
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 0xc
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0xa0]
test ecx, ecx
je 0x40dda1
mov edx, dword [ebp - 0x13c]
movzx eax, byte [edx + 0x9e]
cmp eax, 1
jne 0x40dd1e
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 8], 6
jne 0x40dcd9
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0xc], 0
jne 0x40dcd9
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 0x40dcc1
push 0x463d68
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 0x40dcc1
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 0x40dcc1
cmp dword [ebp - 0xd4], 6
je 0x40dbec
cmp dword [ebp - 0xd4], 0x10
jne 0x40dc02
push str._Business
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
cmp dword [ebp - 0xd4], 1
je 0x40dc14
cmp dword [ebp - 0xd4], 0x1c
jne 0x40dc2a
push str._Ultimate
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
cmp dword [ebp - 0xd4], 0x13
jne 0x40dc49
push str._Home_Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
cmp dword [ebp - 0xd4], 2
je 0x40dc5b
cmp dword [ebp - 0xd4], 5
jne 0x40dc71
push str._Home_Basic
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
cmp dword [ebp - 0xd4], 3
je 0x40dc83
cmp dword [ebp - 0xd4], 0x1a
jne 0x40dc99
push str._Home_Premium
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
cmp dword [ebp - 0xd4], 4
je 0x40dcab
cmp dword [ebp - 0xd4], 0x1b
jne 0x40dcc1
push str._Enterprise
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
cmp dword [ebp - 0xdc], 0
je 0x40dcd7
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40dd1c
mov ecx, dword [ebp - 0x13c]
movzx edx, word [ecx + 0x9c]
and edx, 0x200
je 0x40dd06
push str._Personal
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
jmp 0x40dd1c
push 0x463dd4
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
jmp 0x40dd9c
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0x9e]
cmp ecx, 3
jne 0x40dd9c
mov edx, dword [ebp - 0x13c]
movzx eax, word [edx + 0x9c]
and eax, 0x80
je 0x40dd5c
push str._DataCenter_Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
jmp 0x40dd9c
mov ecx, dword [ebp - 0x13c]
movzx edx, word [ecx + 0x9c]
and edx, 2
je 0x40dd86
push 0x463df8
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
jmp 0x40dd9c
push 0x463e0c
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
jmp 0x40de77
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.0044ebe1
add esp, 8
test eax, eax
jne 0x40de1b
push str._Professional
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
lea eax, [ebp - 0x130]
push eax
push str.LANMANNT
call fcn.0044ebe1
add esp, 8
test eax, eax
jne 0x40de49
push str._Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
lea ecx, [ebp - 0x130]
push ecx
push str.SERVERNT
call fcn.0044ebe1
add esp, 8
test eax, eax
jne 0x40de77
push str._Advanced_Server
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.00404580
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.004050a0
jmp 0x40df0f
push 0x463eb8
mov ecx, dword [ebp - 0x13c]
add ecx, 0xa8
call fcn.004050a0
push 0x463ec0
mov ecx, dword [ebp - 0x13c]
add ecx, 0xc4
call fcn.004050a0
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xa4], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret