Function at 0x140029c60
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, r9d
mov rsi, r8
mov rdi, rdx
xor ebx, ebx
mov dword [rbp - 0x29], ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0xf], 0x18
mov qword [rbp + 7], rbx
lea rdx, [rbp + 7]
mov ecx, dword [rcx]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140029d5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 2
jl 0x140029d52
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x21]
call fcn.14002b860
nop
mov ebx, 1
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x140029d3a
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_WTSQueryUserToken_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001e890
nop
test bl, 1
jmp 0x140029fc1
mov qword [rbp - 1], rbx
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8, [rbp + 0xf]
mov edx, 0xf01ff
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140029e36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 2
jl 0x140029e2e
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x21]
call fcn.14002b860
nop
mov ebx, 2
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x140029e19
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_DuplicateTokenEx_failed__s
mov edx, ebx
mov rcx, rdi
call fcn.14001e890
nop
test bl, 2
jmp 0x140029fc1
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140029f31
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x140029f04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 2
jl 0x140029efc
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x21]
call fcn.14002b860
nop
mov ebx, 8
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x140029ee4
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_ImpersonateLoggedOnUser_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001e890
nop
test bl, 8
jmp 0x140029fc1
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rbp - 1]
call fcn.1400297b0
mov rbx, rax
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rax, rbx
jmp 0x140029fce
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 2
jl 0x140029fbe
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rdi, rax
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.14002b860
nop
mov ebx, 4
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x140029fa6
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_DuplicateTokenEx_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001e890
nop
test bl, 4
je 0x140029fcc
lea rcx, [rbp - 0x21]
call fcn.140009080
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400f9560
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret