Function at 0x45b8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x27c
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
test esi, esi
je 0x45ba1d
js 0x45bbbf
mov ebx, dword [0x4dacf8]
movzx eax, byte [ebx]
push 1
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x45bbc8
mov edi, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x10], eax
push eax
call sym._memcpy
add esp, 0xc
movzx eax, byte [ebx]
push 1
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x45bbd4
mov ebx, eax
push esi
push edi
push eax
call sym._memcpy
add esp, 0xc
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], esi
mov byte [ebp - 0x27c], 0
lea eax, [ebp - 0x288]
push 1
push 0x4c1fec
push eax
call sym.std::path::PathBuf::_push::h1d228904847b0d0d
add esp, 0xc
mov eax, dword [ebp - 0x288]
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edx
push dword [ebp - 0x280]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
cmp edx, 0x80000000
je 0x45b9ec
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], ecx
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x2c]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [ebp - 0x2c]
cmp ebx, 0x80000000
jne 0x45ba3b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov dword [edi], 2
test eax, eax
je 0x45ba0d
push 1
push eax
push dword [ebp - 0x18]
call sym.___rust_dealloc
add esp, 0xc
push 1
push esi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x45ba2e
mov byte [edi + 4], 0
mov dword [edi + 8], 3
mov dword [edi], 2
mov eax, edi
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x28]
push 0x250
push 0
lea eax, [ebp - 0x288]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
mov dword [ebp - 0x20], esi
push esi
call sub.kernel32.dll_FindFirstFileW
cmp eax, 0xffffffff
je 0x45bafe
mov esi, eax
mov eax, dword [0x4dacf8]
mov dword [ebp - 0x1c], ebx
movzx eax, byte [eax]
push 4
push 0x18
call sym.___rust_alloc
add esp, 8
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x45bbe1
mov dword [eax], 1
mov dword [eax + 4], 1
mov ebx, eax
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
lea eax, [edi + 4]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 0x14], 0
push 0x250
lea ecx, [ebp - 0x288]
push ecx
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [edi], 1
mov dword [edi + 0x254], ebx
mov dword [edi + 0x258], esi
test eax, eax
je 0x45baf1
add eax, eax
push 2
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45ba2e
jmp 0x45bb79
call sub.kernel32.dll_GetLastError
mov esi, dword [ebp + 0x10]
cmp eax, 2
jne 0x45bb84
mov eax, dword [0x4dacf8]
movzx eax, byte [eax]
push 4
push 0x18
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x45bbef
mov ecx, dword [ebp - 0x10]
test ebx, ebx
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], esi
mov dword [edi], 0
mov dword [edi + 0x254], eax
mov dword [edi + 0x258], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [eax + 0x14], 0
je 0x45bb6e
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45ba2e
push 1
push eax
push dword [ebp - 0x18]
jmp 0x45ba13
test ebx, ebx
mov byte [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi], 2
je 0x45bba5
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45bbba
push 1
push eax
push dword [ebp - 0x18]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x45ba0d
xor eax, eax
push esi
push eax
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
mov eax, 1
push esi
push eax
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
push esi
push 1
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
jmp 0x45bbfe
push 0x18
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
jmp 0x45bbfe
mov dword [ebp - 0x1c], ebx
push 0x18
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2