Function at 0x14001f7a0
Capabilities:
Get session information
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x370
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r12d, r12d
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r13d, [r12 + 1]
mov r8d, r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x14001f812
or rax, 0xffffffffffffffff
jmp 0x14001fbfd
mov dword [rsp + 0x78], 0x101
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [0x14036239c]
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], r13d
lea rax, [rbp + 0x50]
mov qword [rbp], rax
lea rcx, [rbp + 0x50]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001f84b
mov qword [rbp + 8], rax
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0xed64bab2
lea rax, [0x140361398]
mov qword [rsp + 0x20], rax
lea r9, str.OneDriveAuditor::GetUserLogOnTime
mov r8d, 0x9b
lea rdx, str.D:dbs_shodct0508_230334cmd6clientonedriveProductStandaloneUpdater_standaloneupdaterlibOneDriveAuditor.cpp
lea rcx, [rbp - 0x70]
call fcn.1400765c4
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.1400779b4
call fcn.140077500
mov r15, rdi
mov r14d, r12d
cmp dword [rsp + 0x68], r12d
jbe 0x14001fbef
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x6c], r12d
mov qword [rsp + 0x50], r12
mov eax, r14d
lea rsi, [rax + rax*2]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 0x18
mov rax, qword [rsp + 0x58]
mov edx, dword [rax + rsi*8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov cl, r13b
test eax, eax
jne 0x14001f980
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, str.error
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x10], 6
mov qword [rbp + 0x20], rbx
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x8d319cc9
lea rax, [0x140361398]
mov qword [rsp + 0x20], rax
lea r9, str.OneDriveAuditor::GetUserLogOnTime
mov r8d, 0xb2
lea rdx, str.D:dbs_shodct0508_230334cmd6clientonedriveProductStandaloneUpdater_standaloneupdaterlibOneDriveAuditor.cpp
lea rcx, [rbp - 0x40]
call fcn.1400765c4
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.1400779b4
call fcn.140077500
cmp ebx, 0x32
jne 0x14001fbe1
mov cl, r12b
mov qword [rbp - 0x10], r12
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
test cl, cl
je 0x14001f9c0
mov rdx, qword [rsp + 0x50]
add rdx, 0x82
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14001f9a8
lea rcx, [rbp - 0x10]
call fcn.14001b664
jmp 0x14001faba
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, 5
mov rax, qword [rsp + 0x58]
mov edx, dword [rax + rsi*8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov ebx, eax
test eax, eax
je 0x14001fa11
mov rdx, qword [rsp + 0x60]
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14001f9f3
lea rcx, [rbp - 0x10]
call fcn.14001b664
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
lea rax, str.success
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x10], 3
mov dword [rbp + 0x20], ebx
lea rax, [0x14036239c]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x30], r13d
mov qword [rbp + 0x40], rcx
test rcx, rcx
je 0x14001fa5b
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001fa4f
jmp 0x14001fa5e
mov rax, r12
mov qword [rbp + 0x48], rax
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x50f5c058
lea rax, [0x140361398]
mov qword [rsp + 0x20], rax
lea r9, str.OneDriveAuditor::GetUserLogOnTime
mov r8d, 0xcd
lea rdx, str.D:dbs_shodct0508_230334cmd6clientonedriveProductStandaloneUpdater_standaloneupdaterlibOneDriveAuditor.cpp
lea rcx, [rbp - 0x40]
call fcn.1400765c4
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.1400779b4
call fcn.140077500
mov r10, qword [rsp + 0x50]
test r10, r10
je 0x14001fbc9
cmp qword [r10 + 0xc8], r12
je 0x14001fbc9
lea rax, [rbp + 0x50]
mov rdx, rdi
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x14001fadc
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
mov rcx, qword [rbp]
cmp rcx, rdx
jne 0x14001fbc9
lea r9, [rbp + 0x50]
test rcx, rcx
je 0x14001fb4a
movzx edx, word [rax]
movzx r8d, word [rbp + 0x50]
cmp dx, r8w
jb 0x14001fbc9
lea r11, [rbp + 0x50]
sub rax, r11
cmp dx, r8w
ja 0x14001fbc9
cmp rcx, r13
je 0x14001fb4a
sub rcx, r13
add r9, 2
movzx edx, word [rax + r9]
movzx r8d, word [r9]
cmp dx, r8w
jae 0x14001fb27
jmp 0x14001fbc9
mov eax, dword [r10 + 0xc8]
mov dword [rsp + 0x70], eax
mov eax, dword [r10 + 0xcc]
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov qword [rbp - 0x58], r12
movzx eax, word [rbp - 0x80]
sub eax, 0x76c
mov dword [rbp - 0x5c], eax
movzx eax, word [rbp - 0x7e]
sub eax, r13d
mov dword [rbp - 0x60], eax
movzx eax, word [rbp - 0x7a]
mov dword [rbp - 0x64], eax
movzx eax, word [rbp - 0x78]
mov dword [rbp - 0x68], eax
movzx eax, word [rbp - 0x76]
mov dword [rbp - 0x6c], eax
movzx eax, word [rbp - 0x74]
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x50], edi
lea rcx, [rbp - 0x70]
call fcn.140050580
mov r15, rax
mov r10, qword [rsp + 0x50]
mov rcx, r10
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
lea rcx, [rbp - 0x10]
call fcn.14001b814
test r15, r15
jns 0x14001fbef
add r14d, r13d
cmp r14d, dword [rsp + 0x68]
jb 0x14001f8bf
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, r15
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret