Function at 0x140012fb0
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.140012f20
mov rbx, rax
mov qword [rbp + 0x10], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.140012e10
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 0x14001305b
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.140010e50
lea rdx, [0x14001c640]
lea rcx, [rbp - 0x68]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.140010e50
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.140010e50
nop
lea rcx, [rsp + 0x58]
call fcn.140010200
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140010eb0
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.D:_A__GRGW___
lea rcx, [rsp + 0x20]
call fcn.140010e50
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010eb0
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x1400130f2
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.1400133dc
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x140013116
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.1400133dc
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140010eb0
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, [0x140016994]
lea rcx, [rsp + 0x20]
call fcn.140010e50
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010eb0
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x140013171
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.1400133dc
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x140013195
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.1400133dc
mov dword [rbp + 0x50], 0x94
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp + 0x54], 6
jb 0x140013222
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, [0x1400169e0]
lea rcx, [rsp + 0x20]
call fcn.140010e50
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140010eb0
nop
mov rax, qword [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x1400131f9
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x40]
call fcn.1400133dc
mov r11, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], rcx
test r11, r11
je 0x14001321d
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x30]
call fcn.1400133dc
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 0x1400132be
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.unable_to_create_security_descriptor_from_string
lea rcx, [rsp + 0x20]
call fcn.140010e50
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, [0x14001c640]
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 0x1400132e5
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
call fcn.1400133dc
mov r11, qword [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x68], rcx
test r11, r11
je 0x140013309
mov rcx, r11
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
call fcn.1400133dc
nop
mov rax, qword [rbp - 0x10]
mov rcx, rsi
mov qword [rbp - 0x10], rcx
test rax, rax
je 0x14001332b
mov rcx, rax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbp - 0x10]
call fcn.1400133dc
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x20], rsi
test rcx, rcx
je 0x140013346
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rsi, qword [rbp - 0x20]
mov rcx, rsi
call fcn.1400133dc
nop
mov rcx, rdi
call fcn.1400133dc
nop
cmp rbx, 0xffffffffffffffff
je 0x140013367
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r12
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400133b0
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