Function at 0x1400264c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
lea r15, [rcx + 0x10]
mov qword [rsp + 0x80], r14
mov rdi, rcx
xor r13d, r13d
mov rcx, qword [r15]
movzx r12d, r8b
mov r14, rdx
test rcx, rcx
je 0x1400264fd
jle 0x1400264fa
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r15], r13
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140026512
jle 0x14002650e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r13
mov rcx, qword [rdi]
test rcx, rcx
je 0x140026525
jle 0x140026522
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r13
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14002653a
jle 0x140026536
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r13
lea rsi, [rdi + 0xf8]
mov qword [rdi + 0x20], r13
mov qword [rdi + 0x28], r13
cmp rsi, r14
je 0x1400265a3
cmp qword [r14 + 0x18], 8
mov r9, r14
mov rdx, qword [r14 + 0x10]
jb 0x14002655f
mov r9, qword [r14]
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x14002659b
mov qword [rsp + 0x78], rbp
mov rbp, rsi
cmp rax, 8
jb 0x140026579
mov rbp, qword [rsi]
lea rbx, [rdx + rdx]
mov qword [rsi + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.140050d50
mov word [rbx + rbp], r13w
mov rbp, qword [rsp + 0x78]
jmp 0x1400265a3
mov rcx, rsi
call fcn.140014740
mov byte [rdi + 0x1c], r13b
cmp qword [r14 + 0x18], 8
jb 0x1400265b1
mov r14, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov edx, 0x120089
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
mov r14, qword [rsp + 0x80]
cmp rax, rcx
je 0x1400265fc
test rcx, rcx
jle 0x1400265f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x140026703
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14002663e
test rcx, rcx
jle 0x140026637
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14002664c
mov byte [rdi + 0x18], r13b
jmp 0x14002668f
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r13
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r13d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x140026687
test rcx, rcx
jle 0x140026680
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x1400266d4
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, r15
je 0x1400266c6
mov rcx, qword [r15]
cmp rbx, rcx
je 0x1400266d4
test rcx, rcx
jle 0x1400266c1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r15], rbx
jmp 0x1400266d4
test rbx, rbx
jle 0x1400266d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [r15], r13
je 0x140026703
xor edx, edx
mov rcx, rdi
call fcn.140026820
test eax, eax
js 0x140026712
test r12b, r12b
jne 0x140026712
cmp qword [rsi + 0x18], 8
jb 0x1400266f6
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rdi
call fcn.1400276f0
jmp 0x140026712
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret