Function at 0x1004ed1e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4d0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1004ee2c
mov dword [ebp - 0x28], ecx
js 0x1004efe8
mov al, byte [0x10237124]
mov edi, edx
xor ecx, ecx
mov edx, ebx
call dbg.process_heap_alloc
test eax, eax
je 0x1004efed
push ebx
push edi
mov dword [ebp - 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov al, byte [0x10237124]
xor ecx, ecx
mov edx, ebx
call dbg.process_heap_alloc
test eax, eax
je 0x1004eff7
mov esi, eax
push ebx
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x294]
mov dword [ecx], ebx
mov dword [ecx + 4], esi
mov dword [ecx + 8], ebx
mov byte [ecx + 0xc], 0
mov edx, str.__fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n5
push 1
call dbg._push
pop eax
mov eax, dword [ebp - 0x294]
mov edx, dword [ebp - 0x290]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], edx
push dword [ebp - 0x28c]
call dbg.inner
pop eax
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
cmp eax, 0x80000000
je 0x1004ee05
lea esi, [ebp - 0x294]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov edx, esi
lea ecx, [ebp - 0x38]
push 1
call dbg.get_long_path
pop eax
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x1004ee50
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov esi, ebx
shrd esi, edi, 8
cmp dword [ebp - 0x18], 0
je 0x1004ee1c
mov ecx, dword [ebp - 0x14]
xor edx, edx
inc edx
call sym.___rust_dealloc
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
call sym.___rust_dealloc
mov ecx, dword [ebp - 0x28]
jmp 0x1004ee31
push 3
pop edi
xor ebx, ebx
shl esi, 8
movzx eax, bl
mov dword [ecx + 8], edi
or eax, esi
mov dword [ecx + 4], eax
mov dword [ecx], 2
add esp, 0x4d0
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
push 0x250
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
mov dword [ebp - 0x1c], edi
push edi
call sub.kernel32.dll_FindFirstFileW
cmp eax, 0xffffffff
je 0x1004ef00
mov dword [ebp - 0x24], eax
mov al, byte [0x10237124]
push 0x18
pop edx
xor ecx, ecx
call dbg.process_heap_alloc
mov edi, eax
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x1004f003
xor ecx, ecx
inc ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov byte [edi + 0x14], 0
lea eax, [ebp - 0x28c]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x4dc]
push 0x248
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x1004eee2
push 2
pop edx
mov ecx, dword [ebp - 0x1c]
call sym.___rust_dealloc
shrd esi, ebx, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ebx
je 0x1004ef69
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov edx, ebx
call sym.___rust_dealloc
mov ecx, ebx
jmp 0x1004ef6c
call sub.kernel32.dll_GetLastError
mov esi, dword [ebp - 0x10]
cmp eax, 2
jne 0x1004ef71
mov al, byte [0x10237124]
push 0x18
pop edx
xor ecx, ecx
call dbg.process_heap_alloc
test eax, eax
je 0x1004f010
mov edi, eax
xor eax, eax
inc eax
cmp dword [ebp - 0x20], 0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], ebx
mov byte [edi + 0x14], 0
je 0x1004ef4c
push 2
pop edx
mov ecx, dword [ebp - 0x1c]
call sym.___rust_dealloc
xor ecx, ecx
xor eax, eax
dec eax
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
je 0x1004efa6
mov ecx, dword [ebp - 0x14]
xor edx, edx
inc edx
call sym.___rust_dealloc
xor ecx, ecx
jmp 0x1004efa6
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x2c]
jmp 0x1004efa6
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x1004ef84
push 2
pop edx
mov ecx, dword [ebp - 0x1c]
call sym.___rust_dealloc
cmp dword [ebp - 0x18], 0
je 0x1004ef95
mov ecx, dword [ebp - 0x14]
xor edx, edx
inc edx
call sym.___rust_dealloc
xor edx, edx
mov ecx, esi
inc edx
call sym.___rust_dealloc
xor ebx, ebx
jmp 0x1004ee27
mov ebx, dword [ebp - 0x28]
shl esi, 8
movzx eax, al
or eax, esi
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 4], eax
lea eax, [ebx + 0xc]
mov dword [ebx + 8], ecx
lea ecx, [ebp - 0x4dc]
push 0x248
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x254], edi
mov dword [ebx + 0x258], eax
jmp 0x1004ee45
call sym.alloc::raw_vec::capacity_overflow::h5648a8ceafa88914
xor ecx, ecx
mov edx, ebx
inc ecx
call dbg.handle_alloc_error
xor ecx, ecx
mov edx, ebx
inc ecx
call dbg.handle_alloc_error
jmp 0x1004f01b
push 4
pop ecx
push 0x18
pop edx
call dbg.handle_alloc_error
jmp 0x1004f01b
push 4
pop ecx
push 0x18
pop edx
call dbg.handle_alloc_error
ud2