Function at 0x14003e530
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0x40], rdx
xor ebp, ebp
cmp r8d, r9d
jb 0x14003e907
mov eax, r9d
and eax, 0x1f
jne 0x14003e907
mov r12, rcx
add r8d, 0xfffffff0
mov eax, r9d
mov qword [rsp + 0x78], rax
lea rcx, [rax + 0x28]
xor ebp, ebp
mov rax, r8
xor edx, edx
div rcx
cmp rcx, r8
ja 0x14003e907
movabs rdx, 0xfffffffe00000000
mov rcx, qword [rsp + 0x40]
mov qword [r12], rcx
mov qword [rcx], 0
lea rbp, [r12 + 8]
mov qword [rsp + 0x70], rbp
and rcx, rdx
mov qword [rsp + 0x68], rcx
lea rcx, [rax + rax*4]
lea r15, [rcx*8 + 0x10]
xor r13d, r13d
xorps xmm6, xmm6
xor esi, esi
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x4c], r9d
mov rax, qword [r12]
mov qword [rsp + 0x60], rax
mov ecx, 0x48
call fcn.14011d790
mov rbx, rax
movups xmmword [rax], xmm6
movups xmmword [rax + 0x18], xmm6
movups xmmword [rax + 0x28], xmm6
mov ecx, 0x18
call fcn.14011d790
mov qword [rax + 0x10], rbx
mov rcx, qword [rsp + 0x70]
mov qword [rax + 8], rcx
mov rcx, qword [r12 + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov qword [r12 + 8], rax
inc qword [r12 + 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 [rbx], rax
mov qword [rsp + 0x88], rsi
je 0x14003e8b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14003e925
mov rsi, r15
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14003e67b
mov qword [rbx], rdi
call fcn.1400d3890
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rbx]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], r13
lea r15, [rax + r13]
add r15, 0x20
mov r13, r12
mov r14, qword [r12 + 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, r14
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14003e907
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r12, rax
cmp qword [rbx + 8], rax
mov qword [rsp + 0x50], rsi
je 0x14003e72a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx + 8]
inc rax
cmp rax, 2
jae 0x14003e93e
mov rax, r12
inc rax
cmp rax, 2
jb 0x14003e71e
mov qword [rbx + 8], r12
call fcn.1400d3890
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [rbx + 8]
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
lea r14, [rdi + r15]
add r14, 0x28
mov rsi, qword [r13 + 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, r12
mov r8, rsi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14003e907
mov rax, qword [rsp + 0x50]
mov qword [rdi + r15 + 0x10], rax
mov dword [rdi + r15 + 0x18], 1
mov rcx, qword [rbx + 0x20]
mov rdx, rcx
movabs rbp, 0xfffffffe00000000
and rdx, rbp
mov rax, qword [0x14021af08]
cmp rdx, rax
mov r14, qword [rsp + 0x80]
mov esi, dword [rsp + 0x4c]
je 0x14003e959
cmp qword [rsp + 0x68], rax
mov r12, r13
je 0x14003e96a
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x20], rcx
mov dword [rbx + 0x10], esi
mov rcx, qword [rbx + 0x28]
mov rdx, rcx
and rdx, rbp
cmp rdx, rax
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
je 0x14003e980
lea rcx, [rdi + r13]
add rcx, 0x10
mov rdx, rcx
and rdx, rbp
cmp rdx, rax
mov rsi, qword [rsp + 0x88]
je 0x14003e991
lea rdx, [rdi + r13]
add rdx, 0x10
mov qword [rbx + 0x28], rdx
mov rcx, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x20]
add rdi, qword [rdx]
mov rdx, rcx
and rdx, rbp
cmp rdx, rax
je 0x14003e9a2
mov rcx, rdi
and rcx, rbp
cmp rcx, rax
je 0x14003e9b3
mov qword [rbx + 0x18], rdi
mov rdi, qword [r12 + 0x38]
mov rcx, qword [rbx + 0x30]
mov rdx, rcx
and rdx, rbp
cmp rdx, rax
je 0x14003e9c7
mov rcx, rdi
and rcx, rbp
cmp rcx, rax
je 0x14003e9d8
mov qword [rbx + 0x30], rdi
mov rax, qword [r12 + 0x28]
mov qword [rbx + 0x38], rax
mov eax, dword [r12 + 0x30]
mov dword [rbx + 0x40], eax
add r15, qword [rsp + 0x78]
mov rcx, qword [r12 + 0x20]
mov r8, qword [rbx]
mov qword [rsp + 0x20], rbx
mov rdx, r12
lea r9, [0x140026310]
call fcn.14003e9f0
inc rsi
add r13, 0x28
cmp rsi, r14
jne 0x14003e5da
jmp 0x14003e8bb
mov rsi, r15
jmp 0x14003e686
mov rsi, qword [r12]
mov rdi, qword [r12 + 0x28]
add rsi, 8
mov rbx, qword [0x14022b9d8]
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, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14003e907
mov rax, qword [r12]
mov qword [rax], r14
mov bpl, 1
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d3890
mov rcx, qword [rbx]
call fcn.140101910
mov qword [rbx], 0
jmp 0x14003e664
call fcn.1400d3890
mov rcx, qword [rbx + 8]
call fcn.140101910
mov qword [rbx + 8], 0
jmp 0x14003e709
call fcn.1400f23b0
mov rax, qword [0x14021af08]
jmp 0x14003e7b5
mov rcx, qword [rsp + 0x40]
call fcn.1400f2260
mov rax, qword [0x14021af08]
jmp 0x14003e7c3
call fcn.1400f23b0
mov rax, qword [0x14021af08]
jmp 0x14003e7ec
call fcn.1400f2260
mov rax, qword [0x14021af08]
jmp 0x14003e80b
call fcn.1400f23b0
mov rax, qword [0x14021af08]
jmp 0x14003e831
mov rcx, rdi
call fcn.1400f2260
mov rax, qword [0x14021af08]
jmp 0x14003e840
call fcn.1400f23b0
mov rax, qword [0x14021af08]
jmp 0x14003e85c
mov rcx, rdi
call fcn.1400f2260
jmp 0x14003e86b