Function at 0x46e5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d62bd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
cmp byte [esi + 0x59], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
jne 0x46e619
mov al, 1
jmp 0x46e88a
xor al, al
mov dword [ebp - 4], 0
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1a], al
call fcn.0040f7b0
add esi, 0x3c
mov edx, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
jb 0x46e642
mov ecx, dword [esi]
sub esp, 8
mov eax, esp
push dword [ebp - 0x20]
mov dword [eax], 0x4eda28
push ecx
or ecx, 0xffffffff
mov dword [eax + 4], 4
call fcn.00410190
add esp, 0x10
test eax, eax
jne 0x46e6ae
cmp dword [edi + 0x10], eax
je 0x46e69a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46e676
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e69a
test al, 0x10
jne 0x46e69a
mov cl, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x19], cl
jmp 0x46e7f3
xor cl, cl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x19], cl
jmp 0x46e7f3
call fcn.0040f7b0
cmp dword [esi + 0x14], 8
mov edx, eax
mov ecx, dword [esi + 0x10]
jb 0x46e6c0
mov esi, dword [esi]
sub esp, 8
mov eax, esp
push ecx
push esi
or ecx, 0xffffffff
mov dword [eax], str.device
mov dword [eax + 4], 6
call fcn.00410190
add esp, 0x10
test eax, eax
jne 0x46e76c
cmp dword [edi + 0x10], eax
je 0x46e69a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46e6f6
mov eax, dword [edi]
push 0
push 0x2200000
push 3
push 0
push 7
push 0x100000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp esi, 0xffffffff
jne 0x46e73e
cmp eax, 2
je 0x46e73b
cmp eax, 3
je 0x46e73b
cmp eax, 0x1b1
jne 0x46e8a8
cmp esi, 0xffffffff
setne al
mov byte [ebp - 0x19], al
je 0x46e750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x19]
test al, al
je 0x46e69a
mov cl, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x19], cl
jmp 0x46e7f3
mov cl, byte [ebp - 0x19]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
jmp 0x46e7f3
test cl, cl
mov eax, str.exists
mov edx, str.does_not_exist
cmove eax, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2c], eax
jb 0x46e80d
mov edi, dword [edi]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
mov dword [ebp - 0x28], edi
jb 0x46e81b
mov eax, dword [eax]
cmp dword [esi + 0x50], 8
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x3c]
jb 0x46e829
mov eax, dword [eax]
movq xmm0, qword [0x513740]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x513748]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0x4eda28
push eax
lea eax, [ebp - 0x24]
movq qword [ebp - 0x5c], xmm0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x50], 0x32453546
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], 0x42354535
push eax
push str._ls:_The__ls___ls__ls__s.
mov dword [ebp - 0x48], 0x36
call fcn.0046e160
mov al, byte [ebp - 0x19]
add esp, 0x18
cmp byte [esi + 0x58], al
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.00412590
push eax
push str.Unable_to_query_file_object__ls_
push dword [ebp - 0x20]
lea ecx, [ebp - 0x74]
call fcn.0041bc90
push 0x5057bc
lea eax, [ebp - 0x74]
push eax
call fcn.004a0209
int3