Function at 0x14006a654
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, r9
mov r15, r8
mov r12b, dl
mov r9, rcx
xor r13d, r13d
test rsi, rsi
je 0x14006a69b
mov byte [rsi], r13b
mov qword [r8], r13
mov r10d, 0x104
mov edx, r10d
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub r9, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14006a6d7
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14006a6d7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14006a6b4
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r13w
lea r8, [0x1401de238]
mov rdx, r10
lea rcx, [rsp + 0x40]
call fcn.14006a2f8
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14006a747
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14006a865
mov rcx, qword [rbp + 0x198]
lea r8, [0x1401de2a4]
mov edx, 0xc9
call fcn.1400696e0
mov ebx, eax
jmp 0x14006a868
mov dword [rsp + 0x24], r13d
mov edi, r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, r14
call fcn.140068e88
mov ebx, eax
test eax, eax
jns 0x14006a787
mov rcx, qword [rbp + 0x198]
mov r9d, eax
lea r8, [0x1401de2a4]
mov edx, 0xcf
call fcn.140069704
jmp 0x14006a868
test r12b, r12b
je 0x14006a84b
lea r8, [0x1401de240]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14006a2f8
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14006a7e1
mov rcx, qword [rbp + 0x198]
lea r8, [0x1401de2a4]
mov edx, 0xd5
call fcn.1400696e0
mov ebx, eax
jmp 0x14006a810
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140068e88
mov ebx, eax
test eax, eax
jns 0x14006a82f
mov rcx, qword [rbp + 0x198]
mov r9d, eax
lea r8, [0x1401de2a4]
mov edx, 0xd7
call fcn.140069704
nop
test rdi, rdi
je 0x14006a868
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x198]
test eax, eax
je 0x14006a8bf
jmp 0x14006a868
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x198]
test eax, eax
je 0x14006a8d1
mov edi, dword [rsp + 0x20]
movsxd rcx, edi
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
test rsi, rsi
je 0x14006a85f
mov byte [rsi], 1
or rax, rcx
mov qword [r15], rax
mov ebx, r13d
test r14, r14
je 0x14006a87a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14006a8a6
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1401adee0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 0x198]
lea r8, str.D:ProjectsWinRARpackagesMicrosoft.Windows.ImplementationLibrary.1.0.230824.2includewil_resource.h
mov edx, 0x942
call fcn.14006aa24
nop
lea r8, str.D:ProjectsWinRARpackagesMicrosoft.Windows.ImplementationLibrary.1.0.230824.2includewil_resource.h
mov edx, 0x942
call fcn.14006aa24
int3
lea r8, str.D:ProjectsWinRARpackagesMicrosoft.Windows.ImplementationLibrary.1.0.230824.2includewil_resource.h
mov edx, 0x942
call fcn.14006aa24
int3