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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, rcx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0xa8], esi
xor bpl, bpl
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x20], sil
mov edi, 0xffffffff
mov r9d, edi
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0xa8], rax
lea r12d, [rsi + 1]
lea r15, [0x1401346f0]
cmp dword [rax - 0x10], 0x104
jl 0x140042ae3
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.1400351c0
mov r14d, r12d
mov r8, qword [rax]
test r8, r8
je 0x140042add
movzx eax, word [r8]
cmp ax, 0x5c
jne 0x140042add
mov edx, esi
mov ecx, esi
nop dword [rax + rax]
cmp ax, word [rcx + r15]
jne 0x140042aca
inc esi
inc rdx
lea rcx, [rdx + rdx]
movzx eax, word [rcx + r8]
test ax, ax
jne 0x140042ab0
movsxd rax, esi
lea rcx, [rax + rax]
movzx eax, word [rcx + r15]
cmp word [r8 + rcx], ax
je 0x140042ae3
movzx esi, r12b
jmp 0x140042ae6
xor sil, sil
test r12b, r14b
je 0x140042b24
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042b1c
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042b12
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042b1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0xa8]
test sil, sil
je 0x140042cbc
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, edi
mov rdx, r15
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rsp + 0xb8], rax
call fcn.140008400
mov rcx, rax
cmp dword [rbx - 0x10], 0
jg 0x140042b72
mov rdx, qword [rax]
call qword [rdx + 0x30]
jmp 0x140042bdc
mov eax, dword [rbx - 8]
cmp eax, 0xffffffff
jne 0x140042ba0
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, dword [rdx - 0x10]
call qword [rax + 0x28]
jmp 0x140042bdc
mov rax, qword [rsp + 0xa8]
cmp rcx, qword [rax - 0x18]
je 0x140042bd0
mov r10, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, dword [rax - 0x10]
mov rdx, rax
call qword [r10 + 0x28]
jmp 0x140042bdc
lock inc dword [rax - 8]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.1400491a0
nop
mov r8, rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.14003aba0
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1400333a0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042c4f
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042c45
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042c4f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042c80
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042c76
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042c80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042cb4
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042caa
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042cb4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0xa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140042cd4
test al, 0x10
movzx ebp, bpl
cmove ebp, r12d
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042cfe
mov ecx, dword [rdx + 0x10]
cmp ecx, 0xffffffff
je 0x140042cf4
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140042cfe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, bpl
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret