Function at 0x41e6d0
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47c89d
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x174]
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x2c], 0
call fcn.00418580
xor eax, eax
push 0x9c
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x68]
mov ebx, 1
push eax
mov dword [esp + 0x178], ebx
call fcn.00449d00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], 0x9c
call esi
mov edi, eax
test edi, edi
jne 0x41e7af
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x64], 0x94
call esi
test eax, eax
jne 0x41e7af
push 0x48e349
mov ecx, ebp
call fcn.004185b0
mov dword [esp + 0x2c], ebx
jmp 0x41ec25
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e7d3
lea ecx, [esp + 0x38]
push ecx
call eax
jmp 0x41e7de
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x48e349
lea ecx, [esp + 0x18]
call fcn.00418b10
mov eax, dword [esp + 0x70]
sub eax, 0
je 0x41ebdc
sub eax, ebx
je 0x41eb55
sub eax, ebx
jne 0x41ebea
cmp dword [esp + 0x64], 6
lea esi, [eax + 9]
lea ebx, [eax + 4]
jne 0x41e83f
cmp dword [esp + 0x68], eax
jne 0x41e8d2
cmp byte [esp + 0xfa], 1
lea ecx, [esp + 0x14]
jne 0x41e835
push str.Windows_Vista
jmp 0x41e83a
push str.Windows_Server_Longhorn
call fcn.00419440
cmp dword [esp + 0x64], 5
jne 0x41e8be
cmp dword [esp + 0x68], 2
jne 0x41e88d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41e860
push str.Microsoft_Windows_Server_2003_R2
jmp 0x41e87d
cmp byte [esp + 0xfa], 1
jne 0x41e878
cmp word [esp + 0x38], si
jne 0x41e878
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x41e87d
push str.Microsoft_Windows_Server_2003
lea ecx, [esp + 0x18]
call fcn.00419440
cmp dword [esp + 0x64], 5
jne 0x41e8be
cmp dword [esp + 0x68], 1
jne 0x41e8a9
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x18]
call fcn.00419440
cmp dword [esp + 0x64], 5
jne 0x41e8be
cmp dword [esp + 0x68], 0
jne 0x41e8d2
push str.Microsoft_Windows_2000
lea ecx, [esp + 0x18]
call fcn.00419440
cmp dword [esp + 0x64], ebx
ja 0x41e8d2
push str.Microsoft_Windows_NT
lea ecx, [esp + 0x18]
call fcn.00419440
test edi, edi
je 0x41ea49
mov al, byte [esp + 0xfa]
cmp al, 1
jne 0x41e925
cmp word [esp + 0x38], si
je 0x41ebea
cmp dword [esp + 0x64], ebx
jne 0x41e900
push str.Workstation_4.0
jmp 0x41ebe1
test dword [esp + 0xf8], 0x200
lea ecx, [esp + 0x14]
je 0x41e91b
push str.Home_Edition
jmp 0x41ebe5
push str.Professional
jmp 0x41ebe5
cmp al, 3
je 0x41e931
cmp al, 2
jne 0x41ebea
cmp dword [esp + 0x64], 5
jne 0x41ea27
mov eax, dword [esp + 0x68]
cmp eax, 2
jne 0x41e9f2
mov eax, dword [esp + 0x38]
cmp ax, 6
jne 0x41e97a
mov al, byte [esp + 0xf8]
test al, al
jns 0x41e968
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x41ebe1
test al, 2
je 0x41ebea
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x41ebe1
cmp ax, si
jne 0x41e9b0
mov al, byte [esp + 0xf8]
test al, al
jns 0x41e994
push str.Datacenter_x64_Edition
jmp 0x41ebe1
test al, 2
lea ecx, [esp + 0x14]
je 0x41e9a6
push str.Enterprise_x64_Edition
jmp 0x41ebe5
push str.Standard_x64_Edition
jmp 0x41ebe5
mov eax, dword [esp + 0xf8]
test al, al
jns 0x41e9c5
push str.Datacenter_Edition
jmp 0x41ebe1
test al, 2
je 0x41e9d3
push str.Enterprise_Edition
jmp 0x41ebe1
test eax, 0x400
lea ecx, [esp + 0x14]
je 0x41e9e8
push str.Web_Edition
jmp 0x41ebe5
push str.Standard_Edition
jmp 0x41ebe5
test eax, eax
jne 0x41ea27
mov al, byte [esp + 0xf8]
test al, al
jns 0x41ea0b
push str.Datacenter_Server
jmp 0x41ebe1
test al, 2
lea ecx, [esp + 0x14]
je 0x41ea1d
push str.Advanced_Server
jmp 0x41ebe5
push str.Server
jmp 0x41ebe5
test byte [esp + 0xf8], 2
lea ecx, [esp + 0x14]
je 0x41ea3f
push str.Server_4.0__Enterprise_Edition
jmp 0x41ebe5
push str.Server_4.0
jmp 0x41ebe5
lea eax, [esp + 0x34]
push eax
mov ebx, 1
push ebx
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov edi, 0x50
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ea88
push 0x48e349
mov ecx, ebp
call fcn.004185b0
mov dword [esp + 0x2c], ebx
jmp 0x41ec25
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x114]
push edx
push 0
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x34]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41ea73
cmp dword [esp + 0x30], edi
ja 0x41ea73
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x110]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x41eae7
push str.Workstation
lea ecx, [esp + 0x18]
call fcn.00419440
lea eax, [esp + 0x110]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x41eb08
push str.Server
lea ecx, [esp + 0x18]
call fcn.00419440
lea ecx, [esp + 0x110]
push ecx
push str.SERVERNT
call esi
test eax, eax
jne 0x41eb29
push str.Advanced_Server
lea ecx, [esp + 0x18]
call fcn.00419440
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x104]
push str._d._d
push ecx
call fcn.0041d980
add esp, 0x10
lea edx, [esp + 0xfc]
push edx
jmp 0x41ebe1
mov ebx, 4
cmp dword [esp + 0x64], ebx
jne 0x41ebea
cmp dword [esp + 0x68], 0
jne 0x41eb99
push str.Windows_95
lea ecx, [esp + 0x18]
call fcn.00419440
mov al, byte [esp + 0x75]
cmp al, 0x43
je 0x41eb85
cmp al, 0x42
jne 0x41eb93
push str.OSR2
lea ecx, [esp + 0x18]
call fcn.00419440
cmp dword [esp + 0x64], ebx
jne 0x41ebea
cmp dword [esp + 0x68], 0xa
jne 0x41ebce
push str.Microsoft_Windows_98
lea ecx, [esp + 0x18]
call fcn.00419440
mov al, byte [esp + 0x75]
cmp al, 0x41
je 0x41ebba
cmp al, 0x42
jne 0x41ebc8
push 0x4856b8
lea ecx, [esp + 0x18]
call fcn.00419440
cmp dword [esp + 0x64], ebx
jne 0x41ebea
cmp dword [esp + 0x68], 0x5a
jne 0x41ebea
push str.Windows_ME
jmp 0x41ebe1
push str.Microsoft_Win32s
lea ecx, [esp + 0x18]
call fcn.00419440
lea ecx, [esp + 0x14]
call fcn.00418710
lea esi, [eax - 1]
push esi
lea ecx, [esp + 0x18]
call fcn.004187b0
cmp al, 0x20
jne 0x41ec11
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.004190d0
jmp 0x41ec1d
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00419080
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call fcn.004186d0
mov eax, ebp
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.00449ce2
add esp, 0x15c
ret