Function at 0x10017c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xffffffffffffffff
push 0x100640fd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0x100962bc
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
lea ecx, [ebp - 0x14]
call esi
lea eax, [ebp - 0x10]
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 0x10017f42
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x208
push eax
lea eax, [ebp + 0x800]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017d6a
mov edx, str.WinNT
lea ecx, [ebp + 0x800]
call fcn.1001e7f0
test eax, eax
jne 0x10017d3f
mov eax, 1
mov word [0x100af030], ax
xor al, al
jmp 0x10017d65
mov edx, str.ServerNT
lea ecx, [ebp + 0x800]
call fcn.1001e7f0
test eax, eax
mov eax, 3
je 0x10017d5d
mov eax, 2
mov word [0x100af030], ax
mov al, 1
mov byte [0x100af034], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x800
push eax
lea eax, [ebp]
push eax
push 0
push 0
push str.ProductSuite
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017f42
xor edi, edi
lea ebx, [ebp]
mov eax, ebx
cmp word [ebp], di
je 0x10017daa
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x10017da0
test edi, edi
je 0x10017f42
mov si, word [0x100af032]
nop dword [eax]
mov edx, str.Small_Business
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017dd9
or si, 1
jmp 0x10017f14
mov edx, str.Enterprise
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017df2
or si, 2
jmp 0x10017f14
mov edx, str.BackOffice
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017e0b
or si, 4
jmp 0x10017f14
mov edx, str.CommunicationServer
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017e24
or si, 8
jmp 0x10017f14
mov edx, str.Terminal_Server
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017e3d
or si, 0x10
jmp 0x10017f14
mov edx, str.Small_Business_Restricted_
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017e56
or si, 0x20
jmp 0x10017f14
mov edx, str.EmbeddedNT
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017e6f
or si, 0x40
jmp 0x10017f14
mov edx, str.DataCenter
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017e89
mov eax, 0x80
jmp 0x10017f11
mov edx, str.Personal
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017ea0
mov eax, 0x200
jmp 0x10017f11
mov edx, str.Blade
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017eb7
mov eax, 0x400
jmp 0x10017f11
mov edx, str.Embedded_Restricted_
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017ece
mov eax, 0x800
jmp 0x10017f11
mov edx, str.Security_Appliance
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017ee5
mov eax, 0x1000
jmp 0x10017f11
mov edx, str.Storage_Server
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017efc
mov eax, 0x2000
jmp 0x10017f11
mov edx, str.Compute_Server
mov ecx, ebx
call fcn.1001e7f0
test eax, eax
jne 0x10017f1b
mov eax, 0x4000
or si, ax
mov word [0x100af032], si
lea ebx, [ebx + edi*2]
xor edi, edi
add ebx, 2
mov eax, ebx
cmp word [ebx], di
je 0x10017f3a
nop word [eax + eax]
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x10017f30
test edi, edi
jne 0x10017dc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100962bc
test eax, eax
je 0x10017f65
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.1004d40a
lea esp, [ebp + 0xa0c]
pop ebp
ret