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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x18]
push edi
xor edi, edi
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x2c]
push 0x204
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x208]
push edi
push eax
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x20c], edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x42c]
push 0x58
mov dword [eax], edi
lea eax, [ebp - 0x494]
push edi
push eax
mov dword [ebp - 0x434], edi
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp + 0x14], edi
je 0x10af18d
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x14]
push esi
call fcn.010889fb
cmp eax, edi
je 0x10af141
push eax
push 0x5201a2
call fcn.010893e6
jmp 0x10af18d
cmp dword [ebp - 0x430], edi
je 0x10af18d
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push dword [ebp - 0x41c]
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x10af18d
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], edi
cmp dword [ebp + 0x1c], edi
je 0x10af1e9
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.010889fb
cmp eax, edi
je 0x10af1b1
push eax
push 0x7301a2
call fcn.010893e6
cmp dword [ebp - 0x418], edi
jne 0x10af1c7
lea eax, [ebp - 0x434]
mov dword [ebp - 0x418], eax
jmp 0x10af1e9
push dword [ebp - 0x418]
call fcn.010af052
mov ebx, eax
cmp ebx, edi
je 0x10af1e3
push ebx
push 0x7d01a2
jmp 0x10af35b
mov ebx, dword [ebp - 0x43c]
cmp dword [ebp + 0x20], edi
je 0x10af20d
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x20]
push esi
call fcn.010889fb
cmp eax, edi
je 0x10af20d
push eax
push 0x8801a2
call fcn.010893e6
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x20c]
mov esi, 0x104
mov dword [ebp - 0x494], 0x4c
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], esi
cmp ebx, edi
je 0x10af305
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10af295
call fcn.0108edc3
cmp eax, 0x80070002
je 0x10af2a1
push eax
push 0x9e01a2
jmp 0x10af2cc
test al, 0x10
je 0x10af2a1
mov dword [ebp - 0x468], ebx
jmp 0x10af305
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push ebx
mov dword [ebp - 0x424], edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x10af2d3
call fcn.0108edc3
push eax
push 0xb401a2
call fcn.010893e6
jmp 0x10af305
cmp dword [ebp - 0x424], edi
je 0x10af2f9
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0102d982
mov ecx, dword [ebp - 0x424]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x494]
push eax
cmp dword [ebp + 0x10], edi
je 0x10af319
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x10af31f
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, edi
jne 0x10af33d
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
push eax
call fcn.0108ed8e
mov ebx, eax
cmp ebx, edi
je 0x10af362
push ebx
push 0xd701a2
jmp 0x10af35b
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0108e981
mov ebx, eax
cmp ebx, edi
je 0x10af362
push ebx
push 0xdd01a2
call fcn.010893e6
jmp 0x10af364
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x41c], edi
je 0x10af37a
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x420], edi
je 0x10af38a
push dword [ebp - 0x420]
call esi
cmp dword [ebp - 0x418], edi
je 0x10af3a8
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x418], eax
je 0x10af3a8
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x428], edi
je 0x10af3b8
push dword [ebp - 0x428]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x28