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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x524eac
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52514f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5693cc]
mov eax, dword [eax]
call fcn.0049ca44
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x569090]
cmp byte [eax], 0
je 0x524ef9
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryFileW
mov esi, eax
jmp 0x524f0a
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryFileA
mov esi, eax
push esi
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x524e80]
call fcn.004061e8
add esp, 4
xor edx, edx
push ebp
push 0x525104
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
dec esi
test esi, esi
jl 0x52508d
inc esi
mov dword [ebp - 0x24], esi
xor edi, edi
mov eax, dword [0x569090]
cmp byte [eax], 0
je 0x524fbe
push 0
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryFileW
mov esi, eax
inc esi
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00405678
push esi
mov eax, dword [ebp - 0x10]
call fcn.00405304
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryFileW
mov eax, dword [ebp - 0x10]
call fcn.00405304
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x524f90
test al, 0x10
jne 0x524f94
xor eax, eax
jmp 0x524f96
mov al, 1
test al, al
je 0x524fa7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x525083
mov eax, dword [ebp - 0x10]
call fcn.00405304
mov edx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ebx*4]
call fcn.00405218
jmp 0x52502c
push 0
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryFileA
mov esi, eax
inc esi
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404ff0
push esi
mov eax, dword [ebp - 0xc]
call fcn.00404e60
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryFileA
mov eax, dword [ebp - 0xc]
call fcn.00404e60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x525004
test al, 0x10
jne 0x525008
xor eax, eax
jmp 0x52500a
mov al, 1
test al, al
je 0x525017
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x525083
mov eax, dword [ebp - 0xc]
call fcn.00404e60
mov edx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ebx*4]
call fcn.004051e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x31], 0
je 0x525082
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0x2c]
call fcn.0043be30
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404c28
mov eax, dword [ebp - 0x28]
call fcn.00442760
test al, al
je 0x525082
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0x20]
call fcn.00441f60
mov eax, dword [ebp - 0x20]
call fcn.00441aa4
test al, al
je 0x525082
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0x20]
call fcn.004050ec
inc ebx
inc edi
dec dword [ebp - 0x24]
jne 0x524f40
test ebx, ebx
jle 0x5250df
push ebx
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x524e80]
call fcn.004061e8
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragQueryPoint
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x5250df
mov eax, dword [ebp - 0x1c]
call fcn.00406034
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52510b
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_DragFinish
lea eax, [ebp - 0x1c]
mov edx, dword [0x524e80]
call fcn.00406308
ret