Function at 0x41af88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x2bc
lea ebp, [esp - 4]
mov eax, dword [0x482910]
xor eax, ebp
mov dword [ebp + 0x2bc], eax
push 0xac
mov eax, 0x45e6ba
call fcn.00444bf4
mov eax, dword [ebp + 0x2c8]
mov esi, ecx
lea edi, [esi + 0x148]
push 0x464ed2
xor ebx, ebx
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], edi
call fcn.00418cec
pop ecx
pop ecx
test al, al
je 0x41afe7
mov ecx, dword [ebp - 0x18]
push edi
call fcn.00402815
jmp 0x41b6da
mov eax, dword [esi + 0x38]
sub eax, ebx
je 0x41b67d
dec eax
je 0x41b5a8
dec eax
jne 0x41b6d1
cmp dword [esi + 0x2c], 6
jne 0x41b05f
cmp dword [esi + 0x30], ebx
jne 0x41b05f
cmp byte [esi + 0x142], 1
jne 0x41b038
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x44]
call fcn.0040915c
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
jmp 0x41b05a
push str.Windows_Server__Longhorn_
lea ecx, [ebp - 0x50]
call fcn.0040915c
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
call fcn.00402594
cmp dword [esi + 0x2c], 5
jne 0x41b163
cmp dword [esi + 0x30], 2
jne 0x41b0fe
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41b0a3
push str.Microsoft_Windows_Server_2003__R2_
lea ecx, [ebp - 0x30]
call fcn.0040915c
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
jmp 0x41b0f9
cmp byte [esi + 0x142], 1
jne 0x41b0d7
cmp word [esi + 4], 9
jne 0x41b0d7
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x48]
call fcn.0040915c
mov dword [ebp - 4], 4
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
jmp 0x41b0f9
push str.Microsoft_Windows_Server_2003_
lea ecx, [ebp - 0x64]
call fcn.0040915c
mov dword [ebp - 4], 5
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
call fcn.00402594
cmp dword [esi + 0x2c], 5
jne 0x41b163
cmp dword [esi + 0x30], 1
jne 0x41b131
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x60]
call fcn.0040915c
mov dword [ebp - 4], 6
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x60]
call fcn.00402594
cmp dword [esi + 0x2c], 5
jne 0x41b163
cmp dword [esi + 0x30], ebx
jne 0x41b163
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x58]
call fcn.0040915c
mov dword [ebp - 4], 7
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.00402594
cmp dword [esi + 0x2c], 4
ja 0x41b190
push str.Microsoft_Windows_NT
lea ecx, [ebp - 0x2c]
call fcn.0040915c
mov dword [ebp - 4], 8
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.00402594
cmp dword [esi + 0x144], ebx
je 0x41b2e3
mov al, byte [esi + 0x142]
cmp al, 1
jne 0x41b1e1
cmp word [esi + 4], 9
je 0x41b1e1
cmp dword [esi + 0x2c], 4
mov ecx, edi
jne 0x41b1bf
push str.Workstation_4.0
jmp 0x41b2d9
mov eax, 0x200
test word [esi + 0x140], ax
je 0x41b1d7
push str.Home_Edition
jmp 0x41b2d9
push str.Professional
jmp 0x41b2d9
cmp al, 3
je 0x41b1ed
cmp al, 2
jne 0x41b4bb
mov eax, dword [esi + 0x2c]
cmp eax, 5
jne 0x41b2c2
cmp dword [esi + 0x30], 2
jne 0x41b292
movzx eax, word [esi + 4]
cmp ax, 6
jne 0x41b22e
movzx eax, word [esi + 0x140]
test al, al
jns 0x41b21f
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x41b274
test al, 2
je 0x41b4bb
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x41b274
cmp ax, 9
movzx eax, word [esi + 0x140]
jne 0x41b260
mov ecx, edi
test al, al
jns 0x41b24b
push str.Datacenter_x64_Edition
jmp 0x41b2d9
add byte [eax], al
test al, 2
je 0x41b259
push str.Enterprise_x64_Edition
jmp 0x41b2d9
push str.Standard_x64_Edition
jmp 0x41b2d9
test al, al
jns 0x41b26b
push str.Datacenter_Edition
jmp 0x41b274
test al, 2
je 0x41b278
push str.Enterprise_Edition
mov ecx, edi
jmp 0x41b2d9
mov ecx, 0x400
cmp ax, cx
mov ecx, edi
jne 0x41b28b
push str.Web_Edition
jmp 0x41b2d9
push str.Standard_Edition
jmp 0x41b2d9
cmp eax, 5
jne 0x41b2c2
cmp dword [esi + 0x30], ebx
jne 0x41b2c2
movzx eax, word [esi + 0x140]
mov ecx, edi
test al, al
jns 0x41b2b0
push str.Datacenter_Server
jmp 0x41b2d9
test al, 2
je 0x41b2bb
push str.Advanced_Server
jmp 0x41b2d9
push str.Server
jmp 0x41b2d9
test byte [esi + 0x140], 2
mov ecx, edi
je 0x41b2d4
push str.Server_4.0__Enterprise_Edition
jmp 0x41b2d9
push str.Server_4.0
call fcn.00418ca8
jmp 0x41b4bb
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SYSTEMCurrentControlSetControlProductOptions
mov edi, 0xa0
push reloc.SoftwareUpdateFiles.dll_Ordinal_2
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41b6a6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x21c]
push eax
push ebx
push ebx
push str.ProductType
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], ebx
jne 0x41b6a6
cmp dword [ebp - 0x28], edi
ja 0x41b6a6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp + 0x21c]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x41b368
mov ecx, dword [ebp - 0x14]
push str.Workstation
call fcn.00418ca8
lea eax, [ebp + 0x21c]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x41b387
mov ecx, dword [ebp - 0x14]
push str.Server
call fcn.00418ca8
lea eax, [ebp + 0x21c]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x41b3a6
mov ecx, dword [ebp - 0x14]
push str.Advanced_Server
call fcn.00418ca8
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0x1fe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.00445180
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x40]
push eax
push str.__04d__02d__02d__02d:_02d:_02d:_04d_
lea eax, [ebp + 0x1c]
push 0x100
push eax
call fcn.00401353
add esp, 0x34
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.004017c7
mov dword [ebp - 4], 9
push str._d._d
lea ecx, [ebp - 0xb8]
call fcn.0040329d
mov edi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040329d
mov byte [ebp - 4], 0xb
push edi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004032bf
add esp, 0xc
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
call fcn.00402ed6
mov byte [ebp - 4], 0xb
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040236c
mov byte [ebp - 4], 0xa
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040236c
mov byte [ebp - 4], 9
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.0040236c
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x41b49b
lea eax, [ebp + 4]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push eax
call fcn.0044529f
add esp, 0xc
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp]
call fcn.0040236c
mov edi, dword [ebp - 0x14]
cmp dword [esi + 0x2c], 4
jne 0x41b569
push str.Service_Pack_6
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41b566
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.SoftwareUpdateFiles.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x10]
cmp eax, ebx
jne 0x41b51e
call fcn.0040256a
mov dword [ebp - 4], 0xd
movzx eax, word [esi + 0x34]
push eax
lea eax, [ebp - 0x10]
push str.Service_Pack_6a__Build__d_
push eax
call fcn.00406e27
add esp, 0xc
jmp 0x41b541
call fcn.0040256a
mov dword [ebp - 4], 0xe
movzx eax, word [esi + 0x34]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s__Build__d_
push eax
call fcn.00406e27
add esp, 0x10
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00412909
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00402594
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b6ce
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040256a
mov dword [ebp - 4], 0xf
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.00406e27
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00412909
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
jmp 0x41b69f
cmp dword [esi + 0x2c], 4
jne 0x41b6d1
cmp dword [esi + 0x30], ebx
jne 0x41b5fa
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x4c]
call fcn.0040915c
mov dword [ebp - 4], 0x10
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00402594
movzx eax, word [esi + 0x3e]
cmp ax, 0x43
je 0x41b5ee
cmp ax, 0x42
jne 0x41b5fa
push str._OSR2
mov ecx, edi
call fcn.00418ca8
cmp dword [esi + 0x2c], 4
jne 0x41b6d1
cmp dword [esi + 0x30], 0xa
jne 0x41b64d
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x54]
call fcn.0040915c
mov dword [ebp - 4], 0x11
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00402594
movzx eax, word [esi + 0x3e]
cmp ax, 0x41
je 0x41b641
cmp ax, 0x42
jne 0x41b64d
push 0x467c14
mov ecx, edi
call fcn.00418ca8
cmp dword [esi + 0x2c], 4
jne 0x41b6d1
cmp dword [esi + 0x30], 0x5a
jne 0x41b6d1
push str.Microsoft_Windows_Millennium_Edition
lea ecx, [ebp - 0x5c]
call fcn.0040915c
mov dword [ebp - 4], 0x12
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x5c]
jmp 0x41b69f
push str.Microsoft_Win32s
lea ecx, [ebp - 0x1c]
call fcn.0040915c
mov dword [ebp - 4], 0x13
push eax
mov ecx, edi
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00402594
jmp 0x41b6d1
push str.Unknown
lea ecx, [ebp - 0x1c]
call fcn.0040915c
mov dword [ebp - 4], 0x14
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00402e64
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00402594
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
call fcn.00402815
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2bc]
xor ecx, ebp
call fcn.00444be5
add ebp, 0x2c0
leave
ret 4