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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x103a5e4]
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 0x1022a57
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x14]
push esi
call fcn.010226e1
cmp eax, edi
je 0x1022a0b
push eax
push 0x5201a2
call fcn.0101dd77
jmp 0x1022a57
cmp dword [ebp - 0x430], edi
je 0x1022a57
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 0x1022a57
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 0x1022ab3
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.010226e1
cmp eax, edi
je 0x1022a7b
push eax
push 0x7301a2
call fcn.0101dd77
cmp dword [ebp - 0x418], edi
jne 0x1022a91
lea eax, [ebp - 0x434]
mov dword [ebp - 0x418], eax
jmp 0x1022ab3
push dword [ebp - 0x418]
call fcn.0102291c
mov ebx, eax
cmp ebx, edi
je 0x1022aad
push ebx
push 0x7d01a2
jmp 0x1022c25
mov ebx, dword [ebp - 0x43c]
cmp dword [ebp + 0x20], edi
je 0x1022ad7
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x20]
push esi
call fcn.010226e1
cmp eax, edi
je 0x1022ad7
push eax
push 0x8801a2
call fcn.0101dd77
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 0x1022bcf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1022b5f
call fcn.010231b9
cmp eax, 0x80070002
je 0x1022b6b
push eax
push 0x9e01a2
jmp 0x1022b96
test al, 0x10
je 0x1022b6b
mov dword [ebp - 0x468], ebx
jmp 0x1022bcf
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 0x1022b9d
call fcn.010231b9
push eax
push 0xb401a2
call fcn.0101dd77
jmp 0x1022bcf
cmp dword [ebp - 0x424], edi
je 0x1022bc3
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01015254
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 0x1022be3
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x1022be9
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, edi
jne 0x1022c07
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
push eax
call fcn.01023184
mov ebx, eax
cmp ebx, edi
je 0x1022c2c
push ebx
push 0xd701a2
jmp 0x1022c25
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01022d77
mov ebx, eax
cmp ebx, edi
je 0x1022c2c
push ebx
push 0xdd01a2
call fcn.0101dd77
jmp 0x1022c2e
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x41c], edi
je 0x1022c44
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x420], edi
je 0x1022c54
push dword [ebp - 0x420]
call esi
cmp dword [ebp - 0x418], edi
je 0x1022c72
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x418], eax
je 0x1022c72
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x428], edi
je 0x1022c82
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.0101d1e3
leave
ret 0x28