Function at 0x140045840
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
mov qword [rsp + 0x38], rdx
xor ebp, ebp
cmp r8d, r9d
jb 0x140045c54
mov eax, r9d
and eax, 0x1f
jne 0x140045c54
mov rsi, rcx
add r8d, 0xfffffff0
mov eax, r9d
mov qword [rsp + 0x68], rax
lea rcx, [rax + 0x28]
xor ebp, ebp
mov rax, r8
xor edx, edx
div rcx
cmp rcx, r8
ja 0x140045c54
movabs r8, 0xfffffffc00000000
mov rdx, qword [rsp + 0x38]
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 + 0x60], rcx
and rdx, r8
mov qword [rsp + 0x58], rdx
mov r14d, 0x10
mov ebx, 0x28
xorps xmm6, xmm6
mov qword [rsp + 0x50], rax
mov r15, rax
mov dword [rsp + 0x4c], r9d
jmp 0x140045afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12 + 8]
inc rax
cmp rax, 2
mov rbx, qword [rsp + 0x40]
jae 0x140045c8d
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140045928
mov qword [r12 + 8], rdi
call fcn.1400e62c0
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 0x140045c54
mov rbp, qword [rsp + 0x78]
mov qword [r13 + r14], rbp
mov dword [r13 + r14 + 8], 1
mov rcx, qword [r12 + 0x20]
mov rax, rcx
movabs r15, 0xfffffffc00000000
and rax, r15
cmp rax, qword [0x1402a6e88]
mov edi, dword [rsp + 0x4c]
je 0x140045cd8
mov rax, qword [rsp + 0x58]
cmp rax, qword [0x1402a6e88]
je 0x140045cef
mov rax, qword [rsp + 0x38]
mov qword [r12 + 0x20], rax
mov dword [r12 + 0x10], edi
mov rcx, qword [r12 + 0x28]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140045ce2
add r13, r14
mov rax, r13
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140045cfe
mov qword [r12 + 0x28], r13
mov r13, qword [r13]
mov rdi, qword [r12 + 0x20]
mov rbx, rdi
and rbx, r15
cmp rbx, qword [0x1402a6e88]
je 0x140045d0b
add r13, rdi
cmp rbx, qword [0x1402a6e88]
je 0x140045d25
mov rax, r13
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140045cec
mov rdi, r13
and rdi, r15
cmp rdi, qword [0x1402a6e88]
je 0x140045d18
cmp rdi, qword [0x1402a6e88]
je 0x140045ccb
mov rax, r12
add rax, 0x18
mov rcx, qword [rax]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140045caa
mov qword [r12 + 0x18], r13
mov rdi, qword [rsi + 0x38]
mov rcx, qword [r12 + 0x30]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140045cb4
mov rax, rdi
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140045cbe
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 + 0x68]
mov rcx, qword [rsi + 0x20]
mov r8, qword [r12]
mov qword [rsp + 0x20], r12
mov rdx, rsi
lea r9, [0x14004feb0]
call fcn.140045d40
add r14, 0x28
mov rbx, qword [rsp + 0x40]
add rbx, 0x28
mov r15, qword [rsp + 0x70]
dec r15
je 0x140045c06
mov qword [rsp + 0x78], rbp
mov r13, qword [rsi]
mov ecx, 0x48
call fcn.1401803a4
mov r12, rax
movups xmmword [rax], xmm6
movups xmmword [rax + 0x18], xmm6
movups xmmword [rax + 0x28], xmm6
mov ecx, 0x18
call fcn.1401803a4
mov qword [rax + 0x10], r12
mov rcx, qword [rsp + 0x60]
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 + 0x70], r15
je 0x140045b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12]
inc rax
cmp rax, 2
jae 0x140045c72
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140045b93
mov qword [r12], rdi
call fcn.1400e62c0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [r12]
mov qword [rsp + 0x40], 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 0x140045c54
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
jne 0x1400458f3
mov rbx, qword [rsp + 0x40]
jmp 0x140045935
mov rdi, qword [rsi]
mov rbx, qword [rsi + 0x28]
add rdi, 8
mov r14, qword [0x1402b53f8]
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 0x140045c54
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x50]
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
call fcn.1400e62c0
mov rcx, qword [r12]
call fcn.140161150
mov qword [r12], 0
jmp 0x140045b7e
call fcn.1400e62c0
mov rcx, qword [r12 + 8]
call fcn.140161150
mov qword [r12 + 8], 0
jmp 0x140045912
call fcn.1400db1b0
jmp 0x140045a77
call fcn.1400d83a0
jmp 0x140045a98
mov rcx, rdi
call fcn.1400d8270
jmp 0x140045aab
mov rcx, r13
call fcn.1400db1b0
jmp 0x140045a5a
call fcn.1400db1b0
jmp 0x1400459a7
call fcn.1400d83a0
jmp 0x1400459e0
int3
mov rcx, qword [rsp + 0x38]
call fcn.1400d8270
jmp 0x1400459b9
mov rcx, r13
call fcn.1400d8270
jmp 0x1400459f6
mov rcx, rdi
call fcn.1400d8270
jmp 0x140045a17
mov rcx, r13
call fcn.1400d8270
jmp 0x140045a4d
mov r8d, 1
mov rcx, rdi
mov rdx, r13
call fcn.14004dcc0
jmp 0x140045a3a