Function at 0x428120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xc7
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x14]
add esp, 0xc
sub eax, 0
je 0x4286ec
dec eax
je 0x4285cc
dec eax
je 0x4281a7
lea esi, [ebx + 0xa8]
mov edi, 7
mov eax, str.Unknown
call fcn.00402610
lea esi, [ebx + 0xc4]
mov eax, str.Unknown
call fcn.00402610
pop edi
mov dword [ebx + 0xa4], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 8], 4
ja 0x4281cc
lea esi, [ebx + 0xa8]
mov edi, 0x14
mov eax, str.Microsoft_Windows_NT
call fcn.00402610
mov dword [ebx + 0xa4], 2
cmp dword [ebx + 8], 5
jne 0x42824d
cmp dword [ebx + 0xc], 0
jne 0x4281f7
lea esi, [ebx + 0xa8]
mov edi, 0x16
mov eax, str.Microsoft_Windows_2000
call fcn.00402610
mov dword [ebx + 0xa4], 8
cmp dword [ebx + 8], 5
jne 0x42824d
cmp dword [ebx + 0xc], 1
jne 0x428222
lea esi, [ebx + 0xa8]
mov edi, 0x14
mov eax, str.Microsoft_Windows_XP
call fcn.00402610
mov dword [ebx + 0xa4], 9
cmp dword [ebx + 8], 5
jne 0x42824d
cmp dword [ebx + 0xc], 2
jb 0x42824d
lea esi, [ebx + 0xa8]
mov edi, 0x1d
mov eax, str.Microsoft_Windows_Server_2003
call fcn.00402610
mov dword [ebx + 0xa4], 0xa
cmp dword [ebx + 8], 6
jne 0x428278
cmp dword [ebx + 0xc], 0
jne 0x428278
lea esi, [ebx + 0xa8]
mov edi, 0x17
mov eax, str.Microsoft_Windows_Vista
call fcn.00402610
mov dword [ebx + 0xa4], 0xb
mov eax, dword [ebx + 8]
cmp eax, 6
jne 0x4282bb
cmp dword [ebx + 0xc], 1
jne 0x428290
lea edi, [eax + 0x11]
mov eax, str.Microsoft_Windows_seven
jmp 0x4282d2
cmp eax, 6
jne 0x4282bb
cmp dword [ebx + 0xc], 2
jne 0x4282b8
lea ecx, [ebx + 0xa8]
push ecx
mov eax, str.Microsoft_Windows_seven
call fcn.00401ff0
mov dword [ebx + 0xa4], 0xd
jmp 0x4282e7
cmp eax, 6
ja 0x4282c8
cmp eax, 6
jne 0x4282e7
cmp dword [ebx + 0xc], 2
jbe 0x4282e7
mov edi, 0x2c
mov eax, str.Unknown_Windows_version__but_above_Windows_8
lea esi, [ebx + 0xa8]
call fcn.00402610
mov dword [ebx + 0xa4], 0xc
cmp byte [ebx + 0xa0], 0
je 0x4284c6
mov al, byte [ebx + 0x9e]
cmp al, 1
jne 0x42846d
cmp dword [ebx + 8], 6
jne 0x428433
cmp dword [ebx + 0xc], 0
jne 0x428433
push str.Kernel32
mov dword [ebp - 0x120], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42858f
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x428427
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebx + 8]
push 0
push 0
push ecx
push edx
call eax
test eax, eax
je 0x428427
mov eax, dword [ebp - 0x120]
cmp eax, 6
je 0x428376
cmp eax, 0x10
jne 0x42838d
lea eax, [ebx + 0xa8]
push eax
mov eax, str._Business
call fcn.00409180
mov eax, dword [ebp - 0x120]
cmp eax, 1
je 0x428397
cmp eax, 0x1c
jne 0x4283ae
lea ecx, [ebx + 0xa8]
push ecx
mov eax, str._Ultimate
call fcn.00409180
mov eax, dword [ebp - 0x120]
cmp eax, 0x13
jne 0x4283ca
lea edx, [ebx + 0xa8]
push edx
mov eax, str._Home_Server
call fcn.00409180
mov eax, dword [ebp - 0x120]
cmp eax, 2
je 0x4283d4
cmp eax, 5
jne 0x4283eb
lea eax, [ebx + 0xa8]
push eax
mov eax, str._Home_Basic
call fcn.00409180
mov eax, dword [ebp - 0x120]
cmp eax, 3
je 0x4283f5
cmp eax, 0x1a
jne 0x42840c
lea ecx, [ebx + 0xa8]
push ecx
mov eax, str._Home_Premium
call fcn.00409180
mov eax, dword [ebp - 0x120]
cmp eax, 4
je 0x428416
cmp eax, 0x1b
jne 0x428427
lea edx, [ebx + 0xa8]
push edx
mov eax, str._Enterprise
call fcn.00409180
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42858f
mov eax, 0x200
test word [ebx + 0x9c], ax
je 0x428457
lea ecx, [ebx + 0xa8]
push ecx
mov eax, str._Personal
call fcn.00409180
jmp 0x42858f
lea edx, [ebx + 0xa8]
push edx
mov eax, str._Professional
call fcn.00409180
jmp 0x42858f
cmp al, 3
jne 0x42858f
movzx eax, word [ebx + 0x9c]
test al, al
jns 0x428496
lea eax, [ebx + 0xa8]
push eax
mov eax, str._DataCenter_Server
call fcn.00409180
jmp 0x42858f
test al, 2
je 0x4284b0
lea ecx, [ebx + 0xa8]
push ecx
mov eax, str._Advanced_Server
call fcn.00409180
jmp 0x42858f
lea edx, [ebx + 0xa8]
push edx
mov eax, str._Server
call fcn.00409180
jmp 0x42858f
lea eax, [ebp - 0x120]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x120], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x42851d
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCR100.dll__stricmp]
lea ecx, [ebp - 0x54]
push ecx
push str.WINNT
call esi
add esp, 8
test eax, eax
jne 0x428547
push 0xd
lea ecx, [ebx + 0xa8]
mov eax, str._Professional
call fcn.00409fe0
lea edx, [ebp - 0x54]
push edx
push str.LANMANNT
call esi
add esp, 8
test eax, eax
jne 0x42856b
push 7
lea ecx, [ebx + 0xa8]
mov eax, str._Server
call fcn.00409fe0
lea eax, [ebp - 0x54]
push eax
push str.SERVERNT
call esi
add esp, 8
test eax, eax
jne 0x42858f
push 0x10
lea ecx, [ebx + 0xa8]
mov eax, str._Advanced_Server
call fcn.00409fe0
movzx ecx, word [ebx + 0x10]
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 8]
lea edx, [ebx + 0x18]
push edx
push eax
push ecx
lea edx, [ebp - 0x11c]
push str.Version__d._d__s__Build__d_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x11c]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4285c0
jmp 0x4286c7
cmp dword [ebx + 8], 4
jne 0x42868f
cmp dword [ebx + 0xc], 0
jne 0x42861e
lea esi, [ebx + 0xa8]
mov edi, 0x14
mov eax, str.Microsoft_Windows_95
call fcn.00402610
mov al, byte [ebx + 0x19]
mov dword [ebx + 0xa4], 3
cmp al, 0x43
je 0x428606
cmp al, 0x42
jne 0x42861e
push 5
mov eax, str._OSR2
mov ecx, esi
call fcn.00409fe0
mov dword [ebx + 0xa4], 4
cmp dword [ebx + 8], 4
jne 0x42868f
cmp dword [ebx + 0xc], 0xa
jne 0x428664
lea esi, [ebx + 0xa8]
mov edi, 0x14
mov eax, str.Microsoft_Windows_98
call fcn.00402610
cmp byte [ebx + 0x19], 0x41
mov dword [ebx + 0xa4], 5
jne 0x428664
push esi
mov eax, 0x4bc9d0
call fcn.00409180
mov dword [ebx + 0xa4], 6
cmp dword [ebx + 8], 4
jne 0x42868f
cmp dword [ebx + 0xc], 0x5a
jne 0x42868f
lea esi, [ebx + 0xa8]
mov edi, 0x14
mov eax, str.Microsoft_Windows_Me
call fcn.00402610
mov dword [ebx + 0xa4], 7
movzx ecx, word [ebx + 0x10]
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 8]
push ecx
push edx
push eax
lea ecx, [ebp - 0x11c]
push str.Version__d._d_Build__d__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x11c]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4286c0
sub eax, edx
mov edi, eax
lea esi, [ebx + 0xc4]
lea eax, [ebp - 0x11c]
call fcn.00402610
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 0xa8]
mov edi, 0x10
mov eax, str.Microsoft_Win32s
call fcn.00402610
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [ebx + 0xa4], 1
pop esi
call fcn.00449013
mov esp, ebp
pop ebp
ret