Function at 0x442ab0
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 0x442bed
js 0x442d8f
mov ebx, dword [0x59ce94]
movzx eax, byte [ebx]
push 1
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x442d98
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 0x442da4
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 0x58407c
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 0x442bbc
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 0x442c0b
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 0x442bdd
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 0x442bfe
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 0x442cce
mov esi, eax
mov eax, dword [0x59ce94]
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 0x442db1
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 0x442cc1
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 0x442bfe
jmp 0x442d49
call sub.kernel32.dll_GetLastError
mov esi, dword [ebp + 0x10]
cmp eax, 2
jne 0x442d54
mov eax, dword [0x59ce94]
movzx eax, byte [eax]
push 4
push 0x18
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x442dbf
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 0x442d3e
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 0x442bfe
push 1
push eax
push dword [ebp - 0x18]
jmp 0x442be3
test ebx, ebx
mov byte [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi], 2
je 0x442d75
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 0x442d8a
push 1
push eax
push dword [ebp - 0x18]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x442bdd
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 0x442dce
push 0x18
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
jmp 0x442dce
mov dword [ebp - 0x1c], ebx
push 0x18
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2