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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21864
call fcn.004a7660
cmp dword [0x4d8844], 4
mov eax, dword [0x4d85e0]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
jl 0x44b866
mov ecx, dword [ebp + 8]
push 0x4af9ac
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.00439fb0
lea esp, [ebp - 0x21870]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
mov word [ebp - 0x21860], cx
mov dword [ebp - 4], ecx
test edi, edi
je 0x44b96c
cmp word [edi], cx
je 0x44b96c
mov eax, edi
lea edx, [eax + 2]
jmp 0x44b890
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44b890
sub eax, edx
sar eax, 1
push 0x5c
push edi
mov ebx, eax
call fcn.00499e02
mov esi, eax
add esp, 8
test esi, esi
je 0x44b8b9
cmp word [esi + 2], 0
je 0x44b911
push 3
push 0x4bc01c
push edi
call fcn.0049bbb5
add esp, 0xc
test eax, eax
jne 0x44b901
cmp ebx, 0x28
jne 0x44b8dd
cmp word [edi + 0x4e], 0x7d
jne 0x44b8dd
test esi, esi
je 0x44b911
push 0xfffe
lea edx, [ebp - 0x21860]
test esi, esi
jne 0x44b915
push edi
push edx
call fcn.0049c904
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1864], ax
jmp 0x44b96c
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44b8dd
test al, 0x10
je 0x44b8dd
mov eax, ebx
jmp 0x44b931
lea ecx, [esi + 2]
push ecx
push edx
call fcn.0049c904
xor eax, eax
sub esi, edi
add esp, 0xc
sar esi, 1
mov word [ebp - 0x1864], ax
mov eax, esi
lea esi, [eax + eax]
cmp word [esi + edi], 0
mov dword [ebp - 4], edi
je 0x44b96c
cmp eax, 0x8000
jae 0x44b965
lea eax, [esi + 2]
call fcn.004a2910
mov ebx, esp
push esi
push edi
push ebx
call fcn.004a3680
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + ebx], cx
jmp 0x44b96c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44b999
cmp word [eax], 0
je 0x44b999
push 0x3ff
push eax
lea edx, [ebp - 0x1860]
push edx
call fcn.0049c904
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1062], ax
jmp 0x44b9b8
mov ecx, dword [0x4da1a0]
push ecx
push str.Select_File____s
mov esi, 0x400
lea edi, [ebp - 0x1860]
call fcn.0047f670
add esp, 8
mov esi, dword [ebp + 0x14]
xor eax, eax
xor edx, edx
mov word [ebp - 0x1060], dx
mov word [ebp - 0x860], ax
cmp word [esi], ax
je 0x44ba31
push 0x28
push esi
call fcn.0049a1b9
add esp, 8
push 0x3ff
test eax, eax
je 0x44ba6e
add eax, 2
push eax
lea ecx, [ebp - 0x860]
push ecx
call fcn.0049c904
add esp, 0xc
lea eax, [ebp - 0x860]
xor edx, edx
push 0x29
push eax
mov word [ebp - 0x62], dx
call fcn.00499e02
add esp, 8
test eax, eax
je 0x44ba1f
xor ecx, ecx
mov word [eax], cx
jmp 0x44ba84
xor edx, edx
mov word [ebp - 0x860], dx
xor ecx, ecx
mov word [ebp - 0x1060], cx
push 0x54
lea edx, [ebp - 0x5c]
push 0
push edx
call fcn.004a41d0
mov ebx, dword [0x4d4b14]
add esp, 0xc
add ebx, 0x4c
mov dword [ebp - 0x60], 0x58
call fcn.00466670
test eax, eax
je 0x44bade
mov eax, dword [0x4d4b14]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x5c], edx
jmp 0x44bae5
lea eax, [ebp - 0x860]
push esi
push eax
call fcn.0049c904
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x62], cx
cmp word [ebp - 0x860], 0
je 0x44ba28
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4af9ac
lea edx, [ebp - 0x860]
push 0x4b9f1c
push edx
xor eax, eax
call fcn.0047fe10
add esp, 0x1c
push 0
push 0
push 0
lea eax, [ebp - 0x860]
push eax
push 0
push esi
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [ebp - 0x1060]
call fcn.0047f670
add esp, 0x1c
jmp 0x44ba31
mov dword [ebp - 0x5c], 0
cmp word [ebp - 0x1060], 0
lea eax, [ebp - 0x1860]
mov dword [ebp - 0x30], eax
je 0x44bb03
lea ecx, [ebp - 0x1060]
mov dword [ebp - 0x54], ecx
jmp 0x44bb0a
mov dword [ebp - 0x54], str.All_Files__._
mov edi, dword [ebp + 0xc]
movzx esi, word [edi]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x21860]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0xfffe
mov dword [ebp - 0x34], eax
mov byte [ebp + 0x17], 0
mov byte [ebp + 0x13], 0
test esi, 0xffffff80
jne 0x44bb48
push 2
push esi
call fcn.0049b1bc
add esp, 8
test eax, eax
je 0x44bb48
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x4d
je 0x44bb5b
cmp eax, 0x53
jne 0x44bb62
mov byte [ebp + 0x17], 1
jmp 0x44bb5f
mov byte [ebp + 0x13], 1
add edi, 2
mov eax, edi
call fcn.00403fe0
test al, al
je 0x44bb7c
push 0x10
push 0
push edi
call fcn.0049b84d
add esp, 0xc
jmp 0x44bb85
push edi
call fcn.004996cd
add esp, 4
mov dword [ebp - 0x2c], 0x80004
test al, 0x20
je 0x44bb97
mov dword [ebp - 0x2c], 0x180004
test al, 0x10
je 0x44bb9f
or dword [ebp - 0x2c], 2
test al, 8
je 0x44bbaa
or dword [ebp - 0x2c], 0x2000
cmp byte [ebp + 0x13], 0
mov edi, 0x200
jne 0x44bbb9
test al, 4
je 0x44bbbc
or dword [ebp - 0x2c], edi
test al, 2
je 0x44bbc7
or dword [ebp - 0x2c], 0x800
test al, 1
je 0x44bbd2
or dword [ebp - 0x2c], 0x1000
call fcn.00485350
mov ecx, dword [0x4d86a0]
push 0
push 0x403
push 0x44
push ecx
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x4d8844]
cmp byte [ebp + 0x17], 0
jne 0x44bc15
mov eax, dword [ebp - 0x2c]
test al, 2
je 0x44bc09
test eax, 0x2000
je 0x44bc15
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x44bc1f
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
dec dword [0x4d8844]
test bl, bl
mov esi, eax
mov eax, dword [0x4d4b14]
sete cl
mov byte [eax + 0xee], bl
mov byte [eax + 0xec], cl
mov eax, dword [0x4d5d34]
test eax, eax
je 0x44bc62
mov eax, dword [eax]
test eax, eax
je 0x44bc62
cmp word [eax], 0
je 0x44bc62
test eax, eax
jne 0x44bc5b
mov eax, 0x4af9ac
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test esi, esi
jne 0x44bccb
mov ecx, dword [ebp - 8]
call fcn.0041a250
cmp eax, 1
je 0x44bc84
xor eax, eax
lea esp, [ebp - 0x21870]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x44bca5
mov edi, dword [ebp + 8]
call fcn.0043bd60
lea esp, [ebp - 0x21870]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4b355c
push edx
call fcn.00482920
lea esp, [ebp - 0x21870]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9bc
push eax
call fcn.00482920
test dword [ebp - 0x2c], edi
je 0x44bdcf
cmp byte [ebp + 0x13], 0
lea eax, [ebp - 0x21860]
je 0x44bdb1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44bd00
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x2185e], cx
jne 0x44bd8b
lea ecx, [ebp - 0x21860]
push 0x5c
push ecx
call fcn.00499e02
mov esi, eax
add esp, 8
test esi, esi
je 0x44bdcf
lea ecx, [ebp - 0x21860]
sub eax, ecx
and eax, 0xfffffffe
mov edx, 0xa
mov word [esi], dx
cmp eax, 4
jne 0x44bdcf
cmp word [esi - 2], 0x3a
jne 0x44bdcf
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44bd60
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esi + 2]
push esi
push eax
call fcn.0049a5c0
mov ecx, 0x5c
add esp, 0xc
mov word [esi], cx
jmp 0x44bdcf
lea eax, [ebp - 0x21860]
cmp word [eax], 0
je 0x44bda0
add eax, 2
cmp word [eax], 0
jne 0x44bd97
cmp word [eax + 2], 0
je 0x44bdcf
mov edx, 0xa
mov word [eax], dx
jmp 0x44bd91
cmp word [eax], 0
je 0x44bdc0
add eax, 2
cmp word [eax], 0
jne 0x44bdb7
cmp word [eax + 2], 0
mov ecx, 0xa
mov word [eax], cx
jne 0x44bdb1
mov eax, dword [ebp - 8]
push 1
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x21860]
push edx
push eax
call fcn.00482920
lea esp, [ebp - 0x21870]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10