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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov rsi, rcx
xor r13d, r13d
mov qword [rbp - 0x49], r13
mov dword [rbp - 0x41], r13d
mov dword [rbp - 0x39], r13d
mov r15b, 1
mov r14d, r13d
mov rcx, qword [rcx + 0xa0]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r12, [0x1402901c8]
test eax, eax
jle 0x14014098b
lea rdi, [0x1402901d8]
nop dword [rax]
mov rcx, qword [rsi + 0xa0]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rbp + 0x67]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rbx, qword [rbp + 0x67]
cmp byte [rbx], 0
jne 0x140140707
lea rbx, [0x14028fdf4]
jmp 0x140140777
mov qword [rbp + 0x6f], rbx
lea rcx, [rbp + 0x6f]
call fcn.140034240
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rbx + rcx], 0
jne 0x140140720
lea rdi, [rcx + 4]
mov ecx, 0xfffffffc
and rdi, rcx
mov qword [rbp + 0x77], rbx
lea r8, [rax + 3]
add r8, rdi
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 9]
call fcn.14003e200
mov rax, qword [rax]
mov qword [rbp + 0x67], rax
movsxd rbx, edi
add rbx, rax
mov qword [rbp - 0x31], rbx
mov qword [rbp + 0x7f], rax
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x31]
call fcn.140048370
lea rdi, [0x1402901d8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x1401407a9
cmp eax, 0xffffffff
je 0x1401407a9
test byte [rsi + 0x60], 8
je 0x140140902
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1401407fb
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1401407f3
test byte [rsi + 0x60], 4
je 0x140140902
mov rax, qword [rbp + 0x67]
cmp byte [rax], 0
je 0x140140902
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 1]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x140140902
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1401407fb
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x140140902
test r15b, r15b
je 0x14014082a
lea rcx, [rsi + 0x70]
call fcn.140031aa0
cmp dword [rsi + 0x78], 0
je 0x140140820
mov rcx, qword [rsi + 0x70]
call fcn.1400c1bd0
mov qword [rsi + 0x70], r13
mov dword [rsi + 0x78], r13d
mov dword [rsi + 0x80], r13d
xor r15b, r15b
mov eax, dword [rsi + 0x80]
inc eax
cmp eax, dword [rsi + 0x78]
jle 0x140140853
mov ecx, eax
test eax, eax
jns 0x140140840
lea ecx, [rax + 1]
sar ecx, 1
lea edx, [rax + 8]
add edx, ecx
and edx, 0xfffffff8
lea rcx, [rsi + 0x70]
call fcn.140030760
movsxd rcx, dword [rsi + 0x80]
lea eax, [rcx + 1]
mov dword [rsi + 0x80], eax
mov rax, qword [rsi + 0x70]
lea rdx, [rax + rcx*8]
test rdx, rdx
je 0x14014088d
mov rax, qword [rbp + 0x67]
mov qword [rdx], rax
mov rcx, qword [rbp + 0x67]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x14014088d
mov eax, 1
lock xadd dword [rcx], eax
lea r8, [rsi + 0x68]
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x67]
call fcn.140183ea0
mov rbx, rax
mov edx, dword [rbp - 0x39]
inc edx
cmp edx, dword [rbp - 0x41]
jle 0x1401408c7
mov ecx, edx
test edx, edx
jns 0x1401408b4
lea ecx, [rdx + 1]
sar ecx, 1
add edx, 8
add edx, ecx
and edx, 0xfffffff8
lea rcx, [rbp - 0x49]
call fcn.140030760
movsxd rcx, dword [rbp - 0x39]
inc dword [rbp - 0x39]
mov rax, qword [rbp - 0x49]
lea rdx, [rax + rcx*8]
test rdx, rdx
je 0x1401408e4
mov rax, qword [rbx]
mov qword [rdx], rax
mov qword [rbx], rdi
mov rcx, qword [rbp - 0x29]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x140140902
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x140140902
call fcn.1400bd658
nop
mov rcx, qword [rbp + 0x67]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x14014091f
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14014091f
call fcn.1400bd658
inc r14d
mov rcx, qword [rsi + 0xa0]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r14d, eax
jl 0x1401406e0
cmp dword [rbp - 0x39], 0
jle 0x14014098b
lea rax, [0x14028bad4]
mov qword [rbp - 0x21], rax
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.14018bdd0
nop
lea rcx, [rsi + 0x230]
xor r8d, r8d
mov rdx, rax
call fcn.1400fda40
nop
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x14014098b
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14014098b
call fcn.1400bd658
lea rcx, [rsi - 0xc8]
call fcn.140140a00
nop
mov eax, dword [rbp - 0x39]
test eax, eax
jle 0x1401409da
mov rbx, qword [rbp - 0x49]
mov edi, eax
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [rbp + 7], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x1401409d0
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x1401409d0
call fcn.1400bd658
add rbx, 8
sub rdi, 1
jne 0x1401409b0
mov rcx, qword [rbp - 0x49]
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp fcn.1400c1bd0