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

Disassembly:
mov eax, 0x21a68
call fcn.0049a260
cmp dword [0x4c8154], 4
mov eax, dword [0x4c7f00]
push ebx
push ebp
mov ebp, dword [esp + 0x21a7c]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x14], eax
jl 0x442a10
mov ecx, dword [esp + 0x21a7c]
push 0x4acd84
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.00430490
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
xor ecx, ecx
push 0x1fffc
push ecx
lea edx, [esp + 0x1a82]
push edx
mov word [esp + 0x1a84], cx
call fcn.00497940
add esp, 0xc
test esi, esi
je 0x442b45
cmp word [esi], 0
je 0x442b45
push 0x103
lea eax, [esp + 0x74]
push esi
push eax
call fcn.00491764
add esp, 0xc
push 3
lea edx, [esp + 0x74]
xor ecx, ecx
push 0x4ac27c
push edx
mov word [esp + 0x282], cx
call fcn.00490604
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x442ac1
lea eax, [esp + 0x70]
push 0x7d
push eax
call fcn.0048f841
add esp, 8
test eax, eax
je 0x442b4c
cmp word [eax + 2], 0
je 0x442b4c
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442aa5
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6e], 0x5c
jne 0x442ad5
jmp 0x442b4c
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x442ad5
test al, 0x10
jne 0x442b4c
lea edx, [esp + 0x70]
push 0x5c
push edx
call fcn.0049063d
mov esi, eax
add esp, 8
test esi, esi
je 0x442b14
push 0xfffe
lea eax, [esi + 2]
push eax
lea ecx, [esp + 0x1a80]
push ecx
call fcn.00491764
xor edx, edx
add esp, 0xc
xor eax, eax
mov word [esp + 0x21a74], dx
mov word [esi], ax
jmp 0x442b4c
test bl, bl
jne 0x442b4c
push 0xfffe
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x1a80]
push edx
call fcn.00491764
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x21a74], ax
mov word [esp + 0x70], cx
jmp 0x442b4c
xor edx, edx
mov word [esp + 0x70], dx
test edi, edi
je 0x442b78
cmp word [edi], 0
je 0x442b78
push 0x3ff
lea eax, [esp + 0x127c]
push edi
push eax
call fcn.00491764
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x1a76], cx
jmp 0x442b98
mov edx, dword [0x4cabf8]
push edx
push str.Select_File____s
mov esi, 0x400
lea edi, [esp + 0x1280]
call fcn.00475700
add esp, 8
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa82]
push ecx
mov word [esp + 0xa84], ax
call fcn.00497940
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x282]
push eax
mov word [esp + 0x284], dx
call fcn.00497940
add esp, 0xc
cmp word [ebp], 0
je 0x442c46
push 0x28
push ebp
call fcn.0048f841
add esp, 8
push 0x3ff
test eax, eax
je 0x442c89
add eax, 2
push eax
lea ecx, [esp + 0x280]
push ecx
call fcn.00491764
add esp, 0xc
lea eax, [esp + 0x278]
xor edx, edx
push 0x29
push eax
mov word [esp + 0xa7e], dx
call fcn.0049063d
add esp, 8
test eax, eax
je 0x442c32
xor ecx, ecx
mov word [eax], cx
jmp 0x442ca4
xor edx, edx
mov word [esp + 0x278], dx
xor ecx, ecx
mov word [esp + 0xa78], cx
push 0x54
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00497940
mov ebx, dword [0x4c440c]
add esp, 0xc
add ebx, 0x4c
mov dword [esp + 0x18], 0x58
call fcn.0045daf0
test eax, eax
je 0x442d02
mov eax, dword [0x4c440c]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
jmp 0x442d0a
lea eax, [esp + 0x27c]
push ebp
push eax
call fcn.00491764
add esp, 0xc
xor ecx, ecx
mov word [esp + 0xa76], cx
cmp word [esp + 0x278], 0
je 0x442c3c
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4acd84
lea edx, [esp + 0x28c]
push 0x4a9cf4
push edx
xor eax, eax
call fcn.00475ef0
add esp, 0x1c
push 0
push 0
push 0
lea eax, [esp + 0x284]
push eax
push 0
push ebp
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [esp + 0xa94]
call fcn.00475700
add esp, 0x1c
jmp 0x442c46
mov dword [esp + 0x1c], 0
cmp word [esp + 0xa78], 0
lea eax, [esp + 0x1278]
mov dword [esp + 0x48], eax
je 0x442d2d
lea ecx, [esp + 0xa78]
mov dword [esp + 0x24], ecx
jmp 0x442d35
mov dword [esp + 0x24], str.All_Files__._
movzx eax, word [esp + 0x70]
mov edi, dword [esp + 0x21a80]
movzx esi, word [edi]
neg eax
sbb eax, eax
lea ecx, [esp + 0x70]
and eax, ecx
lea edx, [esp + 0x1a78]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x44], eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
test esi, 0xffffff80
jne 0x442d89
push 2
push esi
call fcn.0048fcbe
add esp, 8
test eax, eax
je 0x442d89
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x4d
je 0x442d9d
cmp eax, 0x53
jne 0x442da5
mov byte [esp + 0x13], 1
jmp 0x442da2
mov byte [esp + 0x12], 1
add edi, 2
mov eax, edi
call fcn.0040d1d0
test al, al
je 0x442dbf
push 0x10
push 0
push edi
call fcn.0049009b
add esp, 0xc
jmp 0x442dc8
push edi
call fcn.0048fd06
add esp, 4
mov dword [esp + 0x4c], 0x80004
test al, 0x20
je 0x442ddc
mov dword [esp + 0x4c], 0x180004
test al, 0x10
je 0x442de5
or dword [esp + 0x4c], 2
test al, 8
je 0x442df1
or dword [esp + 0x4c], 0x2000
cmp byte [esp + 0x12], 0
mov ebp, 0x200
jne 0x442e01
test al, 4
je 0x442e05
or dword [esp + 0x4c], ebp
test al, 2
je 0x442e11
or dword [esp + 0x4c], 0x800
test al, 1
je 0x442e1d
or dword [esp + 0x4c], 0x1000
call fcn.0047ac80
mov edx, dword [0x4c7fb8]
push 0
push 0x403
push 0x44
push edx
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 1
add dword [0x4c8154], edi
cmp byte [esp + 0x13], 0
jne 0x442e68
mov eax, dword [esp + 0x4c]
test al, 2
je 0x442e5b
test eax, 0x2000
je 0x442e68
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x442e73
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
sub dword [0x4c8154], edi
test bl, bl
mov esi, eax
mov eax, dword [0x4c440c]
sete dl
mov byte [eax + 0xea], bl
mov byte [eax + 0xe8], dl
cmp word [0x4c87b8], 0
je 0x442ea6
push 0x4c87b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jne 0x442f0d
mov ecx, dword [esp + 0x14]
call fcn.004130e0
cmp eax, edi
je 0x442ec6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x442eea
mov eax, dword [esp + 0x21a7c]
push eax
call fcn.00432a60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
mov ecx, dword [0x4c87b4]
push edi
push 0
push 0xffffffffffffffff
push 0x4a531c
push ecx
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc
mov edx, dword [0x4c87b4]
push edi
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.004783a0
test dword [esp + 0x4c], ebp
je 0x44300f
cmp byte [esp + 0x12], 0
lea eax, [esp + 0x1a78]
je 0x442ff1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442f42
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a7a], cx
lea eax, [esp + 0x1a78]
jne 0x442fd1
push 0x5c
push eax
call fcn.0049063d
mov esi, eax
add esp, 8
test esi, esi
je 0x44300f
mov edx, esi
lea eax, [esp + 0x1a78]
sub edx, eax
and edx, 0xfffffffe
mov ecx, 0xa
mov word [esi], cx
cmp edx, 4
jne 0x44300f
cmp word [esi - 2], 0x3a
jne 0x44300f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442fa6
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 2]
push esi
push edx
call fcn.0048f4e0
mov eax, 0x5c
add esp, 0xc
mov word [esi], ax
jmp 0x44300f
cmp word [eax], 0
je 0x442fe0
add eax, 2
cmp word [eax], 0
jne 0x442fd7
cmp word [eax + 2], 0
je 0x44300f
mov ecx, 0xa
mov word [eax], cx
jmp 0x442fd1
cmp word [eax], 0
je 0x443000
add eax, 2
cmp word [eax], 0
jne 0x442ff7
cmp word [eax + 2], 0
mov edx, 0xa
mov word [eax], dx
jne 0x442ff1
mov ecx, dword [esp + 0x14]
push edi
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1a84]
push eax
push ecx
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a68
ret 0xc