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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1029004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
call ebx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x218], eax
jne 0x1017623
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.01018b6d
mov esi, eax
test esi, esi
jge 0x1017617
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10175ab
test byte [eax + 0x1c], 4
je 0x10175ab
push esi
push 0x1003ec8
push 0x1003d58
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
mov edi, dword [ebp - 0x210]
test esi, esi
jge 0x10175d5
mov eax, dword [edi + 4]
test eax, eax
je 0x10175c2
push eax
call fcn.0100bcc1
mov eax, dword [edi]
test eax, eax
je 0x10175ce
push eax
call fcn.0100bcc1
and dword [edi + 4], 0
and dword [edi], 0
cmp dword [ebp - 0x21c], 0
je 0x1017604
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x1017604
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1017602
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a217
leave
ret 0xc
mov dword [ebp - 0x21c], 1
jmp 0x1017629
mov dword [ebp - 0x214], edi
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x210]
dec eax
imul eax, eax, 0x250
add eax, 0x254
push eax
mov dword [edi + 8], eax
call fcn.0100bca9
mov dword [edi + 4], eax
test eax, eax
jne 0x1017684
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x101767a
test byte [eax + 0x1c], 4
je 0x101767a
push 0x1003d68
push 0x1003d58
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c249
mov esi, 0x8007000e
jmp 0x10175b5
push dword [edi + 8]
call fcn.0100bca9
mov dword [edi], eax
test eax, eax
jne 0x10176b2
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x101767a
test byte [eax + 0x1c], 4
je 0x101767a
push 0x1003d68
push 0x1003d58
push 0x12
jmp 0x101766f
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x218], 0
jbe 0x1017780
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1017787
test al, 0x10
lea eax, [ebp - 0x20c]
je 0x101773a
push eax
mov ecx, edi
call fcn.01016f23
mov esi, eax
test esi, esi
jge 0x1017768
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10175b1
test byte [eax + 0x1c], 4
je 0x10175b1
push esi
push 0x1003e8c
push 0x1003d58
push 0x14
jmp 0x10177f4
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x1017804
push 0
push 0
add eax, 2
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.01016bb3
mov esi, eax
test esi, esi
jl 0x10177cd
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x218]
jb 0x10176c6
xor esi, esi
jmp 0x10175b1
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10177b2
test byte [eax + 0x1c], 4
je 0x10177b2
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003d58
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c249
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10177c6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10175b1
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10175b1
test byte [eax + 0x1c], 4
je 0x10175b1
push esi
push 0x1003e28
push 0x1003d58
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
jmp 0x10175b1
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x1017828
test byte [eax + 0x1c], 4
je 0x1017828
push 0x1003d58
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6cf
mov esi, 0x8000ffff
jmp 0x10175b5