Function at 0x1400d0698
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13d, r9d
mov rbx, r8
mov r15, rdx
mov rsi, rcx
mov r12, qword [rsp + 0xc8]
mov ebp, dword [rsp + 0xc0]
mov rax, qword [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [rbp + r13]
lea rdi, [rcx + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov rdx, rax
call fcn.1400067ee
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x1400d0748
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebx, 0x19
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140132550
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400d07f2
mov r14, rax
mov r12d, r13d
mov eax, ebp
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x1400d07b0
test ebp, ebp
je 0x1400d07b0
lea rdi, [r14 + r12]
mov rcx, rdi
mov rdx, rbx
mov r8, qword [rsp + 0x40]
call fcn.140135640
xor eax, eax
mov rcx, qword [rdi + rax*8]
test rcx, rcx
je 0x1400d07a7
sub rcx, rbx
mov qword [rdi + rax*8], rcx
inc rax
cmp rax, 0x40
jne 0x1400d0797
mov qword [0x1401ba098], r12
lea r8, [0x1401ba098]
mov r9d, 8
mov rcx, rsi
call fcn.1400d0610
mov qword [0x1401ba098], 0
test eax, eax
je 0x1400d0806
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x1400d0728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebx, 0x1b
jmp 0x1400d0728
mov rax, qword [rsp + 0x40]
mov qword [0x1401ba0a0], rax
lea r8, [0x1401ba0a0]
mov r9d, 8
mov rcx, rsi
call fcn.1400d0610
mov qword [0x1401ba0a0], 0
test eax, eax
mov rbp, qword [rsp + 0xc8]
je 0x1400d084e
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
jmp 0x1400d0728
lea rdi, [rsi + 0x38]
mov ecx, 0x40
call fcn.1401321a8
mov rbx, rax
mov r9, qword [rsi + 0x40]
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], r15
mov rcx, rax
call fcn.1400f6de4
mov rcx, rdi
mov rdx, rbx
call fcn.1400d01c4
mov rcx, qword [rsi + 0x38]
mov rdx, r14
mov r8d, r13d
mov r9d, 0x400
call fcn.1400f6e94
mov ebx, 4
test al, al
je 0x1400d0728
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x48]
mov qword [r14], rax
mov rbx, qword [rsi]
mov rdi, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400d0937
mov rax, qword [rsp + 0x48]
mov qword [0x1401b9268], rax
lea r8, [0x1401b9268]
mov r9d, 8
mov rcx, rsi
call fcn.1400d0610
mov qword [0x1401b9268], 0
test eax, eax
jne 0x1400d083e
mov rcx, rsi
call fcn.1400d0070
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x1400d0728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebx, 0x1a
jmp 0x1400d0728