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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x10d0640]
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 0x10b2390
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x14]
push esi
call fcn.0108bb18
cmp eax, edi
je 0x10b2344
push eax
push 0x5201a2
call fcn.0108c503
jmp 0x10b2390
cmp dword [ebp - 0x430], edi
je 0x10b2390
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 0x10b2390
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 0x10b23ec
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.0108bb18
cmp eax, edi
je 0x10b23b4
push eax
push 0x7301a2
call fcn.0108c503
cmp dword [ebp - 0x418], edi
jne 0x10b23ca
lea eax, [ebp - 0x434]
mov dword [ebp - 0x418], eax
jmp 0x10b23ec
push dword [ebp - 0x418]
call fcn.010b2255
mov ebx, eax
cmp ebx, edi
je 0x10b23e6
push ebx
push 0x7d01a2
jmp 0x10b255e
mov ebx, dword [ebp - 0x43c]
cmp dword [ebp + 0x20], edi
je 0x10b2410
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x20]
push esi
call fcn.0108bb18
cmp eax, edi
je 0x10b2410
push eax
push 0x8801a2
call fcn.0108c503
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 0x10b2508
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10b2498
call fcn.01091f1e
cmp eax, 0x80070002
je 0x10b24a4
push eax
push 0x9e01a2
jmp 0x10b24cf
test al, 0x10
je 0x10b24a4
mov dword [ebp - 0x468], ebx
jmp 0x10b2508
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 0x10b24d6
call fcn.01091f1e
push eax
push 0xb401a2
call fcn.0108c503
jmp 0x10b2508
cmp dword [ebp - 0x424], edi
je 0x10b24fc
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0102dff2
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 0x10b251c
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x10b2522
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, edi
jne 0x10b2540
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
push eax
call fcn.01091ee9
mov ebx, eax
cmp ebx, edi
je 0x10b2565
push ebx
push 0xd701a2
jmp 0x10b255e
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01091ad0
mov ebx, eax
cmp ebx, edi
je 0x10b2565
push ebx
push 0xdd01a2
call fcn.0108c503
jmp 0x10b2567
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x41c], edi
je 0x10b257d
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x420], edi
je 0x10b258d
push dword [ebp - 0x420]
call esi
cmp dword [ebp - 0x418], edi
je 0x10b25ab
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x418], eax
je 0x10b25ab
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x428], edi
je 0x10b25bb
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.01077d0b
leave
ret 0x28