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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x530
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov rbx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x9c
lea rcx, [rsp + 0x80]
mov r8, rdi
xor edx, edx
call fcn.140158a90
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1401732bc
mov edi, DllRegisterServer
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8, rdi
call fcn.140158a90
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140173a56
call fcn.140045fd8
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
mov rcx, qword [rax + 0x40]
lea rdx, [rsp + 0x34]
call fcn.140015c68
mov edx, dword [rsp + 0x84]
test eax, eax
je 0x14017330d
cmp dword [rsp + 0x34], edx
jbe 0x14017330d
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x84], edx
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0x8c], eax
jmp 0x140173314
mov ecx, dword [rsp + 0x88]
movzx eax, word [rsp + 0x114]
mov r8d, dword [rsp + 0x90]
mov dword [rbx + 0x1c], edx
mov dword [rbx + 0x24], eax
movzx eax, word [rsp + 0x116]
mov dword [rbx + 0x18], r8d
mov dword [rbx + 0x20], ecx
mov ebp, 1
mov dword [rbx + 0x28], eax
test r8d, r8d
je 0x140173a3f
sub r8d, ebp
je 0x1401739aa
cmp r8d, ebp
jne 0x140173a54
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbx + 0x30]
mov r9d, edx
lea r13, str.Microsoft_Windows_NT_d._d
mov edi, 0x400
mov r8, r13
mov rdx, rdi
call fcn.140044464
cmp dword [rsp + 0x84], 4
ja 0x1401733a0
lea r8, str.Microsoft_Windows_NT
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
call fcn.140158644
jmp 0x14017363b
cmp dword [rsp + 0x84], 5
jne 0x140173477
mov eax, dword [rsp + 0x88]
test eax, eax
jne 0x1401733c2
lea r8, str.Microsoft_Windows_2000
jmp 0x14017338f
cmp eax, ebp
jne 0x140173426
mov rcx, qword [rbx + 0x30]
lea r8, str.Microsoft_Windows_XP
mov rdx, rdi
call fcn.140158644
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1401733fb
mov rcx, qword [rbx + 0x30]
lea r8, str.Media_Center_Edition
mov rdx, rdi
call fcn.14004453c
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14017363b
mov rcx, qword [rbx + 0x30]
lea r8, str.Tablet_PC_Edition
mov rdx, rdi
call fcn.14004453c
jmp 0x14017363b
cmp eax, 2
jne 0x14017346c
cmp byte [rsp + 0x11a], bpl
jne 0x140173460
mov rcx, qword [rbx + 0x30]
lea r9d, [rax + 4]
mov rdx, rdi
cmp word [rsp + 0x50], r9w
jne 0x140173454
lea r8, str.Microsoft_Windows_XP_IA64
jmp 0x140173396
lea r8, str.Microsoft_Windows_XP_x64
jmp 0x140173396
lea r8, str.Microsoft_Windows_Server_2003
jmp 0x14017338f
mov r9d, 5
jmp 0x140173628
mov r9d, 6
cmp dword [rsp + 0x84], r9d
jne 0x140173591
cmp dword [rsp + 0x88], 0
jne 0x1401734c3
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
cmp byte [rsp + 0x11a], bpl
jne 0x1401734b7
and dword [rsp + 0x20], 0
lea r8, str.Microsoft_Windows_Vista___d._d_
jmp 0x1401735e6
lea r8, str.Microsoft_Windows_Server_2008
jmp 0x14017355b
cmp dword [rsp + 0x88], ebp
jne 0x1401734f6
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
cmp byte [rsp + 0x11a], bpl
jne 0x1401734ed
mov dword [rsp + 0x20], ebp
lea r8, str.Microsoft_Windows_7___d._d_
jmp 0x1401735e6
lea r8, str.Microsoft_Windows_Server_2008_R2
jmp 0x14017355b
cmp dword [rsp + 0x88], 2
jne 0x140173525
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
cmp byte [rsp + 0x11a], bpl
jne 0x140173554
mov dword [rsp + 0x20], 2
lea r8, str.Microsoft_Windows_8___d._d_
jmp 0x1401735e6
cmp dword [rsp + 0x88], 3
jne 0x140173565
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
cmp byte [rsp + 0x11a], bpl
jne 0x140173554
mov dword [rsp + 0x20], 3
lea r8, str.Microsoft_Windows_8.1___d._d_
jmp 0x1401735e6
lea r8, str.Microsoft_Windows_Server_2012_R2
call fcn.140158644
jmp 0x1401735eb
cmp dword [rsp + 0x88], 4
jne 0x1401735eb
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x20], 4
mov rdx, rdi
lea r8, str.Microsoft_Windows_10___d._d_
cmp byte [rsp + 0x11a], bpl
je 0x1401735e6
jmp 0x1401735df
cmp dword [rsp + 0x84], 0xa
jne 0x140173619
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
cmp byte [rsp + 0x11a], bpl
jne 0x1401735ce
cmp dword [rsp + 0x8c], 0x55ec
lea r8, str.Microsoft_Windows_11
jae 0x1401735c7
lea r8, str.Microsoft_Windows_10
call fcn.140044464
jmp 0x1401735eb
mov eax, dword [rsp + 0x88]
mov r9d, 0xa
mov dword [rsp + 0x20], eax
lea r8, str.Microsoft_Windows_Server___d._d_
call fcn.140044464
movzx eax, word [rsp + 0x116]
movzx r9d, word [rsp + 0x114]
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x84]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140172cf4
jmp 0x14017363b
mov eax, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x84]
mov rcx, qword [rbx + 0x30]
mov r8, r13
mov rdx, rdi
mov dword [rsp + 0x20], eax
call fcn.140044464
mov al, byte [rsp + 0x11a]
mov r13d, 0x200
cmp al, bpl
jne 0x14017369b
cmp dword [rsp + 0x84], 4
jne 0x140173663
lea r8, str.Workstation_4.0
jmp 0x140173780
cmp dword [rsp + 0x84], 5
jne 0x14017378c
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
test word [rsp + 0x118], r13w
je 0x14017368f
lea r8, str.Home_Edition
jmp 0x140173787
lea r8, str.Professional
jmp 0x140173787
cmp al, 3
je 0x1401736a7
cmp al, 2
jne 0x14017378c
cmp dword [rsp + 0x84], 5
jne 0x14017375a
mov eax, dword [rsp + 0x88]
cmp eax, 2
jne 0x140173721
mov al, byte [rsp + 0x118]
test al, al
jns 0x1401736d8
lea r8, str.Datacenter_Edition
jmp 0x140173780
test al, 2
je 0x1401736e8
lea r8, str.Enterprise_Edition
jmp 0x140173780
cmp word [rsp + 0x118], di
jne 0x1401736fe
lea r8, str.Web_Edition
jmp 0x140173780
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
cmp word [rsp + 0x118], bp
jne 0x140173718
lea r8, str.Small_Business_Edition
jmp 0x140173787
lea r8, str.Standard_Edition
jmp 0x140173787
test eax, eax
jne 0x140173847
mov al, byte [rsp + 0x118]
test al, al
jns 0x14017373d
lea r8, str.Datacenter_Server
jmp 0x140173780
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
test al, 2
je 0x140173751
lea r8, str.Advanced_Server
jmp 0x140173787
lea r8, str.Server
jmp 0x140173787
cmp dword [rsp + 0x84], 4
ja 0x140173847
test byte [rsp + 0x118], 2
lea r8, str.Server_4.0__Enterprise_Edition
jne 0x140173780
lea r8, str.Server_4.0
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
call fcn.14004453c
cmp dword [rsp + 0x84], 4
jne 0x140173847
lea rdx, str.Service_Pack_6
lea rcx, [rsp + 0x94]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140173847
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
mov r9d, ebp
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, 0x100
lea rcx, [rsp + 0x120]
test eax, eax
jne 0x140173803
movzx r9d, word [rsp + 0x8c]
lea r8, str.Service_Pack_6a__Build__d_
call fcn.140044464
jmp 0x140173823
movzx eax, word [rsp + 0x8c]
lea r9, [rsp + 0x94]
lea r8, str._s__Build__d_
mov dword [rsp + 0x20], eax
call fcn.140044464
mov rcx, qword [rbx + 0x38]
lea r8, [rsp + 0x120]
mov rdx, r13
call fcn.140044464
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140173a54
cmp byte [rsp + 0x94], 0
mov edx, 0x100
lea rcx, [rsp + 0x120]
je 0x140173883
movzx eax, word [rsp + 0x8c]
lea r9, [rsp + 0x94]
lea r8, str._s__Build__d_
mov dword [rsp + 0x20], eax
call fcn.140044464
jmp 0x140173991
movzx r9d, word [rsp + 0x8c]
lea r8, str.Build__d
call fcn.140044464
lea r11, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov r9d, ebp
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140173991
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.DisplayVersion
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x320]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14017392f
lea r9, [rsp + 0x320]
lea r8, str.Version__s
lea rcx, [rsp + 0x120]
mov rdx, r13
call fcn.140044464
mov rcx, qword [rbx + 0x40]
lea r8, [rsp + 0x120]
mov rdx, r13
call fcn.140044464
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x140207164]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140173991
mov eax, dword [rsp + 0x40]
movzx r9d, word [rsp + 0x8c]
lea r8, str.Build__d._d
lea rcx, [rsp + 0x120]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.140044464
mov rcx, qword [rbx + 0x38]
lea r8, [rsp + 0x120]
mov rdx, r13
call fcn.140044464
jmp 0x140173a54
cmp edx, 4
jne 0x140173a36
test ecx, ecx
jne 0x1401739ec
mov rcx, qword [rbx + 0x30]
mov edi, 0x400
lea r8, str.Microsoft_Windows_95
mov rdx, rdi
call fcn.140158644
cmp byte [rsp + 0x95], 0x43
je 0x1401739e3
cmp byte [rsp + 0x95], 0x42
jne 0x140173a54
lea r8, str._OSR2
jmp 0x140173a1a
cmp ecx, 0xa
jne 0x140173a28
mov rcx, qword [rbx + 0x30]
mov edi, 0x400
lea r8, str.Microsoft_Windows_98
mov rdx, rdi
call fcn.140158644
cmp byte [rsp + 0x95], 0x41
jne 0x140173a54
lea r8, [0x1401f81a0]
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
call fcn.14004453c
jmp 0x140173a54
cmp ecx, 0x5a
jne 0x140173a54
lea r8, str.Microsoft_Windows_Millennium_Edition
jmp 0x140173a46
lea r8, str.Microsoft_Windows_9x
jmp 0x140173a46
lea r8, str.Microsoft_Win32s
mov rcx, qword [rbx + 0x30]
mov edx, 0x400
call fcn.140158644
mov eax, ebp
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140156fd0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret