Function at 0x140177290
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3a8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0xf0]
call fcn.14000a280
nop
lea rcx, [rsp + 0x110]
call fcn.14000a280
nop
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.140223e30
mov dword [rsp + 0x130], 0x11c
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x14017730f
mov dword [rsp + 0x58], 1
jmp 0x140177317
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14017738e
mov dword [rsp + 0x130], 0x114
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14017738e
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x3b0]
call fcn.14000a200
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x110]
call fcn.14000a800
nop
lea rcx, [rsp + 0xf0]
call fcn.14000a800
mov rax, qword [rsp + 0x3b0]
jmp 0x140177dd1
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140177d7a
cmp dword [rsp + 0x54], 1
je 0x140177ca2
cmp dword [rsp + 0x54], 2
je 0x1401773bb
jmp 0x140177d8e
mov eax, dword [rsp + 0x134]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 3
je 0x14017758c
cmp dword [rsp + 0x48], 4
je 0x14017758c
cmp dword [rsp + 0x48], 5
je 0x140177509
cmp dword [rsp + 0x48], 6
je 0x1401773f3
jmp 0x1401775a0
movzx eax, byte [rsp + 0x24a]
cmp eax, 1
jne 0x140177485
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x14017742d
cmp dword [rsp + 0x4c], 1
je 0x140177443
cmp dword [rsp + 0x4c], 2
je 0x140177459
cmp dword [rsp + 0x4c], 3
je 0x14017746f
jmp 0x140177483
lea rdx, str.Microsoft_Windows_Vista
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177483
lea rdx, str.Microsoft_Windows_7
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177483
lea rdx, str.Microsoft_Windows_8
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177483
lea rdx, str.Microsoft_Windows_8.1
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177504
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1401774ae
cmp dword [rsp + 0x50], 1
je 0x1401774c4
cmp dword [rsp + 0x50], 2
je 0x1401774da
cmp dword [rsp + 0x50], 3
je 0x1401774f0
jmp 0x140177504
lea rdx, [0x140319448]
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177504
lea rdx, str.Microsoft_Windows_Server_2008_R2
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177504
lea rdx, [0x1403194d8]
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177504
lea rdx, str.Microsoft_Windows_Server_2012_R2
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x1401775e8
cmp dword [rsp + 0x138], 2
jne 0x14017754c
movzx eax, byte [rsp + 0x24a]
cmp eax, 1
jne 0x140177536
lea rdx, [0x140319568]
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x14017754a
lea rdx, [0x1403195a0]
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x14017758a
cmp dword [rsp + 0x138], 1
jne 0x14017756c
lea rdx, [0x1403195e0]
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x14017758a
cmp dword [rsp + 0x138], 0
jne 0x14017758a
lea rdx, [0x140319618]
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x1401775e8
lea rdx, str.Microsoft_Windows_NT
lea rcx, [rsp + 0xf0]
call fcn.140015550
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x3b0]
call fcn.14000a200
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x110]
call fcn.14000a800
nop
lea rcx, [rsp + 0xf0]
call fcn.14000a800
mov rax, qword [rsp + 0x3b0]
jmp 0x140177dd1
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140177858
movzx eax, byte [rsp + 0x24a]
cmp eax, 1
jne 0x1401776a1
cmp dword [rsp + 0x134], 6
jne 0x140177641
cmp dword [rsp + 0x138], 0
jne 0x140177641
movzx eax, word [rsp + 0x248]
and eax, 0x200
test eax, eax
je 0x140177641
lea rdx, str._Home_Premium_Basic
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x14017769c
cmp dword [rsp + 0x134], 4
jne 0x140177661
lea rdx, str._Workstation_4.0
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x14017769c
movzx eax, word [rsp + 0x248]
and eax, 0x200
test eax, eax
je 0x140177688
lea rdx, str._Home_Edition
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x14017769c
lea rdx, str._Professional
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177853
movzx eax, byte [rsp + 0x24a]
cmp eax, 3
jne 0x140177853
cmp dword [rsp + 0x134], 6
jne 0x14017770b
movzx eax, word [rsp + 0x248]
and eax, 0x80
test eax, eax
je 0x1401776e3
lea rdx, str._Datacenter
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177706
movzx eax, word [rsp + 0x248]
and eax, 2
test eax, eax
je 0x140177706
lea rdx, str._Enterprise
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177853
cmp dword [rsp + 0x134], 5
jne 0x14017781c
cmp dword [rsp + 0x138], 2
jne 0x1401777b0
movzx eax, word [rsp + 0x248]
and eax, 0x80
test eax, eax
je 0x14017774e
lea rdx, str.__Datacenter_Edition
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x1401777ae
movzx eax, word [rsp + 0x248]
and eax, 2
test eax, eax
je 0x140177773
lea rdx, [0x140319770]
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x1401777ae
movzx eax, word [rsp + 0x248]
and eax, 0x400
test eax, eax
je 0x14017779a
lea rdx, str.__Web_Edition
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x1401777ae
lea rdx, str.__Standard_Edition
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x14017781a
cmp dword [rsp + 0x138], 0
jne 0x14017781a
movzx eax, word [rsp + 0x248]
and eax, 0x80
test eax, eax
je 0x1401777e1
lea rdx, str._Datacenter_Server
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x14017781a
movzx eax, word [rsp + 0x248]
and eax, 2
test eax, eax
je 0x140177806
lea rdx, [0x140319810]
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x14017781a
lea rdx, [0x140319838]
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177853
lea rdx, str._Server_4.0
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
movzx eax, word [rsp + 0x248]
and eax, 2
test eax, eax
je 0x140177853
lea rdx, str.__Enterprise_Edition
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177930
mov dword [rsp + 0x30], 2
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x110]
lea r8, str.ProductType
lea rdx, str.SYSTEMCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
call fcn.1400f6f60
lea rcx, [rsp + 0x110]
call fcn.14000c690
lea rdx, str.WINNT
mov rcx, rax
call fcn.140230fdc
test eax, eax
jne 0x1401778c6
lea rdx, str._Workstation
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177930
lea rcx, [rsp + 0x110]
call fcn.14000c690
lea rdx, str.SERVERNT
mov rcx, rax
call fcn.140230fdc
test eax, eax
jne 0x1401778fc
lea rdx, str._Server
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177930
lea rcx, [rsp + 0x110]
call fcn.14000c690
lea rdx, str.LANMANNT
mov rcx, rax
call fcn.140230fdc
test eax, eax
jne 0x140177930
lea rdx, str._Advanced_Server
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
cmp dword [rsp + 0x134], 4
jne 0x140177b23
lea rdx, str.Service_Pack_6
lea rcx, [rsp + 0x144]
call fcn.140230fdc
test eax, eax
jne 0x140177b23
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x1401779b0
lea rdx, str._Service_Pack_6a
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140177a36
lea rdx, [0x140318f6c]
lea rcx, [rsp + 0x2b0]
call fcn.1400179b0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x144]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x290]
call fcn.140024fb0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xf0]
call fcn.14001efa0
nop
lea rcx, [rsp + 0x290]
call fcn.14000a800
nop
lea rcx, [rsp + 0x2b0]
call fcn.14000a800
lea rcx, [rsp + 0x250]
call fcn.14000a280
nop
mov eax, dword [rsp + 0x13c]
and eax, 0xffff
mov dword [rsp + 0x60], eax
mov r8d, 0x200
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x250]
call fcn.1401831f0
movzx eax, al
test eax, eax
je 0x140177b11
lea r8, [rsp + 0x250]
lea rdx, [0x140319a60]
lea rcx, [rsp + 0x2f0]
call fcn.14001b910
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
lea r8, [0x140318f84]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x2d0]
call fcn.140024fb0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0xf0]
call fcn.14001efa0
nop
lea rcx, [rsp + 0x2d0]
call fcn.14000a800
nop
lea rcx, [rsp + 0x2f0]
call fcn.14000a800
nop
lea rcx, [rsp + 0x250]
call fcn.14000a800
jmp 0x140177c9d
lea rdx, [0x140318fb4]
lea rcx, [rsp + 0x330]
call fcn.1400179b0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r8, [rsp + 0x144]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x310]
call fcn.140024fb0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0xf0]
call fcn.14001efa0
nop
lea rcx, [rsp + 0x310]
call fcn.14000a800
nop
lea rcx, [rsp + 0x330]
call fcn.14000a800
lea rcx, [rsp + 0x270]
call fcn.14000a280
nop
mov eax, dword [rsp + 0x13c]
and eax, 0xffff
mov dword [rsp + 0x64], eax
mov r8d, 0x200
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x270]
call fcn.1401831f0
movzx eax, al
test eax, eax
je 0x140177c90
lea r8, [rsp + 0x270]
lea rdx, str.__Build
lea rcx, [rsp + 0x370]
call fcn.14001b910
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
lea r8, [0x140318fec]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x350]
call fcn.140024fb0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xf0]
call fcn.14001efa0
nop
lea rcx, [rsp + 0x350]
call fcn.14000a800
nop
lea rcx, [rsp + 0x370]
call fcn.14000a800
nop
lea rcx, [rsp + 0x270]
call fcn.14000a800
jmp 0x140177d8e
cmp dword [rsp + 0x134], 4
jne 0x140177d78
cmp dword [rsp + 0x138], 0
jne 0x140177d10
lea rdx, str.Microsoft_Windows_95
lea rcx, [rsp + 0xf0]
call fcn.140015550
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x144]
cmp eax, 0x43
je 0x140177cfa
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x144]
cmp eax, 0x42
jne 0x140177d0e
lea rdx, str._OSR2
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177d78
cmp dword [rsp + 0x138], 0xa
jne 0x140177d5a
lea rdx, str.Microsoft_Windows_98
lea rcx, [rsp + 0xf0]
call fcn.140015550
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x144]
cmp eax, 0x41
jne 0x140177d58
lea rdx, [0x140319b00]
lea rcx, [rsp + 0xf0]
call fcn.14001efd0
jmp 0x140177d78
cmp dword [rsp + 0x138], 0x5a
jne 0x140177d78
lea rdx, str.Microsoft_Windows_Me
lea rcx, [rsp + 0xf0]
call fcn.140015550
jmp 0x140177d8e
lea rdx, str.Microsoft_Win32s
lea rcx, [rsp + 0xf0]
call fcn.140015550
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x3b0]
call fcn.14000a200
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x110]
call fcn.14000a800
nop
lea rcx, [rsp + 0xf0]
call fcn.14000a800
mov rax, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x3a8
ret