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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbx, rcx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0xa8], esi
xor bpl, bpl
cmp dword [0x14021c658], 0xb23a8c33
je 0x140042192
mov ecx, 0x6c0
call fcn.140111d34
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x140042186
mov rcx, rax
call fcn.140036570
mov rcx, rax
jmp 0x140042189
mov rcx, rsi
mov qword [0x140229e08], rcx
jmp 0x140042199
mov rcx, qword [0x140229e08]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov edi, 0xffffffff
mov r9d, edi
mov r8d, edi
mov rdx, rbx
call qword [rax + 0x28]
mov rbx, rax
mov qword [rsp + 0xa8], rax
lea r13d, [rdi + 2]
lea r12, [0x1401baf80]
cmp dword [rax - 0x10], 0x104
jl 0x140042246
lea r8d, [rdi + 5]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0xa8]
call fcn.140038bb0
mov r14d, r13d
mov r9, qword [rax]
test r9, r9
je 0x140042240
movzx eax, word [r9]
cmp ax, 0x5c
jne 0x140042240
mov r8d, esi
mov rdx, rsi
mov rcx, rsi
cmp ax, word [rcx + r12]
jne 0x14004222d
inc r8d
inc rdx
lea rcx, [rdx + rdx]
movzx eax, word [rcx + r9]
test ax, ax
jne 0x140042212
movsxd rax, r8d
lea rcx, [rax + rax]
movzx eax, word [rcx + r12]
cmp word [rcx + r9], ax
je 0x140042246
movzx r15d, r13b
jmp 0x140042249
xor r15b, r15b
test r13b, r14b
je 0x14004228a
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042282
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042278
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042282
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0xa8]
test r15b, r15b
je 0x1400423df
cmp dword [0x14021c658], 0xb23a8c33
je 0x1400422ca
mov ecx, 0x6c0
call fcn.140111d34
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x1400422c1
mov rcx, rax
call fcn.140036570
mov rsi, rax
mov qword [0x140229e08], rsi
jmp 0x1400422d1
mov rsi, qword [0x140229e08]
mov rax, qword [rsi]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, edi
mov rdx, r12
mov rcx, rsi
call qword [rax + 0x28]
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.14000a560
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400501f0
nop
mov r8, rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14003f2b0
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140037020
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042372
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042368
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042372
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 0x1400423a3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140042399
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400423a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400423d7
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400423cd
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400423d7
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 0x1400423f7
test al, 0x10
movzx ebp, bpl
cmove ebp, r13d
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140042421
mov ecx, dword [rdx + 0x10]
cmp ecx, 0xffffffff
je 0x140042417
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140042421
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, bpl
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret