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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r12d, edx
mov rsi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400c57a8
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c57da
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp + 0x7f], rax
mov rdx, rsi
lea rcx, [rbp + 0x7f]
call fcn.14002e390
xor r15d, r15d
lea r14, [r15 - 1]
test al, al
jne 0x1400c536a
test rsi, rsi
jne 0x1400c534a
mov eax, r15d
jmp 0x1400c535a
mov rax, r14
nop dword [rax]
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1400c5350
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp + 0x7f]
call fcn.140010860
nop
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c57e5
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp + 0x77], rax
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c57f0
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp - 0x51], rax
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rbx, rax
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c57fb
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp - 0x61], rax
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.14002e390
test al, al
jne 0x1400c540a
test rbx, rbx
jne 0x1400c53ed
mov eax, r15d
jmp 0x1400c53fa
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400c53f0
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.140010860
nop
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c5806
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp - 0x59], rax
lea rbx, str..lnk
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.14002e390
test al, al
jne 0x1400c545d
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400c5443
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.140010860
nop
mov rdx, qword [rbp - 0x61]
test rdx, rdx
je 0x1400c5811
mov rbx, qword [rbp - 0x59]
mov rcx, rbx
call fcn.140299718
test eax, eax
sete dil
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c5496
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1400c557a
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c581c
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp - 0x49], rax
mov rbx, qword [rbp + 0x77]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400c54e8
mov edx, 0x104
lea rcx, [rbp + 0x77]
call fcn.14000bdf0
mov rbx, qword [rbp + 0x77]
mov dword [rsp + 0x20], 1
mov r9, rbx
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 0x7f]
call fcn.1400bac00
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14028c900
test eax, eax
js 0x1400c5827
cmp eax, dword [rbx - 0xc]
jg 0x1400c5827
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
mov rax, qword [rbp + 0x7f]
cmp dword [rax - 0x10], 0
jne 0x1400c555c
test rsi, rsi
jne 0x1400c553f
mov eax, r15d
jmp 0x1400c554c
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400c5542
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp + 0x7f]
call fcn.140010860
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c557a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp + 0x77]
cmp dword [rdi - 0x10], 0
jne 0x1400c5608
test rsi, rsi
jne 0x1400c5592
mov eax, r15d
jmp 0x1400c559f
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400c5595
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp + 0x77]
call fcn.140010860
mov rdi, qword [rbp + 0x77]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400c55d8
mov edx, 0x104
lea rcx, [rbp + 0x77]
call fcn.14000bdf0
mov rdi, qword [rbp + 0x77]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14028c900
test eax, eax
js 0x1400c57c4
cmp eax, dword [rdi - 0xc]
jg 0x1400c57c4
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r15w
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400c5832
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp - 0x69], rax
mov rdx, rsi
lea rcx, [rbp - 0x69]
call fcn.14002e390
test al, al
jne 0x1400c565e
test rsi, rsi
jne 0x1400c5641
mov eax, r15d
jmp 0x1400c564e
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400c5644
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x69]
call fcn.140010860
nop
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp - 0x35]
call fcn.140289490
mov dword [rbp - 0x39], reloc.WS2_32.dll_WSASetLastError
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400c56d0
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or ecx, eax
jge 0x1400c56ab
mov edx, 0x104
lea rcx, [rbp - 0x69]
call fcn.14000bdf0
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [rbx - 0xc], 0x104
jl 0x1400c57cf
mov dword [rbx - 0x10], 0x104
mov word [rbx + 0x208], r15w
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x21], rax
mov dword [rbp - 9], 1
mov dword [rbp - 0x35], 0x440
mov qword [rbp - 0x11], rdi
lea rax, str.runas
test r12d, r12d
cmovne r15, rax
mov qword [rbp - 0x29], r15
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x39]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
lea rdx, [rbx - 0x18]
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400c572c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c574b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c576a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c5789
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400c57a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000adf0
nop
mov ecx, 0x80070057
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80070057
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
int3