Function at 0x1400bfc30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov r14, r8
mov r12, rdx
mov rdi, rcx
movabs rsi, 0xfffffffc00000000
movzx eax, byte [r8 + 7]
mov r15, qword [rcx + rax*8 + 0x238]
mov ecx, 0x220
call fcn.14013a6b4
mov rbx, rax
mov eax, dword [r14]
mov dword [rbx], eax
mov rax, rdi
and rax, rsi
cmp rax, qword [0x140336a08]
je 0x1400bff48
mov qword [rbx + 8], rdi
test rdi, rdi
mov qword [rsp + 0x28], r12
je 0x1400c0032
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400bfcbe
mov ecx, 1
lock xadd dword [rax], ecx
cmp ecx, 0x7fffffff
je 0x1400c0029
mov ecx, 0x28
call fcn.14013a6b4
mov r12, rax
xor eax, eax
mov dword [r12], eax
mov dword [r12 + 8], eax
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r12 + 0x10], 0
test rax, rax
je 0x1400c0020
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12 + 0x10]
inc rax
cmp rax, 2
jae 0x1400c0071
lea rax, [r13 + 1]
cmp rax, 2
jb 0x1400bfd2c
mov qword [r12 + 0x10], r13
call fcn.1400a6030
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [r12 + 0x10]
mov byte [r12 + 0x18], 0
inc rax
cmp rax, 1
jbe 0x1400c0026
and rsi, rbx
cmp rsi, qword [0x140336a08]
je 0x1400bff2e
mov qword [r12 + 0x20], rbx
mov qword [rbx + 0x18], r12
test r12, r12
je 0x1400bfd80
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x1400c002c
xorps xmm6, xmm6
movups xmmword [rbx + 0x40], xmm6
movups xmmword [rbx + 0x30], xmm6
movups xmmword [rbx + 0x20], xmm6
mov word [rbx + 0x50], 0x101
xor eax, eax
mov byte [rbx + 0x52], al
movups xmmword [rbx + 0x60], xmm6
mov qword [rbx + 0x70], 0
mov byte [rbx + 0x78], 1
mov byte [rbx + 0x80], al
mov byte [rbx + 0x98], al
lea rcx, [rbx + 0xa0]
mov rdx, rbx
mov r8, r15
call fcn.1400c04f0
lea r15, [rbx + 0x1f0]
test rdi, rdi
je 0x1400c0000
cmp rsi, qword [0x140336a08]
je 0x1400bff3b
lea r12, [rdi + 0x70]
mov ecx, 0x30
call fcn.14013a6b4
mov dword [rax], 1
lea rcx, [0x1400a9e10]
mov qword [rax + 8], rcx
lea rcx, [0x1400d7840]
mov qword [rax + 0x10], rcx
lea rcx, [0x1401fedb0]
mov qword [rax + 0x18], rcx
lea rcx, [0x14008b580]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rbx
mov rcx, r12
mov rdx, r15
mov r8, rax
call fcn.1400c03a0
mov al, byte [r14 + 4]
mov byte [rbx + 0x208], al
mov al, byte [r14 + 5]
mov byte [rbx + 0x209], al
mov al, byte [r14 + 6]
mov byte [rbx + 0x20a], al
mov ecx, 8
call fcn.14013a6b4
mov dword [rax], 0
mov byte [rax + 4], 0
mov qword [rbx + 0x210], rax
test rax, rax
mov r15, qword [rsp + 0x28]
je 0x1400bfe8f
mov ecx, 1
lock xadd dword [rax], ecx
cmp ecx, 0x7fffffff
je 0x1400c002f
mov qword [rbx + 0x218], rbx
mov rax, qword [rbx + 0xb8]
cmp qword [rax + 0x10], 0
sete byte [rbx + 0x50]
cmp qword [rbx + 0xa8], 0
mov al, byte [rbx + 0x128]
jne 0x1400bfec6
test al, al
je 0x1400bfff9
mov al, byte [rbx + 0x130]
xor al, 1
mov byte [rbx + 0x51], al
cmp qword [rbx + 8], 0
je 0x1400bff13
mov rcx, qword [rbx + 0x18]
mov eax, dword [rcx + 8]
nop word [rax + rax]
mov edx, eax
or edx, 0x40000000
lock cmpxchg dword [rcx + 8], edx
jne 0x1400bfee0
mov edx, 0x3fffffff
and eax, edx
mov r8d, eax
neg r8d
lock xadd dword [rcx + 8], r8d
test r8d, r8d
jns 0x1400bff13
and r8d, edx
cmp r8d, eax
je 0x1400c0011
mov qword [r15], rbx
mov rax, qword [rdi + 0x260]
test rax, rax
jne 0x1400bff60
lea r14, [rdi + 0x260]
mov rsi, r14
jmp 0x1400bff7b
mov rcx, rbx
call fcn.14010ecc8
jmp 0x1400bfd5c
mov rcx, rbx
call fcn.14013931e
jmp 0x1400bfde5
mov rcx, rdi
call fcn.14013931e
jmp 0x1400bfc8a
mov rax, qword [rsi]
mov r14, rsi
test rax, rax
je 0x1400bff7b
mov rsi, rax
mov rax, qword [rax + 0x20]
cmp rbx, rax
jb 0x1400bff55
jbe 0x1400bffbe
mov rax, qword [rsi + 8]
test rax, rax
jne 0x1400bff60
lea r14, [rsi + 8]
mov ecx, 0x28
call fcn.14013a6b4
mov qword [rax + 0x20], rbx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [r14], rax
mov rcx, qword [rdi + 0x258]
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400bffed
mov rcx, qword [rdi + 0x260]
mov rdx, rax
call fcn.1400c00bd
inc qword [rdi + 0x268]
mov rbx, qword [r15]
mov r8b, byte [rdi + 0x51]
add rdi, 0x128
mov rcx, rdi
mov rdx, rbx
call fcn.1400c06c0
mov rax, r15
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rdi + 0x258], rcx
mov rax, qword [r14]
jmp 0x1400bffa5
xor eax, eax
jmp 0x1400bfec6
movups xmmword [r15], xmm6
mov qword [r15 + 0x10], 0
jmp 0x1400bfe37
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400bff13
mov byte [r12 + 0x18], 0
int3
int3
int3
int3
mov ecx, 8
call fcn.14013a6b4
mov r12, rax
mov qword [rax], 0
test rax, rax
je 0x1400c005d
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x1400c00b9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r12 + 4], eax
mov qword [rbx + 0x10], r12
jmp 0x1400bfcbe
call fcn.1400a6030
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x1400c00ab
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x20]
call qword [case.0x14017aab5.0]
mov qword [r12 + 0x10], 0
jmp 0x1400bfd18
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x1400c008c
int3