Function at 0x14019a1e0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], rbp
jne 0x14019a4c5
cmp qword [rcx + 0x60], rbp
jne 0x14019a4c5
cmp qword [rcx + 0x68], rbp
jne 0x14019a4c5
mov edx, dword [rcx + 0x88]
lea eax, [rdx - 4]
cmp eax, 2
jbe 0x14019a4c5
lea r8, [rcx + 4]
movzx ecx, word [r8]
test cx, cx
jne 0x14019a315
movsxd rax, dword [rbx + 0x80]
cmp eax, 0x10000
ja 0x14019a315
mov rcx, rax
mov dword [rsp + 0x68], eax
lea rdx, [0x1401a6330]
call fcn.14005e254
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x14019a282
mov edi, 0x8007000e
jmp 0x14019a487
xor edx, edx
mov rcx, rbx
call fcn.14019ae08
mov edi, eax
test eax, eax
js 0x14019a487
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, qword [rbx + 0x78]
mov rcx, rbx
call fcn.14019ac50
mov edi, eax
test eax, eax
jns 0x14019a2ca
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14019a2c1
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov qword [rbx + 0x78], rbp
jmp 0x14019a487
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14019a2ee
mov edx, 6
test byte [rbx + 0x84], dl
jne 0x14019a306
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 0x58], 0xffffffffffffffff
jmp 0x14019a301
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14019a301
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x50], rbp
mov edx, 4
mov dword [rbx + 0x88], edx
or byte [rbx + 0x48], 8
jmp 0x14019a477
test byte [rbx + 0x84], 2
jne 0x14019a3eb
cmp edx, 3
je 0x14019a3eb
neg cx
mov rcx, qword [rbx + 0x58]
sbb rax, rax
xor r9d, r9d
and rax, r8
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x14019a374
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14019a4dc
movzx eax, ax
or eax, 0x80070000
jmp 0x14019a4dc
mov dword [rbx + 0x8c], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14019a395
mov edi, 0x8013110a
jmp 0x14019a487
mov rcx, qword [rbx + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x14019a477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14019a3d4
movzx edi, ax
or edi, 0x80070000
test edi, edi
mov qword [rbx + 0x78], rbp
mov eax, 0x8013110e
mov qword [rbx + 0x70], rbp
cmovns edi, eax
jmp 0x14019a487
mov r8d, dword [0x1401fd27c]
mov ecx, dword [rbx + 0x80]
lea edi, [r8 - 1]
not edi
lea eax, [rcx - 1]
and edi, eax
add edi, r8d
cmp edi, ecx
jae 0x14019a411
mov edi, 0x80131516
jmp 0x14019a487
xor edx, edx
mov eax, edi
div r8d
lea rdx, [0x1401a6330]
mov ecx, eax
call fcn.14005e254
mov qword [rbx + 0xa0], rax
mov rcx, rax
test rax, rax
jne 0x14019a43f
mov eax, 0x8007000e
jmp 0x14019a4dc
xor edx, edx
mov eax, edi
div dword [0x1401fd27c]
xor edx, edx
mov r8d, eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov edx, edi
mov r8d, 0x2000
lea r9d, [rcx + 1]
call fcn.140152cd0
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x70], rax
test rax, rax
je 0x14019a278
xor edx, edx
mov rcx, rbx
call fcn.14019ae08
mov edi, eax
test eax, eax
jns 0x14019a4ad
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14019a496
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], rbp
mov rax, rbp
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0x70], rbp
mov dword [rbx + 0x80], ebp
jmp 0x14019a4b1
mov rax, qword [rbx + 0x78]
mov qword [r14], rax
test rsi, rsi
je 0x14019a4c1
mov eax, dword [rbx + 0x80]
mov dword [rsi], eax
mov eax, edi
jmp 0x14019a4dc
mov rax, qword [rcx + 0x78]
mov qword [r14], rax
test rsi, rsi
je 0x14019a4da
mov eax, dword [rcx + 0x80]
mov dword [r8], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret