Function at 0x1400bbc60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x158], rax
cmp r8, 0x38
jne 0x1400bc0a9
cmp qword [rsp + 0x1e0], 1
jne 0x1400bc0a9
cmp qword [rsp + 0x1f0], 1
jne 0x1400bc0a9
mov rdi, rdx
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x1400bc0a9
mov ecx, dword [rdi + 8]
dec ecx
cmp ecx, eax
jae 0x1400bc0a9
cmp dword [rdi + 0x18], eax
jae 0x1400bc0a9
cmp dword [rdi + 0x1c], eax
ja 0x1400bc0a9
mov r14, r9
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400bc1d7
mov rbx, qword [0x10]
test rbx, rbx
je 0x1400bc23b
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x10], 0
mov rcx, qword [rbx + 0x20]
mov rdx, r14
call fcn.140116db0
test eax, eax
jne 0x1400bc0a0
movaps xmm6, xmmword [0x1402e6d80]
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
mov rcx, qword [rdi + 0x21]
mov rax, qword [rdi + 0x29]
mov rdx, rcx
or rdx, rax
je 0x1400bc0a0
mov rdx, qword [rsp + 0x1e8]
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x130], 1
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x58]
mov qword [r14], r13
lea r15, [rsp + 0x48]
mov dword [r15], 0
mov qword [r15 + 8], 0
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.1400b76e2
mov rcx, r14
mov rdx, r12
mov r8, r15
call fcn.1400bc290
mov qword [rsp + 0x120], r13
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
cmp byte [rsp + 0x130], 0
je 0x1400bc1cf
lea r15, [rsp + 0x138]
mov r14d, dword [rdi + 0xc]
xor eax, eax
mov qword [rsp + 0x30], rax
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
test r12, r12
je 0x1400bbe3c
cmp r12, 0xffffffffffffffff
je 0x1400bc1e7
call fcn.1400a6030
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x30], r12
call fcn.1400a6030
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x20], r15
lea r15, [rsp + 0x100]
lea rdx, [rsp + 0x30]
mov rcx, r15
mov r8d, 2
mov r9, r14
call fcn.1400bd430
mov qword [rsp + 0xf0], r13
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
xor eax, eax
mov qword [rsp + 0xa8], rax
mov r12, qword [r15]
mov qword [r15], rax
lea r15, [r12 + 1]
cmp r15, 2
jb 0x1400bbe9f
call fcn.1400a6030
mov rax, qword [rsp + 0xa8]
cmp rax, r12
je 0x1400bbedc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsp + 0xa8]
inc rax
cmp rax, 2
jae 0x1400bc202
cmp r15, 2
jb 0x1400bbed4
mov qword [rsp + 0xa8], r12
call fcn.1400a6030
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rsp + 0x108]
movups xmm1, xmmword [rsp + 0x118]
lea rdx, [rsp + 0xa8]
movups xmmword [rdx + 0x18], xmm1
movups xmmword [rdx + 8], xmm0
lea r14, [rsp + 0xd0]
mov rcx, r14
call fcn.1400bc340
mov r12, qword [r14]
lea rax, [r12 + 1]
cmp rax, 1
jbe 0x1400bc0b2
mov ecx, 0x108
call fcn.14013a6b4
mov r14, rax
mov r13, qword [rdi + 0x10]
mov qword [rsp + 0xd0], 0
call fcn.1400a6030
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea r15, [rsp + 0x80]
mov qword [r15], r12
call fcn.1400a6030
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rsp + 0xd8]
movups xmm1, xmmword [rsp + 0xe8]
movups xmmword [r15 + 0x18], xmm1
movups xmmword [r15 + 8], xmm0
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x60]
mov rcx, r14
mov rdx, rbx
mov r9, r15
call fcn.1400bd190
test r14, r14
je 0x1400bbfb2
mov eax, 1
lock xadd dword [r14 + 8], eax
cmp eax, 0x7fffffff
je 0x1400bc1d4
lea rbx, [r14 + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400bc0be
mov eax, dword [rdi + 0x18]
mov dword [r14 + 0xf8], eax
mov eax, dword [rdi + 0x1c]
mov dword [r14 + 0xfc], eax
test eax, eax
setne byte [r14 + 0x100]
mov al, byte [rdi + 0x20]
and al, 1
mov byte [r14 + 0xf2], al
mov rcx, r14
call fcn.1400bc4d0
test al, al
je 0x1400bc0de
mov eax, dword [rdi + 0xc]
cmp qword [r14 + 0xb8], rax
jb 0x1400bc0de
mov rcx, r14
call fcn.1400c6800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi], r14
mov rax, qword [rsp + 0xd0]
inc rax
cmp rax, 2
jae 0x1400bc175
mov rax, qword [rsp + 0x100]
inc rax
cmp rax, 2
jae 0x1400bc148
mov rdi, qword [rsp + 0x58]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x1400bc11f
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1400bc071
lock dec dword [rdi]
je 0x1400bc0cc
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14013d520
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsi], 0
jmp 0x1400bc062
mov qword [rsi], 0
jmp 0x1400bc071
mov qword [rsi], 0
jmp 0x1400bc025
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400bbfc7
mov rcx, rdi
call fcn.14009bd00
mov rcx, rdi
call fcn.14013a6ac
jmp 0x1400bc071
mov qword [rsi], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r14, r14
je 0x1400bc025
lock dec dword [r14 + 8]
jne 0x1400bc025
mov rax, qword [r14]
mov rax, qword [rax + 0xe0]
mov rcx, r14
mov edx, 1
call qword [case.0x14017aab5.0]
jmp 0x1400bc025
call fcn.1400a6030
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x1400bc1be
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x14017aab5.0]
jmp 0x1400bc062
call fcn.1400a6030
mov rdi, qword [rsp + 0x100]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x1400bc1a2
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x14017aab5.0]
jmp 0x1400bc04f
call fcn.1400a6030
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x1400bc1b0
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x14017aab5.0]
jmp 0x1400bc03a
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x1400bc161
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x1400bc18e
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x1400bc134
call fcn.1401a3145
int3
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400bbcfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400bbe34
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x1400bc21b
call fcn.1400a6030
mov r14, qword [rsp + 0xa8]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x1400bc1f4
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x14017aab5.0]
mov qword [rsp + 0xa8], 0
jmp 0x1400bbec1
mov ecx, 0x220
call fcn.14013a6b4
mov rbx, rax
mov rcx, rax
call fcn.1400ef3f0
mov r15, qword [0x10]
mov qword [0x10], rbx
test r15, r15
je 0x1400bbd0c
mov rcx, r15
call fcn.1401b3090
mov rcx, r15
call fcn.14013a6ac
mov rbx, qword [0x10]
jmp 0x1400bbd0c