Function at 0x14007a6a0
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 r12
push r13
push r15
lea rbp, [rsp - 0x21a40]
mov eax, 0x21b40
call fcn.1400f7000
sub rsp, rax
cmp dword [0x140132aac], 4
mov rsi, r9
mov r13, qword [0x140134e40]
mov r10, r8
mov qword [rsp + 0x60], r13
mov r15, rdx
mov r12, rcx
jl 0x14007a70e
lea r9, [0x1400f97e4]
xor r8d, r8d
lea rdx, str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.140064610
add rsp, 0x21b40
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x21b80], rbx
mov ebx, 0x5c
mov qword [rsp + 0x21b38], rdi
xor edi, edi
mov qword [rsp + 0x21b30], r14
mov word [rbp + 0x1a30], di
test r10, r10
je 0x14007a85d
cmp word [r8], di
je 0x14007a85d
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], di
jne 0x14007a750
cmp rax, 0x104
jb 0x14007a777
mov r8d, 0x104
lea rdx, [rbp + 0x20]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x14007a791
mov r8d, 0x103
lea rcx, [rbp + 0x20]
mov rdx, r10
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0x226], di
mov r8d, 3
lea rdx, [0x140119b00]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
lea rcx, [rbp + 0x20]
mov r14d, eax
test eax, eax
jne 0x14007a7f4
mov edx, 0x7d
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14007a861
cmp word [rax + 2], di
je 0x14007a861
lea rcx, [rbp + 0x20]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x14007a7e0
cmp word [rbp + rax*2 + 0x1e], bx
jne 0x14007a803
jmp 0x14007a861
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007a803
test al, 0x10
jne 0x14007a861
mov edx, ebx
lea rcx, [rbp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
test rax, rax
je 0x14007a83a
lea rdx, [rax + 2]
mov r8d, 0xfffe
lea rcx, [rbp + 0x1a30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0x21a2c], di
mov word [rbx], di
jmp 0x14007a861
test r14d, r14d
je 0x14007a861
mov r8d, 0xfffe
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x1a30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0x21a2c], di
mov word [rbp + 0x20], di
test rsi, rsi
je 0x14007a88a
cmp word [rsi], di
je 0x14007a88a
mov r8d, 0x3ff
lea rcx, [rbp + 0xa30]
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0x122e], di
jmp 0x14007a8a9
mov r9, qword [0x140136c20]
lea r8, str.Select_File____s
mov edx, 0x400
lea rcx, [rbp + 0xa30]
call fcn.1400d6690
mov rbx, qword [rbp + 0x21a90]
mov word [rbp + 0x1230], di
mov word [rbp + 0x230], di
cmp word [rbx], di
je 0x14007aaea
mov edx, 0x28
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r8d, 0x3ff
lea rcx, [rbp + 0x230]
test rax, rax
je 0x14007a920
lea rdx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov edx, 0x29
mov word [rbp + 0xa2e], di
lea rcx, [rbp + 0x230]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14007a914
mov word [rax], di
jmp 0x14007a930
mov word [rbp + 0x230], di
jmp 0x14007aaea
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0xa2e], di
cmp word [rbp + 0x230], di
je 0x14007aaea
mov r15d, 0xffffffff
lea rax, [rbp + 0x230]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x14007a951
mov qword [rsp + 0x58], rdi
mov r14, rdi
mov qword [rsp + 0x68], rdi
cmp rbx, 0x1388
jb 0x14007ab8b
mov esi, edi
lea r12, [rbp + 0x230]
nop dword [rax]
lea rdx, [0x140117a44]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rcx, qword [rsp + 0x58]
mov r13, rax
test rax, rax
je 0x14007aa44
inc esi
dec r15d
mov dword [rsp + 0x50], esi
mov rsi, rax
sub rsi, r12
sar rsi, 1
lea rdx, [rsi + rcx]
mov qword [rsp + 0x70], rdx
cmp rdx, qword [rsp + 0x68]
jb 0x14007aa14
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
mov rcx, 0xffffffffffffffff
call fcn.1400d73f0
mov rcx, r14
mov qword [rsp + 0x68], rax
lea rdx, [rax + rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14007aa8a
mov rcx, qword [rsp + 0x58]
mov r14, rax
test rsi, rsi
je 0x14007aa33
lea r8, [rsi + rsi]
mov rdx, r12
lea rcx, [r14 + rcx*2]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rcx
mov esi, dword [rsp + 0x50]
lea r12, [r13 + 2]
test r15d, r15d
jne 0x14007a980
test esi, esi
je 0x14007aa98
lea rdx, [rbp + 0x230]
mov rax, r12
sub rax, rdx
sar rax, 1
sub rbx, rax
je 0x14007ab6a
lea rsi, [rbx + rcx]
cmp rsi, qword [rsp + 0x68]
jb 0x14007ab57
lea rdx, [rsi*2 + 2]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x14007ab4f
test r14, r14
je 0x14007aa98
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13, qword [rsp + 0x60]
mov r12, qword [rbp + 0x21a70]
mov r9, qword [rbp + 0x21a90]
lea rax, [rbp + 0x230]
mov qword [rsp + 0x40], rdi
lea r8, str._s_c_s_cAll_Files__.__c._c
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x1230]
mov qword [rsp + 0x30], rdi
mov edx, 0x400
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.1400d6690
mov r15, qword [rbp + 0x21a78]
mov rcx, qword [0x14012f240]
xorps xmm0, xmm0
xor eax, eax
add rcx, 0x68
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x80], 0x98
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp + 0x10], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
call fcn.1400a7ab0
test rax, rax
je 0x14007abec
mov rax, qword [0x14012f240]
mov rcx, qword [rax + 0x68]
mov rax, qword [rcx + 8]
mov qword [rbp - 0x78], rax
jmp 0x14007abf0
mov rcx, qword [rsp + 0x58]
mov r14, rax
lea r8, [rbx + rbx]
mov rdx, r12
lea rcx, [r14 + rcx*2]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
mov word [r14 + rcx*2], di
lea r8, [rcx*2 + 2]
lea rcx, [rbp + 0x230]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14007aa8f
lea rsi, [rbp + 0x230]
nop dword [rax]
nop word [rax + rax]
lea rdx, [0x140117a44]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rsi, rax
test rax, rax
je 0x14007aaa4
lea rcx, [rbp + 0x230]
mov r8, rbx
sub rax, rcx
lea rdx, [rsi + 2]
sar rax, 1
mov rcx, rsi
sub r8, rax
add r8, r8
call sub.VCRUNTIME140.dll_memmove
dec rbx
add r15d, 0xffffffff
jne 0x14007aba0
jmp 0x14007aaa4
mov qword [rbp - 0x78], rdi
cmp word [rbp + 0x1230], di
lea rax, [rbp + 0xa30]
movzx ebx, word [r15]
lea rcx, str.All_Files__._
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x1230]
cmove rax, rcx
mov dword [rbp - 0x48], 0xfffe
cmp word [rbp + 0x20], di
mov ecx, ebx
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x1a30]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x20]
cmove rax, rdi
xor r14b, r14b
xor sil, sil
mov qword [rbp - 0x30], rax
test ebx, 0xffffff80
jne 0x14007ac5b
mov edx, 2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edi, eax
movzx eax, bx
mov ecx, 0xffdf
and ax, cx
test edi, edi
cmove ax, bx
cmp ax, 0x4d
je 0x14007ac7d
cmp ax, 0x53
jne 0x14007ac84
mov r14b, 1
jmp 0x14007ac80
mov sil, 1
add r15, 2
mov rcx, r15
call fcn.14001eeb0
test al, 0x20
mov ecx, 0x80004
mov edx, 0x180004
cmovne ecx, edx
mov dword [rbp - 0x20], ecx
test al, 0x10
je 0x14007aca8
or ecx, 2
mov dword [rbp - 0x20], ecx
test al, 8
je 0x14007acb3
bts ecx, 0xd
mov dword [rbp - 0x20], ecx
test sil, sil
jne 0x14007acbc
test al, 4
je 0x14007acc3
bts ecx, 9
mov dword [rbp - 0x20], ecx
test al, 2
je 0x14007acce
bts ecx, 0xb
mov dword [rbp - 0x20], ecx
test al, 1
je 0x14007acd9
bts ecx, 0xc
mov dword [rbp - 0x20], ecx
call fcn.1400dffa0
mov rcx, qword [0x140132ab0]
xor r9d, r9d
mov edx, 0x44
mov r8d, 0x403
movzx ebx, al
call qword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x140132aac]
test r14b, r14b
mov r14, qword [rsp + 0x21b30]
jne 0x14007ad28
mov eax, dword [rbp - 0x20]
test al, 2
je 0x14007ad1c
bt eax, 0xd
jae 0x14007ad28
lea rcx, [rbp - 0x80]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x14007ad32
lea rcx, [rbp - 0x80]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
dec dword [0x140132aac]
mov edi, eax
mov rax, qword [0x14012f240]
mov byte [rax + 0x12e], bl
xor bl, 1
mov byte [rax + 0x12c], bl
mov rax, qword [0x140131a50]
test rax, rax
je 0x14007ad79
mov rax, qword [rax]
lea rcx, [0x1400f98c4]
test rax, rax
cmovne rcx, rax
cmp word [rcx], 0
je 0x14007ad79
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, 0xffffffffffffffff
test edi, edi
jne 0x14007adce
xor edx, edx
mov rcx, r13
call fcn.1400dc860
cmp eax, 1
je 0x14007ada2
xor eax, eax
jmp 0x14007af24
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x14007adbb
mov dl, 1
mov rcx, r12
call fcn.140063df0
jmp 0x14007af24
mov rcx, qword [0x140132a80]
lea rdx, [0x14011026c]
jmp 0x14007af10
mov rcx, qword [0x140132a80]
lea rdx, [0x1400f98c8]
call fcn.1400dc860
test dword [rbp - 0x20], 0x200
je 0x14007af06
test sil, sil
je 0x14007aed8
lea rcx, [rbp + 0x1a30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14007ae10
cmp word [rbp + rax*2 + 0x1a32], 0
jne 0x14007aea6
mov edi, 0x5c
lea rcx, [rbp + 0x1a30]
mov edx, edi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
test rax, rax
je 0x14007af06
mov word [rax], 0xa
mov rcx, rbx
lea rax, [rbp + 0x1a30]
sub rcx, rax
and rcx, 0xfffffffffffffffe
cmp rcx, 4
jne 0x14007af06
cmp word [rbx - 2], 0x3a
jne 0x14007af06
mov r8, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14007ae80
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rbx + 2]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx], di
jmp 0x14007af06
cmp word [rbp + 0x1a30], 0
lea rax, [rbp + 0x1a30]
je 0x14007aeca
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x14007aec0
cmp word [rax + 2], 0
je 0x14007af06
mov word [rax], 0xa
jmp 0x14007aec0
cmp word [rbp + 0x1a30], 0
lea rax, [rbp + 0x1a30]
je 0x14007aefa
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x14007aef0
mov word [rax], 0xa
cmp word [rax + 2], 0
jne 0x14007aef0
lea rdx, [rbp + 0x1a30]
mov rcx, r13
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, 0xffffffffffffffff
call fcn.1400dc860
mov rbx, qword [rsp + 0x21b80]
mov rdi, qword [rsp + 0x21b38]
add rsp, 0x21b40
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret