Function at 0x1400214e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x108], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x50]
mov qword [r15 + 0x50], r13
movaps xmm6, xmmword [0x140270690]
movaps xmmword [r15 + 0x40], xmm6
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
lea rdx, str.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r12, [rsp + 0xb0]
mov rcx, r12
mov r9d, 0x3a
call fcn.140120f60
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140121610
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14002182a
cmp edi, 3
ja case.default.0x1400215a7
mov eax, edi
lea rdx, [0x140021964]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov edi, 2
jmp 0x1400216ae
mov r14, qword [rbx + 8]
mov r9, r14
shr r9, 0x20
mov edi, 4
jmp 0x1400216b1
lea rdi, [rsp + 0xb0]
mov qword [rdi + 0x50], r13
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x1b
call fcn.140120f60
xor r14d, r14d
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140121610
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14002181d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14002168f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140021899
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140021683
mov qword [rsi + 0x40], rdi
call fcn.140105b90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x1400217e5
xor r14d, r14d
jmp 0x14002181d
mov edi, 4
jmp 0x1400216ae
xor edi, edi
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
xor edx, edx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x14002170d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140021863
mov rax, r14
inc rax
cmp rax, 2
jb 0x140021701
mov qword [rsi + 0x40], r14
call fcn.140105b90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jae 0x14002171e
xor r14d, r14d
jmp 0x14002182a
mov r12, qword [rbx]
mov rax, qword [rbx + 8]
or rax, r12
jne 0x140021748
mov rcx, rsi
call fcn.1400738d0
xor r14d, r14d
test rax, rax
jle 0x14002182a
xor r15d, r15d
xor r8d, r8d
xor edx, edx
jmp 0x1400217ae
call fcn.140151120
mov rcx, qword [rax + 0x58]
lea r15, [rcx - 1]
test r15, 0xffffffff80000000
jne 0x140021957
and r15, r12
neg rcx
mov rax, qword [rbx + 8]
xor r9d, r9d
mov rdx, rax
add rdx, r15
setb r9b
mov r8, r9
neg r8
xor r9, r8
setne r9b
xor r14d, r14d
and rcx, r12
js 0x14002182a
test r9b, r9b
jne 0x14002182a
test r8, r8
js 0x14002182a
mov r8, rcx
shr r8, 0x20
mov r14d, ecx
mov qword [rsi + 0x38], rax
and edi, 2
add edi, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rdx
mov edx, edi
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140021716
add rax, r15
mov qword [rsi + 0x30], rax
mov r14b, 1
jmp 0x14002182a
mov qword [rsp + 0x20], 0
xor r14d, r14d
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14002181d
movsxd rcx, dword [rax + 0x3c]
mov eax, dword [rax + rcx + 0x50]
mov qword [rsi + 0x38], rax
mov r14b, 1
lea rcx, [rsp + 0xb0]
call fcn.140120f80
lea rcx, [rsp + 0x50]
call fcn.140120f80
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14017e7b0
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140105b90
mov r15, qword [rsi + 0x40]
cmp qword [0x1402a45d0], 0
je 0x1400218cf
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r15
call qword [case.0x1401e7f70.0]
mov qword [rsi + 0x40], 0
jmp 0x1400216ec
call fcn.140105b90
mov r14, qword [rsi + 0x40]
cmp qword [0x1402a45d0], 0
je 0x140021913
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401e7f70.0]
mov qword [rsi + 0x40], 0
jmp 0x14002166e
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 0x14002195a
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140021905
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
jmp 0x140021909
xor ecx, ecx
mov dl, 1
call fcn.140005a10
jmp 0x140021876
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 0x14002195e
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140021949
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
jmp 0x14002194d
xor ecx, ecx
mov dl, 1
call fcn.140005a10
jmp 0x1400218ac
int3
xor ecx, ecx
jmp 0x140021901
xor ecx, ecx
jmp 0x140021945