Function at 0x14008a5f0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rsi, rcx
lea rcx, [rsp + 0x90]
call dbg.inner
mov rax, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
test rax, rax
je 0x14008a7a0
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x90]
call dbg.get_long_path
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x14008a7a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r12d, r12d
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.kernel32.dll_CreateFileW
mov r14, rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008a6c1
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov r12d, 1
test r15, r15
je 0x14008a6d3
mov edx, 2
mov rcx, rbx
call sym.__rust_dealloc
cmp r14, 0xffffffffffffffff
je 0x14008a7d2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x80], 0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x14008a7d7
test dword [rsp + 0x50], 0x400
je 0x14008a742
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14008a7d7
mov r12d, dword [rsp + 0x70]
mov r15d, dword [rsp + 0x74]
test rdi, rdi
je 0x14008a824
mov qword [rsp + 0x50], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14008a8a7
mov rbx, qword [rsp + 0x50]
jmp 0x14008a826
mov r12d, 1
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r15
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, rdi
jmp 0x14008a7a6
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], 2
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14008a896
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x14008a896
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14008a8dc
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x14008a8dc
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x90], 1
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], rax
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x14008a7c1