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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x140
lea esi, [ebp - 0xa4]
mov dword [esp + 8], 0x9c
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0040b1ee
mov dword [esp], esi
mov dword [ebp - 0xa4], 0x9c
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
push ecx
setne bl
je 0x40b914
mov dword [esp], 0x414353
call fcn.00405455
mov dword [esp + 4], str.GetNativeSystemInfo
mov dword [esp], eax
call fcn.00405469
lea edx, [ebp - 0x118]
test eax, eax
je 0x40b931
mov dword [esp], edx
call eax
jmp 0x40b939
mov dword [esp], esi
mov dword [ebp - 0xa4], 0x94
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
push edx
jne case.0x40b9cf.7
jmp 0x40b8e7
mov dword [esp], edx
call sub.KERNEL32.dll_GetSystemInfo
test bl, bl
push esi
je 0x40bae6
mov eax, dword [ebp - 0x94]
cmp eax, 1
je 0x40b963
jb 0x40b959
cmp eax, 2
je 0x40b9bd
jmp case.0x40b9cf.7
mov eax, 1
jmp 0x40bc14
cmp dword [ebp - 0xa0], 4
jne case.0x40b9cf.7
mov eax, dword [ebp - 0x9c]
cmp eax, 0xa
je 0x40b9a9
cmp eax, 0x5a
je 0x40b99f
test eax, eax
jne case.0x40b9cf.7
mov al, byte [ebp - 0x90]
sub eax, 0x42
cmp al, 2
sbb eax, eax
not eax
add eax, 3
jmp 0x40bc14
mov eax, 6
jmp 0x40bc14
xor eax, eax
cmp byte [ebp - 0x90], 0x41
sete al
add eax, 4
jmp 0x40bc14
mov eax, dword [ebp - 0xa0]
sub eax, 3
cmp eax, 7
ja case.0x40b9cf.7
jmp dword [eax*4 + 0x4143c8]
mov eax, 7
jmp 0x40bc14
mov al, byte [ebp - 0xa]
cmp al, 1
je 0x40bba9
cmp al, 3
sete al
movzx eax, al
lea eax, [eax + eax*8]
jmp 0x40bc14
mov eax, dword [ebp - 0x9c]
cmp eax, 1
je 0x40bc0b
jb 0x40ba16
cmp eax, 2
je 0x40ba20
jmp case.0x40b9cf.7
mov eax, 0xa
jmp 0x40bc14
cmp word [ebp - 0xc], 0x8000
mov eax, 0xd
je 0x40bc14
cmp byte [ebp - 0xa], 1
jne 0x40ba47
cmp word [ebp - 0x118], 9
mov al, 0xc
je 0x40bc14
mov dword [esp], 0x59
call sub.USER32.dll_GetSystemMetrics
cmp eax, 1
sbb eax, eax
push ebx
add eax, 0xf
jmp 0x40bc14
mov eax, dword [ebp - 0x9c]
cmp eax, 1
je 0x40ba8e
jb 0x40ba7d
cmp eax, 2
je 0x40ba9f
cmp eax, 3
je 0x40bab8
jmp case.0x40b9cf.7
xor eax, eax
cmp byte [ebp - 0xa], 1
setne al
add eax, 0x10
jmp 0x40bc14
xor eax, eax
cmp byte [ebp - 0xa], 1
setne al
add eax, 0x12
jmp 0x40bc14
cmp byte [ebp - 0xa], 1
mov eax, 0x15
jne 0x40bc14
mov eax, 0x14
jmp 0x40bc14
cmp byte [ebp - 0xa], 1
je 0x40baae
mov eax, 0x16
jmp 0x40bc14
cmp dword [ebp - 0x9c], 0
jne case.0x40b9cf.7
xor eax, eax
cmp byte [ebp - 0xa], 1
setne al
add eax, 0x17
jmp 0x40bc14
lea eax, [ebp - 0x120]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlProductOptions
mov dword [esp], 0x80000002
mov dword [ebp - 0x11c], 0x50
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne case.0x40b9cf.7
lea eax, [ebp - 0x11c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x120]
lea ebx, [ebp - 0xf4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProductType
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
mov esi, eax
mov eax, dword [ebp - 0x120]
sub esp, 0x18
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
test esi, esi
push ecx
jne case.0x40b9cf.7
cmp dword [ebp - 0x11c], 0x50
ja case.0x40b9cf.7
mov dword [esp + 4], ebx
mov dword [esp], str.WINNT
call fcn.0040b055
test eax, eax
jne 0x40bbb0
cmp dword [ebp - 0xa0], 4
ja 0x40bbb0
mov eax, 8
jmp 0x40bc14
mov dword [esp + 4], ebx
mov dword [esp], str.LANMANNT
call fcn.0040b055
test eax, eax
jne 0x40bbd1
mov eax, dword [ebp - 0xa0]
cmp eax, 5
jne 0x40bbfd
jmp 0x40bbe7
mov dword [esp + 4], ebx
mov dword [esp], str.SERVERNT
call fcn.0040b055
test eax, eax
je 0x40bbc4
jmp case.0x40b9cf.7
mov edx, dword [ebp - 0x9c]
cmp edx, 2
je 0x40bc04
test edx, edx
mov eax, 0xa
jne case.0x40b9cf.7
jmp 0x40bc14
cmp eax, 4
jbe 0x40bba9
jmp case.0x40b9cf.7
mov eax, 0xe
jmp 0x40bc14
mov eax, 0xb
jmp 0x40bc14
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret