Function at 0x140035f50
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 0x14003636e
mov ebx, r9d
mov eax, r9d
and eax, 0x1f
jne 0x14003636e
mov rsi, rcx
add r8d, 0xfffffff0
mov eax, ebx
mov qword [rsp + 0x78], rax
lea rcx, [rax + 0x28]
xor ebp, ebp
mov rax, r8
xor edx, edx
div rcx
cmp rcx, r8
ja 0x14003636e
movabs r8, 0xfffffffc00000000
mov rdx, qword [rsp + 0x40]
mov qword [rsi], rdx
mov qword [rdx], 0
lea rcx, [rax + rax*4]
lea rbp, [rcx*8 + 0x10]
lea rcx, [rsi + 8]
mov qword [rsp + 0x70], rcx
and rdx, r8
mov qword [rsp + 0x68], rdx
mov ecx, 0x10
mov r15d, Ordinal_41
xorps xmm6, xmm6
mov qword [rsp + 0x60], rax
mov r14, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x88], rbp
mov r13, qword [rsi]
mov ecx, Ordinal_73
call fcn.14019ca88
mov r14, rax
movups xmmword [rax], xmm6
movups xmmword [rax + 0x18], xmm6
movups xmmword [rax + 0x28], xmm6
mov ecx, Ordinal_26
call fcn.14019ca88
test rax, rax
je 0x1400363c4
mov r12, r14
mov qword [rax + 0x10], r14
mov rcx, qword [rsp + 0x70]
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, qword [r14]
cmp rdi, rax
je 0x1400360b9
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [r12]
inc rax
cmp rax, 2
jae 0x14003638c
lea rax, [rbp + 1]
cmp rax, 2
jb 0x1400360ad
mov qword [r12], rbp
call fcn.1401074f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [r12]
mov esi, ebx
mov qword [rsp + 0x50], r15
add r15, r13
add r15, 0xfffffffffffffff8
mov rax, qword [rsp + 0x48]
mov rbx, qword [rax + 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 0x14003636e
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, qword [r12 + 8]
cmp rdi, rax
mov rbx, qword [rsp + 0x50]
je 0x14003615f
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [r12 + 8]
inc rax
cmp rax, 2
jae 0x1400363a7
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140036152
mov qword [r12 + 8], rbp
call fcn.1401074f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [r12 + 8]
add rbx, r13
mov rax, qword [rsp + 0x48]
mov r15, qword [rax + 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 0x14003636e
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x58]
mov qword [r13 + rdi], rbp
mov dword [r13 + rdi + 8], 1
mov rax, qword [rsp + 0x68]
cmp rax, qword [0x1402b9708]
mov ebx, esi
movabs r15, 0xfffffffc00000000
je 0x1400363f1
mov rcx, qword [r12 + 0x20]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402b9708]
mov rsi, qword [rsp + 0x48]
je 0x1400363c6
add r13, rdi
mov rax, qword [rsp + 0x40]
mov qword [r12 + 0x20], rax
mov dword [r12 + 0x10], ebx
mov rax, r13
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x140036400
mov rcx, qword [r12 + 0x28]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x1400363d0
mov qword [r12 + 0x28], r13
mov rcx, qword [r12 + 0x20]
mov r13, qword [r13]
add r13, rcx
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x140036427
mov rax, r13
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x1400363ee
mov rax, r13
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x14003640d
add r14, 0x18
mov rcx, qword [r14]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x1400363da
mov qword [r14], r13
mov rdi, qword [rsi + 0x38]
mov rax, rdi
and rax, r15
cmp rax, qword [0x1402b9708]
je 0x14003641a
mov rcx, qword [r12 + 0x30]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402b9708]
mov r14, qword [rsp + 0x80]
je 0x1400363e4
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 rbp, qword [rsp + 0x78]
mov rcx, qword [rsi + 0x20]
mov r8, qword [r12]
mov qword [rsp + 0x20], r12
mov rdx, rsi
lea r9, [0x140044de0]
call fcn.140036440
mov rcx, qword [rsp + 0x58]
add rcx, 0x28
mov r15, qword [rsp + 0x50]
add r15, 0x28
dec r14
jne 0x140036000
mov rdi, qword [rsi]
mov rbx, qword [rsi + 0x28]
add rdi, 8
mov r14, qword [0x1402d0cb8]
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 0x14003636e
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
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.1401074f0
mov rcx, qword [r12]
call fcn.140186080
mov qword [r12], 0
jmp 0x14003609a
call fcn.1401074f0
mov rcx, qword [r12 + 8]
call fcn.140186080
mov qword [r12 + 8], 0
jmp 0x14003613e
ud2
call fcn.140004e70
jmp 0x1400361f3
call fcn.140004e70
jmp 0x140036230
call fcn.140004e70
jmp 0x140036294
call fcn.140004e70
jmp 0x1400362ce
int3
mov rcx, qword [rsp + 0x40]
call fcn.140004d30
jmp 0x1400361d6
mov rcx, r13
call fcn.140004d30
jmp 0x140036218
mov rcx, r13
call fcn.140004d30
jmp 0x14003627a
mov rcx, rdi
call fcn.140004d30
jmp 0x1400362ae
mov r8d, 1
mov rdx, r13
call fcn.140003440
jmp 0x140036267