Function at 0x40a1d4
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
mov dword [esp + 8], 0x9c
mov dword [esp + 4], 0
lea esi, [ebp - 0xa4]
mov dword [esp], esi
call fcn.00409bfc
mov dword [ebp - 0xa4], 0x9c
mov dword [esp], esi
call sub.KERNEL32.dll_GetVersionExA
push ecx
test eax, eax
setne bl
je 0x40a23f
mov dword [esp], str.kernel32.dll
call fcn.004051aa
mov dword [esp + 4], str.GetNativeSystemInfo
mov dword [esp], eax
call fcn.004051be
test eax, eax
lea edx, [ebp - 0x118]
jne 0x40a25b
jmp 0x40a262
mov dword [ebp - 0xa4], 0x94
mov dword [esp], esi
call sub.KERNEL32.dll_GetVersionExA
push edx
test eax, eax
je 0x40a217
jmp 0x40a524
mov dword [esp], edx
call eax
jmp 0x40a26a
mov dword [esp], edx
call sub.KERNEL32.dll_GetSystemInfo
push esi
test bl, bl
je 0x40a3f2
mov edx, dword [ebp - 0x94]
cmp edx, 1
je 0x40a294
mov eax, 1
jb 0x40a526
cmp edx, 2
jne 0x40a524
jmp 0x40a2f6
cmp dword [ebp - 0xa0], 4
jne 0x40a524
mov eax, dword [ebp - 0x9c]
cmp eax, 0x5a
je 0x40a2c1
ja 0x40a524
test eax, eax
je 0x40a2cb
cmp eax, 0xa
jne 0x40a524
jmp 0x40a2e2
mov eax, 6
jmp 0x40a526
mov al, byte [ebp - 0x90]
sub eax, 0x42
cmp al, 2
sbb eax, eax
not eax
add eax, 3
jmp 0x40a526
xor eax, eax
cmp byte [ebp - 0x90], 0x41
sete al
add eax, 4
jmp 0x40a526
mov eax, dword [ebp - 0xa0]
cmp eax, 4
je 0x40a32b
ja 0x40a30e
cmp eax, 3
jne 0x40a524
jmp 0x40a321
cmp eax, 5
je 0x40a346
cmp eax, 6
jne 0x40a524
jmp 0x40a3a7
mov eax, 7
jmp 0x40a526
mov al, byte [ebp - 0xa]
cmp al, 1
je 0x40a4b5
cmp al, 3
sete al
movzx eax, al
lea eax, [eax + eax*8]
jmp 0x40a526
mov edx, dword [ebp - 0x9c]
cmp edx, 1
je 0x40a51d
mov eax, 0xa
jb 0x40a526
cmp edx, 2
jne 0x40a524
mov al, 0xd
cmp word [ebp - 0xc], 0x8000
je 0x40a526
cmp byte [ebp - 0xa], 1
jne 0x40a38d
mov al, 0xc
cmp word [ebp - 0x118], 9
je 0x40a526
mov dword [esp], 0x59
call sub.USER32.dll_GetSystemMetrics
push ebx
cmp eax, 1
sbb eax, eax
add eax, 0xf
jmp 0x40a526
mov eax, dword [ebp - 0x9c]
cmp eax, 1
je 0x40a3d0
jb 0x40a3bf
cmp eax, 2
jne 0x40a524
jmp 0x40a3e1
xor eax, eax
cmp byte [ebp - 0xa], 1
setne al
add eax, 0x10
jmp 0x40a526
xor eax, eax
cmp byte [ebp - 0xa], 1
setne al
add eax, 0x12
jmp 0x40a526
xor eax, eax
cmp byte [ebp - 0xa], 1
setne al
add eax, 0x14
jmp 0x40a526
mov dword [ebp - 0x11c], 0x50
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
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40a524
lea eax, [ebp - 0x11c]
mov dword [esp + 0x14], eax
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 eax, dword [ebp - 0x120]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov esi, eax
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ecx
test esi, esi
jne 0x40a524
cmp dword [ebp - 0x11c], 0x50
ja 0x40a524
mov dword [esp + 4], ebx
mov dword [esp], str.WINNT
call fcn.00409b1f
test eax, eax
jne 0x40a4bc
cmp dword [ebp - 0xa0], 4
ja 0x40a4bc
mov eax, 8
jmp 0x40a526
lea ebx, [ebp - 0xf4]
mov dword [esp + 4], ebx
mov dword [esp], str.LANMANNT
call fcn.00409b1f
test eax, eax
jne 0x40a4e3
mov eax, dword [ebp - 0xa0]
cmp eax, 5
jne 0x40a50f
jmp 0x40a4f9
mov dword [esp + 4], ebx
mov dword [esp], str.SERVERNT
call fcn.00409b1f
test eax, eax
je 0x40a4d6
jmp 0x40a524
mov edx, dword [ebp - 0x9c]
cmp edx, 2
je 0x40a516
mov eax, 0xa
test edx, edx
jne 0x40a524
jmp 0x40a526
cmp eax, 4
jbe 0x40a4b5
jmp 0x40a524
mov eax, 0xe
jmp 0x40a526
mov eax, 0xb
jmp 0x40a526
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret