Function at 0x140013480
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
xor ebp, ebp
cmp r8d, r9d
jb 0x1400138b4
mov eax, r9d
and eax, 0x1f
jne 0x1400138b4
mov r10, rdx
mov rsi, rcx
add r8d, 0xfffffff0
mov eax, r9d
mov qword [rsp + 0x58], rax
lea rcx, [rax + 0x28]
xor ebp, ebp
mov rax, r8
xor edx, edx
div rcx
cmp rcx, r8
ja 0x1400138b4
mov qword [rsi], r10
mov qword [r10], 0
lea rcx, [rax + rax*4]
lea r15, [rcx*8 + 0x10]
lea rcx, [rsi + 8]
mov qword [rsp + 0x50], rcx
mov ebp, 0x10
mov ebx, 0x28
xorps xmm6, xmm6
mov qword [rsp + 0x48], rax
mov r14, rax
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x60], r10
mov r13, qword [rsi]
mov ecx, 0x48
call fcn.1401cbbc4
mov r12, rax
movups xmmword [rax], xmm6
movups xmmword [rax + 0x18], xmm6
movups xmmword [rax + 0x28], xmm6
mov ecx, 0x18
call fcn.1401cbbc4
test rax, rax
je 0x1400139a1
mov qword [rsp + 0x70], rbp
mov qword [rax + 0x10], r12
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov qword [rsi + 8], rax
inc qword [rsi + 0x18]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
cmp qword [r12], rax
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x68], r14
je 0x1400135c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12]
inc rax
cmp rax, 2
jae 0x1400138f7
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400135bd
mov qword [r12], rdi
call fcn.14017a3f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [r12]
mov r14, rbx
lea r15, [rbx + r13]
add r15, 0xfffffffffffffff8
mov rbx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400138b4
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
cmp qword [r12 + 8], rax
je 0x1400138d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12 + 8]
inc rax
cmp rax, 2
mov rbx, r14
jae 0x1400138da
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14001365b
mov qword [r12 + 8], rdi
call fcn.14017a3f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [r12 + 8]
add rbx, r13
mov r15, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, rdi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400138b4
mov r15, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov qword [r13 + rbp], r15
mov dword [r13 + rbp + 8], 1
mov rcx, qword [r12 + 0x20]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
mov edi, dword [rsp + 0x44]
mov rbx, qword [rsp + 0x60]
je 0x140013912
mov rax, qword [0x1402cbde0]
and rax, rbx
cmp rax, qword [0x1402cbdc8]
je 0x14001393a
mov qword [r12 + 0x20], rbx
mov dword [r12 + 0x10], edi
mov rcx, qword [r12 + 0x28]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x140013926
add r13, rbp
mov rax, qword [0x1402cbde0]
and rax, r13
cmp rax, qword [0x1402cbdc8]
mov rbx, r14
je 0x140013954
mov qword [r12 + 0x28], r13
mov r13, qword [r13]
mov rdi, qword [r12 + 0x20]
mov rax, qword [0x1402cbde0]
and rax, rdi
cmp rax, qword [0x1402cbdc8]
mov r14, qword [rsp + 0x68]
je 0x140013947
add r13, rdi
mov rax, qword [0x1402cbde0]
and rax, rdi
cmp rax, qword [0x1402cbdc8]
je 0x140013988
mov rax, qword [0x1402cbde0]
and rax, r13
cmp rax, qword [0x1402cbdc8]
je 0x14001399e
mov rax, qword [0x1402cbde0]
and rax, r13
cmp rax, qword [0x1402cbdc8]
je 0x140013961
mov rax, qword [0x1402cbde0]
and rax, r13
cmp rax, qword [0x1402cbdc8]
je 0x14001397b
mov rax, r12
add rax, 0x18
mov rcx, qword [rax]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x140013930
mov qword [r12 + 0x18], r13
mov rdi, qword [rsi + 0x38]
mov rcx, qword [r12 + 0x30]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x14001391c
mov rax, qword [0x1402cbde0]
and rax, rdi
cmp rax, qword [0x1402cbdc8]
je 0x14001396e
mov qword [r12 + 0x30], rdi
mov rax, qword [rsi + 0x28]
mov qword [r12 + 0x38], rax
mov eax, dword [rsi + 0x30]
mov dword [r12 + 0x40], eax
add r15, qword [rsp + 0x58]
mov rcx, qword [rsi + 0x20]
mov r8, qword [r12]
mov qword [rsp + 0x20], r12
mov rdx, rsi
lea r9, [0x140040420]
call fcn.1400139d0
add rbp, 0x28
add rbx, 0x28
dec r14
jne 0x140013519
mov rdi, qword [rsi]
mov rbx, qword [rsi + 0x28]
add rdi, 8
mov r14, qword [0x1402e6e08]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, r14
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400138b4
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov bpl, 1
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, r14
jmp 0x140013668
call fcn.14017a3f0
mov rcx, qword [r12 + 8]
call fcn.14017b060
mov qword [r12 + 8], 0
jmp 0x140013645
call fcn.14017a3f0
mov rcx, qword [r12]
call fcn.14017b060
mov qword [r12], 0
jmp 0x1400135a8
call fcn.140150dc0
jmp 0x1400136de
call fcn.1401509f0
jmp 0x140013807
call fcn.1401509f0
jmp 0x14001371b
call fcn.140150dc0
jmp 0x1400137e2
mov rcx, rbx
call fcn.1401508a0
jmp 0x1400136f5
mov rcx, rdi
call fcn.1401508a0
jmp 0x140013762
mov rcx, r13
call fcn.1401508a0
jmp 0x140013738
mov rcx, r13
call fcn.1401508a0
jmp 0x1400137aa
mov rcx, rdi
call fcn.1401508a0
jmp 0x14001381e
mov rcx, r13
call fcn.140150dc0
jmp 0x1400137c1
mov r8d, 1
mov rcx, rdi
mov rdx, r13
call fcn.140037b60
jmp 0x140013793
int3
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140207060
int3