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

Disassembly:
push 0xffffffffffffffff
push 0x482c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
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.004162d0
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.0044c830
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 0x420f0f
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x64], 0x94
call esi
test eax, eax
jne 0x420f0f
push 0x49789d
mov ecx, ebp
call fcn.00416300
mov dword [esp + 0x2c], ebx
jmp 0x421385
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 0x420f33
lea ecx, [esp + 0x38]
push ecx
call eax
jmp 0x420f3e
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x49789d
lea ecx, [esp + 0x18]
call fcn.00416860
mov eax, dword [esp + 0x70]
sub eax, 0
je 0x42133c
sub eax, ebx
je 0x4212b5
sub eax, ebx
jne 0x42134a
cmp dword [esp + 0x64], 6
lea esi, [eax + 9]
lea ebx, [eax + 4]
jne 0x420f9f
cmp dword [esp + 0x68], eax
jne 0x421032
cmp byte [esp + 0xfa], 1
lea ecx, [esp + 0x14]
jne 0x420f95
push str.Windows_Vista
jmp 0x420f9a
push str.Windows_Server_Longhorn
call fcn.00417190
cmp dword [esp + 0x64], 5
jne 0x42101e
cmp dword [esp + 0x68], 2
jne 0x420fed
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x420fc0
push str.Microsoft_Windows_Server_2003_R2
jmp 0x420fdd
cmp byte [esp + 0xfa], 1
jne 0x420fd8
cmp word [esp + 0x38], si
jne 0x420fd8
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x420fdd
push str.Microsoft_Windows_Server_2003
lea ecx, [esp + 0x18]
call fcn.00417190
cmp dword [esp + 0x64], 5
jne 0x42101e
cmp dword [esp + 0x68], 1
jne 0x421009
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x18]
call fcn.00417190
cmp dword [esp + 0x64], 5
jne 0x42101e
cmp dword [esp + 0x68], 0
jne 0x421032
push str.Microsoft_Windows_2000
lea ecx, [esp + 0x18]
call fcn.00417190
cmp dword [esp + 0x64], ebx
ja 0x421032
push str.Microsoft_Windows_NT
lea ecx, [esp + 0x18]
call fcn.00417190
test edi, edi
je 0x4211a9
mov al, byte [esp + 0xfa]
cmp al, 1
jne 0x421085
cmp word [esp + 0x38], si
je 0x42134a
cmp dword [esp + 0x64], ebx
jne 0x421060
push str.Workstation_4.0
jmp 0x421341
test dword [esp + 0xf8], 0x200
lea ecx, [esp + 0x14]
je 0x42107b
push 0x48cfbc
jmp 0x421345
push 0x48cfac
jmp 0x421345
cmp al, 3
je 0x421091
cmp al, 2
jne 0x42134a
cmp dword [esp + 0x64], 5
jne 0x421187
mov eax, dword [esp + 0x68]
cmp eax, 2
jne 0x421152
mov eax, dword [esp + 0x38]
cmp ax, 6
jne 0x4210da
mov al, byte [esp + 0xf8]
test al, al
jns 0x4210c8
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x421341
test al, 2
je 0x42134a
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x421341
cmp ax, si
jne 0x421110
mov al, byte [esp + 0xf8]
test al, al
jns 0x4210f4
push str.Datacenter_x64_Edition
jmp 0x421341
test al, 2
lea ecx, [esp + 0x14]
je 0x421106
push str.Enterprise_x64_Edition
jmp 0x421345
push str.Standard_x64_Edition
jmp 0x421345
mov eax, dword [esp + 0xf8]
test al, al
jns 0x421125
push str.Datacenter_Edition
jmp 0x421341
test al, 2
je 0x421133
push str.Enterprise_Edition
jmp 0x421341
test eax, 0x400
lea ecx, [esp + 0x14]
je 0x421148
push str.Web_Edition
jmp 0x421345
push str.Standard_Edition
jmp 0x421345
test eax, eax
jne 0x421187
mov al, byte [esp + 0xf8]
test al, al
jns 0x42116b
push str.Datacenter_Server
jmp 0x421341
test al, 2
lea ecx, [esp + 0x14]
je 0x42117d
push 0x48ce90
jmp 0x421345
push 0x48ce88
jmp 0x421345
test byte [esp + 0xf8], 2
lea ecx, [esp + 0x14]
je 0x42119f
push str.Server_4.0__Enterprise_Edition
jmp 0x421345
push str.Server_4.0
jmp 0x421345
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 0x4211e8
push 0x49789d
mov ecx, ebp
call fcn.00416300
mov dword [esp + 0x2c], ebx
jmp 0x421385
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 0x4211d3
cmp dword [esp + 0x30], edi
ja 0x4211d3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x110]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x421247
push 0x48ce08
lea ecx, [esp + 0x18]
call fcn.00417190
lea eax, [esp + 0x110]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x421268
push 0x48ce88
lea ecx, [esp + 0x18]
call fcn.00417190
lea ecx, [esp + 0x110]
push ecx
push str.SERVERNT
call esi
test eax, eax
jne 0x421289
push 0x48ce90
lea ecx, [esp + 0x18]
call fcn.00417190
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.004203c0
add esp, 0x10
lea edx, [esp + 0xfc]
push edx
jmp 0x421341
mov ebx, 4
cmp dword [esp + 0x64], ebx
jne 0x42134a
cmp dword [esp + 0x68], 0
jne 0x4212f9
push 0x48cddc
lea ecx, [esp + 0x18]
call fcn.00417190
mov al, byte [esp + 0x75]
cmp al, 0x43
je 0x4212e5
cmp al, 0x42
jne 0x4212f3
push str.OSR2
lea ecx, [esp + 0x18]
call fcn.00417190
cmp dword [esp + 0x64], ebx
jne 0x42134a
cmp dword [esp + 0x68], 0xa
jne 0x42132e
push str.Microsoft_Windows_98
lea ecx, [esp + 0x18]
call fcn.00417190
mov al, byte [esp + 0x75]
cmp al, 0x41
je 0x42131a
cmp al, 0x42
jne 0x421328
push 0x48cdb8
lea ecx, [esp + 0x18]
call fcn.00417190
cmp dword [esp + 0x64], ebx
jne 0x42134a
cmp dword [esp + 0x68], 0x5a
jne 0x42134a
push 0x48cdac
jmp 0x421341
push str.Microsoft_Win32s
lea ecx, [esp + 0x18]
call fcn.00417190
lea ecx, [esp + 0x14]
call fcn.00416460
lea esi, [eax - 1]
push esi
lea ecx, [esp + 0x18]
call fcn.00416500
cmp al, 0x20
jne 0x421371
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00416e20
jmp 0x42137d
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00416dd0
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call fcn.00416420
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.0044b607
add esp, 0x15c
ret