Function at 0x1004f411
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 0x1004f51c
mov dword [ebp - 0x28], ecx
js 0x1004f6d8
mov al, byte [0x10226114]
mov edi, edx
xor ecx, ecx
mov edx, ebx
call dbg.process_heap_alloc
test eax, eax
je 0x1004f6dd
push ebx
push edi
mov dword [ebp - 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov al, byte [0x10226114]
xor ecx, ecx
mov edx, ebx
call dbg.process_heap_alloc
test eax, eax
je 0x1004f6e7
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, 0x101beab2
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 0x1004f4f5
lea esi, [ebp - 0x294]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
lea ecx, [ebp - 0x38]
mov edx, esi
call dbg.get_long_path
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x1004f540
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov esi, ebx
shrd esi, edi, 8
cmp dword [ebp - 0x18], 0
je 0x1004f50c
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 0x1004f521
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 0x1004f5f0
mov dword [ebp - 0x24], eax
mov al, byte [0x10226114]
push 0x18
pop edx
xor ecx, ecx
call dbg.process_heap_alloc
mov edi, eax
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x1004f6f3
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 0x1004f5d2
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 0x1004f659
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov edx, ebx
call sym.___rust_dealloc
mov ecx, ebx
jmp 0x1004f65c
call sub.kernel32.dll_GetLastError
mov esi, dword [ebp - 0x10]
cmp eax, 2
jne 0x1004f661
mov al, byte [0x10226114]
push 0x18
pop edx
xor ecx, ecx
call dbg.process_heap_alloc
test eax, eax
je 0x1004f700
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 0x1004f63c
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 0x1004f696
mov ecx, dword [ebp - 0x14]
xor edx, edx
inc edx
call sym.___rust_dealloc
xor ecx, ecx
jmp 0x1004f696
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x2c]
jmp 0x1004f696
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x1004f674
push 2
pop edx
mov ecx, dword [ebp - 0x1c]
call sym.___rust_dealloc
cmp dword [ebp - 0x18], 0
je 0x1004f685
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 0x1004f517
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 0x1004f535
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 0x1004f70b
push 4
pop ecx
push 0x18
pop edx
call dbg.handle_alloc_error
jmp 0x1004f70b
push 4
pop ecx
push 0x18
pop edx
call dbg.handle_alloc_error
ud2