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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5690fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x560
mov eax, dword [0x5af710]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov dword [esp + 0x564], eax
mov eax, dword [ebp + 8]
push 1
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call fcn.0042b127
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x578], 1
mov dword [esp + 0xc4], 0x9c
call esi
mov edi, eax
test edi, edi
jne 0x4b149e
lea edx, [esp + 0xc0]
push edx
mov dword [esp + 0xc4], 0x94
call esi
test eax, eax
jne 0x4b149e
mov esi, dword [esp + 0x10]
push eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], eax
push 0x572aed
mov ecx, esi
mov byte [esi + 4], al
call fcn.00404640
lea ecx, [esp + 0x8c]
mov dword [esp + 0xc], 1
mov byte [esp + 0x574], 0
call fcn.004298db
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x572840
call fcn.0054dfcb
mov eax, esi
jmp 0x4b1a1c
cmp dword [esp + 0xd0], 2
jne 0x4b14f5
mov eax, dword [esp + 0x156]
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0xcc]
push eax
push 0x572bd8
push ecx
push 0x572bd8
push edx
lea ecx, [esp + 0x54]
call fcn.0040bbec
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
jmp 0x4b1515
movzx eax, word [esp + 0xcc]
push str..0.0
push eax
lea ecx, [esp + 0x48]
call fcn.0040bbec
push eax
call fcn.00403980
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0042b8d0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x574], 2
jb 0x4b1536
mov edx, dword [eax + 4]
jmp 0x4b1539
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b1540
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.00404640
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x574], 1
jb 0x4b156e
mov edx, dword [esp + 0x20]
push edx
call fcn.0055047a
add esp, 4
push 0
push 0x572aed
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00404640
lea ecx, [esp + 0x44]
mov byte [esp + 0x574], 3
call fcn.00401530
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x20]
jae 0x4b15b9
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.00402450
cmp dword [esp + 0x34], esi
mov byte [esp + 0x574], 1
jb 0x4b15eb
mov eax, dword [esp + 0x20]
push eax
call fcn.0055047a
add esp, 4
mov eax, dword [esp + 0xd0]
sub eax, 0
mov ebx, 4
je 0x4b195b
dec eax
je 0x4b18af
dec eax
jne 0x4b196d
mov ecx, dword [esp + 0xc4]
cmp ecx, ebx
ja 0x4b1632
lea ecx, [esp + 0x40]
push str.Windows_NT
push ecx
call fcn.00403980
mov ecx, dword [esp + 0xcc]
add esp, 8
cmp ecx, 5
jne 0x4b16ab
mov eax, dword [esp + 0xc8]
test eax, eax
jne 0x4b1660
lea edx, [esp + 0x40]
push str.Windows_2000
push edx
call fcn.00403980
mov ecx, dword [esp + 0xcc]
add esp, 8
cmp ecx, 5
jne 0x4b16ab
cmp dword [esp + 0xc8], 1
jne 0x4b1688
lea eax, [esp + 0x40]
push str.Windows_XP
push eax
call fcn.00403980
mov ecx, dword [esp + 0xcc]
add esp, 8
cmp ecx, 5
jne 0x4b16ab
cmp dword [esp + 0xc8], 2
jne 0x4b16ab
lea ecx, [esp + 0x40]
push str.Windows_Server_2003
push ecx
call fcn.00403980
mov ecx, dword [esp + 0xcc]
add esp, 8
test edi, edi
je 0x4b17c1
mov al, byte [esp + 0x15a]
cmp al, 1
jne 0x4b16f6
cmp ecx, ebx
jne 0x4b16d1
push str.Workstation_4.0
lea edx, [esp + 0x44]
push edx
jmp 0x4b1965
mov eax, dword [esp + 0x158]
test ah, 2
je 0x4b16e7
push str.Home_Edition
jmp 0x4b1960
push str.Professional
lea ecx, [esp + 0x44]
push ecx
jmp 0x4b1965
cmp al, 3
je 0x4b1702
cmp al, 2
jne 0x4b196d
cmp ecx, 5
jne 0x4b179e
mov eax, dword [esp + 0xc8]
cmp eax, 2
jne 0x4b1763
mov eax, dword [esp + 0x158]
test al, al
jns 0x4b1731
push str.Datacenter_Edition
lea edx, [esp + 0x44]
push edx
jmp 0x4b1965
test al, 2
je 0x4b173f
push str.Enterprise_Edition
jmp 0x4b1960
cmp ax, 0x400
jne 0x4b1754
push str.Web_Edition
lea ecx, [esp + 0x44]
push ecx
jmp 0x4b1965
push str.Standard_Edition
lea edx, [esp + 0x44]
push edx
jmp 0x4b1965
test eax, eax
jne 0x4b179e
mov al, byte [esp + 0x158]
test al, al
jns 0x4b177c
push str.Datacenter_Server
jmp 0x4b1960
test al, 2
je 0x4b178f
push str.Advanced_Server
lea ecx, [esp + 0x44]
push ecx
jmp 0x4b1965
push str.Server
lea edx, [esp + 0x44]
push edx
jmp 0x4b1965
test byte [esp + 0x158], 2
je 0x4b17b2
push str.Server_4.0_Enterprise_Edition
jmp 0x4b1960
push str.Server_4.0
lea ecx, [esp + 0x44]
push ecx
jmp 0x4b1965
lea edx, [esp + 0x14]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov esi, 0x400
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b196d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x164]
push ecx
push 0
push 0
push str.ProductType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b189f
cmp dword [esp + 0x18], esi
jae 0x4b189f
lea eax, [esp + 0x160]
push eax
push str.WINNT
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x4b1849
lea ecx, [esp + 0x40]
push str.Workstation
push ecx
call fcn.00403980
add esp, 8
lea edx, [esp + 0x160]
push edx
push str.LANMANNT
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x4b1874
lea eax, [esp + 0x40]
push str.Server
push eax
call fcn.00403980
add esp, 8
lea ecx, [esp + 0x160]
push ecx
push str.SERVERNT
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x4b189f
lea edx, [esp + 0x40]
push str.Advanced_Server
push edx
call fcn.00403980
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b196d
cmp dword [esp + 0xc4], ebx
jne 0x4b196d
mov eax, dword [esp + 0xc8]
test eax, eax
jne 0x4b1903
lea ecx, [esp + 0x40]
push str.Windows_95
push ecx
call fcn.00403980
mov al, byte [esp + 0xdd]
add esp, 8
cmp al, 0x43
je 0x4b18e8
cmp al, 0x42
jne 0x4b18fa
lea edx, [esp + 0x40]
push str.OSR2
push edx
call fcn.00403980
add esp, 8
cmp dword [esp + 0xc4], ebx
jne 0x4b196d
cmp dword [esp + 0xc8], 0xa
jne 0x4b1945
lea eax, [esp + 0x40]
push str.Windows_98
push eax
call fcn.00403980
mov al, byte [esp + 0xdd]
add esp, 8
cmp al, 0x41
jne 0x4b193c
lea ecx, [esp + 0x40]
push 0x57b2d4
push ecx
call fcn.00403980
add esp, 8
cmp dword [esp + 0xc4], ebx
jne 0x4b196d
cmp dword [esp + 0xc8], 0x5a
jne 0x4b196d
push str.Windows_ME
lea edx, [esp + 0x44]
push edx
jmp 0x4b1965
push str.Win32s
lea eax, [esp + 0x44]
push eax
call fcn.00403980
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0042b8d0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x574], bl
jb 0x4b198d
mov ecx, dword [eax + 4]
jmp 0x4b1990
lea ecx, [eax + 4]
mov ebx, dword [esp + 0x10]
mov edi, 0xf
mov eax, ecx
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], 0
mov byte [ebx + 4], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b19b0
sub eax, esi
push eax
push ecx
mov ecx, ebx
call fcn.00404640
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0xc], 1
jb 0x4b19de
mov edx, dword [esp + 0x20]
push edx
call fcn.0055047a
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x574], 0
call fcn.004298db
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x572840
call fcn.0054dfcb
mov eax, ebx
mov ecx, dword [esp + 0x56c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x564]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret