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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140195088]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rbx, rcx
call fcn.140032950
xor eax, eax
lea rcx, [rsp + 0x74]
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8d, 0x118
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.140061460
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140034e9f
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x1400349f6
call rax
jmp 0x1400349fc
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x80], 2
jne 0x140034e90
cmp dword [rsp + 0x74], 4
jbe 0x140034e90
lea rdx, str.Microsoft
mov rcx, rbx
call fcn.140031610
cmp dword [rsp + 0x74], 0xa
jne 0x140034a51
cmp dword [rsp + 0x78], 0
jne 0x140034e2c
cmp byte [rbp + 0x8a], 1
lea rdx, str.Windows_10
mov rcx, rbx
je 0x140034a4c
lea rdx, str.Windows_Server_2016
call fcn.140031610
cmp dword [rsp + 0x74], 6
jne 0x140034c3f
mov eax, dword [rsp + 0x78]
cmp eax, 3
jne 0x140034a95
cmp byte [rbp + 0x8a], 1
lea rax, str.Windows_Server_2012_R2
lea rdx, str.Windows_8.1
mov rcx, rbx
cmovne rdx, rax
call fcn.140031610
cmp dword [rsp + 0x74], 6
jne 0x140034c3f
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x140034aca
cmp byte [rbp + 0x8a], 1
lea rax, str.Windows_Server_2012
lea rdx, str.Windows_8
mov rcx, rbx
cmovne rdx, rax
call fcn.140031610
cmp dword [rsp + 0x74], 6
jne 0x140034c3f
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x140034aff
cmp byte [rbp + 0x8a], 1
lea rax, str.Windows_Server_2008_R2
lea rdx, str.Windows_7
mov rcx, rbx
cmovne rdx, rax
call fcn.140031610
cmp dword [rsp + 0x74], 6
jne 0x140034c3f
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x140034e2c
cmp byte [rbp + 0x8a], 1
lea rax, str.Windows_Server_2008
lea rdx, str.Windows_Vista
mov rcx, rbx
cmovne rdx, rax
call fcn.140031610
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetProductInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 6]
call rax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 0x18
ja case.0x140034b7c.5
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x34ec0]
add rcx, rdx
jmp rcx
lea rdx, str.Ultimate_Edition
jmp 0x140034c0f
lea rdx, str.Home_Premium_Edition
jmp 0x140034c0f
lea rdx, str.Home_Basic_Edition
jmp 0x140034c0f
lea rdx, str.Business_Edition
jmp 0x140034c0f
lea rdx, str.Starter_Edition
jmp 0x140034c0f
lea rdx, str.Cluster_Server_Edition
jmp 0x140034c0f
lea rdx, str.Datacenter_Edition
jmp 0x140034c0f
lea rdx, str.Datacenter_Edition__core_installation_
jmp 0x140034c0f
lea rdx, str.Enterprise_Edition
jmp 0x140034c0f
lea rdx, str.Enterprise_Edition__core_installation_
jmp 0x140034c0f
lea rdx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140034c0f
lea rdx, str.Small_Business_Server
jmp 0x140034c0f
lea rdx, str.Small_Business_Server_Premium_Edition
jmp 0x140034c0f
lea rdx, str.Standard_Edition
jmp 0x140034c0f
lea rdx, str.Standard_Edition__core_installation_
jmp 0x140034c0f
lea rdx, str.Web_Server_Edition
mov rcx, rbx
call fcn.140031610
mov rax, qword [rsp + 0x38]
cmp ax, 9
jne 0x140034c2b
lea rdx, str.__64_bit
jmp 0x140034c37
test ax, ax
jne 0x140034c3f
lea rdx, str.__32_bit
mov rcx, rbx
call fcn.140031610
cmp dword [rsp + 0x74], 5
jne 0x140034e2c
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x140034d88
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140034c6d
lea rdx, str.Windows_Server_2003_R2_
jmp 0x140034ca3
mov eax, 0x2000
cmp word [rbp + 0x88], ax
jne 0x140034c84
lea rdx, str.Windows_Storage_Server_2003
jmp 0x140034ca3
cmp byte [rbp + 0x8a], 1
jne 0x140034c9c
cmp word [rsp + 0x38], 9
lea rdx, str.Windows_XP_Professional_x64_Edition
je 0x140034ca3
lea rdx, str.Windows_Server_2003_
mov rcx, rbx
call fcn.140031610
cmp byte [rbp + 0x8a], 1
je 0x140034d79
mov rax, qword [rsp + 0x38]
cmp ax, 6
jne 0x140034cee
movzx eax, byte [rbp + 0x88]
test al, al
jns 0x140034cda
lea rdx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x140034d71
test al, 2
je 0x140034d79
lea rdx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140034d71
cmp ax, 9
jne 0x140034d1e
movzx eax, byte [rbp + 0x88]
test al, al
jns 0x140034d08
lea rdx, str.Datacenter_x64_Edition
jmp 0x140034d71
test al, 2
lea rdx, str.Enterprise_x64_Edition
lea rax, str.Standard_x64_Edition
cmove rdx, rax
jmp 0x140034d71
movzx ecx, word [rbp + 0x88]
mov eax, 0x4000
test ax, cx
je 0x140034d38
lea rdx, str.Compute_Cluster_Edition
jmp 0x140034d71
movzx eax, byte [rbp + 0x88]
test al, al
jns 0x140034d4c
lea rdx, str.Datacenter_Edition
jmp 0x140034d71
test al, 2
je 0x140034d59
lea rdx, str.Enterprise_Edition
jmp 0x140034d71
mov eax, 0x400
lea rdx, str.Web_Edition
test ax, cx
jne 0x140034d71
lea rdx, str.Standard_Edition
mov rcx, rbx
call fcn.140031610
cmp dword [rsp + 0x74], 5
jne 0x140034e2c
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x258], rdi
lea rdi, str.Professional
cmp eax, 1
jne 0x140034dd5
lea rdx, str.Windows_XP
mov rcx, rbx
call fcn.140031610
mov eax, 0x200
lea rdx, str.Home_Edition
test word [rbp + 0x88], ax
mov rcx, rbx
cmove rdx, rdi
call fcn.140031610
cmp dword [rsp + 0x74], 5
jne 0x140034e24
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x140034e24
lea rdx, str.Windows_2000
mov rcx, rbx
call fcn.140031610
cmp byte [rbp + 0x8a], 1
jne 0x140034df6
mov rdx, rdi
jmp 0x140034e1c
movzx eax, byte [rbp + 0x88]
test al, al
jns 0x140034e0a
lea rdx, str.Datacenter_Server
jmp 0x140034e1c
lea rdx, str.Advanced_Server
test al, 2
jne 0x140034e1c
lea rdx, str.Server
mov rcx, rbx
call fcn.140031610
mov rdi, qword [rsp + 0x258]
lea rcx, [rbp - 0x7c]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140034e40
test rax, rax
je 0x140034e6a
lea rdx, [0x140097ddc]
mov rcx, rbx
call fcn.140031610
lea rdx, [rbp - 0x7c]
mov rcx, rbx
call fcn.140031610
mov r9d, dword [rsp + 0x7c]
lea r8, str.__build__d_
mov edx, 0x50
lea rcx, [rbp + 0x90]
call fcn.140004720
lea rdx, [rbp + 0x90]
jmp 0x140034e97
lea rdx, str.Microsoft_Windows__
mov rcx, rbx
call fcn.140031610
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14005d680
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rbp
ret