Function at 0x1401372a0
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
mov rbx, rcx
test r8, r8
je 0x140137401
js 0x1401375de
mov r15, r8
mov rdi, rdx
movzx eax, byte [0x14035b110]
xor ecx, ecx
mov rdx, r8
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1401375e3
mov rsi, rax
mov rcx, rax
mov rdx, rdi
mov r8, r15
call sym.memcpy
movzx eax, byte [0x14035b110]
xor ecx, ecx
mov rdx, r15
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1401375f0
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8, r15
call sym.memcpy
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r15
mov byte [rbp - 0x40], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rcx, [rbp - 0x58]
mov r8d, 1
call sym.std::path::PathBuf::_push::h1f56b64c1e7d68d4
mov r13, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
lea rcx, [rbp + 0x210]
mov rdx, rdi
call sym.std::sys::pal::windows::to_u16s::inner::h5f020a6197ca37d5
movabs r12, 0x8000000000000000
mov rax, qword [rbp + 0x210]
mov r14, qword [rbp + 0x218]
cmp rax, r12
je 0x1401373bd
mov rcx, qword [rbp + 0x220]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rcx
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp - 0x58]
call sym.std::sys::path::windows::get_long_path::h3c68a71231fe55b9
mov rax, qword [rbp + 0x1f8]
mov r14, qword [rbp + 0x200]
cmp rax, r12
jne 0x140137429
mov qword [rbx], r14
mov dword [rbx + 0x10], 2
test r13, r13
je 0x1401373dd
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rsi
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140137fbc
movabs rax, 0x300000002
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x228], rax
lea r12, [rbp - 0x58]
mov r8d, 0x250
mov rcx, r12
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r14
mov rdx, r12
call sub.kernel32.dll_FindFirstFileW
cmp rax, 0xffffffffffffffff
je 0x1401374f0
mov r12, rax
mov qword [rbp + 0x230], r13
movzx eax, byte [0x14035b110]
mov edx, 0x30
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1401375ff
mov r13, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r15
mov byte [rax + 0x28], 0
lea rcx, [rbx + 0x14]
lea rdx, [rbp - 0x58]
mov r8d, 0x250
call sym.memcpy
mov qword [rbx], r13
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
cmp qword [rbp + 0x228], 0
je 0x1401374dd
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, r14
call fcn.140137fbc
cmp qword [rbp + 0x230], 0
jne 0x14013756f
jmp 0x140137415
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x140137585
movzx eax, byte [0x14035b110]
mov edx, 0x30
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x140137610
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r15
mov byte [rax + 0x28], 0
mov qword [rbx], rax
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], 0
cmp qword [rbp + 0x228], 0
je 0x140137566
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, r14
call fcn.140137fbc
test r13, r13
je 0x140137415
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
jmp 0x140137415
shl rax, 0x20
or rax, 2
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
cmp qword [rbp + 0x228], 0
je 0x1401375b2
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, r14
call fcn.140137fbc
test r13, r13
je 0x1401375c8
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rsi
call fcn.140137fbc
jmp 0x140137415
call sym.alloc::raw_vec::capacity_overflow::h29d4877d33cf78a3
mov ecx, 1
mov rdx, r15
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
mov ecx, 1
mov rdx, r15
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
jmp 0x140137626
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
jmp 0x140137626
mov qword [rbp + 0x230], r13
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
ud2