Function at 0x140012480
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.1400123f0
mov rbx, rax
mov qword [rbp + 0x10], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.1400122e0
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 0x14001252b
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.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rbp - 0x68]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400104c0
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.1400104c0
nop
lea rcx, [rsp + 0x58]
call fcn.14000f790
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140010520
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.D:_A__GRGW___
lea rcx, [rsp + 0x20]
call fcn.1400104c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010520
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x1400125c2
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.1400128ac
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x1400125e6
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.1400128ac
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140010520
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, [0x140016994]
lea rcx, [rsp + 0x20]
call fcn.1400104c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010520
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x140012641
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.1400128ac
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x140012665
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.1400128ac
mov dword [rbp + 0x50], 0x94
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp + 0x54], 6
jb 0x1400126f2
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.S:_ML__NW___LW_
lea rcx, [rsp + 0x20]
call fcn.1400104c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010520
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x1400126c9
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.1400128ac
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x1400126ed
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.1400128ac
lea rcx, [rsp + 0x58]
call fcn.14000f790
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x70]
mov edx, 1
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
jne 0x14001278e
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.unable_to_create_security_descriptor_from_string
lea rcx, [rsp + 0x20]
call fcn.1400104c0
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140003270
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.14000fe50
nop
lea rdx, [0x14001c2d8]
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 0x1400127b5
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
call fcn.1400128ac
mov r11, qword [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x68], rcx
test r11, r11
je 0x1400127d9
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
call fcn.1400128ac
nop
mov rax, qword [rbp - 0x10]
mov rcx, rsi
mov qword [rbp - 0x10], rcx
test rax, rax
je 0x1400127fb
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbp - 0x10]
call fcn.1400128ac
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x20], rsi
test rcx, rcx
je 0x140012816
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rsi, qword [rbp - 0x20]
mov rcx, rsi
call fcn.1400128ac
nop
mov rcx, rdi
call fcn.1400128ac
nop
cmp rbx, 0xffffffffffffffff
je 0x140012837
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r12
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140012880
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