Function at 0x180150f60
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 - 9], 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, [0x1802bccb0]
test eax, eax
jle 0x18015126d
lea rdi, [0x1802bccc0]
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 0x180150fe7
lea rbx, [0x1802bcf68]
jmp 0x180151056
mov qword [rbp + 0x6f], rbx
lea rcx, [rbp + 0x6f]
call fcn.18001b380
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x180151000
add rdi, 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 + 0xf]
call fcn.180012500
mov rax, qword [rax]
mov qword [rbp + 0x67], rax
movsxd rbx, edi
add rbx, rax
mov qword [rbp - 0x21], rbx
mov qword [rbp + 0x7f], rax
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x21]
call fcn.18001c460
lea rdi, [0x1802bccc0]
mov qword [rbp - 0x19], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x18015108b
cmp eax, 0xffffffff
je 0x18015108b
test byte [rsi + 0x60], 8
je 0x1801511de
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1801510dc
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1801510d4
test byte [rsi + 0x60], 4
je 0x1801511de
mov rax, qword [rbp + 0x67]
cmp byte [rax], 0
je 0x1801511de
lea rdx, [rbp + 0x67]
lea rcx, [rbp + 7]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1801511de
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1801510dc
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x1801511de
test r15b, r15b
je 0x18015110b
lea rcx, [rsi + 0x70]
call fcn.18000a800
cmp dword [rsi + 0x78], 0
je 0x180151101
mov rcx, qword [rsi + 0x70]
call fcn.1800a09c8
mov qword [rsi + 0x70], r13
mov dword [rsi + 0x78], r13d
mov dword [rsi + 0x80], r13d
xor r15b, r15b
mov ecx, dword [rsi + 0x80]
inc ecx
cmp ecx, dword [rsi + 0x78]
jle 0x180151130
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
lea rcx, [rsi + 0x70]
call fcn.180007ec0
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 0x18015116a
mov rax, qword [rbp + 0x67]
mov qword [rdx], rax
mov rcx, qword [rbp + 0x67]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x18015116a
mov eax, 1
lock xadd dword [rcx], eax
lea r8, [rsi + 0x68]
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0x67]
call fcn.1800e3dd0
mov rbx, rax
mov ecx, dword [rbp - 0x39]
inc ecx
cmp ecx, dword [rbp - 0x41]
jle 0x1801511a0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
lea rcx, [rbp - 0x49]
call fcn.180007ec0
movsxd rcx, dword [rbp - 0x39]
inc dword [rbp - 0x39]
mov rax, qword [rbp - 0x49]
lea rdx, [rax + rcx*8]
test rdx, rdx
je 0x1801511bd
mov rax, qword [rbx]
mov qword [rdx], rax
mov qword [rbx], rdi
mov rcx, qword [rbp - 0x11]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x1801511de
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801511de
call fcn.1800a0c6c
nop
mov rcx, qword [rbp + 0x67]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x1801511fe
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801511fe
call fcn.1800a0c6c
inc r14d
mov rcx, qword [rsi + 0xa0]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r14d, eax
jl 0x180150fc0
cmp dword [rbp - 0x39], 0
jle 0x18015126d
lea rax, [0x1802c1724]
mov qword [rbp - 0x29], rax
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x49]
call fcn.1800d4140
nop
lea rcx, [rsi + 0x230]
xor r8d, r8d
mov rdx, rax
call fcn.1801107f0
nop
mov rcx, qword [rbp - 0x31]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x18015126d
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18015126d
call fcn.1800a0c6c
lea rcx, [rsi - 0xc8]
call fcn.1801512e0
nop
mov eax, dword [rbp - 0x39]
test eax, eax
jle 0x1801512bc
mov rbx, qword [rbp - 0x49]
mov edi, eax
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [rbp - 1], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x1801512b3
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801512b3
call fcn.1800a0c6c
add rbx, 8
dec rdi
jne 0x180151290
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.1800a09c8