Function at 0x140029b30
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 [0x140189090]
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 0x140029c09
mov rbx, r15
sub rbx, rsi
sar rbx, 5
mov rdx, rbx
call fcn.140024110
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.140023f80
add rdi, 0x20
mov qword [rbp - 0x40], rdi
add rsi, 0x20
cmp rsi, r15
jne 0x140029be0
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.14002e320
mov qword [rsp + 0x78], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
mov r8d, 1
lea rdx, [0x14015c274]
lea rcx, [rsp + 0x78]
call fcn.140009050
nop
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov r8d, 1
lea rdx, [0x14015c278]
lea rcx, [rbp - 0x48]
call fcn.140009050
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 8]
call fcn.140028630
nop
lea rcx, [rbp - 0x48]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x78]
call fcn.140008fe0
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 0x140029d7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 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 0x140029d62
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 rbx, rax
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.14002bbe0
nop
mov r12d, 1
mov dword [rsp + 0x60], r12d
cmp qword [rax + 0x18], 0x10
jb 0x140029d4a
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_RunAsUserInternal:_CreateEnvironmentBlock_failed__s
mov edx, 2
mov rcx, rbx
call fcn.14001efa0
nop
test r12b, 1
je 0x140029fa5
lea rcx, [rsp + 0x78]
call fcn.1400091f0
jmp 0x140029fa5
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 0x140029f44
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 0x140029e49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140029e58
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 [0x140166ac0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 8]
call fcn.14001b3f0
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 0x140029f28
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
lea rbx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rbx, qword [rbp - 0x48]
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.14002bbe0
nop
mov r12d, 2
mov dword [rsp + 0x60], r12d
cmp qword [rax + 0x18], 0x10
jb 0x140029f0d
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.14001efa0
nop
test r12b, 2
je 0x140029f39
lea rcx, [rsp + 0x78]
call fcn.1400091f0
nop
lea rcx, [rbp - 0x48]
call fcn.1400091f0
jmp 0x140029fa5
mov r14d, dword [rbp - 0x50]
test bl, 2
je 0x140029f86
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 9
lea r9, str.ProcessManager
xor r8d, r8d
lea rdx, [0x140028a00]
mov rcx, rax
call fcn.140027650
mov r8, qword [rbp - 0x60]
mov edx, r14d
mov rcx, rax
call fcn.140028ae0
jmp 0x140029f90
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.140008fe0
nop
lea rcx, [rbp - 0x28]
call fcn.140024040
mov rax, r14
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret