Function at 0x453340
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.004cd3a0
cmp dword [0x4eb738], 4
mov eax, dword [0x4eceb0]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
jl 0x453381
push 0x4d5231
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.0043ea30
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 0x4534a4
cmp byte [edx], 0
je 0x4534a4
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4533a2
sub ecx, esi
lea eax, [esp + 0x70]
cmp ecx, 0x104
jb 0x4533c6
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x4533dd
push 0x103
push edx
push eax
call fcn.004ba990
add esp, 0xc
mov byte [esp + 0x173], 0
push 3
lea eax, [esp + 0x74]
push 0x4df210
push eax
call fcn.004bdf03
add esp, 0xc
test eax, eax
sete bl
test eax, eax
lea eax, [esp + 0x70]
jne 0x453434
push 0x7d
push eax
call fcn.004b87b6
add esp, 8
test eax, eax
je 0x4534a9
cmp byte [eax + 1], 0
je 0x4534a9
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453422
sub ecx, edx
cmp byte [esp + ecx + 0x6f], 0x5c
je 0x4534a9
jmp 0x453444
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x453444
test al, 0x10
jne 0x4534a9
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.004be03b
mov esi, eax
add esp, 8
test esi, esi
je 0x45347f
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xd80]
push eax
call fcn.004ba990
mov byte [esp + 0x10d82], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x4534a9
test bl, bl
jne 0x4534a9
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd80]
push eax
call fcn.004ba990
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4534d5
cmp byte [eax], 0
je 0x4534d5
push 0x3ff
push eax
lea eax, [esp + 0x580]
push eax
call fcn.004ba990
add esp, 0xc
mov byte [esp + 0x977], 0
jmp 0x4534f5
push dword [0x4ede50]
lea eax, [esp + 0x57c]
push str.Select_File____s
push 0x400
push eax
call fcn.0049e100
add esp, 0x10
mov esi, dword [ebp + 0x14]
mov byte [esp + 0x978], 0
mov byte [esp + 0x178], 0
cmp byte [esi], 0
je 0x4535d2
push 0x28
push esi
call fcn.004b87b6
add esp, 8
push 0x3ff
test eax, eax
je 0x453564
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call fcn.004ba990
add esp, 0xc
mov byte [esp + 0x577], 0
lea eax, [esp + 0x178]
push 0x29
push eax
call fcn.004be03b
add esp, 8
test eax, eax
je 0x45355a
mov byte [eax], 0
jmp 0x45357d
mov byte [esp + 0x178], 0
jmp 0x4535d2
lea eax, [esp + 0x17c]
push esi
push eax
call fcn.004ba990
add esp, 0xc
mov byte [esp + 0x577], 0
cmp byte [esp + 0x178], 0
je 0x4535d2
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4d5231
mov edx, 0x4dde34
lea ecx, [esp + 0x190]
call fcn.0049e8b0
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.0049e100
add esp, 0x3c
push 0x58
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004b4390
mov ecx, dword [0x4e88cc]
add esp, 0xc
mov dword [esp + 0x18], 0x58
lea ecx, [ecx + 0x4c]
call fcn.00476360
test eax, eax
je 0x45360e
mov eax, dword [0x4e88cc]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x453616
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 0x453687
push 2
push eax
call fcn.004b8e5e
add esp, 8
test eax, eax
je 0x453687
and bl, 0xdf
mov al, bl
cmp al, 0x4d
je 0x453698
cmp al, 0x53
jne 0x45369b
mov byte [esp + 0x13], 1
jmp 0x45369a
mov bh, 1
inc esi
mov ecx, esi
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x4536aa
cmp al, 9
jne 0x4536ad
inc ecx
jmp 0x4536a0
test al, al
je 0x4536ef
cmp al, 0x2d
je 0x4536b9
cmp al, 0x2b
jne 0x4536c0
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4536ef
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x4536cf
cmp al, 0x58
jne 0x4536ef
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x4536ef
push 0x10
push 0
push esi
call fcn.004b9ad3
add esp, 0xc
jmp 0x4536f8
push esi
call fcn.004b9548
add esp, 4
mov ecx, eax
mov edx, 0x180004
test cl, 0x20
mov eax, 0x80004
cmovne eax, edx
mov dword [esp + 0x4c], eax
test cl, 0x10
je 0x45371a
or eax, 2
mov dword [esp + 0x4c], eax
test cl, 8
je 0x453728
or eax, 0x2000
mov dword [esp + 0x4c], eax
test bh, bh
jne 0x453731
test cl, 4
je 0x45373a
or eax, 0x200
mov dword [esp + 0x4c], eax
test cl, 2
je 0x453748
or eax, 0x800
mov dword [esp + 0x4c], eax
test cl, 1
je 0x453756
or eax, 0x1000
mov dword [esp + 0x4c], eax
call fcn.004a54a0
push 0
push 0x403
push 0x44
push dword [0x4eb73c]
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4eb738]
cmp byte [esp + 0x13], 0
jne 0x45379b
mov eax, dword [esp + 0x4c]
test al, 2
je 0x45378e
test eax, 0x2000
je 0x45379b
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x4537a6
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4eb738]
mov esi, eax
mov ecx, dword [0x4e88cc]
test bl, bl
sete al
mov byte [ecx + 0xce], bl
mov byte [ecx + 0xcc], al
mov eax, dword [0x4ea23c]
test eax, eax
je 0x4537e6
mov eax, dword [eax]
mov ecx, 0x4d5231
test eax, eax
cmovne ecx, eax
cmp byte [ecx], 0
je 0x4537e6
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x45385d
mov ecx, dword [esp + 0x20]
push esi
call fcn.004a2730
cmp eax, 1
je 0x45380a
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 0x45383e
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
je 0x45383e
push 0x4d5231
push 0
push 0x4d9c00
mov ecx, edi
call fcn.0043e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4eb720]
push 0x4d5290
call fcn.004a2730
test dword [esp + 0x4c], 0x200
je 0x453946
test bh, bh
je 0x453923
lea ecx, [esp + 0xd78]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453890
sub ecx, edx
lea eax, [esp + 0xd78]
cmp byte [esp + ecx + 0xd79], 0
jne 0x4538ff
push 0x5c
push eax
call fcn.004be03b
mov esi, eax
add esp, 8
test esi, esi
je 0x453946
mov ecx, esi
mov byte [esi], 0xa
lea eax, [esp + 0xd78]
sub ecx, eax
cmp ecx, 2
jne 0x453946
cmp byte [esi - 1], 0x3a
jne 0x453946
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4538e0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.004b4620
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x453946
mov cl, byte [esp + 0xd78]
test cl, cl
je 0x453916
nop word [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x453910
cmp byte [eax + 1], 0
je 0x453946
mov byte [eax], 0xa
mov cl, 0xa
jmp 0x453906
mov cl, byte [esp + 0xd78]
lea eax, [esp + 0xd78]
test cl, cl
je 0x45393b
inc eax
cmp byte [eax], 0
jne 0x453935
mov byte [eax], 0xa
mov cl, 0xa
cmp byte [eax + 1], 0
jne 0x453931
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xd78]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10