Function at 0x140013dd0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2e8
mov qword [rsp + 0x2c0], 0xfffffffffffffffe
mov rax, qword [0x140021080]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x2f0]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x2f0]
mov dword [rax], 0x18
call fcn.140014210
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005dc0
nop
lea rcx, [rsp + 0x30]
call fcn.140005dd0
mov edx, 1
mov rcx, rax
call fcn.140014120
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400142d0
nop
lea rcx, [rsp + 0x28]
call fcn.1400110d0
lea rdx, [rsp + 0x38]
mov rcx, qword [rax]
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
jne 0x140013e92
lea rdx, str.unable_to_get_string_version_of_current_token_sid
lea rcx, [rsp + 0x158]
call fcn.140001480
lea rdx, [0x14001f248]
lea rcx, [rsp + 0x158]
call sub.MSVCR90.dll__CxxThrowException
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x128]
call fcn.14000e3c0
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, 0xffffffffffffffff
lea rdx, [0x140019d9c]
lea rcx, [rsp + 0xf8]
call fcn.140014280
nop
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xf8]
call fcn.140005b50
xor r9d, r9d
mov r8, 0xffffffffffffffff
lea rdx, str.D:_A__GRGW___
lea rcx, [rsp + 0x190]
call fcn.14000e3c0
nop
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xf8]
call fcn.140005b50
nop
lea rcx, [rsp + 0x190]
call fcn.140001300
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xf8]
call fcn.140005b50
xor r9d, r9d
mov r8, 0xffffffffffffffff
lea rdx, [0x140019db0]
lea rcx, [rsp + 0x1c0]
call fcn.14000e3c0
nop
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xf8]
call fcn.140005b50
nop
lea rcx, [rsp + 0x1c0]
call fcn.140001300
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x54], 6
jb 0x140013fe0
xor r9d, r9d
mov r8, 0xffffffffffffffff
lea rdx, str.S:_ML__NW___LW_
lea rcx, [rsp + 0x1f0]
call fcn.14000e3c0
nop
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0xf8]
call fcn.140005b50
nop
lea rcx, [rsp + 0x1f0]
call fcn.140001300
lea rcx, [rsp + 0xf8]
call fcn.140005b70
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
jne 0x1400140a8
xor r9d, r9d
mov r8, 0xffffffffffffffff
lea rdx, str.unable_to_create_security_descriptor_from_string
lea rcx, [rsp + 0x258]
call fcn.14000e3c0
nop
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0x258]
lea rcx, [rsp + 0x288]
call fcn.14000cd70
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x2d0], rax
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x220]
call fcn.140005b80
lea rdx, [0x14001f248]
lea rcx, [rsp + 0x220]
call sub.MSVCR90.dll__CxxThrowException
nop
lea rcx, [rsp + 0x288]
call fcn.140001300
lea rcx, [rsp + 0x258]
call fcn.140001300
nop
mov rcx, qword [rsp + 0x2f0]
mov rax, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x2b8], rax
lea rcx, [rsp + 0xf8]
call fcn.140001300
nop
lea rcx, [rsp + 0x128]
call fcn.140001300
nop
lea rcx, [rsp + 0x28]
call fcn.1400142f0
nop
lea rcx, [rsp + 0x30]
call fcn.140005de0
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.1400144e0
add rsp, 0x2e8
ret