Function at 0x1400446c0
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.1400ae8c0
sub rsp, rax
cmp dword [0x1400f1534], 4
mov r14, r9
mov r13, qword [0x1400f5760]
mov rbx, r8
mov rdi, rdx
mov r12, rcx
jl 0x140044719
lea r9, [0x1400bdf7c]
xor r8d, r8d
lea rdx, [0x1400d9600]
call fcn.1400310e0
jmp 0x140044d4f
mov qword [rsp + 0x21b30], rsi
lea rcx, [rbp + 0x1a00]
xor edx, edx
mov qword [rsp + 0x21b38], r15
mov r8d, 0x1fffe
call fcn.140098640
mov r15d, 0x5c
test rbx, rbx
je 0x140044877
cmp word [rbx], 0
je 0x140044877
mov r8d, 0x103
lea rcx, [rbp - 0x10]
mov rdx, rbx
call fcn.1400a2664
xor ebx, ebx
lea r8d, [r15 - 0x59]
lea rdx, [0x1400d9670]
mov word [rbp + 0x1f6], bx
lea rcx, [rbp - 0x10]
call fcn.1400a13f8
test eax, eax
lea rcx, [rbp - 0x10]
sete r15b
test r15b, r15b
je 0x1400447fe
lea edx, [rbx + 0x7d]
call fcn.1400977e8
test rax, rax
je 0x1400447c3
cmp word [rax + 2], bx
je 0x1400447c3
lea rcx, [rbp - 0x10]
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x1400447b0
cmp word [rbp + rax*2 - 0x12], 0x5c
jne 0x14004480d
mov r15d, 0x5c
test r14, r14
je 0x140044882
cmp word [r14], 0
je 0x140044882
mov r8d, 0x3ff
lea rcx, [rbp + 0x1200]
mov rdx, r14
call fcn.1400a2664
mov word [rbp + 0x19fe], bx
jmp 0x1400448a1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004480d
test al, 0x10
jne 0x1400447c3
mov edx, 0x5c
lea rcx, [rbp - 0x10]
call fcn.140097a74
mov rsi, rax
test rax, rax
je 0x140044848
lea rdx, [rax + 2]
mov r8d, 0xfffe
lea rcx, [rbp + 0x1a00]
call fcn.1400a2664
mov word [rbp + 0x219fc], bx
mov word [rsi], bx
jmp 0x1400447c3
test r15b, r15b
jne 0x1400447c3
mov r8d, 0xfffe
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x1a00]
call fcn.1400a2664
mov word [rbp + 0x219fc], bx
mov word [rbp - 0x10], bx
jmp 0x1400447c3
xor ebx, ebx
mov word [rbp - 0x10], bx
jmp 0x1400447c9
mov r9, qword [0x1400f6538]
lea r8, [0x1400d9678]
mov edx, 0x400
lea rcx, [rbp + 0x1200]
call fcn.140079fa0
xor edx, edx
lea rcx, [rbp + 0xa00]
mov r8d, 0x800
call fcn.140098640
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x800
call fcn.140098640
mov rsi, qword [rbp + 0x21a50]
cmp word [rsi], 0
je 0x140044932
mov edx, 0x28
mov rcx, rsi
call fcn.1400977e8
lea rcx, [rbp + 0x200]
mov r8d, 0x3ff
test rax, rax
je 0x14004497e
lea rdx, [rax + 2]
call fcn.1400a2664
mov edx, 0x29
mov word [rbp + 0x9fe], bx
lea rcx, [rbp + 0x200]
call fcn.140097a74
test rax, rax
je 0x140044924
mov word [rax], bx
jmp 0x14004498d
mov word [rbp + 0x200], bx
mov word [rbp + 0xa00], bx
xor edx, edx
lea rcx, [rsp + 0x58]
mov r8d, SysStringByteLen
call fcn.140098640
mov rcx, qword [0x1400edaa8]
add rcx, 0x68
mov dword [rsp + 0x50], 0x98
call fcn.140060680
test rax, rax
je 0x140044a12
mov rax, qword [0x1400edaa8]
mov rcx, qword [rax + 0x68]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x58], rax
jmp 0x140044a17
mov rdx, rsi
call fcn.1400a2664
mov word [rbp + 0x9fe], bx
cmp word [rbp + 0x200], 0
je 0x14004492b
mov qword [rsp + 0x38], rbx
lea r8, [0x1400bdf7c]
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400d65b4]
mov qword [rsp + 0x28], 0xffffffffffffffff
lea rcx, [rbp + 0x200]
mov r9d, 1
mov dword [rsp + 0x20], 0xffffffff
call fcn.14007a860
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x200]
mov qword [rsp + 0x38], rbx
lea r8, [0x1400d96a0]
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.140079fa0
jmp 0x140044932
mov qword [rsp + 0x58], rbx
cmp word [rbp + 0xa00], 0
lea rax, [rbp + 0x1200]
mov qword [rbp - 0x58], rax
lea rcx, [0x1400d96e0]
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 0x140044a88
mov edx, 2
mov ecx, ebx
call fcn.14009c1d4
test eax, eax
je 0x140044a88
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4d
je 0x140044a9a
cmp eax, 0x53
jne 0x140044aa1
mov r14b, 1
jmp 0x140044a9d
mov sil, 1
add rdi, 2
mov rcx, rdi
call fcn.14000e2e0
mov rcx, rdi
test al, al
je 0x140044abd
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14009d670
jmp 0x140044ac2
call fcn.14009d1f8
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 0x140044ae6
or ecx, 2
mov dword [rbp - 0x50], ecx
test dl, 8
je 0x140044af2
bts ecx, 0xd
mov dword [rbp - 0x50], ecx
test sil, sil
jne 0x140044afc
test dl, 4
je 0x140044b03
bts ecx, 9
mov dword [rbp - 0x50], ecx
test dl, 2
je 0x140044b0f
bts ecx, 0xb
mov dword [rbp - 0x50], ecx
test dl, 1
je 0x140044b1b
bts ecx, 0xc
mov dword [rbp - 0x50], ecx
call fcn.1400804c0
mov rcx, qword [0x1400f1538]
xor r9d, r9d
mov r8d, 0x403
movzx edi, al
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
inc dword [0x1400f1534]
test r14b, r14b
jne 0x140044b63
mov ecx, dword [rbp - 0x50]
test cl, 2
je 0x140044b56
bt ecx, 0xd
jae 0x140044b63
lea rcx, [rsp + 0x50]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x140044b6e
lea rcx, [rsp + 0x50]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
dec dword [0x1400f1534]
mov ebx, eax
mov rcx, qword [0x1400edaa8]
test dil, dil
sete al
mov byte [rcx + 0x124], al
mov byte [rcx + 0x126], dil
cmp word [0x1400f1300], 0
je 0x140044ba7
lea rcx, [0x1400f1300]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
test ebx, ebx
jne 0x140044bf9
xor edx, edx
mov rcx, r13
call fcn.14007d4e0
cmp eax, 1
je 0x140044bcd
xor eax, eax
jmp 0x140044d3f
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x140044be6
mov dl, 1
mov rcx, r12
call fcn.140030e80
jmp 0x140044d3f
mov rcx, qword [0x1400f1518]
lea rdx, [0x1400d1680]
jmp 0x140044d2e
mov rcx, qword [0x1400f1518]
lea rdx, [0x1400be064]
call fcn.14007d4e0
test dword [rbp - 0x50], 0x200
je 0x140044d24
test sil, sil
je 0x140044cf6
lea rcx, [rbp + 0x1a00]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140044c30
cmp word [rbp + rax*2 + 0x1a02], 0
jne 0x140044cc7
mov edx, r15d
lea rcx, [rbp + 0x1a00]
call fcn.140097a74
mov rbx, rax
test rax, rax
je 0x140044d24
mov ecx, 0xa
mov word [rax], cx
lea rax, [rbp + 0x1a00]
mov rcx, rbx
sub rcx, rax
and rcx, 0xfffffffffffffffe
cmp rcx, 4
jne 0x140044d24
cmp word [rbx - 2], 0x3a
jne 0x140044d24
or r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140044ca0
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rbx + 2]
call fcn.1400973b0
mov word [rbx], r15w
jmp 0x140044d24
lea rax, [rbp + 0x1a00]
mov ecx, 0xa
cmp word [rax], 0
je 0x140044cea
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x140044ce0
cmp word [rax + 2], 0
je 0x140044d24
mov word [rax], cx
jmp 0x140044cd3
lea rax, [rbp + 0x1a00]
mov ecx, 0xa
cmp word [rax], 0
je 0x140044d1a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140044d10
mov word [rax], cx
cmp word [rax + 2], 0
jne 0x140044d02
lea rdx, [rbp + 0x1a00]
mov rcx, r13
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007d4e0
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