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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1028004]
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 0x1017501
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.01018a40
mov esi, eax
test esi, esi
jge 0x10174f5
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1017489
test byte [eax + 0x1c], 4
je 0x1017489
push esi
push 0x1003ea0
push 0x1003d30
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a697
mov edi, dword [ebp - 0x210]
test esi, esi
jge 0x10174b3
mov eax, dword [edi + 4]
test eax, eax
je 0x10174a0
push eax
call fcn.0100baa0
mov eax, dword [edi]
test eax, eax
je 0x10174ac
push eax
call fcn.0100baa0
and dword [edi + 4], 0
and dword [edi], 0
cmp dword [ebp - 0x21c], 0
je 0x10174e2
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x10174e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10174e0
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.0100a18b
leave
ret 0xc
mov dword [ebp - 0x21c], 1
jmp 0x1017507
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.0100ba88
mov dword [edi + 4], eax
test eax, eax
jne 0x1017562
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1017558
test byte [eax + 0x1c], 4
je 0x1017558
push 0x1003d40
push 0x1003d30
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bfba
mov esi, 0x8007000e
jmp 0x1017493
push dword [edi + 8]
call fcn.0100ba88
mov dword [edi], eax
test eax, eax
jne 0x1017590
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1017558
test byte [eax + 0x1c], 4
je 0x1017558
push 0x1003d40
push 0x1003d30
push 0x12
jmp 0x101754d
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x218], 0
jbe 0x101765e
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 0x1017665
test al, 0x10
lea eax, [ebp - 0x20c]
je 0x1017618
push eax
mov ecx, edi
call fcn.01016e01
mov esi, eax
test esi, esi
jge 0x1017646
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x101748f
test byte [eax + 0x1c], 4
je 0x101748f
push esi
push 0x1003e64
push 0x1003d30
push 0x14
jmp 0x10176d2
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x10176e2
push 0
push 0
add eax, 2
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.01016a91
mov esi, eax
test esi, esi
jl 0x10176ab
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x218]
jb 0x10175a4
xor esi, esi
jmp 0x101748f
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1017690
test byte [eax + 0x1c], 4
je 0x1017690
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003d30
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bfba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10176a4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101748f
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x101748f
test byte [eax + 0x1c], 4
je 0x101748f
push esi
push 0x1003e00
push 0x1003d30
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a697
jmp 0x101748f
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1017706
test byte [eax + 0x1c], 4
je 0x1017706
push 0x1003d30
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a63f
mov esi, 0x8000ffff
jmp 0x1017493