Function at 0x140012ef0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x118]
sub rsp, 0x200
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r13, rcx
xor esi, esi
mov dword [rcx + 0x10], esi
mov dword [rcx], 0x18
call fcn.140012e60
mov rbx, rax
mov qword [rbp + 0x10], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.140012d50
mov rdi, rax
mov qword [rbp + 0x18], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
call sub.ADVAPI32.dll_ConvertSidToStringSidA
xor r9d, r9d
or r8, 0xffffffffffffffff
test eax, eax
jne 0x140012f9b
lea rcx, vtable.RSException.0
mov qword [rbp - 0x68], rcx
lea rdx, str.unable_to_get_string_version_of_current_token_sid
lea rcx, [rbp - 0x60]
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rbp - 0x68]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.140010f30
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, 1
or r8, 0xffffffffffffffff
lea rdx, [0x14001696c]
lea rcx, [rsp + 0x58]
call fcn.140010f30
nop
lea rcx, [rsp + 0x58]
call fcn.140010200
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140010f90
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.D:_A__GRGW___
lea rcx, [rsp + 0x20]
call fcn.140010f30
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010f90
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x140013032
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.14001331c
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x140013056
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.14001331c
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140010f90
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, [0x140016994]
lea rcx, [rsp + 0x20]
call fcn.140010f30
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010f90
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x1400130b1
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.14001331c
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x1400130d5
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.14001331c
mov dword [rbp + 0x50], 0x94
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp + 0x54], 6
jb 0x140013162
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, [0x1400169e0]
lea rcx, [rsp + 0x20]
call fcn.140010f30
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010f90
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x140013139
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.14001331c
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x14001315d
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.14001331c
lea rcx, [rsp + 0x58]
call fcn.140010200
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x70]
mov edx, 1
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
jne 0x1400131fe
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.unable_to_create_security_descriptor_from_string
lea rcx, [rsp + 0x20]
call fcn.140010f30
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140003dc0
nop
lea rcx, vtable.RSException.0
mov qword [rbp - 0x68], rcx
lea rcx, [rbp - 0x60]
mov qword [rbp], rcx
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400108c0
nop
lea rdx, [0x14001c678]
lea rcx, [rbp - 0x68]
call sub.MSVCR100.dll__CxxThrowException
nop
mov r12, qword [rbp - 0x70]
mov qword [r13 + 8], r12
mov rax, qword [rsp + 0x78]
mov rcx, rsi
mov qword [rsp + 0x78], rcx
test rax, rax
je 0x140013225
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
call fcn.14001331c
mov r11, qword [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x68], rcx
test r11, r11
je 0x140013249
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
call fcn.14001331c
nop
mov rax, qword [rbp - 0x10]
mov rcx, rsi
mov qword [rbp - 0x10], rcx
test rax, rax
je 0x14001326b
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbp - 0x10]
call fcn.14001331c
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x20], rsi
test rcx, rcx
je 0x140013286
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rsi, qword [rbp - 0x20]
mov rcx, rsi
call fcn.14001331c
nop
mov rcx, rdi
call fcn.14001331c
nop
cmp rbx, 0xffffffffffffffff
je 0x1400132a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r12
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400132f0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret