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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x1079e94]
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x424], eax
xor eax, eax
cmp dword [ebp + 0x14], ebx
mov ecx, 0x81
lea edi, [ebp - 0x208]
mov dword [ebp - 0x20c], ebx
rep stosd dword es:[edi], eax
push 0x16
pop ecx
lea edi, [ebp - 0x494]
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x434], ebx
mov dword [edx], ebx
rep stosd dword es:[edi], eax
je 0x106bda0
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x14]
push esi
call fcn.010547f1
cmp eax, ebx
je 0x106bd54
push eax
push 0x5201a2
call fcn.01053610
jmp 0x106bda0
cmp dword [ebp - 0x430], ebx
je 0x106bda0
lea eax, [ebp - 0x430]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push dword [ebp - 0x41c]
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x106bda0
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], ebx
cmp dword [ebp + 0x1c], ebx
je 0x106bddc
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.010547f1
cmp eax, ebx
je 0x106bdc4
push eax
push 0x7301a2
call fcn.01053610
cmp dword [ebp - 0x418], ebx
jne 0x106be99
lea eax, [ebp - 0x434]
mov dword [ebp - 0x418], eax
cmp dword [ebp + 0x20], ebx
je 0x106be00
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 0x20]
push esi
call fcn.010547f1
cmp eax, ebx
je 0x106be00
push eax
push 0x8801a2
call fcn.01053610
cmp dword [ebp - 0x424], ebx
mov eax, dword [ebp - 0x43c]
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 - 0x42c]
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 0x106bf2e
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x106bebe
call fcn.0106d6ff
cmp eax, 0x80070002
je 0x106beca
push eax
push 0x9e01a2
call fcn.01053610
jmp 0x106bf2e
push dword [ebp - 0x418]
call fcn.0106bc78
mov edi, eax
cmp edi, ebx
je 0x106bddc
push edi
push 0x7d01a2
call fcn.01053610
jmp 0x106bf88
test al, 0x10
je 0x106beca
mov eax, dword [ebp - 0x424]
jmp 0x106bf28
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 0x424]
mov dword [ebp - 0x428], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x106befc
call fcn.0106d6ff
push eax
push 0xb401a2
jmp 0x106be8f
cmp dword [ebp - 0x428], ebx
je 0x106bf19
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [ebp - 0x428]
mov word [eax], bx
lea eax, [ebp - 0x414]
mov dword [ebp - 0x468], eax
cmp dword [ebp + 0x10], ebx
lea eax, [ebp - 0x494]
push eax
je 0x106bf42
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x106bf48
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
cmp eax, ebx
jne 0x106bf63
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
mov edi, eax
cmp edi, ebx
je 0x106bf86
push edi
push 0xd501a2
jmp 0x106beb4
push dword [ebp - 0x438]
lea eax, [ebp - 0x20c]
push eax
call fcn.0106d913
mov edi, eax
cmp edi, ebx
je 0x106bf86
push edi
push 0xdb01a2
jmp 0x106beb4
xor edi, edi
cmp dword [ebp - 0x41c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x106bf9e
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x420], ebx
je 0x106bfae
push dword [ebp - 0x420]
call esi
cmp dword [ebp - 0x418], ebx
je 0x106bfcc
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x418], eax
je 0x106bfcc
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x42c], ebx
je 0x106bfdc
push dword [ebp - 0x42c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x28