Function at 0x14000d940
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x118], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x60]
mov qword [r15 + 0x50], r12
movaps xmm6, xmmword [0x140114940]
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 r14, [rsp + 0xc0]
mov rcx, r14
mov r9d, 0x3a
call fcn.140061ec0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x14000de0c
mov rcx, qword [rsi]
xor r14d, r14d
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14000da2f
lea rcx, [rsp + 0x60]
call fcn.140083f80
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1400985e0
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test ebx, ebx
jne 0x14000db6f
mov ebx, 2
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
xor edx, edx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x14000da9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14000dc00
mov rax, r14
inc rax
cmp rax, 2
jb 0x14000da8f
mov qword [rsi + 0x40], r14
call fcn.140061fd0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x14000dbf8
mov r12, qword [rdi]
mov rax, qword [rdi + 8]
or rax, r12
jne 0x14000dd20
mov rcx, rsi
call fcn.14000deb0
xor r14d, r14d
test rax, rax
jle 0x14000d9f8
xor r15d, r15d
xor r8d, r8d
xor edx, edx
mov qword [rsi + 0x38], rax
and ebx, 2
add ebx, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rdx
mov edx, ebx
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, qword [0x14012dfa0]
and rax, rcx
cmp rax, qword [0x14012df88]
je 0x14000de25
mov rax, qword [0x14012dfa0]
and rax, rdi
cmp rax, qword [0x14012df88]
je 0x14000de2f
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x14000dbf8
mov rax, qword [0x14012dfa0]
mov rdx, rax
and rdx, rdi
mov rbx, rdi
add rbx, r15
mov rcx, qword [0x14012df88]
cmp rdx, rcx
je 0x14000de3c
and rax, rbx
cmp rax, rcx
je 0x14000de52
mov qword [rsi + 0x30], rbx
mov r14b, 1
jmp 0x14000d9f8
cmp ebx, 3
jne 0x14000dd8b
lea rbx, [rsp + 0xc0]
mov qword [rbx + 0x50], r12
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x1b
call fcn.140061ec0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x14000de55
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14000dc3a
xor r14d, r14d
lea rcx, [rsp + 0xc0]
call fcn.140083f80
jmp 0x14000d9f8
xor r14d, r14d
jmp 0x14000d9f8
call fcn.140061fd0
mov r15, qword [rsi + 0x40]
cmp qword [0x140142d48], 0
je 0x14000ddc4
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r15
call qword [0x140150008]
mov qword [rsi + 0x40], 0
jmp 0x14000da7a
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 0x14000dc9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14000dda9
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14000dc93
mov qword [rsi + 0x40], rdi
call fcn.140061fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000dbe3
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, qword [0x14012dfa0]
and rax, rcx
cmp rax, qword [0x14012df88]
je 0x14000de6e
mov rax, qword [0x14012dfa0]
and rax, rdi
cmp rax, qword [0x14012df88]
je 0x14000de78
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x14000dbe3
movsxd rax, dword [rdi + 0x3c]
mov eax, dword [rdi + rax + 0x50]
mov qword [rsi + 0x38], rax
mov r14b, 1
jmp 0x14000dbe6
call fcn.140085b40
mov rcx, qword [rax + 0x58]
lea r15, [rcx - 1]
test r15, 0xffffffff80000000
jne 0x14000de85
and r15, r12
neg rcx
mov rax, qword [rdi + 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 0x14000d9f8
test r9b, r9b
jne 0x14000d9f8
test r8, r8
js 0x14000d9f8
mov r8, rcx
shr r8, 0x20
mov r14d, ecx
jmp 0x14000dad4
cmp ebx, 2
jne 0x14000de88
mov r14, qword [rdi + 8]
mov r9, r14
shr r9, 0x20
mov ebx, 4
jmp 0x14000da3f
call fcn.140061fd0
mov rcx, qword [rsi + 0x40]
call fcn.14008d840
mov qword [rsi + 0x40], 0
jmp 0x14000dc7e
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 0x14000de9e
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14000de06
call qword [0x140150008]
mov rcx, rax
xor edx, edx
call fcn.140021bd0
jmp 0x14000dc17
xor ecx, ecx
mov dl, 1
jmp 0x14000ddfc
lea rdx, [rsp + 0x38]
mov qword [rdx], r14
lea rcx, str.ScopedBlockingCall
call fcn.1400e4800
jmp 0x14000d9e8
call fcn.14006a8b0
jmp 0x14000db10
mov rcx, rdi
call fcn.140062440
jmp 0x14000db27
mov rcx, rdi
mov rdx, r15
call fcn.1400955b0
test al, al
jne 0x14000db63
int3
int3
lea rdx, [rsp + 0x58]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.1400e4800
jmp 0x14000dbd6
call fcn.14006a8b0
jmp 0x14000dce8
mov rcx, rdi
call fcn.140062440
jmp 0x14000dcff
int3
cmp ebx, 1
jne 0x14000de97
mov ebx, 4
jmp 0x14000da3c
xor ebx, ebx
jmp 0x14000da3c
xor ecx, ecx
jmp 0x14000ddfa