Function at 0x14008ccd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x350
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
call fcn.1400264a0
movzx r15d, al
mov byte [rsp + 0x40], al
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14008cd34
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14008d0c3
mov rcx, rdi
call fcn.14008c950
mov rbx, rax
mov rcx, rax
call fcn.1400299e0
test al, al
je 0x14008d0c3
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], r13b
mov r8d, 0x142
lea rdx, str._echo_off_r_nset_scriptpath_0_r_nset_count0_r_ncall_:waitforpid__pid_r_nrd__s_q___path_r_ndel__f_q___scriptpath___r_ngoto_:eof_r_n:waitforpid_r_ntasklist__fi__pid_eq__1__2__nul__find___1____nul_r_nif__ERRORLEVEL___0___r_n____timeout__t_2__nobreak___nul_r_n____set__a_countcount1_r_n____if__count__LEQ_5_goto_:waitforpid_r_n__r_ngoto_:eof_r_n
lea rcx, [rbp - 0x38]
call fcn.140008ab0
nop
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14003cb50
mov rbx, rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov r8d, 6
lea rdx, str._pid
lea rcx, [rsp + 0x48]
call fcn.140008ab0
nop
mov r9, rbx
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14002d910
mov rbx, rax
lea rax, [rbp - 0x38]
cmp rax, rbx
je 0x14008ce08
lea rcx, [rbp - 0x38]
call fcn.140008a50
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
lea rcx, [rbp - 0x78]
call fcn.140008a50
nop
lea rcx, [rsp + 0x48]
call fcn.140008a50
nop
lea rcx, [rsp + 0x68]
call fcn.140008a50
nop
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
mov dword [rsp + 0x44], 1
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14001a4c0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov r8d, 7
lea rdx, str._path
lea rcx, [rsp + 0x48]
call fcn.140008ab0
nop
mov rbx, 0xffffffffffffffff
mov esi, ebx
mov rdi, rbx
mov r14, r13
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.1400075e0
nop
cmp qword [rbp - 0x28], 0
je 0x14008cf62
mov r12, qword [rsp + 0x58]
test r12, r12
je 0x14008cf62
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
nop word [rax + rax]
lea r9, [rsp + 0x48]
cmp r13, 0x10
cmovae r9, qword [rsp + 0x48]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x20], r12
mov r8, r14
mov rdx, qword [rbp - 0x48]
call fcn.1400275e0
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14008cf3b
lea r9, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r9, qword [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14002e860
mov r15, qword [rsp + 0x78]
add r14, r15
test esi, esi
jle 0x14008cf2d
dec esi
test esi, esi
jle 0x14008cf3b
cmp rdi, 0xffffffffffffffff
je 0x14008cec0
add rdi, r15
cmp r14, rdi
jbe 0x14008cec0
movups xmm6, xmmword [rbp - 0x58]
movups xmmword [rbp - 0x78], xmm6
movups xmm7, xmmword [rbp - 0x48]
xor r13d, r13d
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], r13b
movzx r15d, byte [rsp + 0x40]
jmp 0x14008cf7e
movups xmm6, xmmword [rbp - 0x58]
movups xmmword [rbp - 0x78], xmm6
movups xmm7, xmmword [rbp - 0x48]
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], 0
lea rcx, [rbp - 0x58]
call fcn.140008a50
lea rcx, [rbp - 0x38]
call fcn.140008a50
movups xmmword [rbp - 0x38], xmm6
movups xmmword [rbp - 0x28], xmm7
movdqa xmm0, xmmword [0x1401562d0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
lea rcx, [rbp - 0x78]
call fcn.140008a50
nop
lea rcx, [rsp + 0x48]
call fcn.140008a50
nop
lea rcx, [rsp + 0x68]
call fcn.140008a50
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.1400ec680
lea rdx, [rbp + 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rbp - 8], r13
mov qword [rbp], 7
mov word [rbp - 0x18], r13w
lea rax, [rbp + 0x10]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14008d000
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.1400088b0
nop
lea r9, str..bat
lea r8, [0x140154de8]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x18]
call fcn.140022980
nop
lea rcx, [rbp - 0x18]
cmp rcx, rax
je 0x14008d05b
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14008d04e
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x78]
call fcn.140008840
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x18]
call fcn.140023910
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x18]
call fcn.1400296b0
nop
lea rcx, [rbp - 0x58]
call fcn.140024560
nop
lea rcx, [rbp - 0x18]
call fcn.140008840
nop
lea rcx, [rbp - 0x38]
call fcn.140008a50
movzx eax, r15b
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret