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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x10d0620]
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 0x10b2324
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x14]
push esi
call fcn.0108bb6f
cmp eax, edi
je 0x10b22d8
push eax
push 0x5201a2
call fcn.0108c55a
jmp 0x10b2324
cmp dword [ebp - 0x430], edi
je 0x10b2324
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 0x10b2324
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 0x10b2380
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.0108bb6f
cmp eax, edi
je 0x10b2348
push eax
push 0x7301a2
call fcn.0108c55a
cmp dword [ebp - 0x418], edi
jne 0x10b235e
lea eax, [ebp - 0x434]
mov dword [ebp - 0x418], eax
jmp 0x10b2380
push dword [ebp - 0x418]
call fcn.010b21e9
mov ebx, eax
cmp ebx, edi
je 0x10b237a
push ebx
push 0x7d01a2
jmp 0x10b24f2
mov ebx, dword [ebp - 0x43c]
cmp dword [ebp + 0x20], edi
je 0x10b23a4
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x20]
push esi
call fcn.0108bb6f
cmp eax, edi
je 0x10b23a4
push eax
push 0x8801a2
call fcn.0108c55a
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 0x10b249c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10b242c
call fcn.01091f43
cmp eax, 0x80070002
je 0x10b2438
push eax
push 0x9e01a2
jmp 0x10b2463
test al, 0x10
je 0x10b2438
mov dword [ebp - 0x468], ebx
jmp 0x10b249c
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 0x10b246a
call fcn.01091f43
push eax
push 0xb401a2
call fcn.0108c55a
jmp 0x10b249c
cmp dword [ebp - 0x424], edi
je 0x10b2490
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0102e082
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 0x10b24b0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x10b24b6
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, edi
jne 0x10b24d4
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
push eax
call fcn.01091f0e
mov ebx, eax
cmp ebx, edi
je 0x10b24f9
push ebx
push 0xd701a2
jmp 0x10b24f2
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01091af5
mov ebx, eax
cmp ebx, edi
je 0x10b24f9
push ebx
push 0xdd01a2
call fcn.0108c55a
jmp 0x10b24fb
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x41c], edi
je 0x10b2511
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x420], edi
je 0x10b2521
push dword [ebp - 0x420]
call esi
cmp dword [ebp - 0x418], edi
je 0x10b253f
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x418], eax
je 0x10b253f
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x428], edi
je 0x10b254f
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.01077dc7
leave
ret 0x28