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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x1018690]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x16
pop ecx
mov dword [ebp - 0x354], eax
xor eax, eax
lea edi, [ebp - 0x3ac]
push 0x50
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x350]
push eax
push 0x65
push dword [0x10192c8]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x101313a
push 0x66
push 0x64
push 0x30
push dword [0x10192c8]
push dword [0x10192a8]
call fcn.01006933
add esp, 0x14
xor eax, eax
jmp 0x1013363
mov edi, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp edi, ebx
push esi
je 0x1013167
mov eax, edi
shl eax, 4
push dword [eax + 0x10192e4]
lea eax, [ebp - 0xa4]
push str._s_Directory
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x101316e
mov word [ebp - 0xa4], bx
mov esi, 0x20a
push esi
lea eax, [ebp - 0x2b0]
push eax
push ebx
lea eax, [ebp - 0xa4]
push eax
push str.Options
call fcn.010137b7
test eax, eax
jne 0x10131c7
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10131c7
test al, 0x10
je 0x10131c7
mov eax, dword [0x1019038]
cmp eax, ebx
je 0x10131b6
push eax
call fcn.01001b0c
lea eax, [ebp - 0x2b0]
push eax
call fcn.01001ac9
mov dword [0x1019038], eax
cmp dword [0x1019038], ebx
jne 0x1013200
push esi
lea eax, [ebp - 0x2b0]
push eax
call fcn.01012d15
test eax, eax
je 0x1013200
mov eax, dword [0x1019038]
cmp eax, ebx
je 0x10131ef
push eax
call fcn.01001b0c
lea eax, [ebp - 0x2b0]
push eax
call fcn.01001ac9
mov dword [0x1019038], eax
cmp edi, ebx
mov eax, dword [0x10192a8]
mov dword [ebp - 0x3a8], eax
mov eax, dword [0x10192c8]
mov dword [ebp - 0x3a4], eax
mov eax, dword [0x1019fc0]
mov word [ebp - 0x2b0], bx
mov dword [ebp - 0x3ac], 0x58
mov dword [ebp - 0x3a0], eax
jne 0x1013244
mov eax, dword [0x1018e6c]
inc eax
mov dword [ebp - 0x394], eax
jmp 0x101324a
mov dword [ebp - 0x394], edi
cmp dword [0x101728c], ebx
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x390], eax
mov eax, dword [0x1019038]
mov dword [ebp - 0x380], eax
mov esi, 0x100
lea eax, [ebp - 0x350]
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x378], 0x5804
jne 0x101329e
push 0x101a874
push 0x1017288
push str.ComDlg32
call fcn.010067d2
lea eax, [ebp - 0x3ac]
push eax
call dword [0x101728c]
mov edi, eax
lea eax, [ebp - 0x2b0]
push eax
push esi
push dword [ebp - 0x354]
call fcn.01004344
cmp edi, ebx
je 0x101335f
mov eax, dword [0x1018e6c]
mov esi, dword [ebp - 0x394]
inc eax
sub esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x394]
mov eax, esi
shl eax, 4
push dword [eax + 0x10192e4]
lea eax, [ebp - 0x2b0]
push eax
call fcn.01012f9b
mov edi, eax
lea eax, [ebp - 0x2b0]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x101335f
mov word [eax], bx
mov eax, dword [0x1019038]
cmp eax, ebx
je 0x1013320
push eax
call fcn.01001b0c
lea eax, [ebp - 0x2b0]
push eax
call fcn.01001ac9
cmp esi, ebx
mov dword [0x1019038], eax
je 0x101335f
cmp eax, ebx
je 0x101335f
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [0x1019038]
lea eax, [ebp - 0xa4]
push 1
push eax
push str.Options
call fcn.0101370b
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.010148e5
leave
ret 8