Function at 0x18004d160
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 0x18004d2ca
mov rsi, r8
js 0x18004d4a7
mov r14, rdx
mov r13, qword [0x18010c548]
movzx eax, byte [r13]
mov r15d, 1
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x18004d4aa
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call fcn.1800a6be8
movzx eax, byte [r13]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x18004d4b5
mov r15, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call fcn.1800a6be8
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x48], 0
lea rdx, [0x1800ed790]
lea rcx, [rbp - 0x60]
mov r8d, 1
call sym.std::path::PathBuf::_push::hec34e4eba04e46ce
mov r15, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x50]
lea rcx, [rbp + 0x208]
mov qword [rbp + 0x220], rdx
call sym.std::sys::pal::windows::to_u16s::inner::h10735ef3235896f0
movabs r14, 0x8000000000000000
mov rax, qword [rbp + 0x208]
mov r12, qword [rbp + 0x210]
cmp rax, r14
je 0x18004d293
mov rcx, qword [rbp + 0x218]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rcx
lea rcx, [rbp + 0x1f0]
lea rdx, [rbp - 0x60]
mov r8b, 1
call sym.std::sys::path::windows::get_long_path::h55d027a4615d2198
mov rax, qword [rbp + 0x1f0]
mov r12, qword [rbp + 0x1f8]
cmp rax, r14
jne 0x18004d2f5
mov qword [rbx], r12
mov dword [rbx + 0x10], 2
test r15, r15
je 0x18004d2b7
mov r8d, 1
mov rcx, qword [rbp + 0x220]
mov rdx, r15
call sym.__rust_dealloc
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
jmp 0x18004d2de
movabs rax, 0x300000002
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rax, rbx
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 r14, [rbp - 0x60]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r12
mov rdx, r14
call sub.KERNEL32.dll_FindFirstFileW
cmp rax, 0xffffffffffffffff
je 0x18004d3d3
mov r14, rax
mov qword [rbp + 0x230], r15
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x18004d4c4
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 - 0x60]
mov r8d, 0x250
call fcn.1800a6be8
mov qword [rbx], r15
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
mov rdx, qword [rbp + 0x228]
test rdx, rdx
je 0x18004d3ac
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
mov rdx, qword [rbp + 0x230]
test rdx, rdx
je 0x18004d2de
mov r8d, 1
mov rcx, qword [rbp + 0x220]
call sym.__rust_dealloc
jmp 0x18004d2de
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x18004d46f
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x18004d4d5
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
mov rdx, qword [rbp + 0x228]
test rdx, rdx
je 0x18004d44c
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
test r15, r15
je 0x18004d2de
mov r8d, 1
mov rcx, qword [rbp + 0x220]
mov rdx, r15
call sym.__rust_dealloc
jmp 0x18004d2de
shl rax, 0x20
or rax, 2
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rdx, qword [rbp + 0x228]
test rdx, rdx
je 0x18004d29d
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
jmp 0x18004d29d
xor r15d, r15d
mov rcx, r15
mov rdx, rsi
call sym.alloc::raw_vec::handle_error::h6ca22f8e83c41359
mov ecx, 1
mov rdx, rsi
call sym.alloc::raw_vec::handle_error::h6ca22f8e83c41359
jmp 0x18004d4eb
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::hc1ad400b257a9133
jmp 0x18004d4eb
mov qword [rbp + 0x230], r15
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::hc1ad400b257a9133
ud2