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

Disassembly:
push rbp
push rbx
push rdi
push r12
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x14048abe8]
mov rdi, rcx
mov rdx, qword [rax + 0x20]
mov rcx, qword [rdx + 8]
lea rdx, [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x228]
mov edx, 0x419
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or r12d, 0xffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140281274
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp + 0x40]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x230]
mov edx, 0x41d
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp + 0x40]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402812c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp - 0x48]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x238]
mov edx, 0x41a
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp - 0x48]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14028130c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp - 0x40]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x1f8]
mov edx, 0x41b
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp - 0x40]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140281358
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp - 0x38]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x200]
mov edx, 0x41c
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp - 0x38]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402813a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x2b0]
mov edx, 0x463
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp - 0x30]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402813f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp - 0x28]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x2d8]
mov edx, 0x476
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp - 0x28]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14028143c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x2e0]
mov edx, 0x481
mov rcx, rdi
mov r8, rax
call fcn.140281084
mov rdx, qword [rbp - 0x20]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140281488
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rdi + 0x10]
mov edx, 0x443
movsxd rbx, eax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov r8, rbx
mov edx, 0xf1
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [0x14048abe8]
lea r8, str.portable.dat
lea rcx, [rbp - 0x18]
add rdx, 0x48
call fcn.14001c3e0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rdi + 0x10]
mov edx, 0x443
cmp eax, 0xffffffff
setne al
xor ebx, ebx
test al, al
sete bl
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov rdx, qword [rbp - 0x18]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14028152a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14023e03c
test al, al
je 0x14028159c
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rdi + 0x10]
mov edx, eax
call fcn.140280d54
and qword [rbp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x30]
mov rcx, rax
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140281581
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x28]
call fcn.140269850
mov rcx, qword [rdi + 0x10]
mov edx, 0x493
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [rbp + 0x28]
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
add rsp, 0x68
pop r12
pop rdi
pop rbx
pop rbp
ret