Function at 0x41a4d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e2aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
push edi
push 0x518908
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.004d49fb
mov ebx, 1
push 0x518908
lea ecx, [esp + 0x14]
mov dword [esp + 0x1d4], ebx
call fcn.004d49fb
push 0x518908
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d4], 2
call fcn.004d49fb
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x1d0], 3
push eax
mov dword [esp + 0x30], 0x9c
call esi
mov edi, eax
test edi, edi
jne 0x41a594
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push ecx
call esi
test eax, eax
jne 0x41a594
mov esi, dword [esp + 0x1d8]
push 0x518908
mov ecx, esi
call fcn.004d49fb
mov dword [esp + 0x28], ebx
jmp 0x41a9d0
mov eax, dword [esp + 0x3c]
sub eax, 0
je 0x41a98f
dec eax
je 0x41a90a
dec eax
jne 0x41a99d
mov eax, dword [esp + 0x30]
mov esi, 5
cmp eax, esi
jne 0x41a607
cmp dword [esp + 0x34], 2
jne 0x41a5d7
push str.WIN2003_family
lea ecx, [esp + 0x18]
call fcn.004d4b16
cmp dword [esp + 0x30], esi
jne 0x41a607
cmp dword [esp + 0x34], ebx
jne 0x41a5f1
push str.WINXP
lea ecx, [esp + 0x18]
call fcn.004d4b16
cmp dword [esp + 0x30], esi
jne 0x41a607
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41a61c
push str.WIN2000
lea ecx, [esp + 0x18]
call fcn.004d4b16
cmp dword [esp + 0x30], 4
ja 0x41a61c
push str.WINNT
lea ecx, [esp + 0x18]
call fcn.004d4b16
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
je 0x41a709
mov al, byte [esp + 0xc6]
cmp al, bl
jne 0x41a66c
cmp dword [esp + 0x30], 4
jne 0x41a64c
push str.Workstation_4.0
jmp 0x41a7d2
mov eax, dword [esp + 0xc4]
test ah, 2
je 0x41a662
push str.Home_Edition
jmp 0x41a7d2
push str.Professional
jmp 0x41a7d2
cmp al, 3
jne 0x41a7db
cmp dword [esp + 0x30], esi
jne 0x41a6eb
mov eax, dword [esp + 0x34]
cmp eax, 2
jne 0x41a6c0
mov eax, dword [esp + 0xc4]
test al, 0x80
je 0x41a698
push str.Datacenter_Edition
jmp 0x41a7d2
test al, 2
je 0x41a6a6
push str.Enterprise_Edition
jmp 0x41a7d2
cmp ax, 0x400
jne 0x41a6b6
push str.Web_Edition
jmp 0x41a7d2
push str.Standard_Edition
jmp 0x41a7d2
test eax, eax
jne 0x41a6eb
mov al, byte [esp + 0xc4]
test al, 0x80
je 0x41a6d9
push str.Datacenter_Server
jmp 0x41a7d2
test al, 2
jne 0x41a7cd
push str.Server
jmp 0x41a7d2
test byte [esp + 0xc4], 2
je 0x41a6ff
push str.Server_4.0__Enterprise_Edition
jmp 0x41a7d2
push str.Server_4.0
jmp 0x41a7d2
lea edx, [esp + 0x20]
mov esi, 0xff
push edx
push ebx
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], esi
call edi
test eax, eax
je 0x41a742
mov esi, dword [esp + 0x1d8]
push 0x518908
mov ecx, esi
call fcn.004d49fb
jmp 0x41a9cc
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc8]
push eax
push ecx
push 0
push 0
push str.ProductType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a72a
cmp dword [esp + 0x1c], esi
ja 0x41a72a
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc8]
push ecx
push 0x50a704
call ebp
test eax, eax
jne 0x41a799
push str.Workstation
lea ecx, [esp + 0x14]
call fcn.004d4b16
lea edx, [esp + 0xc8]
push edx
push str.LANMANNT
call ebp
test eax, eax
jne 0x41a7ba
push str.Server
lea ecx, [esp + 0x14]
call fcn.004d4b16
lea eax, [esp + 0xc8]
push eax
push str.SERVERNT
call ebp
test eax, eax
jne 0x41a7db
push str.Advanced_Server
lea ecx, [esp + 0x14]
call fcn.004d4b16
cmp dword [esp + 0x30], 4
jne 0x41a88d
lea ecx, [esp + 0x40]
push str.Service_Pack_6
push ecx
call ebp
test eax, eax
jne 0x41a88d
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41a83d
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
and eax, 0xffff
push eax
push str.Service_Pack_6a__Build__d_
push ecx
call fcn.004d3a22
mov edx, dword [esp + 0x30]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a99d
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
and edx, 0xffff
push edx
push eax
lea edx, [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0xd8]
push str._s__Build__d._d._d_
push eax
call fcn.004aeeec
add esp, 0x18
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d4b16
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a99d
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0041b900
add esp, 0xc
test eax, eax
je 0x41a8cb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
and eax, 0xffff
push eax
push ecx
jmp 0x41a8de
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
and eax, 0xffff
push eax
push ecx
lea eax, [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0xd8]
push str._s_Build:_d._d._d
push ecx
call fcn.004aeeec
add esp, 0x18
lea edx, [esp + 0xc8]
lea ecx, [esp + 0x18]
push edx
jmp 0x41a998
mov eax, dword [esp + 0x30]
mov esi, 4
cmp eax, esi
jne 0x41a99d
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41a951
push str.WIN95
lea ecx, [esp + 0x18]
call fcn.004d4b16
mov al, byte [esp + 0x41]
cmp al, 0x43
je 0x41a93d
cmp al, 0x42
jne 0x41a94b
push str.OSR2
lea ecx, [esp + 0x18]
call fcn.004d4b16
cmp dword [esp + 0x30], esi
jne 0x41a99d
cmp dword [esp + 0x34], 0xa
jne 0x41a981
push str.WIN98
lea ecx, [esp + 0x18]
call fcn.004d4b16
cmp byte [esp + 0x41], 0x41
jne 0x41a97b
push 0x50a61c
lea ecx, [esp + 0x18]
call fcn.004d4b16
cmp dword [esp + 0x30], esi
jne 0x41a99d
cmp dword [esp + 0x34], 0x5a
jne 0x41a99d
push str.MS_Millennium_Edition
jmp 0x41a994
push str.Microsoft_Win32s
lea ecx, [esp + 0x18]
call fcn.004d4b16
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.004d4da5
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d4da5
mov esi, dword [esp + 0x1d8]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004d4702
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d0], 2
call fcn.004d498d
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d0], bl
call fcn.004d498d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0
call fcn.004d498d
mov ecx, dword [esp + 0x1c8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret