Function at 0x140043640
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 [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp byte [rcx + 0x6c], 0
je 0x140043a5c
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 [0x140270690]
movaps xmmword [rdi], xmm6
mov rcx, rdi
mov r8d, 0x10
call fcn.140043af0
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rsi
movaps xmmword [rbx], xmm6
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
call fcn.140043af0
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 0x1400436f2
cmp rdi, rax
je 0x140043a98
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 0x140043a66
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140043952
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x140043a4f
call fcn.140105b90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [r15 + 0x6e], 0
je 0x1400437db
cmp byte [r15 + 0x6f], 0
je 0x1400437db
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 0x140043a8b
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 0x140043a8b
cmp byte [r15 + 0x6d], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov rcx, rbx
je 0x140043a73
call fcn.140043e80
test al, al
je 0x140043ad7
mov r12, qword [r15 + 0x30]
mov r13, qword [r15 + 0x38]
cmp r12, r13
jne 0x140043959
mov rcx, rbx
mov edx, 0x10000000
call fcn.140043d20
test al, al
je 0x140043ad7
mov edx, dword [r15 + 0x68]
mov rcx, rbx
call fcn.140043c30
test eax, eax
mov rsi, qword [rsp + 0x50]
jne 0x140043add
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 0x140043ad7
mov r12, qword [rsp + 0xa0]
cmp qword [rsi], r12
je 0x1400438d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400439f4
lea rax, [r12 + 1]
cmp rax, 2
jb 0x1400438c9
mov qword [rsi], r12
call fcn.140105b90
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x48]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14004390a
call fcn.140105b90
cmp qword [0x1402a45d0], 0
je 0x140043a0d
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x1401e7f70.0]
test rdi, rdi
je 0x140043917
mov rcx, rdi
call fcn.14017b254
test rsi, rsi
je 0x140043924
mov rcx, rsi
call fcn.14017b254
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14017e7b0
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 0x140043769
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.140042ba0
cmp byte [rsp + 0xa0], 0
je 0x140043ad4
mov dword [rsp + 0x20], r14d
mov rcx, rbx
mov r14, rdi
mov rdx, rdi
mov r8, r12
mov r9d, ebp
call fcn.140043f90
mov ebp, eax
cmp byte [rsp + 0xa0], 0
je 0x1400439d6
mov rcx, r14
call fcn.140042960
test bpl, bpl
mov rdi, rsi
je 0x140043ad7
add r12, 0x20
cmp r12, r13
je 0x140043811
jmp 0x140043961
call fcn.140105b90
mov rcx, qword [rsi]
call fcn.1401651a0
mov qword [rsi], 0
jmp 0x1400438b6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140043ae4
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140043a56
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
call fcn.140005a10
jmp 0x1400438f4
xor ebx, ebx
jmp 0x140043761
xor ecx, ecx
mov dl, 1
jmp 0x140043a45
mov ebp, 0x3f0
jmp 0x140043924
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14004390a
mov edx, 0xa
xor r8d, r8d
mov r9d, 0x10000000
call fcn.140227e80
jmp 0x1400437f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400438d7
mov rax, rdi
test cl, cl
mov cl, 1
jne 0x1400436f2
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 0x140043734
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400438d2
xor ecx, ecx
jmp 0x140043a43