Function at 0x14000a530
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.1400019a0
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, [0x140045750]
cmp dword [rax - 0x10], 0x104
jl 0x14000a603
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.140004870
mov r14d, r12d
mov r8, qword [rax]
test r8, r8
je 0x14000a5fd
movzx eax, word [r8]
cmp ax, 0x5c
jne 0x14000a5fd
mov edx, esi
mov ecx, esi
nop dword [rax + rax]
cmp ax, word [rcx + r15]
jne 0x14000a5ea
inc esi
inc rdx
lea rcx, [rdx + rdx]
movzx eax, word [rcx + r8]
test ax, ax
jne 0x14000a5d0
movsxd rax, esi
lea rcx, [rax + rax]
movzx eax, word [rcx + r15]
cmp word [r8 + rcx], ax
je 0x14000a603
movzx esi, r12b
jmp 0x14000a606
xor sil, sil
test r12b, r14b
je 0x14000a644
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14000a63c
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14000a632
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a63c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [rsp + 0xa8]
test sil, sil
je 0x14000a7dc
call fcn.1400019a0
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.1400019a0
mov rcx, rax
cmp dword [rbx - 0x10], 0
jg 0x14000a692
mov rdx, qword [rax]
call qword [rdx + 0x30]
jmp 0x14000a6fc
mov eax, dword [rbx - 8]
cmp eax, 0xffffffff
jne 0x14000a6c0
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 0x14000a6fc
mov rax, qword [rsp + 0xa8]
cmp rcx, qword [rax - 0x18]
je 0x14000a6f0
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 0x14000a6fc
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.14000e130
nop
mov r8, rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.1400072a0
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140003760
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14000a76f
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14000a765
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a76f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14000a7a0
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14000a796
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a7a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14000a7d4
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14000a7ca
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a7d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [rsp + 0xa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a7f4
test al, 0x10
movzx ebp, bpl
cmove ebp, r12d
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14000a81e
mov ecx, dword [rdx + 0x10]
cmp ecx, 0xffffffff
je 0x14000a814
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14000a81e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
movzx eax, bpl
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret