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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x21a30]
mov eax, 0x21b30
call fcn.1400bc990
sub rsp, rax
cmp dword [0x140100e9c], 4
mov rdi, r9
mov r12, qword [0x1401050d0]
mov rax, r8
mov qword [rsp + 0x68], r12
mov rsi, rdx
mov r15, rcx
jl 0x14004afec
lea r9, [0x1400e8118]
xor r8d, r8d
lea rdx, str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.1400358c0
add rsp, 0x21b30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x21b70], rbx
mov qword [rsp + 0x21b28], r13
xor r13d, r13d
mov qword [rsp + 0x21b20], r14
mov word [rbp + 0x1a20], r13w
lea ebx, [r13 + 0x5c]
test rax, rax
je 0x14004b10e
cmp word [r8], r13w
je 0x14004b10e
mov r8d, 0x103
lea rcx, [rbp + 0x10]
mov rdx, rax
call fcn.1400b0734
lea r8d, [r13 + 3]
mov word [rbp + 0x216], r13w
lea rdx, [0x1400e64e0]
lea rcx, [rbp + 0x10]
call fcn.1400af4c8
test eax, eax
lea rcx, [rbp + 0x10]
sete r14b
test r14b, r14b
je 0x14004b0a5
lea edx, [rbx + 0x21]
call fcn.1400a5c78
test rax, rax
je 0x14004b113
cmp word [rax + 2], r13w
je 0x14004b113
lea rcx, [rbp + 0x10]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x14004b090
cmp word [rbp + rax*2 + 0xe], bx
jne 0x14004b0b4
jmp 0x14004b113
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004b0b4
test al, 0x10
jne 0x14004b113
mov edx, ebx
lea rcx, [rbp + 0x10]
call fcn.1400a5f0c
mov rbx, rax
test rax, rax
je 0x14004b0eb
lea rdx, [rax + 2]
mov r8d, 0xfffe
lea rcx, [rbp + 0x1a20]
call fcn.1400b0734
mov word [rbp + 0x21a1c], r13w
mov word [rbx], r13w
jmp 0x14004b113
test r14b, r14b
jne 0x14004b113
mov r8d, 0xfffe
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x1a20]
call fcn.1400b0734
mov word [rbp + 0x21a1c], r13w
mov word [rbp + 0x10], r13w
test rdi, rdi
je 0x14004b13d
cmp word [rdi], r13w
je 0x14004b13d
mov r8d, 0x3ff
lea rcx, [rbp + 0x1220]
mov rdx, rdi
call fcn.1400b0734
mov word [rbp + 0x1a1e], r13w
jmp 0x14004b15c
mov r9, qword [0x140105eb0]
lea r8, str.Select_File____s
mov edx, 0x400
lea rcx, [rbp + 0x1220]
call fcn.140087800
mov rbx, qword [rbp + 0x21a80]
mov word [rbp + 0xa20], r13w
mov word [rbp + 0x220], r13w
cmp word [rbx], r13w
je 0x14004b1d9
mov edx, 0x28
mov rcx, rbx
call fcn.1400a5c78
lea rcx, [rbp + 0x220]
mov r8d, 0x3ff
test rax, rax
je 0x14004b225
lea rdx, [rax + 2]
call fcn.1400b0734
mov edx, 0x29
mov word [rbp + 0xa1e], r13w
lea rcx, [rbp + 0x220]
call fcn.1400a5f0c
test rax, rax
je 0x14004b1c9
mov word [rax], r13w
jmp 0x14004b235
mov word [rbp + 0x220], r13w
mov word [rbp + 0xa20], r13w
xor edx, edx
lea rcx, [rsp + 0x78]
mov r8d, SysStringByteLen
call fcn.1400a6690
mov rcx, qword [0x1400fca58]
add rcx, 0x68
mov dword [rsp + 0x70], 0x98
call fcn.14006a240
test rax, rax
je 0x14004b46a
mov rax, qword [0x1400fca58]
mov rcx, qword [rax + 0x68]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x78], rax
jmp 0x14004b46f
mov rdx, rbx
call fcn.1400b0734
mov word [rbp + 0xa1e], r13w
cmp word [rbp + 0x220], r13w
je 0x14004b1d1
or esi, 0xffffffff
lea rax, [rbp + 0x220]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x14004b250
mov qword [rsp + 0x58], r13
mov r14, r13
mov r12, r13
cmp rbx, 0x1388
jb 0x14004b414
mov edi, r13d
lea r15, [rbp + 0x220]
nop dword [rax]
lea rdx, [0x1400e4914]
mov rcx, r15
call fcn.1400a5d0c
mov r13, rax
test rax, rax
je 0x14004b32e
inc edi
dec esi
mov dword [rsp + 0x50], edi
mov rdi, rax
sub rdi, r15
sar rdi, 1
lea rcx, [rdi + r12]
mov qword [rsp + 0x60], rcx
cmp rcx, qword [rsp + 0x58]
jb 0x14004b304
lea rdx, [rbp + 0x220]
movsxd rcx, ecx
sub rax, rdx
movsxd r9, ebx
mov edx, dword [rsp + 0x50]
mov r8d, esi
sar rax, 1
cdqe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
or rcx, 0xffffffffffffffff
call fcn.1400884f0
mov rcx, r14
mov qword [rsp + 0x58], rax
lea rdx, [rax + rax]
call fcn.1400ab5d4
test rax, rax
je 0x14004b36b
mov r14, rax
test rdi, rdi
je 0x14004b31e
lea r8, [rdi + rdi]
mov rdx, r15
lea rcx, [r14 + r12*2]
call fcn.1400a5840
mov r12, qword [rsp + 0x60]
mov edi, dword [rsp + 0x50]
lea r15, [r13 + 2]
test esi, esi
jne 0x14004b280
test edi, edi
je 0x14004b378
lea rcx, [rbp + 0x220]
mov rax, r15
sub rax, rcx
sar rax, 1
sub rbx, rax
je 0x14004b3e8
lea rdi, [rbx + r12]
cmp rdi, qword [rsp + 0x58]
jb 0x14004b3d5
lea rdx, [rdi*2 + 2]
mov rcx, r14
call fcn.1400ab5d4
test rax, rax
jne 0x14004b3d2
test r14, r14
je 0x14004b378
mov rcx, r14
call fcn.1400ab7a0
xor r13d, r13d
mov r15, qword [rbp + 0x21a60]
mov r9, qword [rbp + 0x21a80]
lea rax, [rbp + 0x220]
mov qword [rsp + 0x40], r13
lea r8, str._s_c_s_cAll_Files__.__c._c
mov qword [rsp + 0x38], r13
lea rcx, [rbp + 0xa20]
mov qword [rsp + 0x30], r13
mov edx, 0x400
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call fcn.140087800
mov rsi, qword [rbp + 0x21a68]
mov r12, qword [rsp + 0x68]
jmp 0x14004b1d9
mov r14, rax
lea r8, [rbx + rbx]
mov rdx, r15
lea rcx, [r14 + r12*2]
call fcn.1400a5840
mov r12, rdi
xor r13d, r13d
lea r8, [r12*2 + 2]
mov rdx, r14
mov word [r14 + r12*2], r13w
lea rcx, [rbp + 0x220]
call fcn.1400a5840
mov rcx, r14
call fcn.1400ab7a0
jmp 0x14004b37b
lea rdi, [rbp + 0x220]
nop dword [rax + rax]
lea rdx, [0x1400e4914]
mov rcx, rdi
call fcn.1400a5d0c
mov rdi, rax
test rax, rax
je 0x14004b382
lea rcx, [rbp + 0x220]
mov r8, rbx
sub rax, rcx
lea rdx, [rdi + 2]
sar rax, 1
mov rcx, rdi
sub r8, rax
add r8, r8
call fcn.1400a5840
dec rbx
add esi, 0xffffffff
jne 0x14004b420
jmp 0x14004b382
mov qword [rsp + 0x78], r13
cmp word [rbp + 0xa20], 0
lea rax, [rbp + 0x1220]
movzx ebx, word [rsi]
lea rcx, str.All_Files__._
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0xa20]
cmove rax, rcx
mov dword [rbp - 0x58], 0xfffe
cmp word [rbp + 0x10], 0
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0x1a20]
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x10]
cmove rax, r13
mov r13, qword [rsp + 0x21b28]
xor r14b, r14b
mov qword [rbp - 0x40], rax
xor dil, dil
test ebx, 0xffffff80
jne 0x14004b4e7
mov edx, 2
mov ecx, ebx
call fcn.1400aa2a4
test eax, eax
je 0x14004b4e7
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4d
je 0x14004b4f9
cmp eax, 0x53
jne 0x14004b500
mov r14b, 1
jmp 0x14004b4fc
mov dil, 1
add rsi, 2
mov rcx, rsi
call fcn.14000ec90
mov rcx, rsi
test al, al
je 0x14004b51c
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400ab740
jmp 0x14004b521
call fcn.1400ab2c8
mov ecx, eax
mov edx, 0x180004
test cl, 0x20
mov eax, 0x80004
cmovne eax, edx
mov dword [rbp - 0x30], eax
test cl, 0x10
je 0x14004b541
or eax, 2
mov dword [rbp - 0x30], eax
test cl, 8
je 0x14004b54d
bts eax, 0xd
mov dword [rbp - 0x30], eax
test dil, dil
jne 0x14004b557
test cl, 4
je 0x14004b55e
bts eax, 9
mov dword [rbp - 0x30], eax
test cl, 2
je 0x14004b56a
bts eax, 0xb
mov dword [rbp - 0x30], eax
test cl, 1
je 0x14004b576
bts eax, 0xc
mov dword [rbp - 0x30], eax
call fcn.14008dee0
mov rcx, qword [0x140100ea0]
xor r9d, r9d
mov r8d, 0x403
movzx esi, al
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x140100e9c]
test r14b, r14b
mov r14, qword [rsp + 0x21b20]
jne 0x14004b5c6
mov ecx, dword [rbp - 0x30]
test cl, 2
je 0x14004b5b9
bt ecx, 0xd
jae 0x14004b5c6
lea rcx, [rsp + 0x70]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x14004b5d1
lea rcx, [rsp + 0x70]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
dec dword [0x140100e9c]
mov ebx, eax
mov rcx, qword [0x1400fca58]
test sil, sil
sete al
mov byte [rcx + 0x12c], al
mov byte [rcx + 0x12e], sil
cmp word [0x140100c70], 0
je 0x14004b60a
lea rcx, [0x140100c70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
test ebx, ebx
jne 0x14004b65a
xor edx, edx
mov rcx, r12
call fcn.14008ad10
cmp eax, 1
je 0x14004b630
xor eax, eax
jmp 0x14004b79f
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x14004b647
mov rcx, r15
call fcn.140038c60
jmp 0x14004b79f
mov rcx, qword [0x140100e80]
lea rdx, [0x1400df728]
jmp 0x14004b78e
mov rcx, qword [0x140100e80]
lea rdx, [0x1400cc014]
call fcn.14008ad10
test dword [rbp - 0x30], 0x200
je 0x14004b784
test dil, dil
je 0x14004b756
lea rcx, [rbp + 0x1a20]
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14004b690
cmp word [rbp + rax*2 + 0x1a22], 0
jne 0x14004b726
mov edi, 0x5c
lea rcx, [rbp + 0x1a20]
mov edx, edi
call fcn.1400a5f0c
mov rbx, rax
test rax, rax
je 0x14004b784
mov ecx, 0xa
mov word [rax], cx
lea rax, [rbp + 0x1a20]
mov rcx, rbx
sub rcx, rax
and rcx, 0xfffffffffffffffe
cmp rcx, 4
jne 0x14004b784
cmp word [rbx - 2], 0x3a
jne 0x14004b784
or r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14004b700
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rbx + 2]
call fcn.1400a5840
mov word [rbx], di
jmp 0x14004b784
lea rax, [rbp + 0x1a20]
mov ecx, 0xa
cmp word [rax], 0
je 0x14004b74a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x14004b740
cmp word [rax + 2], 0
je 0x14004b784
mov word [rax], cx
jmp 0x14004b732
lea rax, [rbp + 0x1a20]
mov ecx, 0xa
cmp word [rax], 0
je 0x14004b77a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x14004b770
mov word [rax], cx
cmp word [rax + 2], 0
jne 0x14004b762
lea rdx, [rbp + 0x1a20]
mov rcx, r12
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008ad10
mov rbx, qword [rsp + 0x21b70]
add rsp, 0x21b30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret