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

Disassembly:
mov eax, 0x10d6c
call fcn.004918b0
cmp dword [0x4ad0dc], 4
push ebx
push ebp
mov ebp, dword [0x4ae860]
push esi
push edi
mov edi, ecx
jl 0x43d93d
push 0x49bc4d
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.0042cbc0
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 0x43da42
cmp byte [eax], 0
je 0x43da42
push 0x103
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00487600
add esp, 0xc
mov byte [esp + 0x173], 0
lea eax, [esp + 0x70]
push 3
push 0x4a249c
push eax
call fcn.0048682f
add esp, 0xc
test eax, eax
lea eax, [esp + 0x70]
sete bl
test bl, bl
je 0x43d9d2
push 0x7d
push eax
call fcn.004855e4
add esp, 8
test eax, eax
je 0x43da47
cmp byte [eax + 1], 0
je 0x43da47
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43d9c0
sub ecx, edx
cmp byte [esp + ecx + 0x6f], 0x5c
jne 0x43d9e2
jmp 0x43da47
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43d9e2
test al, 0x10
jne 0x43da47
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.0048695e
mov esi, eax
add esp, 8
test esi, esi
je 0x43da1d
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xd80]
push eax
call fcn.00487600
mov byte [esp + 0x10d82], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x43da47
test bl, bl
jne 0x43da47
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd80]
push eax
call fcn.00487600
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x10d88]
test eax, eax
je 0x43da77
cmp byte [eax], 0
je 0x43da77
push 0x3ff
push eax
lea eax, [esp + 0x980]
push eax
call fcn.00487600
add esp, 0xc
mov byte [esp + 0xd77], 0
jmp 0x43da97
push dword [0x4aefb4]
lea eax, [esp + 0x97c]
push str.Select_File____s
push 0x400
push eax
call fcn.004715d0
add esp, 0x10
mov esi, dword [esp + 0x10d8c]
mov byte [esp + 0x578], 0
mov byte [esp + 0x178], 0
cmp byte [esi], 0
je 0x43db10
push 0x28
push esi
call fcn.004855e4
add esp, 8
push 0x3ff
test eax, eax
je 0x43db50
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call fcn.00487600
add esp, 0xc
mov byte [esp + 0x577], 0
lea eax, [esp + 0x178]
push 0x29
push eax
call fcn.0048695e
add esp, 8
test eax, eax
je 0x43db00
mov byte [eax], 0
jmp 0x43db69
mov byte [esp + 0x178], 0
mov byte [esp + 0x578], 0
push 0x54
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0048e820
mov ecx, dword [0x4aa1d8]
add esp, 0xc
mov dword [esp + 0x18], 0x58
lea ecx, [ecx + 0x4c]
call fcn.00458b20
test eax, eax
je 0x43dbc3
mov eax, dword [0x4aa1d8]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x43dbcb
lea eax, [esp + 0x17c]
push esi
push eax
call fcn.00487600
add esp, 0xc
mov byte [esp + 0x577], 0
cmp byte [esp + 0x178], 0
je 0x43db08
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x49bc4d
mov edx, 0x4a1058
lea ecx, [esp + 0x190]
call fcn.00471db0
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.004715d0
add esp, 0x3c
jmp 0x43db10
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 0x43dc40
push 2
push eax
call fcn.00485bac
add esp, 8
test eax, eax
je 0x43dc40
and bl, 0xdf
mov al, bl
cmp al, 0x4d
je 0x43dc51
cmp al, 0x53
jne 0x43dc54
mov byte [esp + 0x17], 1
jmp 0x43dc53
mov bh, 1
inc esi
mov ecx, esi
call fcn.0040dd10
test al, 0x20
mov ecx, 0x80004
mov edx, 0x180004
cmovne ecx, edx
mov dword [esp + 0x4c], ecx
test al, 0x10
je 0x43dc79
or ecx, 2
mov dword [esp + 0x4c], ecx
test al, 8
je 0x43dc87
or ecx, 0x2000
mov dword [esp + 0x4c], ecx
test bh, bh
jne 0x43dc8f
test al, 4
je 0x43dc99
or ecx, 0x200
mov dword [esp + 0x4c], ecx
test al, 2
je 0x43dca7
or ecx, 0x800
mov dword [esp + 0x4c], ecx
test al, 1
je 0x43dcb5
or ecx, 0x1000
mov dword [esp + 0x4c], ecx
call fcn.00476c10
push 0
push 0x403
push 0x44
push dword [0x4ad0e0]
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4ad0dc]
cmp byte [esp + 0x17], 0
jne 0x43dcfa
mov eax, dword [esp + 0x4c]
test al, 2
je 0x43dced
test eax, 0x2000
je 0x43dcfa
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x43dd05
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4ad0dc]
mov esi, eax
mov ecx, dword [0x4aa1d8]
test bl, bl
sete al
mov byte [ecx + 0xce], bl
mov byte [ecx + 0xcc], al
cmp byte [0x4acfc0], 0
je 0x43dd38
push 0x4acfc0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x43dd9f
push esi
mov ecx, ebp
call fcn.004744e0
cmp eax, 1
je 0x43dd5e
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 0x43dd7c
mov ecx, edi
call fcn.0042f240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49e628
call fcn.004744e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov ecx, dword [0x4ad0c8]
push 0x49bca8
call fcn.004744e0
test dword [esp + 0x4c], 0x200
je 0x43de74
test bh, bh
je 0x43de56
lea ecx, [esp + 0xd78]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43ddd0
sub ecx, edx
lea eax, [esp + 0xd78]
cmp byte [esp + ecx + 0xd79], 0
jne 0x43de40
push 0x5c
push eax
call fcn.0048695e
mov esi, eax
add esp, 8
test esi, esi
je 0x43de74
mov ecx, esi
mov byte [esi], 0xa
lea eax, [esp + 0xd78]
sub ecx, eax
cmp ecx, 2
jne 0x43de74
cmp byte [esi - 1], 0x3a
jne 0x43de74
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43de20
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.00484fa0
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x43de74
cmp byte [eax], 0
je 0x43de4b
inc eax
cmp byte [eax], 0
jne 0x43de45
cmp byte [eax + 1], 0
je 0x43de74
mov byte [eax], 0xa
jmp 0x43de40
lea eax, [esp + 0xd78]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x43de6b
inc eax
cmp byte [eax], 0
jne 0x43de65
mov byte [eax], 0xa
cmp byte [eax + 1], 0
jne 0x43de60
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0xd84]
mov ecx, ebp
push eax
call fcn.004744e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10