Function at 0x46cb60
Capabilities:
Check if file exists
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2cc], edx
test ebx, ebx
je 0x46cc60
push 0x4e2d14
push 0xc
call fcn.0048c58e
mov edi, eax
add esp, 8
test edi, edi
je 0x46cc60
mov eax, dword [0x4e3954]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3954
call edx
mov esi, dword [ebp + 0x10]
add eax, 0x10
mov dword [edi], eax
mov edx, ebx
mov dword [edi + 4], esi
mov byte [edi + 8], 0
call fcn.00403c10
mov byte [ebp - 0x2c5], 0
cmp esi, 1
je 0x46cbe5
cmp esi, 2
jne 0x46cc19
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
lea edx, [eax + 1]
cmp edx, 0x104
jle 0x46cbfc
mov byte [ebp - 0x2c5], 1
cmp esi, 1
jne 0x46cc19
test eax, eax
je 0x46cc19
cmp word [ecx + eax*2 - 2], 0x5c
je 0x46cc19
push 0x5c
mov esi, edi
call fcn.00409070
mov esi, dword [ebp + 0x10]
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
mov dword [ebp - 0x2c4], 0
call fcn.0048f0a0
add esp, 0xc
cmp byte [ebp - 0x2c5], 0
je 0x46cc75
push edi
lea esi, [ebp - 0x2c4]
call fcn.0046c8d0
add esp, 4
test al, al
jne 0x46ccfb
mov esi, edi
call fcn.0046cdf0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 0x14
push 0x4201
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x46ccfb
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46ccb9
test al, 0x30
je 0x46ccb9
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [ebp - 0x2b8]
push edx
jmp 0x46ccf3
mov eax, 1
cmp esi, eax
jne 0x46cc59
cmp dword [ebp + 0x18], eax
jne 0x46cc59
cmp dword [0x4e47e0], eax
jne 0x46cc59
mov esi, ebx
call fcn.0046fc60
cmp eax, 0xffffffff
je 0x46ccfb
test al, 0x30
je 0x46ccfb
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.0048d226
add esp, 0xc
push 0x30
lea ecx, [ebp - 0x308]
push 0
push ecx
call fcn.0048f0a0
mov eax, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], eax
mov eax, 1
add esp, 0xc
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x304], 0x63
mov dword [ebp - 0x2f4], ecx
cmp dword [ebp + 0x14], eax
je 0x46cd65
cmp dword [edi + 4], 0
je 0x46cd65
mov ecx, edi
call fcn.0046e1a0
lea edx, [ebp - 0x30c]
push edx
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
push 0
push 0x1132
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x2cc], esi
test esi, esi
je 0x46cdbf
mov eax, dword [ebp - 0x2d4]
lea edx, [ebp - 0x2d0]
push edx
add eax, 0x28
push eax
lea ebx, [ebp - 0x318]
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], edi
call fcn.0046e640
jmp 0x46cdcc
mov esi, edi
call fcn.0046cdf0
mov esi, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 0x14