Function at 0x140164840
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rbx, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movabs rdi, 0xfffffffc00000000
lea rax, [0x14029af90]
mov qword [rcx], rax
mov eax, dword [r9]
mov dword [rcx + 8], eax
mov rax, rdx
and rax, rdi
cmp rax, qword [0x1402dd748]
jne 0x1401648a1
mov rcx, r14
call fcn.140004d30
lea r12, [rsi + 0x18]
mov qword [rsi + 0x10], r14
test r14, r14
je 0x1401650a3
mov rax, qword [r14 + 0x20]
mov qword [r12], rax
test rax, rax
je 0x1401648d4
mov ecx, 1
lock xadd dword [rax], ecx
cmp ecx, 0x7fffffff
je 0x140165068
mov qword [rsp + 0x28], r12
mov ecx, Ordinal_41
call fcn.1401a9d88
mov r12, rax
xor eax, eax
mov dword [r12], eax
mov dword [r12 + 8], eax
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r12 + 0x10], 0
test rax, rax
je 0x14016505d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12 + 0x10]
inc rax
cmp rax, 2
jae 0x140164f4f
lea rax, [r13 + 1]
cmp rax, 2
jb 0x140164947
mov qword [r12 + 0x10], r13
call fcn.140113f90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [r12 + 0x10]
mov byte [r12 + 0x18], 0
inc rax
cmp rax, 1
jbe 0x140165063
mov qword [r12 + 0x20], rsi
mov qword [rsi + 0x20], r12
test r12, r12
je 0x14016498b
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x14016506b
xorps xmm6, xmm6
movups xmmword [rsi + 0x48], xmm6
movups xmmword [rsi + 0x38], xmm6
movups xmmword [rsi + 0x28], xmm6
mov dword [rsi + 0x58], 0x1000101
xor r12d, r12d
mov byte [rsi + 0x80], r12b
mov byte [rsi + 0x88], r12b
movups xmmword [rsi + 0x60], xmm6
movups xmmword [rsi + 0x69], xmm6
mov rax, r15
and rax, rdi
cmp rax, qword [0x1402dd748]
jne 0x1401649d1
mov rcx, r15
call fcn.140004d30
mov qword [rsi + 0x90], r15
mov qword [rsi + 0x98], r12
mov ecx, pe_nt_image_headers64
call fcn.1401a9d88
movups xmmword [rax], xmm6
movups xmmword [rax + 0x10], xmm6
movups xmmword [rax + 0x20], xmm6
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], r12
mov r15, 0xffffffffffffffff
mov qword [rax + 0x40], r15
lea rcx, str.delayed
mov qword [rax + 0x48], rcx
mov byte [rax + 0x50], r12b
mov byte [rax + 0x68], r12b
mov dword [rax + 0x70], 1
mov qword [rsi + 0xa0], rax
mov ecx, pe_nt_image_headers64
call fcn.1401a9d88
lea rcx, [rsi + 0xf0]
lea rdx, [rsi + 0x1c0]
mov qword [rsp + 0x20], rdx
movups xmmword [rax], xmm6
movups xmmword [rax + 0x10], xmm6
movups xmmword [rax + 0x20], xmm6
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], r15
lea rdx, str.immediate
mov qword [rax + 0x48], rdx
mov byte [rax + 0x50], r12b
mov byte [rax + 0x68], r12b
mov dword [rax + 0x70], r12d
mov qword [rsi + 0xa8], rax
movups xmmword [rsi + 0xc4], xmm6
movups xmmword [rsi + 0xb8], xmm6
mov qword [rsi + 0xe8], r12
movups xmmword [rsi + 0xd8], xmm6
mov qword [rsi + 0xf0], rcx
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], r12
mov dword [rsi + 0x108], r12d
mov qword [rsi + 0x110], r15
mov al, 1
mov byte [rsi + 0x118], al
mov byte [rsi + 0x120], r12b
mov byte [rsi + 0x138], r12b
mov byte [rsi + 0x140], r12b
mov byte [rsi + 0x148], r12b
mov byte [rsi + 0x190], r12b
movups xmmword [rsi + 0x169], xmm6
movups xmmword [rsi + 0x160], xmm6
movups xmmword [rsi + 0x150], xmm6
mov byte [rsi + 0x198], al
mov byte [rsi + 0x1a0], r12b
mov byte [rsi + 0x1a8], r12b
mov byte [rsi + 0x1b0], r12b
mov qword [rsi + 0x1b4], r12
test r14, r14
je 0x14016508f
lea r12, [r14 + 0x98]
mov ecx, 0x30
call fcn.1401a9d88
mov rbp, rax
mov dword [rax], 1
lea rax, [0x140231ef0]
mov qword [rbp + 8], rax
lea r15, [0x1400631a0]
mov qword [rbp + 0x10], r15
lea rax, [method.std::__Cr::ctype_char_.virtual_56]
mov qword [rbp + 0x18], rax
lea rax, [0x1401a1960]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rsi
mov r13, qword [r14 + 0xa8]
test r13, r13
je 0x140164e48
mov rax, qword [r13 + 8]
not rax
bsf rax, rax
mov r14d, 0x40
cmovne r14, rax
cmp r14, 0x40
jae 0x140165066
mov rcx, qword [r13 + r14*8 + 0x10]
mov qword [r13 + r14*8 + 0x10], rbp
test rcx, rcx
mov rbp, qword [rsp + 0x28]
jne 0x140164e90
mov r15d, 1
mov ecx, r14d
shl r15, cl
mov rax, qword [r13 + 8]
bts rax, r14
mov qword [r13 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140164eb7
mov rax, r12
and rax, rdi
cmp rax, qword [0x1402dd748]
jne 0x140164bee
mov rcx, r12
call fcn.140004d30
mov rax, qword [rsp + 0x20]
mov qword [rax], r12
and rdi, r13
cmp rdi, qword [0x1402dd748]
jne 0x140164c0a
mov rcx, r13
call fcn.140004d30
mov qword [rsi + 0x1c8], r13
mov qword [rsi + 0x1d0], r15
mov al, byte [rbx + 4]
mov byte [rsi + 0x1d8], al
mov al, byte [rbx + 5]
mov byte [rsi + 0x1d9], al
mov al, byte [rbx + 6]
mov byte [rsi + 0x1da], al
mov rax, qword [rsi]
lea rcx, [0x1401a18c0]
cmp qword [rax + 0xa8], rcx
jne 0x140164ec7
mov ecx, Ordinal_41
call fcn.1401a9d88
mov rcx, qword [rbp]
test rcx, rcx
je 0x140164c72
mov edx, 1
lock xadd dword [rcx], edx
cmp edx, 0x7fffffff
je 0x140165078
mov rdx, qword [rsi + 0x20]
test rdx, rdx
je 0x140164c93
mov r8d, 1
lock xadd dword [rdx], r8d
cmp r8d, 0x7fffffff
je 0x14016507b
mov dword [rax + 8], 0
lea r8, [0x14029d7d8]
mov qword [rax], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov byte [rax + 0x20], 0
test rax, rax
je 0x140165071
mov ecx, 1
lock xadd dword [rax + 8], ecx
cmp ecx, 0x7fffffff
je 0x14016507e
mov qword [rsi + 0x1e0], rax
mov ecx, 8
call fcn.1401a9d88
mov dword [rax], 0
mov byte [rax + 4], 0
mov qword [rsi + 0x1e8], rax
test rax, rax
je 0x140164d0b
mov ecx, 1
lock xadd dword [rax], ecx
cmp ecx, 0x7fffffff
je 0x14016506e
mov qword [rsi + 0x1f0], rsi
mov rax, qword [rsi + 0x18]
mov edi, dword [rax + 8]
test edi, edi
jne 0x140164ff7
mov rax, qword [rsi + 0xa8]
cmp qword [rax + 0x10], 0
mov rax, qword [rsi + 0x18]
sete byte [rsi + 0x58]
mov edi, dword [rax + 8]
test edi, edi
jne 0x140165008
mov al, byte [rsi + 0x118]
mov byte [rsi + 0x5b], al
mov rax, qword [rsi + 0x18]
mov edi, dword [rax + 8]
test edi, edi
jne 0x140165019
cmp qword [rsi + 0x98], 0
jne 0x140164f8b
mov rax, qword [rsi]
lea rcx, [0x1401a8d10]
cmp qword [rax + 0x10], rcx
jne 0x140164e0e
mov rax, qword [rbp]
mov edi, dword [rax + 8]
test edi, edi
jne 0x14016503b
cmp byte [rsi + 0x118], 1
jne 0x140164f84
mov rax, qword [rbp]
mov edi, dword [rax + 8]
test edi, edi
jne 0x14016502a
mov al, byte [rsi + 0x138]
xor al, 1
mov byte [rsi + 0x59], al
cmp qword [rsi + 0x10], 0
je 0x140164df7
mov rcx, qword [rsi + 0x20]
mov eax, dword [rcx + 8]
nop
mov edx, eax
or edx, 0x40000000
lock cmpxchg dword [rcx + 8], edx
jne 0x140164dc0
and eax, 0x3fffffff
mov edx, eax
neg edx
lock xadd dword [rcx + 8], edx
test edx, edx
setns r8b
and edx, 0x3fffffff
cmp edx, eax
setne al
or al, r8b
je 0x140165081
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140164e2f
call fcn.1401ac870
int3
mov rax, qword [rsi + 0x18]
mov edi, dword [rax + 8]
test edi, edi
jne 0x14016504c
cmp byte [rsi + 0x118], 0
jne 0x140164d96
jmp 0x140164f84
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x230
call fcn.1401a9d88
mov r13, rax
mov r8d, 0x230
mov rcx, rax
xor edx, edx
call fcn.1401e5d50
lea rdx, [rsp + 0x30]
mov qword [rdx], r13
mov rcx, r12
call fcn.140010130
mov rdx, qword [r14 + 0xa0]
mov rcx, r12
call fcn.140010040
mov r13, qword [r14 + 0xa8]
jmp 0x140164b7e
lock dec dword [rcx]
jne 0x140164bb5
mov rax, qword [rcx + 0x10]
cmp rax, r15
je 0x140164ead
call qword [0x1402cbd20]
jmp 0x140164bb5
call fcn.1401a9dc4
jmp 0x140164bb5
mov rcx, r12
mov rdx, r13
call fcn.1400157d0
jmp 0x140164bd7
mov ecx, Ordinal_41
call fcn.1401a9d88
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140164eef
mov edx, 1
lock xadd dword [rcx], edx
cmp edx, 0x7fffffff
je 0x1401650c7
mov rdx, qword [rsi + 0x20]
test rdx, rdx
je 0x140164f10
mov r8d, 1
lock xadd dword [rdx], r8d
cmp r8d, 0x7fffffff
je 0x1401650ca
mov dword [rax + 8], 0
lea r8, [0x14029d7d8]
mov qword [rax], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov byte [rax + 0x20], 0
test rax, rax
je 0x140165071
mov ecx, 1
lock xadd dword [rax + 8], ecx
cmp ecx, 0x7fffffff
jne 0x140164ccf
int3
call fcn.140113f90
mov rdx, qword [r12 + 0x10]
cmp qword [0x14032e578], 0
je 0x140164fa5
mov rcx, qword [0x14032e578]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x1402cbd20]
mov qword [r12 + 0x10], 0
jmp 0x140164933
xor eax, eax
jmp 0x140164dad
mov rax, qword [rsi + 0x18]
mov edi, dword [rax + 8]
test edi, edi
jne 0x1401650cd
mov al, byte [rsi + 0x118]
jmp 0x140164dad
mov qword [rsp + 0x20], rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402b22fd]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401650de
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140164ff1
call qword [0x1402cbd20]
mov rcx, rax
xor edx, edx
call fcn.14003d8b0
mov rdx, qword [rsp + 0x20]
jmp 0x140164f63
xor ecx, ecx
mov dl, 1
jmp 0x140164fe2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164d21
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164d40
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164d58
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164da5
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164d89
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164e1d
int3
mov byte [r12 + 0x18], 0
int3
ud2
int3
int3
int3
xor eax, eax
jmp 0x140164ccf
int3
int3
int3
add rcx, 0x10
call fcn.14014b960
jmp 0x140164df7
mov rcx, qword [rsp + 0x20]
call fcn.14023aec0
mov rbp, qword [rsp + 0x28]
jmp 0x140164c18
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r12], rax
mov rcx, r12
call fcn.14006b320
mov rcx, qword [r12]
call fcn.1400cf340
jmp 0x1401648d4
int3
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x140164f9a
int3
xor ecx, ecx
jmp 0x140164fe0