Function at 0x414ea8
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, 0x4546bd
call fcn.0043e0fd
mov edi, dword [ebp + 0xac]
and dword [ebp - 0x1c], 0
mov esi, ecx
lea ebx, [esi + 0x148]
push 0x45ae02
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ebx
call fcn.00414e60
pop ecx
pop ecx
test al, al
je 0x414f0f
push ebx
mov ecx, edi
call fcn.00402607
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, edi
jmp 0x4154fc
mov eax, dword [esi + 0x38]
xor ecx, ecx
sub eax, ecx
je 0x4154a4
dec eax
je 0x4153cc
dec eax
jne 0x4154e5
cmp dword [esi + 0x2c], 6
jne 0x414f8b
cmp dword [esi + 0x30], ecx
jne 0x414f8b
cmp byte [esi + 0x142], 1
jne 0x414f63
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x4c]
call fcn.004071ea
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
jmp 0x414f86
push str.Windows_Server__Longhorn_
lea ecx, [ebp - 0x48]
call fcn.004071ea
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004024c1
push 5
pop edi
cmp dword [esi + 0x2c], edi
jne 0x415091
cmp dword [esi + 0x30], 2
jne 0x41502b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x414fd2
push str.Microsoft_Windows_Server_2003__R2_
lea ecx, [ebp - 0x50]
call fcn.004071ea
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
jmp 0x415026
cmp byte [esi + 0x142], 1
jne 0x415007
cmp word [esi + 4], 9
jne 0x415007
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x28]
call fcn.004071ea
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
jmp 0x415026
push str.Microsoft_Windows_Server_2003_
lea ecx, [ebp - 0x34]
call fcn.004071ea
mov dword [ebp - 4], edi
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004024c1
cmp dword [esi + 0x2c], edi
jne 0x415091
cmp dword [esi + 0x30], 1
jne 0x41505e
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x44]
call fcn.004071ea
mov dword [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004024c1
cmp dword [esi + 0x2c], edi
jne 0x415091
cmp dword [esi + 0x30], 0
jne 0x415091
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x3c]
call fcn.004071ea
mov dword [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004024c1
cmp dword [esi + 0x2c], 4
ja 0x4150bf
push str.Microsoft_Windows_NT
lea ecx, [ebp - 0x2c]
call fcn.004071ea
mov dword [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004024c1
cmp dword [esi + 0x144], 0
je 0x415212
mov al, byte [esi + 0x142]
cmp al, 1
jne 0x415111
cmp word [esi + 4], 9
je 0x415111
cmp dword [esi + 0x2c], 4
mov ecx, ebx
jne 0x4150ef
push str.Workstation_4.0
jmp 0x415208
mov eax, 0x200
test word [esi + 0x140], ax
je 0x415107
push str.Home_Edition
jmp 0x415208
push str.Professional
jmp 0x415208
cmp al, 3
je 0x41511d
cmp al, 2
jne 0x4152e0
mov eax, dword [esi + 0x2c]
cmp eax, edi
jne 0x4151f1
cmp dword [esi + 0x30], 2
jne 0x4151c1
movzx eax, word [esi + 4]
cmp ax, 6
jne 0x41515d
movzx eax, word [esi + 0x140]
test al, al
jns 0x41514e
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x4151a3
test al, 2
je 0x4152e0
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4151a3
cmp ax, 9
movzx eax, word [esi + 0x140]
jne 0x41518f
mov ecx, ebx
test al, al
jns 0x41517a
push str.Datacenter_x64_Edition
jmp 0x415208
test al, 2
je 0x415188
push str.Enterprise_x64_Edition
jmp 0x415208
push str.Standard_x64_Edition
jmp 0x415208
test al, al
jns 0x41519a
push str.Datacenter_Edition
jmp 0x4151a3
test al, 2
je 0x4151a7
push str.Enterprise_Edition
mov ecx, ebx
jmp 0x415208
mov ecx, 0x400
cmp ax, cx
mov ecx, ebx
jne 0x4151ba
push str.Web_Edition
jmp 0x415208
push str.Standard_Edition
jmp 0x415208
cmp eax, edi
jne 0x4151f1
cmp dword [esi + 0x30], 0
jne 0x4151f1
movzx eax, word [esi + 0x140]
mov ecx, ebx
test al, al
jns 0x4151df
push str.Datacenter_Server
jmp 0x415208
test al, 2
je 0x4151ea
push str.Advanced_Server
jmp 0x415208
push str.Server
jmp 0x415208
test byte [esi + 0x140], 2
mov ecx, ebx
je 0x415203
push str.Server_4.0__Enterprise_Edition
jmp 0x415208
push str.Server_4.0
call fcn.00414e1c
jmp 0x4152e0
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 0x4154ba
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 0x4154ba
cmp dword [ebp - 0x14], edi
ja 0x4154ba
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x415292
mov ecx, dword [ebp - 0x10]
push str.Workstation
call fcn.00414e1c
lea eax, [ebp]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x4152ae
mov ecx, dword [ebp - 0x10]
push str.Server
call fcn.00414e1c
lea eax, [ebp]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x4152ca
mov ecx, dword [ebp - 0x10]
push str.Advanced_Server
call fcn.00414e1c
push dword [esi + 0x30]
push dword [esi + 0x2c]
push str._d._d
call fcn.0043e311
mov ebx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi + 0x2c], 4
jne 0x41538c
push str.Service_Pack_6
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41538c
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 0x415344
call fcn.00402497
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.0040512b
add esp, 0xc
jmp 0x415367
call fcn.00402497
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.0040512b
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040f6e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004024c1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4154e5
lea ecx, [ebp - 0x10]
call fcn.00402497
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.0040512b
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040f6e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
jmp 0x4154e0
cmp dword [esi + 0x2c], 4
jne 0x4154e5
cmp dword [esi + 0x30], ecx
jne 0x41541f
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x30]
call fcn.004071ea
mov dword [ebp - 4], 0xc
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004024c1
movzx eax, word [esi + 0x3e]
cmp ax, 0x43
je 0x415413
cmp ax, 0x42
jne 0x41541f
push str._OSR2
mov ecx, ebx
call fcn.00414e1c
cmp dword [esi + 0x2c], 4
jne 0x4154e5
cmp dword [esi + 0x30], 0xa
jne 0x415473
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x38]
call fcn.004071ea
mov dword [ebp - 4], 0xd
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004024c1
movzx eax, word [esi + 0x3e]
cmp ax, 0x41
je 0x415467
cmp ax, 0x42
jne 0x415473
push 0x45d754
mov ecx, ebx
call fcn.00414e1c
cmp dword [esi + 0x2c], 4
jne 0x4154e5
cmp dword [esi + 0x30], 0x5a
jne 0x4154e5
push str.Microsoft_Windows_Millennium_Edition
lea ecx, [ebp - 0x40]
call fcn.004071ea
mov dword [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
jmp 0x4154e0
push str.Microsoft_Win32s
lea ecx, [ebp - 0x18]
call fcn.004071ea
mov dword [ebp - 4], 0xf
jmp 0x4154d1
push str.Unknown
lea ecx, [ebp - 0x18]
call fcn.004071ea
mov dword [ebp - 4], 0x10
mov ebx, dword [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00402efc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004024c1
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.00402607
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.0043e0ee
add ebp, 0xa4
leave
ret 4