Function at 0x140049620
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp byte [rcx + 0x6c], 0
je 0x140049a3c
mov r14, rdx
mov r15, rcx
lea rdx, [rcx + 0x18]
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x80]
mov qword [rdi + 0x10], rsi
movaps xmm6, xmmword [0x140261350]
movaps xmmword [rdi], xmm6
mov rcx, rdi
mov r8d, 0x10
call fcn.140049ad0
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rsi
movaps xmmword [rbx], xmm6
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
call fcn.140049ad0
mov qword [rsp + 0x58], 0
mov rsi, qword [rdi]
mov r8, qword [rdi + 8]
mov rdi, qword [rbx]
mov rax, qword [rbx + 8]
mov cl, byte [r15 + 0x6e]
cmp rsi, r8
jne 0x1400496d2
cmp rdi, rax
je 0x140049a78
sub rax, rdi
shr rax, 4
sub r8, rsi
shr r8, 4
movzx edx, cl
mov rcx, qword [r15 + 0x48]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rsi
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x140049a46
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140049932
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x140049a2f
call fcn.1400f24d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [r15 + 0x6e], 0
je 0x1400497bb
cmp byte [r15 + 0x6f], 0
je 0x1400497bb
lea r8, [rsp + 0xa4]
mov dword [r8 + 8], 0
mov qword [r8], 0
mov dword [r8 - 4], 1
lea rdx, str.SeChangeNotifyPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140049a6b
lea r8, [rsp + 0xa0]
mov dword [r8 + 0xc], 4
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140049a6b
cmp byte [r15 + 0x6d], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov rcx, rbx
je 0x140049a53
call fcn.140049e60
test al, al
je 0x140049ab7
mov r12, qword [r15 + 0x30]
mov r13, qword [r15 + 0x38]
cmp r12, r13
jne 0x140049939
mov rcx, rbx
mov edx, 0x10000000
call fcn.140049d00
test al, al
je 0x140049ab7
mov edx, dword [r15 + 0x68]
mov rcx, rbx
call fcn.140049c10
test eax, eax
mov rsi, qword [rsp + 0x50]
jne 0x140049abd
lea r15, [rsp + 0xa0]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r15], rax
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r14
mov r12, rax
call r14
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0xf01ff
mov rcx, rax
mov rdx, rbx
mov r8, r12
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140049ab7
mov r12, qword [rsp + 0xa0]
cmp qword [rsi], r12
je 0x1400498b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400499d4
lea rax, [r12 + 1]
cmp rax, 2
jb 0x1400498a9
mov qword [rsi], r12
call fcn.1400f24d0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x48]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400498ea
call fcn.1400f24d0
cmp qword [0x1402a1a18], 0
je 0x1400499ed
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x1401d7990.0]
test rdi, rdi
je 0x1400498f7
mov rcx, rdi
call fcn.140172a44
test rsi, rsi
je 0x140049904
mov rcx, rsi
call fcn.140172a44
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401756e0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140049749
lea r14, [rsp + 0xa8]
mov rsi, rdi
mov rdi, r14
mov ebp, dword [r12 + 0x18]
mov r14d, dword [r12 + 0x1c]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmmword [rsp + 0xa0], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.1400489e0
cmp byte [rsp + 0xa0], 0
je 0x140049ab4
mov dword [rsp + 0x20], r14d
mov rcx, rbx
mov r14, rdi
mov rdx, rdi
mov r8, r12
mov r9d, ebp
call fcn.140049f70
mov ebp, eax
cmp byte [rsp + 0xa0], 0
je 0x1400499b6
mov rcx, r14
call fcn.1400487a0
test bpl, bpl
mov rdi, rsi
je 0x140049ab7
add r12, 0x20
cmp r12, r13
je 0x1400497f1
jmp 0x140049941
call fcn.1400f24d0
mov rcx, qword [rsi]
call fcn.1401571e0
mov qword [rsi], 0
jmp 0x140049896
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140049ac4
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140049a36
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x1400498d4
xor ebx, ebx
jmp 0x140049741
xor ecx, ecx
mov dl, 1
jmp 0x140049a25
mov ebp, 0x3f0
jmp 0x140049904
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400498ea
mov edx, 0xa
xor r8d, r8d
mov r9d, 0x10000000
call fcn.140218560
jmp 0x1400497d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400498b7
mov rax, rdi
test cl, cl
mov cl, 1
jne 0x1400496d2
mov rcx, qword [r15 + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x140049714
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400498b2
xor ecx, ecx
jmp 0x140049a23