Function at 0x14004ad60
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 rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x21a38]
mov eax, 0x21b38
call fcn.1400bc4d0
sub rsp, rax
cmp dword [0x1400feeac], 4
mov rdi, r9
mov r13, qword [0x1401030e0]
mov rbx, r8
mov qword [rsp + 0x60], r13
mov r15, rdx
mov r12, rcx
jl 0x14004add0
lea r9, [0x1400e70b8]
xor r8d, r8d
lea rdx, str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.1400356f0
add rsp, 0x21b38
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x21b80], rsi
lea rcx, [rbp + 0x1a30]
xor edx, edx
mov qword [rsp + 0x21b30], r14
mov r8d, 0x1fffe
call fcn.1400a61c0
test rbx, rbx
je 0x14004aef0
cmp word [rbx], 0
je 0x14004aef0
mov r8d, 0x103
lea rcx, [rbp + 0x20]
mov rdx, rbx
call fcn.1400b02f4
xor esi, esi
lea rdx, [0x1400e6a70]
lea rcx, [rbp + 0x20]
mov word [rbp + 0x226], si
lea r8d, [rsi + 3]
call fcn.1400af080
test eax, eax
lea rcx, [rbp + 0x20]
sete r14b
test r14b, r14b
je 0x14004ae85
lea edx, [rsi + 0x7d]
call fcn.1400a57a8
test rax, rax
je 0x14004aef6
cmp word [rax + 2], si
je 0x14004aef6
lea rcx, [rbp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14004ae70
cmp word [rbp + rax*2 + 0x1e], 0x5c
jne 0x14004ae94
jmp 0x14004aef6
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ae94
test al, 0x10
jne 0x14004aef6
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.1400a5a3c
mov rbx, rax
test rax, rax
je 0x14004aecc
lea rdx, [rax + 2]
mov r8d, 0xfffe
lea rcx, [rbp + 0x1a30]
call fcn.1400b02f4
mov word [rbp + 0x21a2c], si
mov word [rbx], si
jmp 0x14004aef6
test r14b, r14b
jne 0x14004aef6
mov r8d, 0xfffe
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x1a30]
call fcn.1400b02f4
mov word [rbp + 0x21a2c], si
jmp 0x14004aef2
xor esi, esi
mov word [rbp + 0x20], si
test rdi, rdi
je 0x14004af1f
cmp word [rdi], 0
je 0x14004af1f
mov r8d, 0x3ff
lea rcx, [rbp + 0x1230]
mov rdx, rdi
call fcn.1400b02f4
mov word [rbp + 0x1a2e], si
jmp 0x14004af3e
mov r9, qword [0x140103ec0]
lea r8, str.Select_File____s
mov edx, 0x400
lea rcx, [rbp + 0x1230]
call fcn.140087370
xor edx, edx
lea rcx, [rbp + 0xa30]
mov r8d, 0x800
call fcn.1400a61c0
xor edx, edx
lea rcx, [rbp + 0x230]
mov r8d, 0x800
call fcn.1400a61c0
mov rbx, qword [rbp + 0x21a90]
cmp word [rbx], 0
je 0x14004afcf
mov edx, 0x28
mov rcx, rbx
call fcn.1400a57a8
lea rcx, [rbp + 0x230]
mov r8d, 0x3ff
test rax, rax
je 0x14004b018
lea rdx, [rax + 2]
call fcn.1400b02f4
mov edx, 0x29
mov word [rbp + 0xa2e], si
lea rcx, [rbp + 0x230]
call fcn.1400a5a3c
test rax, rax
je 0x14004afc1
mov word [rax], si
jmp 0x14004b027
mov word [rbp + 0x230], si
mov word [rbp + 0xa30], si
xor edx, edx
lea rcx, [rbp - 0x78]
mov r8d, SysStringByteLen
call fcn.1400a61c0
mov rcx, qword [0x1400faa58]
add rcx, 0x68
mov dword [rbp - 0x80], 0x98
call fcn.14006a5a0
test rax, rax
je 0x14004b26b
mov rax, qword [0x1400faa58]
mov rcx, qword [rax + 0x68]
mov rax, qword [rcx + 8]
mov qword [rbp - 0x78], rax
jmp 0x14004b26f
mov rdx, rbx
call fcn.1400b02f4
mov word [rbp + 0xa2e], si
cmp word [rbp + 0x230], 0
je 0x14004afc8
or r15d, 0xffffffff
lea rax, [rbp + 0x230]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004b040
mov qword [rsp + 0x58], rsi
mov r14, rsi
mov qword [rsp + 0x68], rsi
cmp rbx, 0x1388
jb 0x14004b210
mov edi, esi
lea r12, [rbp + 0x230]
nop dword [rax]
lea rdx, [0x1400e38c4]
mov rcx, r12
call fcn.1400a583c
mov rcx, qword [rsp + 0x58]
mov r13, rax
test rax, rax
je 0x14004b12f
inc edi
dec r15d
mov dword [rsp + 0x50], edi
mov rdi, rax
sub rdi, r12
sar rdi, 1
lea rdx, [rdi + rcx]
mov qword [rsp + 0x70], rdx
cmp rdx, qword [rsp + 0x68]
jb 0x14004b0ff
lea rcx, [rbp + 0x230]
movsxd r9, ebx
sub rax, rcx
mov r8d, r15d
movsxd rcx, edx
mov edx, dword [rsp + 0x50]
sar rax, 1
cdqe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
or rcx, 0xffffffffffffffff
call fcn.140088060
mov rcx, r14
mov qword [rsp + 0x68], rax
lea rdx, [rax + rax]
call fcn.1400ab118
test rax, rax
je 0x14004b170
mov rcx, qword [rsp + 0x58]
mov r14, rax
test rdi, rdi
je 0x14004b11e
lea r8, [rdi + rdi]
mov rdx, r12
lea rcx, [r14 + rcx*2]
call fcn.1400a5370
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rcx
mov edi, dword [rsp + 0x50]
lea r12, [r13 + 2]
test r15d, r15d
jne 0x14004b070
test edi, edi
je 0x14004b17d
lea rdx, [rbp + 0x230]
mov rax, r12
sub rax, rdx
sar rax, 1
sub rbx, rax
je 0x14004b1ef
lea rdi, [rbx + rcx]
cmp rdi, qword [rsp + 0x68]
jb 0x14004b1dc
lea rdx, [rdi*2 + 2]
mov rcx, r14
call fcn.1400ab118
test rax, rax
jne 0x14004b1d4
test r14, r14
je 0x14004b17d
mov rcx, r14
call fcn.1400ab2d0
mov r13, qword [rsp + 0x60]
mov r12, qword [rbp + 0x21a70]
mov r9, qword [rbp + 0x21a90]
lea rax, [rbp + 0x230]
mov qword [rsp + 0x40], rsi
lea r8, str._s_c_s_cAll_Files__.__c._c
mov qword [rsp + 0x38], rsi
lea rcx, [rbp + 0xa30]
mov qword [rsp + 0x30], rsi
mov edx, 0x400
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.140087370
mov r15, qword [rbp + 0x21a78]
jmp 0x14004afcf
mov rcx, qword [rsp + 0x58]
mov r14, rax
lea r8, [rbx + rbx]
mov rdx, r12
lea rcx, [r14 + rcx*2]
call fcn.1400a5370
mov rcx, rdi
mov word [r14 + rcx*2], si
lea r8, [rcx*2 + 2]
lea rcx, [rbp + 0x230]
mov rdx, r14
call fcn.1400a5370
jmp 0x14004b175
lea rdi, [rbp + 0x230]
nop word [rax + rax]
lea rdx, [0x1400e38c4]
mov rcx, rdi
call fcn.1400a583c
mov rdi, rax
test rax, rax
je 0x14004b189
lea rcx, [rbp + 0x230]
mov r8, rbx
sub rax, rcx
lea rdx, [rdi + 2]
sar rax, 1
mov rcx, rdi
sub r8, rax
add r8, r8
call fcn.1400a5370
dec rbx
add r15d, 0xffffffff
jne 0x14004b220
jmp 0x14004b189
mov qword [rbp - 0x78], rsi
cmp word [rbp + 0xa30], 0
lea rax, [rbp + 0x1230]
movzx ebx, word [r15]
lea rcx, str.All_Files__._
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0xa30]
cmove rax, rcx
mov dword [rbp - 0x48], 0xfffe
cmp word [rbp + 0x20], 0
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x1a30]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x20]
cmove rax, rsi
xor r14b, r14b
xor dil, dil
mov qword [rbp - 0x30], rax
test ebx, 0xffffff80
jne 0x14004b2e0
mov edx, 2
mov ecx, ebx
call fcn.1400a9dd4
test eax, eax
je 0x14004b2e0
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4d
je 0x14004b2f2
cmp eax, 0x53
jne 0x14004b2f9
mov r14b, 1
jmp 0x14004b2f5
mov dil, 1
add r15, 2
mov rcx, r15
call fcn.14000ec00
mov rcx, r15
test al, al
je 0x14004b315
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400ab270
jmp 0x14004b31a
call fcn.1400aae0c
mov ecx, eax
mov edx, 0x180004
test cl, 0x20
mov eax, 0x80004
cmovne eax, edx
mov dword [rbp - 0x20], eax
test cl, 0x10
je 0x14004b33a
or eax, 2
mov dword [rbp - 0x20], eax
test cl, 8
je 0x14004b346
bts eax, 0xd
mov dword [rbp - 0x20], eax
test dil, dil
jne 0x14004b350
test cl, 4
je 0x14004b357
bts eax, 9
mov dword [rbp - 0x20], eax
test cl, 2
je 0x14004b363
bts eax, 0xb
mov dword [rbp - 0x20], eax
test cl, 1
je 0x14004b36f
bts eax, 0xc
mov dword [rbp - 0x20], eax
call fcn.14008da50
mov rcx, qword [0x1400feeb0]
xor r9d, r9d
mov r8d, 0x403
movzx esi, al
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x1400feeac]
test r14b, r14b
mov r14, qword [rsp + 0x21b30]
jne 0x14004b3be
mov ecx, dword [rbp - 0x20]
test cl, 2
je 0x14004b3b2
bt ecx, 0xd
jae 0x14004b3be
lea rcx, [rbp - 0x80]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x14004b3c8
lea rcx, [rbp - 0x80]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
dec dword [0x1400feeac]
mov ebx, eax
mov rcx, qword [0x1400faa58]
test sil, sil
sete al
mov byte [rcx + 0x12e], sil
mov rsi, qword [rsp + 0x21b80]
mov byte [rcx + 0x12c], al
cmp word [0x1400fec80], 0
je 0x14004b409
lea rcx, [0x1400fec80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
test ebx, ebx
jne 0x14004b471
xor edx, edx
mov rcx, r13
call fcn.14008a880
cmp eax, 1
je 0x14004b43b
xor eax, eax
add rsp, 0x21b38
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x14004b45e
mov rcx, r12
call fcn.140038a80
add rsp, 0x21b38
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [0x1400fee90]
lea rdx, [0x1400de630]
jmp 0x14004b5ae
mov rcx, qword [0x1400fee90]
lea rdx, [0x1400cb014]
call fcn.14008a880
test dword [rbp - 0x20], 0x200
je 0x14004b5a4
test dil, dil
je 0x14004b576
lea rcx, [rbp + 0x1a30]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14004b4b0
cmp word [rbp + rax*2 + 0x1a32], 0
jne 0x14004b546
mov edi, 0x5c
lea rcx, [rbp + 0x1a30]
mov edx, edi
call fcn.1400a5a3c
mov rbx, rax
test rax, rax
je 0x14004b5a4
mov ecx, 0xa
mov word [rax], cx
lea rax, [rbp + 0x1a30]
mov rcx, rbx
sub rcx, rax
and rcx, 0xfffffffffffffffe
cmp rcx, 4
jne 0x14004b5a4
cmp word [rbx - 2], 0x3a
jne 0x14004b5a4
or r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14004b520
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rbx + 2]
call fcn.1400a5370
mov word [rbx], di
jmp 0x14004b5a4
lea rax, [rbp + 0x1a30]
mov ecx, 0xa
cmp word [rax], 0
je 0x14004b56a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x14004b560
cmp word [rax + 2], 0
je 0x14004b5a4
mov word [rax], cx
jmp 0x14004b552
lea rax, [rbp + 0x1a30]
mov ecx, 0xa
cmp word [rax], 0
je 0x14004b59a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x14004b590
mov word [rax], cx
cmp word [rax + 2], 0
jne 0x14004b582
lea rdx, [rbp + 0x1a30]
mov rcx, r13
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008a880
add rsp, 0x21b38
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret