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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10d6c
call fcn.004c1c60
cmp dword [0x4d9974], 4
mov eax, ecx
mov ecx, dword [0x4db120]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jl 0x461a48
push 0x4c3c29
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
mov ecx, eax
call fcn.0044d670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [esp + 0xd78], 0
test edx, edx
je 0x461b6e
cmp byte [edx], 0
je 0x461b6e
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461a70
sub ecx, esi
lea eax, [esp + 0x70]
cmp ecx, 0x104
jb 0x461a94
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x461aa8
push 0x103
push edx
push eax
call edi
add esp, 0xc
mov byte [esp + 0x173], 0
push 3
lea eax, [esp + 0x74]
push 0x4ce28c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
sete bl
test eax, eax
lea eax, [esp + 0x70]
jne 0x461b02
push 0x7d
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
je 0x461b73
cmp byte [eax + 1], 0
je 0x461b73
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461af0
sub ecx, edx
cmp byte [esp + ecx + 0x6f], 0x5c
je 0x461b73
jmp 0x461b12
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x461b12
test al, 0x10
jne 0x461b73
lea eax, [esp + 0x70]
push 0x5c
push eax
mov eax, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x461b4c
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xd80]
push eax
call edi
mov byte [esp + 0x10d82], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x461b73
test bl, bl
jne 0x461b73
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd80]
push eax
call edi
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x461b9c
cmp byte [eax], 0
je 0x461b9c
push 0x3ff
push eax
lea eax, [esp + 0x580]
push eax
call edi
add esp, 0xc
mov byte [esp + 0x977], 0
jmp 0x461bbc
push dword [0x4dc0b8]
lea eax, [esp + 0x57c]
push str.Select_File____s
push 0x400
push eax
call fcn.004abdd0
add esp, 0x10
mov esi, dword [ebp + 0x14]
mov byte [esp + 0x978], 0
mov byte [esp + 0x178], 0
cmp byte [esi], 0
je 0x461c95
push 0x28
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
push 0x3ff
test eax, eax
je 0x461c2a
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call edi
add esp, 0xc
mov byte [esp + 0x577], 0
lea eax, [esp + 0x178]
push 0x29
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x461c20
mov byte [eax], 0
jmp 0x461c40
mov byte [esp + 0x178], 0
jmp 0x461c95
lea eax, [esp + 0x17c]
push esi
push eax
call edi
add esp, 0xc
mov byte [esp + 0x577], 0
cmp byte [esp + 0x178], 0
je 0x461c95
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4c3c29
mov edx, 0x4cd21c
lea ecx, [esp + 0x190]
call fcn.004ac590
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 + 0x9ac]
push 0x400
push eax
call fcn.004abdd0
add esp, 0x3c
push 0x58
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x4d70f4]
add esp, 0xc
mov dword [esp + 0x18], 0x58
mov esi, dword [edi + 0x4c]
test esi, esi
je 0x461cf5
cmp dword [esi + 4], 0
jne 0x461dbd
mov ecx, dword [esi]
cmp byte [ecx], 0
jne 0x461d80
add dword [esi + 0x20], 0xffffffff
jne 0x461cee
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0xd8
push esi
call fcn.004c0c55
add esp, 8
mov dword [edi + 0x4c], 0
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x978], 0
lea eax, [esp + 0x578]
mov esi, dword [ebp + 8]
mov ecx, str.All_Files__._
mov dword [esp + 0x48], eax
lea eax, [esp + 0x978]
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 + 0xf], cl
mov dword [esp + 0x44], eax
xor bh, bh
movzx eax, bl
test eax, 0xffffff80
jne 0x461d6f
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x461d6f
and bl, 0xdf
mov al, bl
cmp al, 0x4d
je 0x461dcc
cmp al, 0x53
jne 0x461dcf
mov byte [esp + 0xf], 1
jmp 0x461dce
call fcn.00483ea0
mov esi, eax
test esi, esi
je 0x461cf5
inc dword [esi + 0x20]
mov ebx, dword [edi + 0x4c]
add dword [ebx + 0x20], 0xffffffff
jne 0x461db4
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0xd8
push ebx
call fcn.004c0c55
add esp, 8
mov dword [edi + 0x4c], esi
mov edi, dword [0x4d70f4]
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x461cfd
mov bh, 1
inc esi
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x20
je 0x461ddb
cmp al, 9
jne 0x461dde
inc ecx
jmp 0x461dd1
test al, al
je 0x461e22
cmp al, 0x2d
je 0x461dea
cmp al, 0x2b
jne 0x461df1
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x461e22
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x461e00
cmp al, 0x58
jne 0x461e22
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x461e22
push 0x10
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x461e2c
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov ecx, eax
mov edx, 0x180004
test cl, 0x20
mov eax, 0x80004
cmovne eax, edx
mov dword [esp + 0x4c], eax
test cl, 0x10
je 0x461e4e
or eax, 2
mov dword [esp + 0x4c], eax
test cl, 8
je 0x461e5c
or eax, 0x2000
mov dword [esp + 0x4c], eax
test bh, bh
jne 0x461e65
test cl, 4
je 0x461e6e
or eax, 0x200
mov dword [esp + 0x4c], eax
test cl, 2
je 0x461e7c
or eax, 0x800
mov dword [esp + 0x4c], eax
test cl, 1
je 0x461e8a
or eax, 0x1000
mov dword [esp + 0x4c], eax
call fcn.004b32a0
push 0
push 0x403
push 0x44
push dword [0x4d9978]
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4d9974]
cmp byte [esp + 0xf], 0
jne 0x461ecf
mov eax, dword [esp + 0x4c]
test al, 2
je 0x461ec2
test eax, 0x2000
je 0x461ecf
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x461eda
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4d9974]
mov esi, eax
mov ecx, dword [0x4d70f4]
test bl, bl
sete al
mov byte [ecx + 0xce], bl
mov byte [ecx + 0xcc], al
mov eax, dword [0x4d8ae0]
test eax, eax
je 0x461f1a
mov eax, dword [eax]
mov ecx, 0x4c3c29
test eax, eax
cmovne ecx, eax
cmp byte [ecx], 0
je 0x461f1a
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x461f93
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004b04f0
cmp eax, 1
je 0x461f3e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x461f74
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
je 0x461f74
mov ecx, dword [esp + 0x14]
push 0x4c3c29
push 0
push 0x4c40b0
call fcn.0044d1f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4d995c]
push 0x4c3cb0
call fcn.004b04f0
test dword [esp + 0x4c], 0x200
je 0x462076
test bh, bh
je 0x462053
lea ecx, [esp + 0xd78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461fc3
sub ecx, edx
lea eax, [esp + 0xd78]
cmp byte [esp + ecx + 0xd79], 0
jne 0x462031
push 0x5c
push eax
mov eax, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x462076
mov ecx, esi
mov byte [esi], 0xa
lea eax, [esp + 0xd78]
sub ecx, eax
cmp ecx, 2
jne 0x462076
cmp byte [esi - 1], 0x3a
jne 0x462076
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462012
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 1]
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x462076
mov cl, byte [esp + 0xd78]
test cl, cl
je 0x462046
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x462040
cmp byte [eax + 1], 0
je 0x462076
mov byte [eax], 0xa
mov cl, 0xa
jmp 0x462038
mov cl, byte [esp + 0xd78]
lea eax, [esp + 0xd78]
test cl, cl
je 0x46206b
inc eax
cmp byte [eax], 0
jne 0x462065
mov byte [eax], 0xa
mov cl, 0xa
cmp byte [eax + 1], 0
jne 0x462061
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xd78]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b04f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10