Function at 0x1401171b0
Capabilities:
Get token privileges

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1401b8010]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rsi, r8
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0x160], eax
lea r9, [r12 - 1]
lea r8, [0x140179db0]
mov edx, 0x102
lea rcx, [rbp + 0x164]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x1401815c4]
mov edx, 0x104
lea rcx, [rbp + 0x164]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r9, [r12 - 1]
lea r8, [0x140179db0]
mov edx, 0x104
lea rcx, [rbp + 0x36c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
lea rbx, [0x140000000]
add ecx, eax
je 0x14011730b
mov dword [rsp + 0x50], r12d
call fcn.140005ad0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140117295
call fcn.140005ad0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x68], 0x20
mov edx, 1
lea rax, [rbp + 0x164]
mov qword [rsp + 0x30], rax
lea rax, str.____s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x36c]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rsp + 0x68]
movsx edx, dx
call fcn.140004c90
nop
mov qword [rsp + 0x48], r12
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x140117306
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x1401172f1
lock inc dword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1401174c3
lea rax, [rbx + 0x181628]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], 4
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logger_stream.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add ecx, eax
je 0x14011743b
mov dword [rsp + 0x60], r12d
call fcn.140005ad0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], 0xa
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140117418
call fcn.140005ad0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x140117437
mov rax, qword [rax + 0x58]
test rax, rax
je 0x140117437
call qword [case.0x140077645.0]
movzx ebx, al
jmp 0x14011743d
xor ebx, ebx
jmp 0x14011743d
xor bl, bl
mov eax, dword [rsp + 0x40]
test al, 8
je 0x14011747b
and eax, 0xfffffff7
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r12
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
js 0x140117476
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x140117461
lock inc dword [rsp + 0x60]
mov byte [rbp - 0x10], bl
mov dword [rbp - 0xc], 0x10
lea rax, [0x140179e90]
mov qword [rbp - 8], rax
test bl, bl
je 0x1401174a6
lea rdx, str.GetTokenInformation_should_fail__it_did_not
lea rcx, [rsp + 0x70]
call fcn.1400062b0
nop
lea rcx, [rbp + 8]
call fcn.140004f20
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov ebx, 0x1f
jmp 0x14011758f
mov ebx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov ebx, 8
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14011758f
mov qword [rsp + 0x20], rsi
mov r9d, dword [rsi]
mov r8, rax
lea edx, [rbx - 5]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140117589
lea r8, str.seccenter_launcher::get_token_info
lea edx, [rbx + 8]
lea rcx, [rbp + 0x68]
call fcn.140005190
mov rbx, rax
cmp byte [rax + 0x80], 0
je 0x140117537
lea rdx, str.GetTokenInformation_failed__err:
mov rcx, rax
call fcn.1400062b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbx + 0x80], 0
je 0x140117552
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
nop
lea rcx, [rbp + 0x100]
call fcn.140004f20
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14011758f
mov qword [r15], rdi
mov ebx, r12d
lea rcx, [rbp + 0x160]
call fcn.140004e30
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14007e250
add rsp, 0x690
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret