Function at 0x414f71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0xa0
lea ebp, [esp - 4]
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push 0x44
mov eax, 0x4547a8
call fcn.0043e1bc
mov edi, dword [ebp + 0xac]
and dword [ebp - 0x1c], 0
mov esi, ecx
lea ebx, [esi + 0x148]
push 0x45ae2a
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ebx
call fcn.00414f29
pop ecx
pop ecx
test al, al
je 0x414fd8
push ebx
mov ecx, edi
call fcn.00402606
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, edi
jmp 0x4155c5
mov eax, dword [esi + 0x38]
xor ecx, ecx
sub eax, ecx
je 0x41556d
dec eax
je 0x415495
dec eax
jne 0x4155ae
cmp dword [esi + 0x2c], 6
jne 0x415054
cmp dword [esi + 0x30], ecx
jne 0x415054
cmp byte [esi + 0x142], 1
jne 0x41502c
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x4c]
call fcn.00407202
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
jmp 0x41504f
push str.Windows_Server__Longhorn_
lea ecx, [ebp - 0x48]
call fcn.00407202
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004024c0
push 5
pop edi
cmp dword [esi + 0x2c], edi
jne 0x41515a
cmp dword [esi + 0x30], 2
jne 0x4150f4
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41509b
push str.Microsoft_Windows_Server_2003__R2_
lea ecx, [ebp - 0x50]
call fcn.00407202
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
jmp 0x4150ef
cmp byte [esi + 0x142], 1
jne 0x4150d0
cmp word [esi + 4], 9
jne 0x4150d0
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x28]
call fcn.00407202
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
jmp 0x4150ef
push str.Microsoft_Windows_Server_2003_
lea ecx, [ebp - 0x34]
call fcn.00407202
mov dword [ebp - 4], edi
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004024c0
cmp dword [esi + 0x2c], edi
jne 0x41515a
cmp dword [esi + 0x30], 1
jne 0x415127
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x44]
call fcn.00407202
mov dword [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004024c0
cmp dword [esi + 0x2c], edi
jne 0x41515a
cmp dword [esi + 0x30], 0
jne 0x41515a
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x3c]
call fcn.00407202
mov dword [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004024c0
cmp dword [esi + 0x2c], 4
ja 0x415188
push str.Microsoft_Windows_NT
lea ecx, [ebp - 0x2c]
call fcn.00407202
mov dword [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004024c0
cmp dword [esi + 0x144], 0
je 0x4152db
mov al, byte [esi + 0x142]
cmp al, 1
jne 0x4151da
cmp word [esi + 4], 9
je 0x4151da
cmp dword [esi + 0x2c], 4
mov ecx, ebx
jne 0x4151b8
push str.Workstation_4.0
jmp 0x4152d1
mov eax, 0x200
test word [esi + 0x140], ax
je 0x4151d0
push str.Home_Edition
jmp 0x4152d1
push str.Professional
jmp 0x4152d1
cmp al, 3
je 0x4151e6
cmp al, 2
jne 0x4153a9
mov eax, dword [esi + 0x2c]
cmp eax, edi
jne 0x4152ba
cmp dword [esi + 0x30], 2
jne 0x41528a
movzx eax, word [esi + 4]
cmp ax, 6
jne 0x415226
movzx eax, word [esi + 0x140]
test al, al
jns 0x415217
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x41526c
test al, 2
je 0x4153a9
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x41526c
cmp ax, 9
movzx eax, word [esi + 0x140]
jne 0x415258
mov ecx, ebx
test al, al
jns 0x415243
push str.Datacenter_x64_Edition
jmp 0x4152d1
test al, 2
je 0x415251
push str.Enterprise_x64_Edition
jmp 0x4152d1
push str.Standard_x64_Edition
jmp 0x4152d1
test al, al
jns 0x415263
push str.Datacenter_Edition
jmp 0x41526c
test al, 2
je 0x415270
push str.Enterprise_Edition
mov ecx, ebx
jmp 0x4152d1
mov ecx, 0x400
cmp ax, cx
mov ecx, ebx
jne 0x415283
push str.Web_Edition
jmp 0x4152d1
push str.Standard_Edition
jmp 0x4152d1
cmp eax, edi
jne 0x4152ba
cmp dword [esi + 0x30], 0
jne 0x4152ba
movzx eax, word [esi + 0x140]
mov ecx, ebx
test al, al
jns 0x4152a8
push str.Datacenter_Server
jmp 0x4152d1
test al, 2
je 0x4152b3
push str.Advanced_Server
jmp 0x4152d1
push str.Server
jmp 0x4152d1
test byte [esi + 0x140], 2
mov ecx, ebx
je 0x4152cc
push str.Server_4.0__Enterprise_Edition
jmp 0x4152d1
push str.Server_4.0
call fcn.00414ee5
jmp 0x4153a9
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov edi, 0xa0
push reloc.SoftwareUpdateFiles.dll_Ordinal_2
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415583
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x415583
cmp dword [ebp - 0x14], edi
ja 0x415583
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x41535b
mov ecx, dword [ebp - 0x10]
push str.Workstation
call fcn.00414ee5
lea eax, [ebp]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x415377
mov ecx, dword [ebp - 0x10]
push str.Server
call fcn.00414ee5
lea eax, [ebp]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x415393
mov ecx, dword [ebp - 0x10]
push str.Advanced_Server
call fcn.00414ee5
push dword [esi + 0x30]
push dword [esi + 0x2c]
push str._d._d
call fcn.0043e3d0
mov ebx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi + 0x2c], 4
jne 0x415455
push str.Service_Pack_6
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x415455
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.SoftwareUpdateFiles.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x41540d
call fcn.00402496
mov dword [ebp - 4], 9
movzx eax, word [esi + 0x34]
push eax
lea eax, [ebp - 0x10]
push str.Service_Pack_6a__Build__d_
push eax
call fcn.00405143
add esp, 0xc
jmp 0x415430
call fcn.00402496
mov dword [ebp - 4], 0xa
movzx eax, word [esi + 0x34]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s__Build__d_
push eax
call fcn.00405143
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040f782
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004024c0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4155ae
lea ecx, [ebp - 0x10]
call fcn.00402496
mov dword [ebp - 4], 0xb
movzx eax, word [esi + 0x34]
push eax
add esi, 0x3c
push esi
lea eax, [ebp - 0x10]
push str._s__Build__d_
push eax
call fcn.00405143
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040f782
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
jmp 0x4155a9
cmp dword [esi + 0x2c], 4
jne 0x4155ae
cmp dword [esi + 0x30], ecx
jne 0x4154e8
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x30]
call fcn.00407202
mov dword [ebp - 4], 0xc
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004024c0
movzx eax, word [esi + 0x3e]
cmp ax, 0x43
je 0x4154dc
cmp ax, 0x42
jne 0x4154e8
push str._OSR2
mov ecx, ebx
call fcn.00414ee5
cmp dword [esi + 0x2c], 4
jne 0x4155ae
cmp dword [esi + 0x30], 0xa
jne 0x41553c
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x38]
call fcn.00407202
mov dword [ebp - 4], 0xd
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004024c0
movzx eax, word [esi + 0x3e]
cmp ax, 0x41
je 0x415530
cmp ax, 0x42
jne 0x41553c
push 0x45d794
mov ecx, ebx
call fcn.00414ee5
cmp dword [esi + 0x2c], 4
jne 0x4155ae
cmp dword [esi + 0x30], 0x5a
jne 0x4155ae
push str.Microsoft_Windows_Millennium_Edition
lea ecx, [ebp - 0x40]
call fcn.00407202
mov dword [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
jmp 0x4155a9
push str.Microsoft_Win32s
lea ecx, [ebp - 0x18]
call fcn.00407202
mov dword [ebp - 4], 0xf
jmp 0x41559a
push str.Unknown
lea ecx, [ebp - 0x18]
call fcn.00407202
mov dword [ebp - 4], 0x10
mov ebx, dword [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00402eec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004024c0
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.00402606
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa0]
xor ecx, ebp
call fcn.0043e1ad
add ebp, 0xa4
leave
ret 4