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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x10b5894]
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 0x109af01
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x14]
push esi
call fcn.0107a5dc
cmp eax, edi
je 0x109aeb5
push eax
push 0x5201a2
call fcn.0107ae44
jmp 0x109af01
cmp dword [ebp - 0x430], edi
je 0x109af01
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 0x109af01
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 0x109af5d
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.0107a5dc
cmp eax, edi
je 0x109af25
push eax
push 0x7301a2
call fcn.0107ae44
cmp dword [ebp - 0x418], edi
jne 0x109af3b
lea eax, [ebp - 0x434]
mov dword [ebp - 0x418], eax
jmp 0x109af5d
push dword [ebp - 0x418]
call fcn.0109adc7
mov ebx, eax
cmp ebx, edi
je 0x109af57
push ebx
push 0x7d01a2
jmp 0x109b0cd
mov ebx, dword [ebp - 0x43c]
cmp dword [ebp + 0x20], edi
je 0x109af81
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x20]
push esi
call fcn.0107a5dc
cmp eax, edi
je 0x109af81
push eax
push 0x8801a2
call fcn.0107ae44
cmp ebx, edi
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
je 0x109b077
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x109b009
call fcn.010a4804
cmp eax, 0x80070002
je 0x109b015
push eax
push 0x9e01a2
jmp 0x109b040
test al, 0x10
je 0x109b015
mov dword [ebp - 0x468], ebx
jmp 0x109b077
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 0x109b047
call fcn.010a4804
push eax
push 0xb401a2
call fcn.0107ae44
jmp 0x109b077
cmp dword [ebp - 0x424], edi
je 0x109b06b
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01028f74
mov eax, dword [ebp - 0x424]
mov word [eax], di
lea eax, [ebp - 0x414]
mov dword [ebp - 0x468], eax
cmp dword [ebp + 0x10], edi
lea eax, [ebp - 0x494]
push eax
je 0x109b08b
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x109b091
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, edi
jne 0x109b0af
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
push eax
call fcn.010a47cf
mov ebx, eax
cmp ebx, edi
je 0x109b0d4
push ebx
push 0xd701a2
jmp 0x109b0cd
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push eax
call fcn.010a4a18
mov ebx, eax
cmp ebx, edi
je 0x109b0d4
push ebx
push 0xdd01a2
call fcn.0107ae44
jmp 0x109b0d6
xor ebx, ebx
cmp dword [ebp - 0x41c], edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x109b0ec
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x420], edi
je 0x109b0fc
push dword [ebp - 0x420]
call esi
cmp dword [ebp - 0x418], edi
je 0x109b11a
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x418], eax
je 0x109b11a
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x428], edi
je 0x109b12a
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.01068363
leave
ret 0x28