Function at 0x1401f2074
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rbx, rcx
and dword [rbp + 0x38], 0
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1401f2296
cmp byte [rax + 1], 0
jne 0x1401f2296
mov rcx, qword [rcx + 0x10]
add rcx, 0x20
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x50]
call fcn.14000c3d8
nop
mov edx, 1
mov dword [rbp + 0x38], edx
xor r8d, r8d
lea rdi, [0x14036f998]
mov rsi, qword [rax]
lea ecx, [rdx + 1]
lea r14d, [rdx - 2]
repe cmpsw word [rsi], word [rdi]
je 0x1401f20ec
sbb r8d, r8d
sbb r8d, r14d
test r8d, r8d
setne al
test al, al
je 0x1401f213f
mov rcx, qword [rbx + 0x10]
add rcx, 0x20
mov r8d, 2
lea rdx, [rbp + 0x48]
call fcn.140024c5c
mov edx, 3
mov dword [rbp + 0x38], edx
xor r8d, r8d
lea rdi, [0x140352420]
mov rsi, qword [rax]
lea ecx, [rdx - 1]
repe cmpsw word [rsi], word [rdi]
je 0x1401f2130
sbb r8d, r8d
sbb r8d, r14d
test r8d, r8d
setne al
test al, al
je 0x1401f213f
mov dil, 1
jmp 0x1401f2142
xor dil, dil
test dl, 2
je 0x1401f2170
and edx, 0xfffffffd
mov dword [rbp + 0x38], edx
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401f216d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, dword [rbp + 0x38]
test dl, 1
je 0x1401f2195
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401f2195
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1401f21e5
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
add r8, 0x20
add rdx, 0x68
lea rcx, [rbp - 0x18]
call fcn.140004278
nop
mov rcx, qword [rbx + 0x10]
add rcx, 0x20
mov rdx, rax
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401f21e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401f227e
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x40], rax
mov r8, qword [rbx + 0x10]
mov r8, qword [r8 + 0x20]
lea rdx, str.__NoLogo___s_
lea rcx, [rbp + 0x40]
call fcn.14000d9c8
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov dword [rsp + 0x28], 2
and qword [rsp + 0x20], 0
mov rdi, qword [rbp + 0x40]
mov r9, rdi
lea r8, str.cscript.exe
lea rdx, [0x14034e618]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401f2296
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401f2296
cmp qword [rbx + 0x40], 0
je 0x1401f2296
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
lea rdx, [rbx + 0x10]
call qword [rax + 0x80]
add rsp, 0x48
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret