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

Disassembly:
mov eax, 0x10d6c
call fcn.00492d90
cmp dword [0x4af0a8], 4
push ebx
push ebp
mov ebp, dword [0x4b0840]
push esi
push edi
mov edi, ecx
jl 0x43ee1d
push 0x49e065
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.0042e0a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov eax, dword [esp + 0x10d84]
mov byte [esp + 0xd78], 0
test eax, eax
je 0x43ef22
cmp byte [eax], 0
je 0x43ef22
push 0x103
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00488ae0
add esp, 0xc
mov byte [esp + 0x173], 0
lea eax, [esp + 0x70]
push 3
push 0x4a488c
push eax
call fcn.00487d0f
add esp, 0xc
test eax, eax
lea eax, [esp + 0x70]
sete bl
test bl, bl
je 0x43eeb2
push 0x7d
push eax
call fcn.00486ac4
add esp, 8
test eax, eax
je 0x43ef27
cmp byte [eax + 1], 0
je 0x43ef27
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43eea0
sub ecx, edx
cmp byte [esp + ecx + 0x6f], 0x5c
jne 0x43eec2
jmp 0x43ef27
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43eec2
test al, 0x10
jne 0x43ef27
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.00487e3e
mov esi, eax
add esp, 8
test esi, esi
je 0x43eefd
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xd80]
push eax
call fcn.00488ae0
mov byte [esp + 0x10d82], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x43ef27
test bl, bl
jne 0x43ef27
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd80]
push eax
call fcn.00488ae0
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x10d88]
test eax, eax
je 0x43ef57
cmp byte [eax], 0
je 0x43ef57
push 0x3ff
push eax
lea eax, [esp + 0x980]
push eax
call fcn.00488ae0
add esp, 0xc
mov byte [esp + 0xd77], 0
jmp 0x43ef77
push dword [0x4b0fa4]
lea eax, [esp + 0x97c]
push str.Select_File____s
push 0x400
push eax
call fcn.00472ab0
add esp, 0x10
mov esi, dword [esp + 0x10d8c]
mov byte [esp + 0x578], 0
mov byte [esp + 0x178], 0
cmp byte [esi], 0
je 0x43eff0
push 0x28
push esi
call fcn.00486ac4
add esp, 8
push 0x3ff
test eax, eax
je 0x43f030
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call fcn.00488ae0
add esp, 0xc
mov byte [esp + 0x577], 0
lea eax, [esp + 0x178]
push 0x29
push eax
call fcn.00487e3e
add esp, 8
test eax, eax
je 0x43efe0
mov byte [eax], 0
jmp 0x43f049
mov byte [esp + 0x178], 0
mov byte [esp + 0x578], 0
push 0x54
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0048fd00
mov ecx, dword [0x4ac1d8]
add esp, 0xc
mov dword [esp + 0x18], 0x58
lea ecx, [ecx + 0x4c]
call fcn.0045a000
test eax, eax
je 0x43f0a3
mov eax, dword [0x4ac1d8]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x43f0ab
lea eax, [esp + 0x17c]
push esi
push eax
call fcn.00488ae0
add esp, 0xc
mov byte [esp + 0x577], 0
cmp byte [esp + 0x178], 0
je 0x43efe8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x49e065
mov edx, 0x4a3440
lea ecx, [esp + 0x190]
call fcn.00473290
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 + 0x5ac]
push 0x400
push eax
call fcn.00472ab0
add esp, 0x3c
jmp 0x43eff0
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x578], 0
lea eax, [esp + 0x978]
mov esi, dword [esp + 0x10d80]
mov ecx, str.All_Files__._
mov dword [esp + 0x48], eax
lea eax, [esp + 0x578]
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 + 0x17], cl
mov dword [esp + 0x44], eax
xor bh, bh
movzx eax, bl
test eax, 0xffffff80
jne 0x43f120
push 2
push eax
call fcn.0048708c
add esp, 8
test eax, eax
je 0x43f120
and bl, 0xdf
mov al, bl
cmp al, 0x4d
je 0x43f131
cmp al, 0x53
jne 0x43f134
mov byte [esp + 0x17], 1
jmp 0x43f133
mov bh, 1
inc esi
mov ecx, esi
call fcn.0040ee90
test al, 0x20
mov ecx, 0x80004
mov edx, 0x180004
cmovne ecx, edx
mov dword [esp + 0x4c], ecx
test al, 0x10
je 0x43f159
or ecx, 2
mov dword [esp + 0x4c], ecx
test al, 8
je 0x43f167
or ecx, 0x2000
mov dword [esp + 0x4c], ecx
test bh, bh
jne 0x43f16f
test al, 4
je 0x43f179
or ecx, 0x200
mov dword [esp + 0x4c], ecx
test al, 2
je 0x43f187
or ecx, 0x800
mov dword [esp + 0x4c], ecx
test al, 1
je 0x43f195
or ecx, 0x1000
mov dword [esp + 0x4c], ecx
call fcn.004780f0
push 0
push 0x403
push 0x44
push dword [0x4af0ac]
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4af0a8]
cmp byte [esp + 0x17], 0
jne 0x43f1da
mov eax, dword [esp + 0x4c]
test al, 2
je 0x43f1cd
test eax, 0x2000
je 0x43f1da
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x43f1e5
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4af0a8]
mov esi, eax
mov ecx, dword [0x4ac1d8]
test bl, bl
sete al
mov byte [ecx + 0xce], bl
mov byte [ecx + 0xcc], al
cmp byte [0x4aef88], 0
je 0x43f218
push 0x4aef88
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x43f27f
push esi
mov ecx, ebp
call fcn.004759c0
cmp eax, 1
je 0x43f23e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x43f25c
mov ecx, edi
call fcn.00430720
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x4a09f8
call fcn.004759c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov ecx, dword [0x4af094]
push 0x49e080
call fcn.004759c0
test dword [esp + 0x4c], 0x200
je 0x43f354
test bh, bh
je 0x43f336
lea ecx, [esp + 0xd78]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f2b0
sub ecx, edx
lea eax, [esp + 0xd78]
cmp byte [esp + ecx + 0xd79], 0
jne 0x43f320
push 0x5c
push eax
call fcn.00487e3e
mov esi, eax
add esp, 8
test esi, esi
je 0x43f354
mov ecx, esi
mov byte [esi], 0xa
lea eax, [esp + 0xd78]
sub ecx, eax
cmp ecx, 2
jne 0x43f354
cmp byte [esi - 1], 0x3a
jne 0x43f354
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f300
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.00486480
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x43f354
cmp byte [eax], 0
je 0x43f32b
inc eax
cmp byte [eax], 0
jne 0x43f325
cmp byte [eax + 1], 0
je 0x43f354
mov byte [eax], 0xa
jmp 0x43f320
lea eax, [esp + 0xd78]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x43f34b
inc eax
cmp byte [eax], 0
jne 0x43f345
mov byte [eax], 0xa
cmp byte [eax + 1], 0
jne 0x43f340
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0xd84]
mov ecx, ebp
push eax
call fcn.004759c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10