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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10d6c
call fcn.004c78a0
cmp dword [0x4e794c], 4
mov eax, dword [0x4e90f8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
jl 0x457e21
push 0x4d0335
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.00446d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov byte [esp + 0xd78], 0
test edx, edx
je 0x457f44
cmp byte [edx], 0
je 0x457f44
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457e42
sub ecx, esi
lea eax, [esp + 0x70]
cmp ecx, 0x104
jb 0x457e66
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x457e7d
push 0x103
push edx
push eax
call fcn.004b9880
add esp, 0xc
mov byte [esp + 0x173], 0
push 3
lea eax, [esp + 0x74]
push 0x4da9bc
push eax
call fcn.004b9b6d
add esp, 0xc
test eax, eax
sete bl
test eax, eax
lea eax, [esp + 0x70]
jne 0x457ed4
push 0x7d
push eax
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x457f49
cmp byte [eax + 1], 0
je 0x457f49
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457ec2
sub ecx, edx
cmp byte [esp + ecx + 0x6f], 0x5c
je 0x457f49
jmp 0x457ee4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x457ee4
test al, 0x10
jne 0x457f49
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.004b4423
mov esi, eax
add esp, 8
test esi, esi
je 0x457f1f
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xd80]
push eax
call fcn.004b9880
mov byte [esp + 0x10d82], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x457f49
test bl, bl
jne 0x457f49
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd80]
push eax
call fcn.004b9880
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x457f75
cmp byte [eax], 0
je 0x457f75
push 0x3ff
push eax
lea eax, [esp + 0x580]
push eax
call fcn.004b9880
add esp, 0xc
mov byte [esp + 0x977], 0
jmp 0x457f95
push dword [0x4ea090]
lea eax, [esp + 0x57c]
push str.Select_File____s
push 0x400
push eax
call fcn.0049a540
add esp, 0x10
mov esi, dword [ebp + 0x14]
mov byte [esp + 0x978], 0
mov byte [esp + 0x178], 0
cmp byte [esi], 0
je 0x458072
push 0x28
push esi
call fcn.004b7be9
add esp, 8
push 0x3ff
test eax, eax
je 0x458004
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call fcn.004b9880
add esp, 0xc
mov byte [esp + 0x577], 0
lea eax, [esp + 0x178]
push 0x29
push eax
call fcn.004b4423
add esp, 8
test eax, eax
je 0x457ffa
mov byte [eax], 0
jmp 0x45801d
mov byte [esp + 0x178], 0
jmp 0x458072
lea eax, [esp + 0x17c]
push esi
push eax
call fcn.004b9880
add esp, 0xc
mov byte [esp + 0x577], 0
cmp byte [esp + 0x178], 0
je 0x458072
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4d0335
mov edx, 0x4d9944
lea ecx, [esp + 0x190]
call fcn.0049acc0
push 0
push 0
push 0
lea eax, [esp + 0x19c]
push eax
push 0
push esi
push str._s_c_s_cAll_Files__.__c._c
lea eax, [esp + 0x9ac]
push 0x400
push eax
call fcn.0049a540
add esp, 0x3c
push 0x58
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004afdf0
mov ecx, dword [0x4e498c]
add esp, 0xc
mov dword [esp + 0x18], 0x58
lea ecx, [ecx + 0x4c]
call fcn.00477b20
test eax, eax
je 0x4580ae
mov eax, dword [0x4e498c]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x4580b6
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x978], 0
lea eax, [esp + 0x578]
mov esi, dword [ebp + 8]
mov ecx, str.All_Files__._
mov dword [esp + 0x48], eax
lea eax, [esp + 0x978]
cmove eax, ecx
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x24], eax
xor ecx, ecx
cmp byte [esp + 0x70], cl
lea eax, [esp + 0xd78]
mov bl, byte [esi]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
cmove eax, ecx
mov byte [esp + 0x13], cl
mov dword [esp + 0x44], eax
xor bh, bh
movzx eax, bl
test eax, 0xffffff80
jne 0x458127
push 2
push eax
call fcn.004b47c1
add esp, 8
test eax, eax
je 0x458127
and bl, 0xdf
mov al, bl
cmp al, 0x4d
je 0x458138
cmp al, 0x53
jne 0x45813b
mov byte [esp + 0x13], 1
jmp 0x45813a
mov bh, 1
inc esi
mov ecx, esi
call fcn.00417810
test al, 0x20
mov ecx, 0x80004
mov edx, 0x180004
cmovne ecx, edx
mov dword [esp + 0x4c], ecx
test al, 0x10
je 0x458160
or ecx, 2
mov dword [esp + 0x4c], ecx
test al, 8
je 0x45816e
or ecx, 0x2000
mov dword [esp + 0x4c], ecx
test bh, bh
jne 0x458176
test al, 4
je 0x458180
or ecx, 0x200
mov dword [esp + 0x4c], ecx
test al, 2
je 0x45818e
or ecx, 0x800
mov dword [esp + 0x4c], ecx
test al, 1
je 0x45819c
or ecx, 0x1000
mov dword [esp + 0x4c], ecx
call fcn.004a0f90
push 0
push 0x403
push 0x44
push dword [0x4e7950]
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4e794c]
cmp byte [esp + 0x13], 0
jne 0x4581e1
mov eax, dword [esp + 0x4c]
test al, 2
je 0x4581d4
test eax, 0x2000
je 0x4581e1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x4581ec
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4e794c]
mov esi, eax
mov ecx, dword [0x4e498c]
test bl, bl
sete al
mov byte [ecx + 0xce], bl
mov byte [ecx + 0xcc], al
mov eax, dword [0x4e6378]
test eax, eax
je 0x45822c
mov eax, dword [eax]
mov ecx, 0x4d0335
test eax, eax
cmovne ecx, eax
cmp byte [ecx], 0
je 0x45822c
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x4582a3
mov ecx, dword [esp + 0x20]
push esi
call fcn.0049e6b0
cmp eax, 1
je 0x458250
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x458284
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
je 0x458284
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, edi
call fcn.00446950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4e7934]
push 0x4d03bc
call fcn.0049e6b0
test dword [esp + 0x4c], 0x200
je 0x458391
test bh, bh
je 0x458367
lea ecx, [esp + 0xd78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4582d3
sub ecx, edx
lea eax, [esp + 0xd78]
cmp byte [esp + ecx + 0xd79], 0
jne 0x458343
push 0x5c
push eax
call fcn.004b4423
mov esi, eax
add esp, 8
test esi, esi
je 0x458391
mov ecx, esi
mov byte [esi], 0xa
lea eax, [esp + 0xd78]
sub ecx, eax
cmp ecx, 2
jne 0x458391
cmp byte [esi - 1], 0x3a
jne 0x458391
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458324
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.004aff90
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x458391
mov cl, byte [esp + 0xd78]
nop word [eax + eax]
test cl, cl
je 0x45835a
inc eax
cmp byte [eax], 0
jne 0x458354
cmp byte [eax + 1], 0
je 0x458391
mov byte [eax], 0xa
mov cl, 0xa
jmp 0x458350
mov cl, byte [esp + 0xd78]
lea eax, [esp + 0xd78]
test cl, cl
je 0x458386
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x458380
mov byte [eax], 0xa
mov cl, 0xa
cmp byte [eax + 1], 0
jne 0x458375
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xd78]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10