Function at 0x422c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503920
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x569080]
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], 0x532484
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xa20]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
lea ecx, [ebp - 0xa20]
call esi
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 0x422f62
lea eax, [ebp - 0xa24]
mov dword [ebp - 0xa24], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0xa1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422d77
mov edx, str.WinNT
lea ecx, [ebp - 0x218]
call fcn.0042b6b0
test eax, eax
jne 0x422d4c
mov eax, 1
mov word [0x56c4a8], ax
xor al, al
jmp 0x422d72
mov edx, str.ServerNT
lea ecx, [ebp - 0x218]
call fcn.0042b6b0
test eax, eax
mov eax, 3
je 0x422d6a
mov eax, 2
mov word [0x56c4a8], ax
mov al, 1
mov byte [0x56c4ac], 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 dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422f62
xor edi, edi
lea ebx, [ebp - 0xa18]
mov eax, ebx
cmp word [ebp - 0xa18], di
je 0x422dca
nop
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x422dc0
test edi, edi
je 0x422f62
mov si, word [0x56c4aa]
nop dword [eax]
mov edx, str.Small_Business
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422df9
or si, 1
jmp 0x422f34
mov edx, str.Enterprise
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422e12
or si, 2
jmp 0x422f34
mov edx, str.BackOffice
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422e2b
or si, 4
jmp 0x422f34
mov edx, str.CommunicationServer
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422e44
or si, 8
jmp 0x422f34
mov edx, str.Terminal_Server
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422e5d
or si, 0x10
jmp 0x422f34
mov edx, str.Small_Business_Restricted_
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422e76
or si, 0x20
jmp 0x422f34
mov edx, str.EmbeddedNT
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422e8f
or si, 0x40
jmp 0x422f34
mov edx, str.DataCenter
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422ea9
mov eax, 0x80
jmp 0x422f31
mov edx, str.Personal
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422ec0
mov eax, 0x200
jmp 0x422f31
mov edx, str.Blade
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422ed7
mov eax, 0x400
jmp 0x422f31
mov edx, str.Embedded_Restricted_
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422eee
mov eax, 0x800
jmp 0x422f31
mov edx, str.Security_Appliance
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422f05
mov eax, 0x1000
jmp 0x422f31
mov edx, str.Storage_Server
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422f1c
mov eax, 0x2000
jmp 0x422f31
mov edx, str.Compute_Server
mov ecx, ebx
call fcn.0042b6b0
test eax, eax
jne 0x422f3b
mov eax, 0x4000
or si, ax
mov word [0x56c4aa], si
lea ebx, [ebx + edi*2]
xor edi, edi
add ebx, 2
mov eax, ebx
cmp word [ebx], di
je 0x422f5a
nop word [eax + eax]
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x422f50
test edi, edi
jne 0x422de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 0xa20], 0x532484
test eax, eax
je 0x422f8e
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.004d3ce9
mov esp, ebp
pop ebp
ret