Function at 0x414f25
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, 0x454750
call fcn.0043e177
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.00414edd
pop ecx
pop ecx
test al, al
je 0x414f8c
push ebx
mov ecx, edi
call fcn.00402611
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, edi
jmp 0x415579
mov eax, dword [esi + 0x38]
xor ecx, ecx
sub eax, ecx
je 0x415521
dec eax
je 0x415449
dec eax
jne 0x415562
cmp dword [esi + 0x2c], 6
jne 0x415008
cmp dword [esi + 0x30], ecx
jne 0x415008
cmp byte [esi + 0x142], 1
jne 0x414fe0
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x4c]
call fcn.0040720d
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
jmp 0x415003
push str.Windows_Server__Longhorn_
lea ecx, [ebp - 0x48]
call fcn.0040720d
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004024cb
push 5
pop edi
cmp dword [esi + 0x2c], edi
jne 0x41510e
cmp dword [esi + 0x30], 2
jne 0x4150a8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41504f
push str.Microsoft_Windows_Server_2003__R2_
lea ecx, [ebp - 0x50]
call fcn.0040720d
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
jmp 0x4150a3
cmp byte [esi + 0x142], 1
jne 0x415084
cmp word [esi + 4], 9
jne 0x415084
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x28]
call fcn.0040720d
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
jmp 0x4150a3
push str.Microsoft_Windows_Server_2003_
lea ecx, [ebp - 0x34]
call fcn.0040720d
mov dword [ebp - 4], edi
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004024cb
cmp dword [esi + 0x2c], edi
jne 0x41510e
cmp dword [esi + 0x30], 1
jne 0x4150db
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x44]
call fcn.0040720d
mov dword [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004024cb
cmp dword [esi + 0x2c], edi
jne 0x41510e
cmp dword [esi + 0x30], 0
jne 0x41510e
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x3c]
call fcn.0040720d
mov dword [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004024cb
cmp dword [esi + 0x2c], 4
ja 0x41513c
push str.Microsoft_Windows_NT
lea ecx, [ebp - 0x2c]
call fcn.0040720d
mov dword [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004024cb
cmp dword [esi + 0x144], 0
je 0x41528f
mov al, byte [esi + 0x142]
cmp al, 1
jne 0x41518e
cmp word [esi + 4], 9
je 0x41518e
cmp dword [esi + 0x2c], 4
mov ecx, ebx
jne 0x41516c
push str.Workstation_4.0
jmp 0x415285
mov eax, 0x200
test word [esi + 0x140], ax
je 0x415184
push str.Home_Edition
jmp 0x415285
push str.Professional
jmp 0x415285
cmp al, 3
je 0x41519a
cmp al, 2
jne 0x41535d
mov eax, dword [esi + 0x2c]
cmp eax, edi
jne 0x41526e
cmp dword [esi + 0x30], 2
jne 0x41523e
movzx eax, word [esi + 4]
cmp ax, 6
jne 0x4151da
movzx eax, word [esi + 0x140]
test al, al
jns 0x4151cb
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x415220
test al, 2
je 0x41535d
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x415220
cmp ax, 9
movzx eax, word [esi + 0x140]
jne 0x41520c
mov ecx, ebx
test al, al
jns 0x4151f7
push str.Datacenter_x64_Edition
jmp 0x415285
test al, 2
je 0x415205
push str.Enterprise_x64_Edition
jmp 0x415285
push str.Standard_x64_Edition
jmp 0x415285
test al, al
jns 0x415217
push str.Datacenter_Edition
jmp 0x415220
test al, 2
je 0x415224
push str.Enterprise_Edition
mov ecx, ebx
jmp 0x415285
mov ecx, 0x400
cmp ax, cx
mov ecx, ebx
jne 0x415237
push str.Web_Edition
jmp 0x415285
push str.Standard_Edition
jmp 0x415285
cmp eax, edi
jne 0x41526e
cmp dword [esi + 0x30], 0
jne 0x41526e
movzx eax, word [esi + 0x140]
mov ecx, ebx
test al, al
jns 0x41525c
push str.Datacenter_Server
jmp 0x415285
test al, 2
je 0x415267
push str.Advanced_Server
jmp 0x415285
push str.Server
jmp 0x415285
test byte [esi + 0x140], 2
mov ecx, ebx
je 0x415280
push str.Server_4.0__Enterprise_Edition
jmp 0x415285
push str.Server_4.0
call fcn.00414e99
jmp 0x41535d
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 0x415537
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 0x415537
cmp dword [ebp - 0x14], edi
ja 0x415537
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x41530f
mov ecx, dword [ebp - 0x10]
push str.Workstation
call fcn.00414e99
lea eax, [ebp]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x41532b
mov ecx, dword [ebp - 0x10]
push str.Server
call fcn.00414e99
lea eax, [ebp]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x415347
mov ecx, dword [ebp - 0x10]
push str.Advanced_Server
call fcn.00414e99
push dword [esi + 0x30]
push dword [esi + 0x2c]
push str._d._d
call fcn.0043e38b
mov ebx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi + 0x2c], 4
jne 0x415409
push str.Service_Pack_6
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x415409
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 0x4153c1
call fcn.004024a1
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.0040514e
add esp, 0xc
jmp 0x4153e4
call fcn.004024a1
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.0040514e
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040f712
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004024cb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415562
lea ecx, [ebp - 0x10]
call fcn.004024a1
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.0040514e
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040f712
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
jmp 0x41555d
cmp dword [esi + 0x2c], 4
jne 0x415562
cmp dword [esi + 0x30], ecx
jne 0x41549c
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x30]
call fcn.0040720d
mov dword [ebp - 4], 0xc
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004024cb
movzx eax, word [esi + 0x3e]
cmp ax, 0x43
je 0x415490
cmp ax, 0x42
jne 0x41549c
push str._OSR2
mov ecx, ebx
call fcn.00414e99
cmp dword [esi + 0x2c], 4
jne 0x415562
cmp dword [esi + 0x30], 0xa
jne 0x4154f0
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x38]
call fcn.0040720d
mov dword [ebp - 4], 0xd
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004024cb
movzx eax, word [esi + 0x3e]
cmp ax, 0x41
je 0x4154e4
cmp ax, 0x42
jne 0x4154f0
push 0x45d794
mov ecx, ebx
call fcn.00414e99
cmp dword [esi + 0x2c], 4
jne 0x415562
cmp dword [esi + 0x30], 0x5a
jne 0x415562
push str.Microsoft_Windows_Millennium_Edition
lea ecx, [ebp - 0x40]
call fcn.0040720d
mov dword [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
jmp 0x41555d
push str.Microsoft_Win32s
lea ecx, [ebp - 0x18]
call fcn.0040720d
mov dword [ebp - 4], 0xf
jmp 0x41554e
push str.Unknown
lea ecx, [ebp - 0x18]
call fcn.0040720d
mov dword [ebp - 4], 0x10
mov ebx, dword [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00402ef7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004024cb
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.00402611
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.0043e168
add ebp, 0xa4
leave
ret 4