Function at 0x14007f060
Capabilities:
Get session user name

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140081e30
mov rax, rsp
push r12
sub rsp, 0x410
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0x80004001
lea rdx, str._Utils::SystemSchedulerVista::CreatePeriodicTrigger_
mov qword [rsp + 0x68], rdx
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
cmp qword [0x140260548], 0
je 0x140081e9c
lea rcx, [rsp + 0x68]
call fcn.14007ed30
nop
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov rax, qword [rbx]
lea r8, [rsp + 0x48]
lea edx, [r12 + 9]
mov rcx, rbx
call qword [rax + 0x50]
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140081ef2
mov dword [rsp + 0x30], eax
lea rax, str.ITriggerCollection::Create
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xa0], xmm0
lea rdx, [0x1402523a8]
lea rcx, [rsp + 0xa0]
call sub.MSVCR90.dll__CxxThrowException
nop
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x1401b66b0]
call qword [rax]
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140081f47
mov dword [rsp + 0x30], eax
lea rax, str.ITrigger::QueryInterface_ILogonTrigger_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xb0], xmm0
lea rdx, [0x1402523a8]
lea rcx, [rsp + 0xb0]
call sub.MSVCR90.dll__CxxThrowException
mov rdi, qword [rsp + 0x40]
mov ecx, 0x18
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140081f8d
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.Trigger1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140081f90
mov ecx, 0x8007000e
call fcn.140155fb0
mov rbx, r12
mov qword [rsp + 0x30], rbx
test rbx, rbx
jne 0x140081fa5
mov ecx, 0x8007000e
call fcn.140155fb0
nop
mov rax, qword [rdi]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [rax + 0x48]
mov dword [rsp + 0x20], eax
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 0x10], eax
add eax, edi
jne 0x140081fe7
mov rcx, qword [rbx]
test rcx, rcx
je 0x140081fd1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140081fdf
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, dword [rsp + 0x20]
test eax, eax
jns 0x140082021
mov dword [rsp + 0x30], eax
lea rax, str.ILoggonTrigger::put_Id
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x1402523a8]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x50], 0x100
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x1f0]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
mov rsi, qword [rsp + 0x40]
mov ecx, 0x18
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140082087
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14008208a
mov ecx, 0x8007000e
call fcn.140155fb0
mov rbx, r12
mov qword [rsp + 0x58], rbx
test rbx, rbx
jne 0x14008209f
mov ecx, 0x8007000e
call fcn.140155fb0
nop
mov rax, qword [rsi]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [rax + 0xb8]
mov dword [rsp + 0x20], eax
lock xadd dword [rbx + 0x10], edi
add edi, 0xffffffff
jne 0x1400820e0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400820ca
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400820d8
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, dword [rsp + 0x20]
test eax, eax
jns 0x14008211a
mov dword [rsp + 0x30], eax
lea rax, str.ILoggonTrigger::put_UserId
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x1402523a8]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x20], r12d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14008212f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140082144
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x48], r12
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.14007ee60
mov eax, ebx
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret