Function at 0x14010e850
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 [0x140191010]
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, [0x14015cef0]
mov edx, 0x102
lea rcx, [rbp + 0x164]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x14016059c]
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, [0x14015cef0]
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
lea rbx, [0x140000000]
add ecx, eax
je 0x14010e9ab
mov dword [rsp + 0x50], r12d
call fcn.1400057e0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14010e935
call fcn.1400057e0
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.140004bd0
nop
mov qword [rsp + 0x48], r12
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x14010e9a6
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x14010e991
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 0x14010eb63
lea rax, [rbx + 0x160500]
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x14010eadb
mov dword [rsp + 0x60], r12d
call fcn.1400057e0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], 0xa
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14010eab8
call fcn.1400057e0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x14010ead7
mov rax, qword [rax + 0x58]
test rax, rax
je 0x14010ead7
call qword [case.0x14006aed5.0]
movzx ebx, al
jmp 0x14010eadd
xor ebx, ebx
jmp 0x14010eadd
xor bl, bl
mov eax, dword [rsp + 0x40]
test al, 8
je 0x14010eb1b
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 0x14010eb16
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x14010eb01
lock inc dword [rsp + 0x60]
mov byte [rbp - 0x10], bl
mov dword [rbp - 0xc], Ordinal_21
lea rax, [0x14015cfd0]
mov qword [rbp - 8], rax
test bl, bl
je 0x14010eb46
lea rdx, str.GetTokenInformation_should_fail__it_did_not
lea rcx, [rsp + 0x70]
call fcn.140005f70
nop
lea rcx, [rbp + 8]
call fcn.140004c30
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 0x14010ec2f
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 0x14010ec2f
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 0x14010ec29
lea r8, str.seccenter_launcher::get_token_info
lea edx, [rbx + 8]
lea rcx, [rbp + 0x68]
call fcn.140004ea0
mov rbx, rax
cmp byte [rax + 0x80], 0
je 0x14010ebd7
lea rdx, str.GetTokenInformation_failed__err:
mov rcx, rax
call fcn.140005f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbx + 0x80], 0
je 0x14010ebf2
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.140004c30
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 0x14010ec2f
mov qword [r15], rdi
mov ebx, r12d
lea rcx, [rbp + 0x160]
call fcn.1400091b0
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x690
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret