Function at 0x140022020
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp byte [rcx + 0x6c], 0
je 0x14002243c
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 [0x140114940]
movaps xmmword [rdi], xmm6
mov rcx, rdi
mov r8d, 0x10
call fcn.1400224d0
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rsi
movaps xmmword [rbx], xmm6
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
call fcn.1400224d0
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 0x1400220d2
cmp rdi, rax
je 0x140022478
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 0x140022446
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140022332
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x14002242f
call fcn.140061fd0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [r15 + 0x6e], 0
je 0x1400221bb
cmp byte [r15 + 0x6f], 0
je 0x1400221bb
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 0x14002246b
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 0x14002246b
cmp byte [r15 + 0x6d], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov rcx, rbx
je 0x140022453
call fcn.140022860
test al, al
je 0x1400224b7
mov r12, qword [r15 + 0x30]
mov r13, qword [r15 + 0x38]
cmp r12, r13
jne 0x140022339
mov rcx, rbx
mov edx, 0x10000000
call fcn.140022700
test al, al
je 0x1400224b7
mov edx, dword [r15 + 0x68]
mov rcx, rbx
call fcn.140022610
test eax, eax
mov rsi, qword [rsp + 0x50]
jne 0x1400224bd
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 0x1400224b7
mov r12, qword [rsp + 0xa0]
cmp qword [rsi], r12
je 0x1400222b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400223d4
lea rax, [r12 + 1]
cmp rax, 2
jb 0x1400222a9
mov qword [rsi], r12
call fcn.140061fd0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x48]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400222ea
call fcn.140061fd0
cmp qword [0x140142d48], 0
je 0x1400223ed
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x140150008]
test rdi, rdi
je 0x1400222f7
mov rcx, rdi
call fcn.140096334
test rsi, rsi
je 0x140022304
mov rcx, rsi
call fcn.140096334
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400985e0
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 0x140022149
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.1400211b0
cmp byte [rsp + 0xa0], 0
je 0x1400224b4
mov dword [rsp + 0x20], r14d
mov rcx, rbx
mov r14, rdi
mov rdx, rdi
mov r8, r12
mov r9d, ebp
call fcn.140022970
mov ebp, eax
cmp byte [rsp + 0xa0], 0
je 0x1400223b6
mov rcx, r14
call fcn.140020f70
test bpl, bpl
mov rdi, rsi
je 0x1400224b7
add r12, 0x20
cmp r12, r13
je 0x1400221f1
jmp 0x140022341
call fcn.140061fd0
mov rcx, qword [rsi]
call fcn.14008d840
mov qword [rsi], 0
jmp 0x140022296
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011a090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400224c4
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140022436
call qword [0x140150008]
mov rcx, rax
xor edx, edx
call fcn.140021bd0
jmp 0x1400222d4
xor ebx, ebx
jmp 0x140022141
xor ecx, ecx
mov dl, 1
jmp 0x140022425
mov ebp, 0x3f0
jmp 0x140022304
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400222ea
mov edx, 0xa
xor r8d, r8d
mov r9d, 0x10000000
call fcn.1400fc640
jmp 0x1400221d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400222b7
mov rax, rdi
test cl, cl
mov cl, 1
jne 0x1400220d2
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 0x140022114
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400222b2
xor ecx, ecx
jmp 0x140022423