Function at 0x1400297b0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov ebx, r9d
mov dword [rsp + 0x68], ebx
mov rax, rdx
mov qword [rsp + 0x70], rdx
mov r13, rcx
xor r14d, r14d
mov r12d, r14d
mov dword [rsp + 0x60], r14d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r14
mov rsi, qword [r8]
mov r15, qword [r8 + 8]
cmp rsi, r15
je 0x140029889
mov rbx, r15
sub rbx, rsi
sar rbx, 5
mov rdx, rbx
call fcn.1400239d0
mov rdi, rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
shl rbx, 5
add rbx, rax
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
nop word [rax + rax]
mov rdx, rsi
mov rcx, rdi
call fcn.140023840
add rdi, 0x20
mov qword [rbp - 0x40], rdi
add rsi, 0x20
cmp rsi, r15
jne 0x140029860
mov qword [rbp - 0x20], rdi
mov ebx, dword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov r9, rax
mov r8, qword [rbp - 0x28]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x28]
call fcn.14002dec0
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
mov r8d, 1
lea rdx, [0x14015d2c4]
lea rcx, [rsp + 0x78]
call fcn.140008ee0
nop
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov r8d, 1
lea rdx, [0x14015d2c8]
lea rcx, [rbp - 0x48]
call fcn.140008ee0
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 8]
call fcn.1400282b0
nop
lea rcx, [rbp - 0x48]
call fcn.140008e70
nop
lea rcx, [rsp + 0x78]
call fcn.140008e70
mov qword [rbp - 0x68], r14
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x68]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1400299fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 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 0x1400299e2
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 rbx, rax
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.14002b860
nop
mov r12d, 1
mov dword [rsp + 0x60], r12d
cmp qword [rax + 0x18], 0x10
jb 0x1400299ca
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUserInternal:_CreateEnvironmentBlock_failed__s
mov edx, 2
mov rcx, rbx
call fcn.14001e890
nop
test r12b, 1
je 0x140029c25
lea rcx, [rsp + 0x78]
call fcn.140009080
jmp 0x140029c25
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
xorps xmm1, xmm1
movups xmmword [rbp + 0x34], xmm1
movups xmmword [rbp + 0x44], xmm1
movups xmmword [rbp + 0x54], xmm1
movups xmmword [rbp + 0x64], xmm1
movups xmmword [rbp + 0x74], xmm1
movups xmmword [rbp + 0x84], xmm1
mov dword [rbp + 0x94], eax
mov dword [rbp + 0x30], 0x68
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rbp - 0x10], 0x18
lea r8, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae r8, qword [rbp + 8]
test bl, 1
mov ecx, 0x8000420
mov eax, 0x430
cmovne ecx, eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140029bc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140029ac9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140029ad8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 8]
call fcn.14001b2c0
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 0x140029ba8
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
lea rbx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rbx, qword [rbp - 0x48]
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.14002b860
nop
mov r12d, 2
mov dword [rsp + 0x60], r12d
cmp qword [rax + 0x18], 0x10
jb 0x140029b8d
mov rax, qword [rax]
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUserInternal:_CreateProcessAsUser_failed__s_r_n_s
mov edx, r12d
mov rcx, rdi
call fcn.14001e890
nop
test r12b, 2
je 0x140029bb9
lea rcx, [rsp + 0x78]
call fcn.140009080
nop
lea rcx, [rbp - 0x48]
call fcn.140009080
jmp 0x140029c25
mov r14d, dword [rbp - 0x50]
test bl, 2
je 0x140029c06
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 9
lea r9, str.ProcessManager
xor r8d, r8d
lea rdx, [0x140028680]
mov rcx, rax
call fcn.1400272d0
mov r8, qword [rbp - 0x60]
mov edx, r14d
mov rcx, rax
call fcn.140028760
jmp 0x140029c10
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop
lea rcx, [rbp + 8]
call fcn.140008e70
nop
lea rcx, [rbp - 0x28]
call fcn.140023900
mov rax, r14
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400f9560
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret