Function at 0x417450
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x468881
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], al
call fcn.00405c50
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
lea ecx, [esp + 0x2c]
call fcn.00405aa0
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x274], esi
call fcn.00405c50
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
lea ecx, [esp + 0x1c]
call fcn.00405aa0
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x274], 1
mov byte [esp + 0x3c], dl
call fcn.00405c50
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
lea ecx, [esp + 0x40]
call fcn.00405aa0
mov esi, dword [0x46c214]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
mov ebx, 2
push eax
mov byte [esp + 0x274], bl
mov dword [esp + 0x50], 0x9c
call esi
mov ebp, eax
test ebp, ebp
jne 0x41756d
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x94
push ecx
call esi
test eax, eax
jne 0x41756d
mov esi, dword [esp + 0x278]
mov dl, byte [esp + 0x13]
mov byte [esi], dl
jmp 0x417953
mov eax, dword [esp + 0x5c]
mov esi, 0xff
sub eax, 0
je 0x417ecb
dec eax
je 0x417d15
dec eax
jne 0x417f11
cmp dword [esp + 0x50], 5
jne 0x417611
cmp dword [esp + 0x54], ebx
jne 0x4175bf
mov edi, str.WIN2003_family
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WIN2003_family
lea ecx, [esp + 0x2c]
call fcn.00405aa0
cmp dword [esp + 0x50], 5
jne 0x417611
cmp dword [esp + 0x54], 1
jne 0x4175eb
mov edi, str.WINXP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WINXP
lea ecx, [esp + 0x2c]
call fcn.00405aa0
cmp dword [esp + 0x50], 5
jne 0x417611
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x417636
mov edi, str.WIN2000
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WIN2000
lea ecx, [esp + 0x2c]
call fcn.00405aa0
cmp dword [esp + 0x50], 4
ja 0x417636
mov edi, str.WINNT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WINNT
lea ecx, [esp + 0x2c]
call fcn.00405aa0
test ebp, ebp
je 0x417925
mov al, byte [esp + 0xe6]
cmp al, 1
jne 0x4176e4
cmp dword [esp + 0x50], 4
jne 0x417677
mov edi, str.Workstation_4.0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Workstation_4.0
lea ecx, [esp + 0x1c]
call fcn.00405aa0
jmp 0x417b00
mov eax, dword [esp + 0xe4]
test ah, 2
je 0x4176a6
mov edi, str.Home_Edition
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Home_Edition
lea ecx, [esp + 0x1c]
call fcn.00405aa0
jmp 0x417b00
mov edi, str.Professional
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Professional
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x417af1
cmp al, 3
jne 0x417b00
cmp dword [esp + 0x50], 5
jne 0x4178ad
mov eax, dword [esp + 0x54]
cmp eax, ebx
jne 0x4177f6
mov eax, dword [esp + 0xe4]
test al, 0x80
je 0x41773f
mov edi, str.Datacenter_Edition
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov ecx, ebp
mov esi, str.Datacenter_Edition
jmp 0x417ae4
test bl, al
je 0x417781
mov edi, str.Enterprise_Edition
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Enterprise_Edition
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x417af1
cmp ax, 0x400
jne 0x4177b8
mov edi, str.Web_Edition
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov ecx, ebp
mov esi, str.Web_Edition
jmp 0x417ae4
mov edi, str.Standard_Edition
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Standard_Edition
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x417af1
test eax, eax
jne 0x4178ad
mov al, byte [esp + 0xe4]
test al, 0x80
je 0x41783a
mov edi, str.Datacenter_Server
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov ecx, ebp
mov esi, str.Datacenter_Server
jmp 0x417ae4
test bl, al
je 0x41787c
mov edi, str.Advanced_Server
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Advanced_Server
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x417af1
mov edi, str.Server
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov ecx, ebp
mov esi, str.Server
jmp 0x417ae4
test byte [esp + 0xe4], bl
je 0x4178f4
mov edi, str.Server_4.0__Enterprise_Edition
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Server_4.0__Enterprise_Edition
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x417af1
mov edi, str.Server_4.0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov ecx, ebp
mov esi, str.Server_4.0
jmp 0x417ae4
lea eax, [esp + 0x34]
mov dword [esp + 0x48], esi
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4179b9
mov esi, dword [esp + 0x278]
mov cl, byte [esp + 0x13]
mov byte [esi], cl
push 0
mov ecx, esi
call fcn.00405c50
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
mov ecx, esi
call fcn.00405aa0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x274], 1
call fcn.00405c50
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 0
call fcn.00405c50
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x274], 0xffffffff
call fcn.00405c50
jmp 0x417feb
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x48]
lea eax, [esp + 0x168]
push edx
push eax
push 0
push 0
push str.ProductType
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417c82
cmp dword [esp + 0x48], esi
ja 0x417c82
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x168]
push eax
push 0x47f73c
call dword [0x46c288]
test eax, eax
jne 0x417a50
mov edi, str.Workstation
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417a50
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.Workstation
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004072f0
mov ebx, dword [0x46c288]
lea eax, [esp + 0x168]
push eax
push str.LANMANNT
call ebx
test eax, eax
jne 0x417aab
mov edi, str.Server
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417aab
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.Server
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004072f0
lea eax, [esp + 0x168]
push eax
push str.SERVERNT
call ebx
test eax, eax
jne 0x417b00
mov edi, str.Advanced_Server
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00407310
test al, al
je 0x417b00
mov ecx, ebp
mov esi, str.Advanced_Server
mov edi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004072f0
cmp dword [esp + 0x50], 4
jne 0x417c02
lea eax, [esp + 0x60]
push str.Service_Pack_6
push eax
call dword [0x46c288]
test eax, eax
jne 0x417c02
lea ecx, [esp + 0x34]
push ecx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417b7b
mov eax, dword [0x46c634]
mov bl, byte [esp + 0x58]
cmp eax, 1
jne 0x417b52
call fcn.00451e5b
push 1
push 1
lea ecx, [esp + 0x40]
call fcn.00407310
test al, al
je 0x417baa
mov eax, dword [esp + 0x3c]
push 1
movsx edx, bl
mov dh, dl
lea ecx, [esp + 0x3c]
mov byte [eax], dl
call fcn.004072f0
jmp 0x417baa
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
and edx, 0xffff
push edx
push eax
lea edx, [esp + 0x68]
push ecx
push edx
lea eax, [esp + 0xf8]
push str._s__Build__d._d._d_
push eax
call fcn.0044186a
add esp, 0x18
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00407310
test al, al
je 0x417bf2
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.004072f0
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417f11
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
and ecx, 0xffff
push ecx
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
lea edx, [esp + 0xf8]
push str._s_Build:_d._d._d
push edx
call fcn.0044186a
lea edi, [esp + 0x100]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00407310
test al, al
je 0x417f11
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.004072f0
jmp 0x417f11
mov ebp, dword [esp + 0x278]
mov cl, byte [esp + 0x13]
push 0
mov byte [ebp], cl
mov ecx, ebp
call fcn.00405c50
xor edi, edi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00407310
test al, al
je 0x417cd2
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
xor esi, esi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004072f0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x274], 1
call fcn.00405c50
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 0
call fcn.00405c50
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x274], 0xffffffff
call fcn.00405c50
mov eax, ebp
jmp 0x417fed
cmp dword [esp + 0x50], 4
jne 0x417f11
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x417dcb
mov edi, str.WIN95
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00407310
test al, al
je 0x417d70
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
mov esi, str.WIN95
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004072f0
mov al, byte [esp + 0x61]
cmp al, 0x43
je 0x417d7c
cmp al, 0x42
jne 0x417dc0
mov edi, str.OSR2
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00407310
test al, al
je 0x417dc0
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, str.OSR2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004072f0
cmp dword [esp + 0x50], 4
jne 0x417f11
cmp dword [esp + 0x54], 0xa
jne 0x417e7a
mov edi, str.WIN98
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x4872b0], 1
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00407310
test al, al
je 0x417e24
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
mov esi, str.WIN98
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004072f0
cmp byte [esp + 0x61], 0x41
jne 0x417e6f
mov edi, 0x47f684
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00407310
test al, al
je 0x417e6f
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, 0x47f684
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004072f0
cmp dword [esp + 0x50], 4
jne 0x417f11
cmp dword [esp + 0x54], 0x5a
jne 0x417f11
mov edi, str.MS_Millennium_Edition
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00407310
test al, al
je 0x417f11
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
mov esi, str.MS_Millennium_Edition
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004072f0
jmp 0x417f11
mov edi, str.Microsoft_Win32s
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00407310
test al, al
je 0x417f11
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, str.Microsoft_Win32s
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x46c634]
xor edi, edi
push ecx
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x30]
call fcn.00405700
mov eax, dword [0x46c634]
lea ecx, [esp + 0x38]
push eax
push edi
push ecx
lea ecx, [esp + 0x30]
call fcn.00405700
mov esi, dword [esp + 0x278]
mov dl, byte [esp + 0x24]
lea ecx, [esp + 0x24]
mov byte [esi], dl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [0x46c634]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004058a0
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
je 0x417f8b
mov al, byte [ecx - 1]
test al, al
je 0x417f81
cmp al, 0xff
je 0x417f81
dec al
mov byte [ecx - 1], al
jmp 0x417f8b
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], edi
cmp ecx, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x417fbb
mov al, byte [ecx - 1]
test al, al
je 0x417fb1
cmp al, 0xff
je 0x417fb1
dec al
mov byte [ecx - 1], al
jmp 0x417fbb
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x417feb
mov al, byte [ecx - 1]
test al, al
je 0x417fe1
cmp al, 0xff
je 0x417fe1
dec al
mov byte [ecx - 1], al
jmp 0x417feb
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x264
ret