Function at 0x420d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a40f0
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa20], 0x4c43b8
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa20]
mov eax, dword [ebp - 0xa20]
call dword [eax + 4]
lea eax, [ebp - 0xa1c]
push eax
push 0x20119
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x420fe2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa24], 0x208
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0xa1c]
call esi
test eax, eax
jne 0x420dff
mov edx, str.WinNT
lea ecx, [ebp - 0x218]
call fcn.00429250
test eax, eax
jne 0x420dd4
mov eax, 1
mov word [0x4e65d0], ax
xor al, al
jmp 0x420dfa
mov edx, str.ServerNT
lea ecx, [ebp - 0x218]
call fcn.00429250
test eax, eax
mov eax, 3
je 0x420df2
mov eax, 2
mov word [0x4e65d0], ax
mov al, 1
mov byte [0x4e65d4], al
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa28], 0x800
push eax
lea eax, [ebp - 0xa18]
push eax
push 0
push 0
push str.ProductSuite
push dword [ebp - 0xa1c]
call esi
test eax, eax
jne 0x420fe2
xor edi, edi
lea ebx, [ebp - 0xa18]
mov eax, ebx
cmp word [ebp - 0xa18], di
je 0x420e4d
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x420e43
test edi, edi
je 0x420fe2
mov si, word [0x4e65d2]
nop dword [eax]
mov edx, str.Small_Business
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420e79
or si, 1
jmp 0x420fb4
mov edx, str.Enterprise
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420e92
or si, 2
jmp 0x420fb4
mov edx, str.BackOffice
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420eab
or si, 4
jmp 0x420fb4
mov edx, str.CommunicationServer
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420ec4
or si, 8
jmp 0x420fb4
mov edx, str.Terminal_Server
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420edd
or si, 0x10
jmp 0x420fb4
mov edx, str.Small_Business_Restricted_
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420ef6
or si, 0x20
jmp 0x420fb4
mov edx, str.EmbeddedNT
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f0f
or si, 0x40
jmp 0x420fb4
mov edx, str.DataCenter
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f29
mov eax, 0x80
jmp 0x420fb1
mov edx, str.Personal
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f40
mov eax, 0x200
jmp 0x420fb1
mov edx, str.Blade
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f57
mov eax, 0x400
jmp 0x420fb1
mov edx, str.Embedded_Restricted_
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f6e
mov eax, 0x800
jmp 0x420fb1
mov edx, str.Security_Appliance
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f85
mov eax, 0x1000
jmp 0x420fb1
mov edx, str.Storage_Server
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420f9c
mov eax, 0x2000
jmp 0x420fb1
mov edx, str.Compute_Server
mov ecx, ebx
call fcn.00429250
test eax, eax
jne 0x420fbb
mov eax, 0x4000
or si, ax
mov word [0x4e65d2], si
lea ebx, [ebx + edi*2]
xor edi, edi
add ebx, 2
mov eax, ebx
cmp word [ebx], di
je 0x420fda
nop word [eax + eax]
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x420fd0
test edi, edi
jne 0x420e60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 0xa20], 0x4c43b8
test eax, eax
je 0x42100e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047dde6
mov esp, ebp
pop ebp
ret