Function at 0x1009ddb0
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 0x1009dee9
js 0x1009e08b
mov ebx, dword [0x1017b554]
movzx eax, byte [ebx]
push 1
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1009e094
mov edi, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
movzx eax, byte [ebx]
push 1
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1009e0a0
mov ebx, eax
push esi
push edi
push eax
call sub.msvcrt.dll_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 0x10162ddc
push eax
call sym.std::path::PathBuf::_push::ha56d6a1011698711
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::h36c7c454f9caa61a
add esp, 4
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x30]
jo 0x1009deb8
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::h1952ee698f680a9e
add esp, 4
mov ebx, dword [ebp - 0x2c]
mov eax, ebx
neg eax
jno 0x1009df07
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 0x1009ded9
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 0x1009defa
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 0x1009dfca
mov esi, eax
mov eax, dword [0x1017b554]
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 0x1009e0ad
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 sub.msvcrt.dll_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 0x1009dfbd
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 0x1009defa
jmp 0x1009e045
call sub.kernel32.dll_GetLastError
mov esi, dword [ebp + 0x10]
cmp eax, 2
jne 0x1009e050
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 4
push 0x18
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1009e0bb
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 0x1009e03a
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 0x1009defa
push 1
push eax
push dword [ebp - 0x18]
jmp 0x1009dedf
test ebx, ebx
mov byte [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi], 2
je 0x1009e071
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 0x1009e086
push 1
push eax
push dword [ebp - 0x18]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009ded9
xor eax, eax
push esi
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
mov eax, 1
push esi
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push esi
push 1
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
add esp, 8
jmp 0x1009e0ca
push 0x18
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
add esp, 8
jmp 0x1009e0ca
mov dword [ebp - 0x1c], ebx
push 0x18
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
add esp, 8
ud2