Function at 0x4425c0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, 0x21a68
call fcn.0049b270
cmp dword [0x4ca70c], 4
mov eax, dword [0x4ca4b0]
push ebx
push ebp
mov ebp, dword [esp + 0x21a7c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
jl 0x44260e
mov ecx, dword [esp + 0x21a7c]
push 0x4a3890
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.004306d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
xor ecx, ecx
mov word [esp + 0x1a78], cx
test edx, edx
je 0x442760
cmp word [edx], cx
je 0x442760
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442630
sub eax, esi
sar eax, 1
cmp eax, 0x104
jb 0x442659
push 0x104
lea eax, [esp + 0x74]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x442676
push 0x103
push edx
lea ecx, [esp + 0x78]
push ecx
call fcn.00492b44
add esp, 0xc
xor edx, edx
mov word [esp + 0x276], dx
push 3
lea eax, [esp + 0x74]
push 0x4add5c
push eax
call fcn.00491d75
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x4426dc
lea ecx, [esp + 0x70]
push 0x7d
push ecx
call fcn.00490d91
add esp, 8
test eax, eax
je 0x442767
cmp word [eax + 2], 0
je 0x442767
lea eax, [esp + 0x70]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4426c0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6e], 0x5c
jne 0x4426f0
jmp 0x442767
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4426f0
test al, 0x10
jne 0x442767
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.00491dae
mov esi, eax
add esp, 8
test esi, esi
je 0x44272f
push 0xfffe
lea ecx, [esi + 2]
push ecx
lea edx, [esp + 0x1a80]
push edx
call fcn.00492b44
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x21a74], ax
mov word [esi], cx
jmp 0x442767
test bl, bl
jne 0x442767
push 0xfffe
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x1a80]
push eax
call fcn.00492b44
xor ecx, ecx
add esp, 0xc
xor edx, edx
mov word [esp + 0x21a74], cx
mov word [esp + 0x70], dx
jmp 0x442767
xor eax, eax
mov word [esp + 0x70], ax
test edi, edi
je 0x442793
cmp word [edi], 0
je 0x442793
push 0x3ff
lea ecx, [esp + 0x127c]
push edi
push ecx
call fcn.00492b44
add esp, 0xc
xor edx, edx
mov word [esp + 0x1a76], dx
jmp 0x4427b2
mov eax, dword [0x4cbfd8]
push eax
push str.Select_File____s
mov esi, 0x400
lea edi, [esp + 0x1280]
call fcn.004766b0
add esp, 8
xor ecx, ecx
xor edx, edx
mov word [esp + 0xa78], cx
mov word [esp + 0x278], dx
cmp word [ebp], cx
je 0x442833
push 0x28
push ebp
call fcn.00490d91
add esp, 8
push 0x3ff
test eax, eax
je 0x442876
add eax, 2
push eax
lea eax, [esp + 0x280]
push eax
call fcn.00492b44
add esp, 0xc
lea edx, [esp + 0x278]
xor ecx, ecx
push 0x29
push edx
mov word [esp + 0xa7e], cx
call fcn.00491dae
add esp, 8
test eax, eax
je 0x44281f
xor ecx, ecx
mov word [eax], cx
jmp 0x442891
xor edx, edx
mov word [esp + 0x278], dx
xor ecx, ecx
mov word [esp + 0xa78], cx
push 0x54
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00498ab0
mov ebx, dword [0x4c6a44]
add esp, 0xc
add ebx, 0x4c
mov dword [esp + 0x18], 0x58
call fcn.0045da40
test eax, eax
je 0x4428ef
mov eax, dword [0x4c6a44]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
jmp 0x4428f7
lea eax, [esp + 0x27c]
push ebp
push eax
call fcn.00492b44
add esp, 0xc
xor ecx, ecx
mov word [esp + 0xa76], cx
cmp word [esp + 0x278], 0
je 0x442829
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4a3890
lea edx, [esp + 0x28c]
push 0x4ab72c
push edx
xor eax, eax
call fcn.00476e50
add esp, 0x1c
push 0
push 0
push 0
lea eax, [esp + 0x284]
push eax
push 0
push ebp
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [esp + 0xa94]
call fcn.004766b0
add esp, 0x1c
jmp 0x442833
mov dword [esp + 0x1c], 0
cmp word [esp + 0xa78], 0
lea eax, [esp + 0x1278]
mov dword [esp + 0x48], eax
je 0x44291a
lea ecx, [esp + 0xa78]
mov dword [esp + 0x24], ecx
jmp 0x442922
mov dword [esp + 0x24], str.All_Files__._
movzx eax, word [esp + 0x70]
mov edi, dword [esp + 0x21a80]
movzx esi, word [edi]
neg eax
sbb eax, eax
lea ecx, [esp + 0x70]
and eax, ecx
lea edx, [esp + 0x1a78]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x44], eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
test esi, 0xffffff80
jne 0x442976
push 2
push esi
call fcn.0049120e
add esp, 8
test eax, eax
je 0x442976
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x4d
je 0x44298a
cmp eax, 0x53
jne 0x442992
mov byte [esp + 0x13], 1
jmp 0x44298f
mov byte [esp + 0x12], 1
add edi, 2
mov eax, edi
call fcn.0040ef80
test al, al
je 0x4429ac
push 0x10
push 0
push edi
call fcn.0049170f
add esp, 0xc
jmp 0x4429b5
push edi
call fcn.00491256
add esp, 4
mov dword [esp + 0x4c], 0x80004
test al, 0x20
je 0x4429c9
mov dword [esp + 0x4c], 0x180004
test al, 0x10
je 0x4429d2
or dword [esp + 0x4c], 2
test al, 8
je 0x4429de
or dword [esp + 0x4c], 0x2000
cmp byte [esp + 0x12], 0
mov ebp, 0x200
jne 0x4429ee
test al, 4
je 0x4429f2
or dword [esp + 0x4c], ebp
test al, 2
je 0x4429fe
or dword [esp + 0x4c], 0x800
test al, 1
je 0x442a0a
or dword [esp + 0x4c], 0x1000
call fcn.0047c130
mov edx, dword [0x4ca564]
push 0
push 0x403
push 0x44
push edx
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 1
add dword [0x4ca70c], edi
cmp byte [esp + 0x13], 0
jne 0x442a55
mov eax, dword [esp + 0x4c]
test al, 2
je 0x442a48
test eax, 0x2000
je 0x442a55
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x442a60
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
sub dword [0x4ca70c], edi
test bl, bl
mov esi, eax
mov eax, dword [0x4c6a44]
sete dl
mov byte [eax + 0xee], bl
mov byte [eax + 0xec], dl
mov eax, dword [0x4c7b78]
test eax, eax
je 0x442aa3
mov eax, dword [eax]
test eax, eax
je 0x442aa3
cmp word [eax], 0
je 0x442aa3
test eax, eax
jne 0x442a9c
mov eax, 0x4a3890
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jne 0x442b0a
mov ecx, dword [esp + 0x14]
call fcn.004150e0
cmp eax, edi
je 0x442ac3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x442ae7
mov eax, dword [esp + 0x21a7c]
push eax
call fcn.00432d40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
mov ecx, dword [0x4cad6c]
push edi
push 0
push 0xffffffffffffffff
push 0x4a6324
push ecx
call fcn.00479730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
mov edx, dword [0x4cad6c]
push edi
push 0
push 0xffffffffffffffff
push 0x4a3920
push edx
call fcn.00479730
test dword [esp + 0x4c], ebp
je 0x442c0e
cmp byte [esp + 0x12], 0
lea eax, [esp + 0x1a78]
je 0x442bf0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442b40
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a7a], cx
lea eax, [esp + 0x1a78]
jne 0x442bd0
push 0x5c
push eax
call fcn.00491dae
mov esi, eax
add esp, 8
test esi, esi
je 0x442c0e
mov edx, esi
lea eax, [esp + 0x1a78]
sub edx, eax
and edx, 0xfffffffe
mov ecx, 0xa
mov word [esi], cx
cmp edx, 4
jne 0x442c0e
cmp word [esi - 2], 0x3a
jne 0x442c0e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442ba0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 2]
push esi
push edx
call fcn.00490a30
mov eax, 0x5c
add esp, 0xc
mov word [esi], ax
jmp 0x442c0e
cmp word [eax], 0
je 0x442bdf
add eax, 2
cmp word [eax], 0
jne 0x442bd6
cmp word [eax + 2], 0
je 0x442c0e
mov ecx, 0xa
mov word [eax], cx
jmp 0x442bd0
cmp word [eax], 0
je 0x442bff
add eax, 2
cmp word [eax], 0
jne 0x442bf6
cmp word [eax + 2], 0
mov edx, 0xa
mov word [eax], dx
jne 0x442bf0
mov ecx, dword [esp + 0x14]
push edi
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1a84]
push eax
push ecx
call fcn.00479730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc