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

Disassembly:
push 0xffffffffffffffff
push 0x423de6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push esi
push edi
lea ecx, [esp + 8]
call fcn.00421016
lea ecx, [esp + 0xc]
mov dword [esp + 0x10c], 0
call fcn.00421016
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x9c
push eax
call esi
mov edi, eax
test edi, edi
jne 0x41a372
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push ecx
call esi
test eax, eax
jne 0x41a372
lea ecx, [esp + 0xc]
mov byte [esp + 0x10c], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x10c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
add esp, 0x108
ret
mov eax, dword [esp + 0x28]
dec eax
je 0x41a4c6
dec eax
jne 0x41a541
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
cmp eax, 4
ja 0x41a39d
push str.Microsoft_Windows_NT
call esi
add esp, 4
cmp dword [esp + 0x1c], 5
jne 0x41a3b6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41a3b6
push str.Microsoft_Windows_2000
call esi
add esp, 4
test edi, edi
je 0x41a3da
cmp dword [esp + 0x1c], 5
jne 0x41a47c
cmp dword [esp + 0x20], 1
jne 0x41a4aa
push str.Microsoft_Windows_XP
jmp 0x41a477
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb4]
push eax
push ecx
push 0
push 0
push str.ProductType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0xb4]
push ecx
push str.WINNT
call edi
test eax, eax
jne 0x41a442
push str.Professional
call esi
add esp, 4
lea edx, [esp + 0xb4]
push edx
push str.LANMANNT
call edi
test eax, eax
jne 0x41a45f
push str.Server
call esi
add esp, 4
lea eax, [esp + 0xb4]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x41a47c
push str.Advanced_Server
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 4
ja 0x41a4aa
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
push str.version__d._d__s__Build__d__n
call esi
add esp, 0x14
jmp 0x41a541
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
and edx, 0xffff
push edx
push eax
push str._s__Build__d__n
call esi
add esp, 0xc
jmp 0x41a541
mov eax, dword [esp + 0x1c]
mov edi, 4
cmp eax, edi
jne 0x41a541
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
test eax, eax
jne 0x41a507
push str.Microsoft_Windows_95
call esi
mov al, byte [esp + 0x31]
add esp, 4
cmp al, 0x43
je 0x41a4f7
cmp al, 0x42
jne 0x41a501
push str.OSR2
call esi
add esp, 4
cmp dword [esp + 0x1c], edi
jne 0x41a541
cmp dword [esp + 0x20], 0xa
jne 0x41a530
push str.Microsoft_Windows_98
call esi
mov al, byte [esp + 0x31]
add esp, 4
cmp al, 0x41
jne 0x41a52a
push 0x42fa00
call esi
add esp, 4
cmp dword [esp + 0x1c], edi
jne 0x41a541
cmp dword [esp + 0x20], 0x5a
jne 0x41a541
push str.Microsoft_Windows_Millennium_Edition
call esi
add esp, 4
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov byte [esp + 0x10c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x10c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x104]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x108
ret