Function at 0x4350b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x471c94
call fcn.00403dd0
lea eax, [ebp - 0xb48]
mov dword [ebp - 0xb48], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4353b9
cmp dword [ebp - 0xb38], 2
jne 0x4353b9
cmp dword [ebp - 0xb44], 5
jb 0x4353b9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
push str.GetNativeSystemInfo
push str.kernel32.dll
movdqu xmmword [ebp - 0xb70], xmm0
mov dword [ebp - 0xb50], 0
movdqu xmmword [ebp - 0xb60], xmm0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435158
lea ecx, [ebp - 0xb70]
push ecx
call eax
jmp 0x435165
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetProductInfo
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.base
mov ecx, edi
mov ebx, eax
call fcn.00411580
test ebx, ebx
je 0x4351e6
movzx ecx, word [ebp - 0xa32]
lea eax, [ebp - 0xb4c]
push eax
movzx eax, word [ebp - 0xa34]
push ecx
push eax
push dword [ebp - 0xb40]
push dword [ebp - 0xb44]
call ebx
mov ax, word [ebp - 0xa34]
test ax, ax
je 0x4351e6
movzx eax, ax
push eax
push str.sp_d
lea eax, [ebp - 0xa2c]
push 0x514
push eax
call fcn.00402670
add esp, 0x10
lea eax, [ebp - 0xa2c]
mov ecx, edi
push eax
call fcn.00411580
mov eax, dword [ebp - 0xb44]
pop ebx
cmp eax, 6
jne 0x4352b1
mov eax, dword [ebp - 0xb40]
test eax, eax
jne 0x435243
cmp byte [ebp - 0xa2e], 1
mov ecx, esi
jne 0x435227
push str.vista
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.win2008
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x43528a
mov ecx, esi
cmp byte [ebp - 0xa2e], al
jne 0x43526e
push str.win7
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.win2008r2
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4353a7
push str.win8
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4353a7
mov eax, dword [ebp - 0xb40]
cmp eax, 2
jne 0x435392
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4352f3
push str.windows2003r2
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa30]
test eax, 0x2000
je 0x43531e
push str.windows2003storage
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
test eax, 0x8000
je 0x435343
push str.windowshomeserver
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa2e], 1
jne 0x435374
cmp word [ebp - 0xb70], 9
jne 0x435374
push 0x468bec
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.win2003
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x435356
test eax, eax
jne 0x4353a7
push str.win2000
mov ecx, esi
call fcn.00411580
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00438f17
mov esp, ebp
pop ebp
ret