Function at 0x140277e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
mov edx, 0x3ed
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rcx, [rdi + 0xb8]
mov rdx, rax
call fcn.14002cbf4
mov r11, qword [0x14048abe8]
xor esi, esi
mov rcx, qword [r11 + 0x30]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov rax, qword [rcx]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea rdx, [rbp + 0x67]
xor r9d, r9d
mov r8d, 0x4b1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [rax + 0x20]
lea r8d, [rsi + 0x24]
lea rcx, [rbp - 0x15]
xor edx, edx
mov rbx, rax
call fcn.1400c7360
mov rax, qword [rbx]
mov rcx, qword [rdi + 0xc0]
lea r13d, [rsi + 1]
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, 0x133e
mov qword [rbp - 9], rax
mov dword [rbp - 0x19], r13d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140277f0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [0x14048abe8]
lea r8, str.history.txt
lea rcx, [rbp + 0x6f]
add rdx, 0x48
call fcn.14001c3e0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rbp + 0x6f]
cmp eax, 0xffffffff
setne bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140277f53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140277ffb
mov rax, qword [0x14048abe8]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov rcx, qword [rax + 0x30]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov rax, qword [rcx]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea rdx, [rbp + 0x77]
xor r9d, r9d
mov r8d, 0x4b4
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [rax + 0x20]
xor edx, edx
lea rcx, [rbp + 0x13]
lea r8d, [rdx + 0x24]
mov rbx, rax
call fcn.1400c7360
mov rax, qword [rbx]
mov rcx, qword [rdi + 0xc0]
lea r9, [rbp + 0xf]
mov r8, r13
mov edx, 0x133e
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0xf], r13d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140277ffb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0xc0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x130c
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0xc0]
mov ebx, 0xfffffff0
mov edx, ebx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, eax
bts r8d, 0x1a
cmp eax, r8d
je 0x140278043
mov rcx, qword [rdi + 0xc0]
mov edx, ebx
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov r8, qword [rdi]
mov edx, 0xe
mov rcx, rdi
call qword [r8 + 0xa8]
lea rcx, [rdi + 0x48]
call fcn.14004cbc4
mov rax, r13
add rsp, 0xc0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret