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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c64
call fcn.004a04a0
cmp dword [0x4bb654], 4
mov eax, dword [0x4bb3e8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], eax
jl 0x44c0e6
mov ecx, dword [ebp + 8]
push 0x4a78b1
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.0043b500
lea esp, [ebp - 0x10c70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 0x10c60], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x44c1dd
cmp byte [esi], 0
je 0x44c1dd
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c110
sub eax, edx
push 0x5c
push esi
mov ebx, eax
call fcn.0049406c
mov edi, eax
add esp, 8
test edi, edi
je 0x44c132
cmp byte [edi + 1], 0
je 0x44c187
push 3
push 0x4aec0c
push esi
call fcn.00495b33
add esp, 0xc
test eax, eax
jne 0x44c177
cmp ebx, 0x28
jne 0x44c155
cmp byte [esi + 0x27], 0x7d
jne 0x44c155
test edi, edi
je 0x44c187
push 0xfffe
test edi, edi
jne 0x44c18b
lea ecx, [ebp - 0x10c60]
push esi
push ecx
call fcn.00496440
add esp, 0xc
mov byte [ebp - 0xc62], 0
jmp 0x44c1dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44c155
test al, 0x10
je 0x44c155
mov edi, ebx
jmp 0x44c1a7
lea edx, [edi + 1]
push edx
lea eax, [ebp - 0x10c60]
push eax
call fcn.00496440
add esp, 0xc
mov byte [ebp - 0xc62], 0
sub edi, esi
cmp byte [edi + esi], 0
mov dword [ebp - 4], esi
je 0x44c1dd
cmp edi, 0x104
jae 0x44c1d6
lea eax, [edi + 1]
call fcn.0049cca0
mov ebx, esp
push edi
push esi
push ebx
call fcn.0049b8f0
add esp, 0xc
mov dword [ebp - 4], eax
mov byte [ebx + edi], 0
jmp 0x44c1dd
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44c207
cmp byte [eax], 0
je 0x44c207
push 0x3ff
push eax
lea ecx, [ebp - 0xc60]
push ecx
call fcn.00496440
add esp, 0xc
mov byte [ebp - 0x861], 0
jmp 0x44c226
mov edx, dword [0x4bcad0]
push edx
push str.Select_File____s
mov esi, 0x400
lea edi, [ebp - 0xc60]
call fcn.0047fde0
add esp, 8
mov esi, dword [ebp + 0x14]
cmp byte [esi], 0
mov byte [ebp - 0x860], 0
mov byte [ebp - 0x460], 0
je 0x44c28d
push 0x28
push esi
call fcn.004949a1
add esp, 8
push 0x3ff
test eax, eax
je 0x44c2c6
inc eax
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.00496440
add esp, 0xc
lea ecx, [ebp - 0x460]
push 0x29
push ecx
mov byte [ebp - 0x61], 0
call fcn.0049406c
add esp, 8
test eax, eax
je 0x44c27f
mov byte [eax], 0
jmp 0x44c2da
mov byte [ebp - 0x460], 0
mov byte [ebp - 0x860], 0
push 0x54
lea edx, [ebp - 0x5c]
push 0
push edx
call fcn.0049c740
mov ebx, dword [0x4b7a70]
add esp, 0xc
add ebx, 0x4c
mov dword [ebp - 0x60], 0x58
call fcn.00467320
test eax, eax
je 0x44c331
mov eax, dword [0x4b7a70]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x5c], edx
jmp 0x44c338
lea edx, [ebp - 0x460]
push esi
push edx
call fcn.00496440
add esp, 0xc
mov byte [ebp - 0x61], 0
cmp byte [ebp - 0x460], 0
je 0x44c286
push 0
push 0xffffffffffffffff
push 1
push 0x4a78b1
lea eax, [ebp - 0x460]
push 0x4ad874
push eax
xor eax, eax
or ecx, 0xffffffff
call fcn.00480550
push 0
push 0
push 0
lea ecx, [ebp - 0x460]
push ecx
push 0
push esi
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [ebp - 0x860]
call fcn.0047fde0
add esp, 0x34
jmp 0x44c28d
mov dword [ebp - 0x5c], 0
cmp byte [ebp - 0x860], 0
lea eax, [ebp - 0xc60]
mov dword [ebp - 0x30], eax
je 0x44c355
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x54], ecx
jmp 0x44c35c
mov dword [ebp - 0x54], str.All_Files__._
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov bl, byte [esi]
mov dword [ebp - 0x34], eax
movzx eax, bl
lea edx, [ebp - 0x10c60]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0xfffe
mov byte [ebp + 0x17], 0
mov byte [ebp + 0x13], 0
test eax, 0xffffff80
jne 0x44c39b
push 2
push eax
call fcn.0049421c
add esp, 8
test eax, eax
je 0x44c39b
and bl, 0xdf
cmp bl, 0x4d
je 0x44c3ab
cmp bl, 0x53
jne 0x44c3b0
mov byte [ebp + 0x17], 1
jmp 0x44c3af
mov byte [ebp + 0x13], 1
inc esi
mov eax, esi
call fcn.00404050
test al, al
je 0x44c3ca
push 0x10
push 0
push esi
call fcn.004947dc
add esp, 0xc
jmp 0x44c3d3
push esi
call fcn.00493888
add esp, 4
mov dword [ebp - 0x2c], 0x80004
test al, 0x20
je 0x44c3e5
mov dword [ebp - 0x2c], 0x180004
test al, 0x10
je 0x44c3ed
or dword [ebp - 0x2c], 2
test al, 8
je 0x44c3f8
or dword [ebp - 0x2c], 0x2000
cmp byte [ebp + 0x13], 0
jne 0x44c402
test al, 4
je 0x44c409
or dword [ebp - 0x2c], 0x200
test al, 2
je 0x44c414
or dword [ebp - 0x2c], 0x800
test al, 1
je 0x44c41f
or dword [ebp - 0x2c], 0x1000
call fcn.00485900
mov ecx, dword [0x4bb4ac]
push 0
push 0x403
push 0x44
push ecx
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, 1
add dword [0x4bb654], edi
cmp byte [ebp + 0x17], 0
jne 0x44c467
mov eax, dword [ebp - 0x2c]
test al, 2
je 0x44c45b
test eax, 0x2000
je 0x44c467
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x44c471
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
sub dword [0x4bb654], edi
test bl, bl
mov esi, eax
mov eax, dword [0x4b7a70]
sete cl
mov byte [eax + 0xce], bl
mov byte [eax + 0xcc], cl
mov eax, dword [0x4b8c90]
test eax, eax
je 0x44c4b3
mov eax, dword [eax]
test eax, eax
je 0x44c4b3
cmp byte [eax], 0
je 0x44c4b3
test eax, eax
jne 0x44c4ac
mov eax, 0x4a78b1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
jne 0x44c51a
mov ecx, dword [ebp - 8]
call fcn.0041c270
cmp eax, edi
je 0x44c4d4
xor eax, eax
lea esp, [ebp - 0x10c70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x44c4f5
mov ebx, dword [ebp + 8]
call fcn.0043d080
lea esp, [ebp - 0x10c70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x4bbcb4]
push edi
push 0
push 0xffffffffffffffff
push 0x4a7de4
push edx
call fcn.00482f60
lea esp, [ebp - 0x10c70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4bbcb4]
push edi
push 0
push 0xffffffffffffffff
push 0x4a7940
push eax
call fcn.00482f60
test dword [ebp - 0x2c], 0x200
je 0x44c5f0
cmp byte [ebp + 0x13], 0
lea eax, [ebp - 0x10c60]
je 0x44c5d7
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c550
sub eax, edx
cmp byte [ebp + eax - 0x10c5f], cl
jne 0x44c5b3
lea ecx, [ebp - 0x10c60]
push 0x5c
push ecx
call fcn.0049406c
mov esi, eax
add esp, 8
test esi, esi
je 0x44c5f0
mov edx, esi
lea eax, [ebp - 0x10c60]
sub edx, eax
mov byte [esi], 0xa
cmp edx, 2
jne 0x44c5f0
cmp byte [esi - 1], 0x3a
jne 0x44c5f0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c596
sub eax, edx
inc eax
push eax
lea ecx, [esi + 1]
push esi
push ecx
call fcn.00494250
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x44c5f0
lea eax, [ebp - 0x10c60]
lea esp, [esp]
cmp byte [eax], 0
je 0x44c5cc
add eax, edi
cmp byte [eax], 0
jne 0x44c5c5
cmp byte [eax + 1], 0
je 0x44c5f0
mov byte [eax], 0xa
jmp 0x44c5c0
cmp byte [eax], 0
je 0x44c5e7
lea esp, [esp]
add eax, edi
cmp byte [eax], 0
jne 0x44c5e0
cmp byte [eax + 1], 0
mov byte [eax], 0xa
jne 0x44c5d7
mov eax, dword [ebp - 8]
push edi
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10c60]
push edx
push eax
call fcn.00482f60
lea esp, [ebp - 0x10c70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10