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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1402669b0]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, LoadRegTypeLib
mov qword [rsp + 0x38], rax
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.14019c230
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], LoadRegTypeLib
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400110fb
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x140010ceb
call rax
jmp 0x140010cf1
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x80], 2
jne 0x140011102
cmp dword [rsp + 0x74], 4
jbe 0x140011102
lea r8, str.Microsoft
mov edx, 0x100
mov rcx, rbx
sub r8, rbx
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefe]
test rax, rax
je 0x140010d41
movzx eax, byte [r8 + rcx]
test al, al
je 0x140010d41
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140010d20
jmp 0x140010d46
test rdx, rdx
jne 0x140010d49
dec rcx
cmp dword [rsp + 0x74], 6
mov byte [rcx], 0
jne case.0x140010df4.5
cmp dword [rsp + 0x78], 0
jne 0x140010d7a
cmp byte [rbp + 0xa], 1
mov rcx, rbx
lea r8, str.Windows_Vista
je 0x140010d75
lea r8, str.Windows_Server_2008
call fcn.140002d10
cmp dword [rsp + 0x78], 1
jne 0x140010d9d
cmp byte [rbp + 0xa], 1
mov rcx, rbx
lea r8, str.Windows_7
je 0x140010d98
lea r8, str.Windows_Server_2008_R2
call fcn.140002d10
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x74]
xor r9d, r9d
xor r8d, r8d
call rax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 0x18
ja case.0x140010df4.5
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x11124]
add rcx, rdx
jmp rcx
lea r8, str.Ultimate_Edition
jmp 0x140010e87
lea r8, str.Home_Premium_Edition
jmp 0x140010e87
lea r8, str.Home_Basic_Edition
jmp 0x140010e87
lea r8, str.Enterprise_Edition
jmp 0x140010e87
lea r8, str.Business_Edition
jmp 0x140010e87
lea r8, str.Starter_Edition
jmp 0x140010e87
lea r8, str.Cluster_Server_Edition
jmp 0x140010e87
lea r8, str.Datacenter_Edition
jmp 0x140010e87
lea r8, str.Datacenter_Edition__core_installation_
jmp 0x140010e87
lea r8, str.Enterprise_Edition__core_installation_
jmp 0x140010e87
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140010e87
lea r8, str.Small_Business_Server
jmp 0x140010e87
lea r8, str.Small_Business_Server_Premium_Edition
jmp 0x140010e87
lea r8, str.Standard_Edition
jmp 0x140010e87
lea r8, str.Standard_Edition__core_installation_
jmp 0x140010e87
lea r8, str.Web_Server_Edition
mov rcx, rbx
call fcn.140002d10
cmp dword [rsp + 0x74], 5
jne 0x140011066
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x140010fd9
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140010ebd
lea r8, str.Windows_Server_2003_R2_
jmp 0x140010f03
movzx eax, word [rbp + 8]
mov ecx, 0x2000
cmp ax, cx
jne 0x140010ed4
lea r8, str.Windows_Storage_Server_2003
jmp 0x140010f03
mov ecx, 0x8000
cmp ax, cx
jne 0x140010ee7
lea r8, str.Windows_Home_Server
jmp 0x140010f03
cmp byte [rbp + 0xa], 1
jne 0x140010efc
cmp word [rsp + 0x38], 9
lea r8, str.Windows_XP_Professional_x64_Edition
je 0x140010f03
lea r8, str.Windows_Server_2003_
mov rcx, rbx
call fcn.140002d10
cmp byte [rbp + 0xa], 1
je 0x140010fca
mov rax, qword [rsp + 0x38]
cmp ax, 6
jne 0x140010f45
movzx eax, byte [rbp + 8]
test al, al
jns 0x140010f34
lea r8, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x140010fc2
test al, 2
je 0x140010fca
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140010fc2
cmp ax, 9
jne 0x140010f75
movzx eax, byte [rbp + 8]
test al, al
jns 0x140010f5c
lea r8, str.Datacenter_x64_Edition
jmp 0x140010fc2
mov rcx, rbx
test al, 2
je 0x140010f6c
lea r8, str.Enterprise_x64_Edition
jmp 0x140010fc5
lea r8, str.Standard_x64_Edition
jmp 0x140010fc5
movzx ecx, word [rbp + 8]
mov eax, 0x4000
test ax, cx
je 0x140010f8c
lea r8, str.Compute_Cluster_Edition
jmp 0x140010fc2
movzx eax, byte [rbp + 8]
test al, al
jns 0x140010f9d
lea r8, str.Datacenter_Edition
jmp 0x140010fc2
test al, 2
je 0x140010faa
lea r8, str.Enterprise_Edition
jmp 0x140010fc2
mov eax, 0x400
lea r8, str.Web_Edition
test ax, cx
jne 0x140010fc2
lea r8, str.Standard_Edition
mov rcx, rbx
call fcn.140002d10
cmp dword [rsp + 0x74], 5
jne 0x140011066
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x140011019
lea r8, str.Windows_XP
mov rcx, rbx
call fcn.140002d10
mov eax, 0x200
mov rcx, rbx
lea r8, str.Home_Edition
test word [rbp + 8], ax
jne 0x140011009
lea r8, str.Professional
call fcn.140002d10
cmp dword [rsp + 0x74], 5
jne 0x140011066
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x140011066
lea r8, str.Windows_2000
mov rcx, rbx
call fcn.140002d10
cmp byte [rbp + 0xa], 1
jne 0x14001103b
lea r8, str.Professional
jmp 0x14001105e
movzx eax, byte [rbp + 8]
test al, al
jns 0x14001104c
lea r8, str.Datacenter_Server
jmp 0x14001105e
lea r8, str.Advanced_Server
test al, 2
jne 0x14001105e
lea r8, str.Server
mov rcx, rbx
call fcn.140002d10
lea rcx, [rbp - 0x7c]
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140011070
test rax, rax
je 0x140011099
lea r8, [0x140223080]
mov rcx, rbx
call fcn.140002d10
lea r8, [rbp - 0x7c]
mov rcx, rbx
call fcn.140002d10
mov r9d, dword [rsp + 0x7c]
lea r8, str.__build__d_
lea rcx, [rbp + 0x10]
mov edx, 0x50
call fcn.140002db0
lea r8, [rbp + 0x10]
mov rcx, rbx
call fcn.140002d10
cmp dword [rsp + 0x74], 6
jb 0x1400110fb
mov rax, qword [rsp + 0x38]
cmp ax, 9
jne 0x1400110e7
lea r8, str.__64_bit
mov rcx, rbx
call fcn.140002d10
mov eax, 1
jmp 0x140011104
test ax, ax
jne 0x1400110fb
lea r8, str.__32_bit
mov rcx, rbx
call fcn.140002d10
mov eax, 1
jmp 0x140011104
xor eax, eax
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14019a4e0
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rbp
ret