Function at 0x140029fe0
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 [0x140189090]
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 0x14002a0da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x14002a0d2
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x21]
call fcn.14002bbe0
nop
mov ebx, 1
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x14002a0ba
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_WTSQueryUserToken_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001efa0
nop
test bl, 1
jmp 0x14002a341
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 0x14002a1b6
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.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x14002a1ae
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x21]
call fcn.14002bbe0
nop
mov ebx, 2
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x14002a199
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_DuplicateTokenEx_failed__s
mov edx, ebx
mov rcx, rdi
call fcn.14001efa0
nop
test bl, 2
jmp 0x14002a341
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14002a2b1
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x14002a284
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.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x14002a27c
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x21]
call fcn.14002bbe0
nop
mov ebx, 8
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x14002a264
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_ImpersonateLoggedOnUser_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001efa0
nop
test bl, 8
jmp 0x14002a341
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rbp - 1]
call fcn.140029b30
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 0x14002a34e
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x14002a33e
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.14002bbe0
nop
mov ebx, 4
mov dword [rbp - 0x29], ebx
cmp qword [rax + 0x18], 0x10
jb 0x14002a326
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUser:_DuplicateTokenEx_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001efa0
nop
test bl, 4
je 0x14002a34c
lea rcx, [rbp - 0x21]
call fcn.1400091f0
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret