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

Disassembly:
mov eax, 0x21a6c
call fcn.004b9d80
cmp dword [0x4e808c], 4
mov eax, dword [esp + 0x21a78]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4e7de0]
mov dword [esp + 0x14], ecx
jl 0x45b24f
mov ecx, dword [esp + 0x21a80]
push 0x4bd2c4
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.00449ae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
mov ebp, dword [sym.imp.MSVCR100.dll_wcschr]
mov ebx, dword [sym.imp.MSVCR100.dll_wcsncpy]
xor edx, edx
mov word [esp + 0x1a78], dx
test eax, eax
je 0x45b37e
cmp word [eax], dx
je 0x45b37e
push 0x103
push eax
lea eax, [esp + 0x78]
push eax
call ebx
add esp, 0xc
push 3
lea edx, [esp + 0x74]
xor ecx, ecx
push 0x4da98c
push edx
mov word [esp + 0x282], cx
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x12], al
test al, al
je 0x45b2fc
lea eax, [esp + 0x70]
push 0x7d
push eax
call ebp
add esp, 8
test eax, eax
je 0x45b385
cmp word [eax + 2], 0
je 0x45b385
lea eax, [esp + 0x70]
lea edx, [eax + 2]
jmp 0x45b2e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b2e0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6e], 0x5c
jne 0x45b310
jmp 0x45b385
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b310
test al, 0x10
jne 0x45b385
lea edx, [esp + 0x70]
push 0x5c
push edx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x45b34d
push 0xfffe
lea eax, [esi + 2]
push eax
lea ecx, [esp + 0x1a80]
push ecx
call ebx
xor edx, edx
add esp, 0xc
xor eax, eax
mov word [esp + 0x21a74], dx
mov word [esi], ax
jmp 0x45b385
cmp byte [esp + 0x12], 0
jne 0x45b385
push 0xfffe
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x1a80]
push edx
call ebx
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x21a74], ax
mov word [esp + 0x70], cx
jmp 0x45b385
xor edx, edx
mov word [esp + 0x70], dx
test edi, edi
je 0x45b3ae
cmp word [edi], 0
je 0x45b3ae
push 0x3ff
lea eax, [esp + 0x127c]
push edi
push eax
call ebx
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x1a76], cx
jmp 0x45b3ce
mov edx, dword [0x4eacb4]
push edx
push str.Select_File____s
mov esi, 0x400
lea edi, [esp + 0x1280]
call fcn.0049e5c0
add esp, 8
mov edx, dword [esp + 0x21a8c]
xor eax, eax
xor ecx, ecx
mov word [esp + 0xa78], ax
mov word [esp + 0x278], cx
cmp word [edx], ax
je 0x45b452
mov esi, edx
push 0x28
push esi
call ebp
add esp, 8
push 0x3ff
test eax, eax
je 0x45b497
add eax, 2
push eax
lea eax, [esp + 0x280]
push eax
call ebx
add esp, 0xc
lea edx, [esp + 0x278]
xor ecx, ecx
push 0x29
push edx
mov word [esp + 0xa7e], cx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x45b43e
xor ecx, ecx
mov word [eax], cx
jmp 0x45b4af
xor edx, edx
mov word [esp + 0x278], dx
xor edx, edx
mov word [esp + 0xa78], dx
push 0x54
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [0x4e4b24]
add ecx, 0x4c
add esp, 0xc
push ecx
mov dword [esp + 0x1c], 0x58
call fcn.0047aed0
add esp, 4
test eax, eax
je 0x45b50d
mov edx, dword [0x4e4b24]
mov eax, dword [edx + 0x4c]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jmp 0x45b515
lea eax, [esp + 0x27c]
push esi
push eax
call ebx
add esp, 0xc
xor ecx, ecx
mov word [esp + 0xa76], cx
cmp word [esp + 0x278], 0
je 0x45b448
push 0
push 0xffffffffffffffff
push 1
push 0x4bd2c4
lea edx, [esp + 0x288]
push 0x4d88fc
push edx
xor eax, eax
or ecx, 0xffffffff
call fcn.0049ede0
push 0
push 0
push 0
lea eax, [esp + 0x29c]
push eax
mov ecx, esi
push 0
push ecx
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [esp + 0xaac]
call fcn.0049e5c0
add esp, 0x34
jmp 0x45b452
mov dword [esp + 0x1c], 0
cmp word [esp + 0xa78], 0
lea edx, [esp + 0x1278]
mov dword [esp + 0x48], edx
je 0x45b538
lea eax, [esp + 0xa78]
mov dword [esp + 0x24], eax
jmp 0x45b540
mov dword [esp + 0x24], str.All_Files__._
movzx edx, word [esp + 0x70]
mov edi, dword [esp + 0x21a84]
movzx esi, word [edi]
neg edx
sbb edx, edx
lea eax, [esp + 0x70]
and edx, eax
lea ecx, [esp + 0x1a78]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x44], edx
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, 0xffffff80
jne 0x45b595
push 2
push esi
call dword [sym.imp.MSVCR100.dll__isctype]
add esp, 8
test eax, eax
je 0x45b595
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x4d
je 0x45b5a9
cmp eax, 0x53
jne 0x45b5b1
mov byte [esp + 0x12], 1
jmp 0x45b5ae
mov byte [esp + 0x13], 1
add edi, 2
mov eax, edi
call fcn.00403d70
test al, al
je 0x45b5cc
push 0x10
push 0
push edi
call dword [sym.imp.MSVCR100.dll_wcstol]
add esp, 0xc
jmp 0x45b5d6
push edi
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
mov dword [esp + 0x4c], 0x80004
test al, 0x20
je 0x45b5ea
mov dword [esp + 0x4c], 0x180004
test al, 0x10
je 0x45b5f3
or dword [esp + 0x4c], 2
test al, 8
je 0x45b5ff
or dword [esp + 0x4c], 0x2000
cmp byte [esp + 0x13], 0
mov edi, 0x200
jne 0x45b60f
test al, 4
je 0x45b613
or dword [esp + 0x4c], edi
test al, 2
je 0x45b61f
or dword [esp + 0x4c], 0x800
test al, 1
je 0x45b62b
or dword [esp + 0x4c], 0x1000
call fcn.004a5270
mov ecx, dword [0x4e7ef0]
push 0
push 0x403
push 0x44
push ecx
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, 1
add dword [0x4e808c], ebp
cmp byte [esp + 0x12], 0
jne 0x45b676
mov eax, dword [esp + 0x4c]
test al, 2
je 0x45b669
test eax, 0x2000
je 0x45b676
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x45b681
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
sub dword [0x4e808c], ebp
test bl, bl
mov esi, eax
mov eax, dword [0x4e4b24]
sete cl
mov byte [eax + 0xee], bl
mov byte [eax + 0xec], cl
cmp word [0x4e86f8], 0
je 0x45b6b4
push 0x4e86f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jne 0x45b71a
mov ecx, dword [esp + 0x14]
call fcn.004269a0
cmp eax, ebp
je 0x45b6d4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x45b6f7
mov edi, dword [esp + 0x21a80]
call fcn.0044b7c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
mov edx, dword [0x4e86f0]
push ebp
push 0
push 0xffffffffffffffff
push 0x4bf81c
push edx
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
mov eax, dword [0x4e86f0]
push ebp
push 0
push 0xffffffffffffffff
push 0x4bbb9c
push eax
call fcn.004a2810
test dword [esp + 0x4c], edi
je 0x45b82e
cmp byte [esp + 0x13], 0
lea eax, [esp + 0x1a78]
je 0x45b810
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b750
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a7a], cx
jne 0x45b7df
lea ecx, [esp + 0x1a78]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x45b82e
lea ecx, [esp + 0x1a78]
sub eax, ecx
and eax, 0xfffffffe
mov edx, 0xa
mov word [esi], dx
cmp eax, 4
jne 0x45b82e
cmp word [esi - 2], 0x3a
jne 0x45b82e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b7b3
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esi + 2]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov ecx, 0x5c
add esp, 0xc
mov word [esi], cx
jmp 0x45b82e
lea eax, [esp + 0x1a78]
cmp word [eax], 0
je 0x45b7f9
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x45b7f0
cmp word [eax + 2], 0
je 0x45b82e
mov edx, 0xa
mov word [eax], dx
jmp 0x45b7e6
cmp word [eax], 0
je 0x45b81f
add eax, 2
cmp word [eax], 0
jne 0x45b816
cmp word [eax + 2], 0
mov ecx, 0xa
mov word [eax], cx
jne 0x45b810
mov eax, dword [esp + 0x14]
push ebp
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x1a84]
push edx
push eax
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10