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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb50
mov qword [rsp + 0xab0], 0xfffffffffffffffe
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0xb48], rax
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x4e0]
call fcn.1800d63d0
mov dword [rsp + 0x4e0], 0x11c
mov dword [rsp + 0x278], 0
mov dword [rsp + 0x4d0], 0
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x278], eax
cmp dword [rsp + 0x278], 0
jne 0x18003ea0f
mov dword [rsp + 0x4e0], 0x114
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x4d0], eax
cmp dword [rsp + 0x4d0], 0
jne 0x18003ea23
cmp dword [rsp + 0x278], 0
je 0x18003ea2d
cmp dword [rsp + 0x4f0], 2
je 0x18003ea6c
lea rdx, str.Unsupported_operating_system_
lea rcx, [rsp + 0x8b0]
call fcn.1800334a0
nop
lea rdx, [rsp + 0x8b0]
mov rcx, qword [rsp + 0xb60]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x8b0]
call fcn.18000165e
xor al, al
jmp 0x18003f87f
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x4a0]
call fcn.1800d63d0
lea rcx, [0x1801a9050]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
je 0x18003eac2
lea rcx, [rsp + 0x4a0]
call qword [rsp + 0x270]
jmp 0x18003ead0
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x4e4], 6
jne 0x18003eb36
cmp dword [rsp + 0x4e8], 2
jb 0x18003eb36
lea r8, [rsp + 0x4ec]
lea rdx, [rsp + 0x4e8]
lea rcx, [rsp + 0x4e4]
call fcn.180039360
test eax, eax
jne 0x18003eb36
xor eax, eax
test eax, eax
jne 0x18003eb36
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xa5
lea rdx, str.log.cpp
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x18003eb36
int3
mov byte [rsp + 0x390], 0
lea rax, [rsp + 0x391]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x280], 0
lea rax, [rsp + 0x281]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x160], 0
lea rax, [rsp + 0x161]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
cmp dword [rsp + 0x4e4], 0xa
jne 0x18003f197
cmp dword [rsp + 0x4e8], 0
jne 0x18003f197
mov qword [rsp + 0x600], 0
lea r8, [rsp + 0x600]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call fcn.180036610
test eax, eax
jne 0x18003f192
mov byte [rsp + 0x660], 0
lea rax, [rsp + 0x661]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
lea rax, [rsp + 0x660]
mov qword [rsp + 0x658], rax
mov dword [rsp + 0x608], 0
mov dword [rsp + 0x630], 0x200
lea rax, [rsp + 0x630]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x658]
lea r8, [rsp + 0x608]
lea rdx, str.ProductName
mov rcx, qword [rsp + 0x600]
call fcn.180036ab0
test eax, eax
jne 0x18003ecaa
mov rdx, qword [rsp + 0x658]
lea rcx, [rsp + 0x860]
call fcn.1800334a0
nop
lea rcx, [rsp + 0x860]
call fcn.180033c10
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
nop
lea rcx, [rsp + 0x860]
call fcn.18000165e
jmp 0x18003ecc3
lea r8, str.Microsoft_Windows_10
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
mov dword [rsp + 0x608], 0
mov dword [rsp + 0x630], 0x200
mov r8d, 0x200
xor edx, edx
mov rcx, qword [rsp + 0x658]
call fcn.1800d63d0
lea rcx, [rsp + 0x638]
call fcn.1800016a9
nop
lea rax, [rsp + 0x630]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x658]
lea r8, [rsp + 0x608]
lea rdx, str.DisplayVersion
mov rcx, qword [rsp + 0x600]
call fcn.180036ab0
test eax, eax
jne 0x18003ed81
mov rdx, qword [rsp + 0x658]
lea rcx, [rsp + 0x8d0]
call fcn.1800334a0
mov qword [rsp + 0xab8], rax
mov rax, qword [rsp + 0xab8]
mov qword [rsp + 0xac0], rax
mov rdx, qword [rsp + 0xac0]
lea rcx, [rsp + 0x638]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x8d0]
call fcn.18000165e
lea rcx, [rsp + 0x638]
call fcn.180001a19
test rax, rax
jbe 0x18003ee29
lea rdx, str.Version:
lea rcx, [rsp + 0x8f0]
call fcn.1800334a0
mov qword [rsp + 0xac8], rax
mov rax, qword [rsp + 0xac8]
mov qword [rsp + 0xad0], rax
lea r8, [rsp + 0x638]
mov rdx, qword [rsp + 0xad0]
lea rcx, [rsp + 0x910]
call fcn.180033cc0
mov qword [rsp + 0xad8], rax
mov rax, qword [rsp + 0xad8]
mov qword [rsp + 0xae0], rax
mov rdx, qword [rsp + 0xae0]
mov rcx, qword [rsp + 0xb80]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x910]
call fcn.18000165e
nop
lea rcx, [rsp + 0x8f0]
call fcn.18000165e
mov dword [rsp + 0x608], 0
mov dword [rsp + 0x630], 0x200
mov r8d, 0x200
xor edx, edx
mov rcx, qword [rsp + 0x658]
call fcn.1800d63d0
lea rcx, [rsp + 0x610]
call fcn.1800016a9
nop
lea rax, [rsp + 0x630]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x658]
lea r8, [rsp + 0x608]
lea rdx, [0x1801a9160]
mov rcx, qword [rsp + 0x600]
call fcn.180036ab0
test eax, eax
jne 0x18003f129
mov rdx, qword [rsp + 0x658]
lea rcx, [rsp + 0x930]
call fcn.1800334a0
mov qword [rsp + 0xae8], rax
mov rax, qword [rsp + 0xae8]
mov qword [rsp + 0xaf0], rax
mov rdx, qword [rsp + 0xaf0]
lea rcx, [rsp + 0x610]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x930]
call fcn.18000165e
lea rcx, [rsp + 0x610]
call fcn.180001a19
test rax, rax
jbe 0x18003efa7
lea rcx, [rsp + 0x610]
call fcn.180033c10
mov rcx, rax
call fcn.1800342f0
movzx eax, al
test eax, eax
je 0x18003efa7
lea rcx, [rsp + 0x610]
call fcn.180033c10
mov rcx, rax
call fcn.1800de9e0
mov dword [rsp + 0x880], eax
cmp dword [rsp + 0x880], 0x55f0
jl 0x18003efa7
lea rdx, [rsp + 0x390]
lea rcx, [rsp + 0x888]
call fcn.1800333e0
nop
xor r8d, r8d
lea rdx, [0x1801a9188]
lea rcx, [rsp + 0x888]
call fcn.180033570
mov qword [rsp + 0x8a8], rax
cmp qword [rsp + 0x8a8], 0xffffffffffffffff
je 0x18003ef9a
mov rax, qword [rsp + 0x8a8]
mov byte [rsp + rax + 0x391], 0x31
lea rcx, [rsp + 0x888]
call fcn.18000165e
lea rcx, [rsp + 0x638]
call fcn.180001a19
test rax, rax
jbe 0x18003f097
lea rdx, str.__Build:
lea rcx, [rsp + 0x950]
call fcn.1800334a0
mov qword [rsp + 0xaf8], rax
mov rax, qword [rsp + 0xaf8]
mov qword [rsp + 0xb00], rax
mov r8, qword [rsp + 0xb00]
mov rdx, qword [rsp + 0xb80]
lea rcx, [rsp + 0x970]
call fcn.180033cc0
mov qword [rsp + 0xb08], rax
mov rax, qword [rsp + 0xb08]
mov qword [rsp + 0xb10], rax
lea r8, [rsp + 0x610]
mov rdx, qword [rsp + 0xb10]
lea rcx, [rsp + 0x990]
call fcn.180033cc0
mov qword [rsp + 0xb18], rax
mov rax, qword [rsp + 0xb18]
mov qword [rsp + 0xb20], rax
mov rdx, qword [rsp + 0xb20]
mov rcx, qword [rsp + 0xb80]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x990]
call fcn.18000165e
nop
lea rcx, [rsp + 0x970]
call fcn.18000165e
nop
lea rcx, [rsp + 0x950]
call fcn.18000165e
jmp 0x18003f129
lea rdx, [0x1801a91b0]
lea rcx, [rsp + 0x9b0]
call fcn.1800334a0
mov qword [rsp + 0xb28], rax
mov rax, qword [rsp + 0xb28]
mov qword [rsp + 0xb30], rax
lea r8, [rsp + 0x610]
mov rdx, qword [rsp + 0xb30]
lea rcx, [rsp + 0x9d0]
call fcn.180033cc0
mov qword [rsp + 0xb38], rax
mov rax, qword [rsp + 0xb38]
mov qword [rsp + 0xb40], rax
mov rdx, qword [rsp + 0xb40]
mov rcx, qword [rsp + 0xb80]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x9d0]
call fcn.18000165e
nop
lea rcx, [rsp + 0x9b0]
call fcn.18000165e
movzx eax, word [rsp + 0x4a0]
cmp eax, 9
jne 0x18003f14e
lea r8, [0x1801a906c]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1800d9310
jmp 0x18003f177
movzx eax, word [rsp + 0x4a0]
test eax, eax
jne 0x18003f172
lea r8, [0x1801a90fc]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1800d9310
jmp 0x18003f177
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x610]
call fcn.18000165e
nop
lea rcx, [rsp + 0x638]
call fcn.18000165e
jmp 0x18003f79c
cmp dword [rsp + 0x4e4], 6
jne 0x18003f332
cmp dword [rsp + 0x4e8], 3
ja 0x18003f332
cmp dword [rsp + 0x4e8], 3
jne 0x18003f1fe
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
jne 0x18003f1e5
lea r8, str.Microsoft_Windows_8.1
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f1fe
lea r8, str.Microsoft_Windows_Server_2012_R2
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
cmp dword [rsp + 0x4e8], 2
jne 0x18003f249
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
jne 0x18003f230
lea r8, str.Microsoft_Windows_8
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f249
lea r8, str.Microsoft_Windows_Server_2012
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
cmp dword [rsp + 0x4e8], 1
jne 0x18003f294
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
jne 0x18003f27b
lea r8, str.Microsoft_Windows_7
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f294
lea r8, str.Microsoft_Windows_Server_2008_R2
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
cmp dword [rsp + 0x4e8], 0
jne 0x18003f2df
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
jne 0x18003f2c6
lea r8, str.Microsoft_Windows_Vista
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f2df
lea r8, str.Microsoft_Windows_Server_2008
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
movzx eax, word [rsp + 0x4a0]
cmp eax, 9
jne 0x18003f304
lea r8, str.64_bit
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1800d9310
jmp 0x18003f32d
movzx eax, word [rsp + 0x4a0]
test eax, eax
jne 0x18003f328
lea r8, str.32_bit
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1800d9310
jmp 0x18003f32d
mov byte [rsp + 0x50], 0
jmp 0x18003f71f
cmp dword [rsp + 0x4e4], 5
jne 0x18003f638
cmp dword [rsp + 0x4e8], 2
jne 0x18003f52b
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x18003f378
lea r8, str.Microsoft_Windows_Server_2003_R2
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f3e3
movzx eax, word [rsp + 0x5f8]
cmp eax, 0x2000
jne 0x18003f3a2
lea r8, str.Microsoft_Windows_Storage_Server_2003
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f3e3
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
jne 0x18003f3ca
lea r8, [0x1801a9310]
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
jmp 0x18003f3e3
lea r8, str.Microsoft_Windows_Server_2003
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
movzx eax, byte [rsp + 0x5fa]
movzx eax, word [rsp + 0x4a0]
cmp eax, 6
jne 0x18003f410
lea r8, str.for_Itanium_based_Systems
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1800d9310
jmp 0x18003f43a
movzx eax, word [rsp + 0x4a0]
cmp eax, 9
jne 0x18003f435
lea r8, str.x64_Edition
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1800d9310
jmp 0x18003f43a
mov byte [rsp + 0x50], 0
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
je 0x18003f517
movzx eax, word [rsp + 0x5f8]
and eax, 0x4000
test eax, eax
je 0x18003f47a
lea r8, str.Compute_Cluster_Edition
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f515
movzx eax, word [rsp + 0x5f8]
and eax, 0x80
test eax, eax
je 0x18003f4a6
lea r8, str.Data_Center_Edition
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f515
movzx eax, word [rsp + 0x5f8]
and eax, 2
test eax, eax
je 0x18003f4d0
lea r8, str.Enterprise_Edition
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f515
movzx eax, word [rsp + 0x5f8]
and eax, 0x400
test eax, eax
je 0x18003f4fc
lea r8, str.Web_Edition
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f515
lea r8, str.Standard_Edition
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f52b
lea rdx, [0x1801a93e8]
lea rcx, [rsp + 0x280]
call fcn.180040500
cmp dword [rsp + 0x4e8], 1
jne 0x18003f589
lea r8, str.Microsoft_Windows_XP
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
movzx eax, word [rsp + 0x5f8]
and eax, 0x200
test eax, eax
je 0x18003f575
lea rdx, str.Home_Edition
lea rcx, [rsp + 0x280]
call fcn.180040500
jmp 0x18003f589
lea rdx, [0x1801a9420]
lea rcx, [rsp + 0x280]
call fcn.180040500
cmp dword [rsp + 0x4e8], 0
jne 0x18003f633
lea r8, str.Microsoft_Windows_2000
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
je 0x18003f61f
movzx eax, word [rsp + 0x5f8]
and eax, 0x80
test eax, eax
je 0x18003f5e4
lea rdx, str.Data_Center_Server
lea rcx, [rsp + 0x280]
call fcn.180040500
jmp 0x18003f61d
movzx eax, word [rsp + 0x5f8]
and eax, 2
test eax, eax
je 0x18003f609
lea rdx, str.Advanced_Server
lea rcx, [rsp + 0x280]
call fcn.180040500
jmp 0x18003f61d
lea rdx, str.Server
lea rcx, [rsp + 0x280]
call fcn.180040500
jmp 0x18003f633
lea rdx, str.Professional
lea rcx, [rsp + 0x280]
call fcn.180040500
jmp 0x18003f71f
cmp dword [rsp + 0x4e4], 4
jne 0x18003f6e0
lea r8, str.Microsoft_Windows_NT
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1800d9310
cmp dword [rsp + 0x278], 0
je 0x18003f6d6
movzx eax, byte [rsp + 0x5fa]
cmp eax, 1
je 0x18003f6bb
movzx eax, word [rsp + 0x5f8]
and eax, 2
test eax, eax
je 0x18003f6a0
lea r8, str.Server_4.0__Enterprise_Edition
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f6b9
lea r8, str.Server_4.0
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f6d4
lea r8, str.WorkStation_4.0
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1800d9310
jmp 0x18003f6de
mov byte [rsp + 0x280], 0
jmp 0x18003f71f
lea rdx, str.Unknown_operating_system_
lea rcx, [rsp + 0x9f0]
call fcn.1800334a0
nop
lea rdx, [rsp + 0x9f0]
mov rcx, qword [rsp + 0xb60]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x9f0]
call fcn.18000165e
xor al, al
jmp 0x18003f87f
movzx eax, word [rsp + 0x5f8]
movzx ecx, byte [rsp + 0x5fa]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov eax, dword [rsp + 0x4e8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x4e4]
lea r8, str._d._d._d._d
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.1800d88e0
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0xa10]
call fcn.1800333e0
nop
lea rdx, [rsp + 0xa10]
mov rcx, qword [rsp + 0xb80]
call fcn.180001d6b
nop
lea rcx, [rsp + 0xa10]
call fcn.18000165e
lea rdx, [rsp + 0x390]
lea rcx, [rsp + 0xa30]
call fcn.1800333e0
nop
lea rdx, [rsp + 0xa30]
mov rcx, qword [rsp + 0xb60]
call fcn.180001d6b
nop
lea rcx, [rsp + 0xa30]
call fcn.18000165e
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0xa50]
call fcn.1800333e0
nop
lea rdx, [rsp + 0xa50]
mov rcx, qword [rsp + 0xb68]
call fcn.180001d6b
nop
lea rcx, [rsp + 0xa50]
call fcn.18000165e
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa70]
call fcn.1800333e0
nop
lea rdx, [rsp + 0xa70]
mov rcx, qword [rsp + 0xb70]
call fcn.180001d6b
nop
lea rcx, [rsp + 0xa70]
call fcn.18000165e
lea rdx, [rsp + 0x4f4]
lea rcx, [rsp + 0xa90]
call fcn.1800334a0
nop
lea rdx, [rsp + 0xa90]
mov rcx, qword [rsp + 0xb78]
call fcn.180001d6b
nop
lea rcx, [rsp + 0xa90]
call fcn.18000165e
mov al, 1
mov rcx, qword [rsp + 0xb48]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0xb50
pop rdi
ret