Function at 0x458960
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 0x458aa6
js 0x458c37
mov edi, dword [0x4d8218]
movzx eax, byte [edi]
push 1
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x458c3c
mov ebx, dword [ebp + 0xc]
push esi
push ebx
mov dword [ebp - 0x10], eax
push eax
call sym._memcpy
add esp, 0xc
movzx eax, byte [edi]
push 1
push esi
call sym.___rust_alloc
add esp, 8
mov edi, esi
test eax, eax
je 0x458c44
mov esi, eax
push edi
push ebx
push eax
call sym._memcpy
add esp, 0xc
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], edi
mov byte [ebp - 0x27c], 0
lea eax, [ebp - 0x288]
push 1
push 0x4c0424
push eax
mov esi, edi
call dbg._push
add esp, 0xc
mov eax, dword [ebp - 0x288]
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], edx
push dword [ebp - 0x280]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp ecx, 0x80000000
je 0x458a6f
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], eax
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x2c]
push 1
call dbg.get_long_path
add esp, 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
cmp eax, 0x80000000
jne 0x458ac4
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi], 2
mov bl, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x458a92
push 1
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
test bl, bl
je 0x458ab7
push 1
push esi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x458ab7
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 dword [ebp - 0x1c], eax
push 0x250
push 0
lea esi, [ebp - 0x288]
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push ebx
call sub.KERNEL32.dll_FindFirstFileW
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x458b97
mov eax, dword [0x4d8218]
movzx eax, byte [eax]
push 4
push 0x18
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x458c51
mov dword [eax], 1
mov esi, eax
mov dword [eax + 4], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], 0
lea eax, [edi + 4]
push 0x250
lea ecx, [ebp - 0x288]
push ecx
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi], 1
mov dword [edi + 0x254], esi
mov dword [edi + 0x258], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x458b70
add eax, eax
push 2
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x458b88
push 1
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
cmp dword [ebp - 0x14], 0xffffffff
jne 0x458ab7
jmp 0x458a96
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x458c1a
mov eax, dword [0x4d8218]
movzx eax, byte [eax]
push 4
push 0x18
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x458c5f
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [edi], 0
mov dword [edi + 0x254], eax
mov dword [edi + 0x258], 0xffffffff
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [eax + 0x14], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x458c08
add eax, eax
push 2
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x458a84
jmp 0x458a92
mov byte [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi], 2
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x458b62
jmp 0x458b70
call dbg.capacity_overflow
push esi
push 1
call dbg.handle_alloc_error
push edi
push 1
call dbg.handle_alloc_error
add esp, 8
jmp 0x458c6b
push 0x18
push 4
call dbg.handle_alloc_error
add esp, 8
jmp 0x458c6b
push 0x18
push 4
call dbg.handle_alloc_error
add esp, 8
ud2