Function at 0x140045010
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2c8
lea rbp, [rsp + 0x80]
mov rbx, rcx
test r8, r8
je 0x14004517d
mov rsi, r8
js 0x140045373
mov r14, rdx
mov r13, qword [0x140112028]
movzx eax, byte [r13]
mov r15d, 1
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x140045376
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sym.memcpy
movzx eax, byte [r13]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x140045388
mov r15, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sym.memcpy
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x38], 0
lea rdx, [0x1400f4880]
lea rcx, [rbp - 0x50]
mov r8d, 1
call sym.std::path::PathBuf::_push::hc87c083d713afc7a
mov r15, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x40]
lea rcx, [rbp + 0x218]
mov qword [rbp + 0x230], rdx
call sym.std::sys::pal::windows::to_u16s::inner::h4c6bb8c8c41a7105
mov rax, qword [rbp + 0x218]
mov r12, qword [rbp + 0x220]
mov rcx, rax
neg rcx
jo 0x140045146
mov rcx, qword [rbp + 0x228]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], rcx
lea rcx, [rbp + 0x200]
lea rdx, [rbp - 0x50]
mov r8b, 1
call sym.std::sys::path::windows::get_long_path::h01aaa7034f74e417
movabs rax, 0x8000000000000000
mov rcx, qword [rbp + 0x200]
mov r12, qword [rbp + 0x208]
cmp rcx, rax
jne 0x1400451a8
mov qword [rbx], r12
mov dword [rbx + 0x10], 2
test r15, r15
je 0x14004516a
mov r8d, 1
mov rcx, qword [rbp + 0x230]
mov rdx, r15
call sym.__rust_dealloc
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
jmp 0x140045191
movabs rax, 0x300000002
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rax, rbx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x238], rcx
lea r14, [rbp - 0x50]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
mov edx, 1
mov r8, r14
xor r9d, r9d
call sub.kernel32.dll_FindFirstFileExW
cmp rax, 0xffffffffffffffff
je 0x14004529f
mov r14, rax
mov qword [rbp + 0x240], r15
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14004539e
mov r15, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
lea rcx, [rbx + 0x14]
lea rdx, [rbp - 0x50]
mov r8d, 0x250
call sym.memcpy
mov qword [rbx], r15
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
mov rdx, qword [rbp + 0x238]
test rdx, rdx
je 0x140045278
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
mov rdx, qword [rbp + 0x240]
test rdx, rdx
je 0x140045191
mov r8d, 1
mov rcx, qword [rbp + 0x230]
call sym.__rust_dealloc
jmp 0x140045191
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x14004533b
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
mov rdx, qword [rbp + 0x238]
je 0x1400453af
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
mov qword [rbx], rax
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], 0
test rdx, rdx
je 0x140045318
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
test r15, r15
je 0x140045191
mov r8d, 1
mov rcx, qword [rbp + 0x230]
mov rdx, r15
call sym.__rust_dealloc
jmp 0x140045191
shl rax, 0x20
or rax, 2
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rdx, qword [rbp + 0x238]
test rdx, rdx
je 0x140045150
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
jmp 0x140045150
xor r15d, r15d
lea r8, [0x1400f03e0]
mov rcx, r15
mov rdx, rsi
call sym.alloc::raw_vec::handle_error::hf09561d634053503
lea r8, [0x1400f03e0]
mov ecx, 1
mov rdx, rsi
call sym.alloc::raw_vec::handle_error::hf09561d634053503
jmp 0x1400453c5
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::hb4afe9567b073952
jmp 0x1400453c5
mov qword [rbp + 0x240], r15
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::hb4afe9567b073952
ud2