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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x21a00]
mov eax, 0x21b00
call fcn.1400ad480
sub rsp, rax
cmp dword [0x1400efef4], 4
mov r14, r9
mov r13, qword [0x1400f4120]
mov rbx, r8
mov rdi, rdx
mov r12, rcx
jl 0x140042a29
lea r9, [0x1400bbf7c]
xor r8d, r8d
lea rdx, str.The_maximum_number_of_File_Dialogs_has_been_reached.
call fcn.14002f3c0
jmp 0x14004305f
mov qword [rsp + 0x21b30], rsi
lea rcx, [rbp + 0x1a00]
xor edx, edx
mov qword [rsp + 0x21b38], r15
mov r8d, 0x1fffe
call fcn.140097200
mov r15d, 0x5c
test rbx, rbx
je 0x140042b87
cmp word [rbx], 0
je 0x140042b87
mov r8d, 0x103
lea rcx, [rbp - 0x10]
mov rdx, rbx
call fcn.1400a1224
xor ebx, ebx
lea r8d, [r15 - 0x59]
lea rdx, [0x1400d79d0]
mov word [rbp + 0x1f6], bx
lea rcx, [rbp - 0x10]
call fcn.14009ffb8
test eax, eax
lea rcx, [rbp - 0x10]
sete r15b
test r15b, r15b
je 0x140042b0e
lea edx, [rbx + 0x7d]
call fcn.1400963a8
test rax, rax
je 0x140042ad3
cmp word [rax + 2], bx
je 0x140042ad3
lea rcx, [rbp - 0x10]
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140042ac0
cmp word [rbp + rax*2 - 0x12], 0x5c
jne 0x140042b1d
mov r15d, 0x5c
test r14, r14
je 0x140042b92
cmp word [r14], 0
je 0x140042b92
mov r8d, 0x3ff
lea rcx, [rbp + 0x1200]
mov rdx, r14
call fcn.1400a1224
mov word [rbp + 0x19fe], bx
jmp 0x140042bb1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140042b1d
test al, 0x10
jne 0x140042ad3
mov edx, 0x5c
lea rcx, [rbp - 0x10]
call fcn.140096634
mov rsi, rax
test rax, rax
je 0x140042b58
lea rdx, [rax + 2]
mov r8d, 0xfffe
lea rcx, [rbp + 0x1a00]
call fcn.1400a1224
mov word [rbp + 0x219fc], bx
mov word [rsi], bx
jmp 0x140042ad3
test r15b, r15b
jne 0x140042ad3
mov r8d, 0xfffe
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x1a00]
call fcn.1400a1224
mov word [rbp + 0x219fc], bx
mov word [rbp - 0x10], bx
jmp 0x140042ad3
xor ebx, ebx
mov word [rbp - 0x10], bx
jmp 0x140042ad9
mov r9, qword [0x1400f4f00]
lea r8, str.Select_File____s
mov edx, 0x400
lea rcx, [rbp + 0x1200]
call fcn.140078a50
xor edx, edx
lea rcx, [rbp + 0xa00]
mov r8d, 0x800
call fcn.140097200
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x800
call fcn.140097200
mov rsi, qword [rbp + 0x21a50]
cmp word [rsi], 0
je 0x140042c42
mov edx, 0x28
mov rcx, rsi
call fcn.1400963a8
lea rcx, [rbp + 0x200]
mov r8d, 0x3ff
test rax, rax
je 0x140042c8e
lea rdx, [rax + 2]
call fcn.1400a1224
mov edx, 0x29
mov word [rbp + 0x9fe], bx
lea rcx, [rbp + 0x200]
call fcn.140096634
test rax, rax
je 0x140042c34
mov word [rax], bx
jmp 0x140042c9d
mov word [rbp + 0x200], bx
mov word [rbp + 0xa00], bx
xor edx, edx
lea rcx, [rsp + 0x58]
mov r8d, SysStringByteLen
call fcn.140097200
mov rcx, qword [0x1400ebaa8]
add rcx, 0x68
mov dword [rsp + 0x50], 0x98
call fcn.14005f000
test rax, rax
je 0x140042d22
mov rax, qword [0x1400ebaa8]
mov rcx, qword [rax + 0x68]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x58], rax
jmp 0x140042d27
mov rdx, rsi
call fcn.1400a1224
mov word [rbp + 0x9fe], bx
cmp word [rbp + 0x200], 0
je 0x140042c3b
mov qword [rsp + 0x38], rbx
lea r8, [0x1400bbf7c]
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400d4844]
mov qword [rsp + 0x28], 0xffffffffffffffff
lea rcx, [rbp + 0x200]
mov r9d, 1
mov dword [rsp + 0x20], 0xffffffff
call fcn.140079310
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x200]
mov qword [rsp + 0x38], rbx
lea r8, str._s_c_s_cAll_Files__.__c._c
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0xa00]
mov qword [rsp + 0x28], rax
mov r9, rsi
mov edx, 0x400
mov qword [rsp + 0x20], rbx
call fcn.140078a50
jmp 0x140042c42
mov qword [rsp + 0x58], rbx
cmp word [rbp + 0xa00], 0
lea rax, [rbp + 0x1200]
mov qword [rbp - 0x58], rax
lea rcx, str.All_Files__._
lea rax, [rbp + 0xa00]
mov dword [rbp - 0x78], 0xfffe
cmove rax, rcx
cmp word [rbp - 0x10], 0
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0x1a00]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x10]
cmove rax, rbx
movzx ebx, word [rdi]
xor r14b, r14b
mov qword [rbp - 0x60], rax
xor sil, sil
test ebx, 0xffffff80
jne 0x140042d98
mov edx, 2
mov ecx, ebx
call fcn.14009ad94
test eax, eax
je 0x140042d98
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4d
je 0x140042daa
cmp eax, 0x53
jne 0x140042db1
mov r14b, 1
jmp 0x140042dad
mov sil, 1
add rdi, 2
mov rcx, rdi
call fcn.14000e370
mov rcx, rdi
test al, al
je 0x140042dcd
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14009c230
jmp 0x140042dd2
call fcn.14009bdb8
mov edx, eax
mov ecx, 0x80004
movzx eax, dl
mov r8d, 0x180004
and al, 0x20
cmovne ecx, r8d
mov dword [rbp - 0x50], ecx
test dl, 0x10
je 0x140042df6
or ecx, 2
mov dword [rbp - 0x50], ecx
test dl, 8
je 0x140042e02
bts ecx, 0xd
mov dword [rbp - 0x50], ecx
test sil, sil
jne 0x140042e0c
test dl, 4
je 0x140042e13
bts ecx, 9
mov dword [rbp - 0x50], ecx
test dl, 2
je 0x140042e1f
bts ecx, 0xb
mov dword [rbp - 0x50], ecx
test dl, 1
je 0x140042e2b
bts ecx, 0xc
mov dword [rbp - 0x50], ecx
call fcn.14007f050
mov rcx, qword [0x1400efef8]
xor r9d, r9d
mov r8d, 0x403
movzx edi, al
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x1400efef4]
test r14b, r14b
jne 0x140042e73
mov ecx, dword [rbp - 0x50]
test cl, 2
je 0x140042e66
bt ecx, 0xd
jae 0x140042e73
lea rcx, [rsp + 0x50]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x140042e7e
lea rcx, [rsp + 0x50]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
dec dword [0x1400efef4]
mov ebx, eax
mov rcx, qword [0x1400ebaa8]
test dil, dil
sete al
mov byte [rcx + 0x124], al
mov byte [rcx + 0x126], dil
cmp word [0x1400efcc0], 0
je 0x140042eb7
lea rcx, [0x1400efcc0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
test ebx, ebx
jne 0x140042f09
xor edx, edx
mov rcx, r13
call fcn.14007c070
cmp eax, 1
je 0x140042edd
xor eax, eax
jmp 0x14004304f
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x140042ef6
mov dl, 1
mov rcx, r12
call fcn.14002f160
jmp 0x14004304f
mov rcx, qword [0x1400efed8]
lea rdx, [0x1400cf680]
jmp 0x14004303e
mov rcx, qword [0x1400efed8]
lea rdx, [0x1400bc064]
call fcn.14007c070
test dword [rbp - 0x50], 0x200
je 0x140043034
test sil, sil
je 0x140043006
lea rcx, [rbp + 0x1a00]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140042f40
cmp word [rbp + rax*2 + 0x1a02], 0
jne 0x140042fd7
mov edx, r15d
lea rcx, [rbp + 0x1a00]
call fcn.140096634
mov rbx, rax
test rax, rax
je 0x140043034
mov ecx, 0xa
mov word [rax], cx
lea rax, [rbp + 0x1a00]
mov rcx, rbx
sub rcx, rax
and rcx, 0xfffffffffffffffe
cmp rcx, 4
jne 0x140043034
cmp word [rbx - 2], 0x3a
jne 0x140043034
or r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140042fb0
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rbx + 2]
call fcn.140095f70
mov word [rbx], r15w
jmp 0x140043034
lea rax, [rbp + 0x1a00]
mov ecx, 0xa
cmp word [rax], 0
je 0x140042ffa
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x140042ff0
cmp word [rax + 2], 0
je 0x140043034
mov word [rax], cx
jmp 0x140042fe3
lea rax, [rbp + 0x1a00]
mov ecx, 0xa
cmp word [rax], 0
je 0x14004302a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140043020
mov word [rax], cx
cmp word [rax + 2], 0
jne 0x140043012
lea rdx, [rbp + 0x1a00]
mov rcx, r13
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007c070
mov rsi, qword [rsp + 0x21b30]
mov r15, qword [rsp + 0x21b38]
mov rbx, qword [rsp + 0x21b40]
add rsp, 0x21b00
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret