Function at 0x14001ac90
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4b8
lea rbp, [rsp + 0x80]
mov r12, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rbp - 0x40]
call fcn.140032f40
mov r15, qword [rbp - 0x40]
mov r13, qword [rbp - 0x38]
cmp r15, rsi
je 0x14001b26d
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x420], r15
mov qword [rbp + 0x428], r13
mov qword [rbp + 0x430], rax
cmp rax, 3
jbe 0x14001ad31
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [r13]
je 0x14001b145
cmp rcx, qword [r13]
je 0x14001b145
cmp rax, 0xf8
jae 0x14001adaa
cmp word [r13 + 2], 0x3a
jne 0x14001ad80
movzx eax, word [r13 + 4]
jmp 0x14001ad5c
je 0x14001ad46
cmp rax, 1
jne 0x14001ad7e
cmp word [r13], 0
jne 0x14001adaa
jmp 0x14001b145
cmp word [r13 + 2], 0x3a
jne 0x14001ad80
movzx eax, word [r13 + 4]
test ax, ax
je 0x14001b378
cmp ax, 0x2f
je 0x14001ad6a
movzx eax, ax
cmp eax, 0x5c
jne 0x14001ad80
movzx eax, word [r13]
cmp eax, 0x2f
je 0x14001ad85
cmp eax, 0x5c
je 0x14001ad85
jmp 0x14001b145
jbe 0x14001adaa
movzx eax, word [r13]
cmp ax, 0x5c
je 0x14001ad93
movzx eax, ax
cmp eax, 0x2f
jne 0x14001adaa
movzx eax, word [r13 + 2]
cmp eax, 0x2f
je 0x14001b145
cmp eax, 0x5c
je 0x14001b145
mov qword [rbp + 0x3f0], r13
mov qword [rbp + 0x400], r12
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3f8], rax
xor edi, edi
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x14001ae20
jmp 0x14001ae0f
jae 0x14001aee2
cmp r8, 0x201
jae 0x14001ae20
mov esi, 0x200
lea rbx, [rbp - 0x40]
mov r12, r8
jmp 0x14001ae78
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14001ae4f
lea rcx, [rbp + 0x408]
mov rdx, r13
call fcn.14001aaa0
mov rdi, qword [rbp + 0x408]
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x3f8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x418], r13
mov r14, rdi
mov rsi, r13
mov rbx, qword [rbp + 0x3f8]
mov r12, r13
sub ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rbp + 0x3f0]
mov edx, r12d
mov r8, rbx
sub r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov r15d, eax
or eax, eax
jne 0x14001aea4
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14001af21
mov r8d, r15d
cmp r12, r8
jne 0x14001ae00
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14001b3a4
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001ae0f
jmp 0x14001ae20
cmp rsi, r8
jb 0x14001b3be
cmp r15d, 2
mov r12, qword [rbp + 0x400]
mov rcx, qword [rbp + 0x3f0]
jbe 0x14001af77
movzx eax, word [rbx + 2]
cmp eax, 0x3a
jne 0x14001af7e
cmp word [rbx + 4], 0x5c
jne 0x14001af7e
lea r15, [0x140995468]
mov r14d, 4
jmp 0x14001afb7
call sub.KERNEL32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
cmp qword [rbp + 0x408], 0
je 0x14001af48
mov rcx, qword [rbp + 0x410]
mov edx, 2
call fcn.1400038d0
or r13, 2
cmp qword [rbp + 0x420], 0
mov r12, qword [rbp + 0x400]
je 0x14001b26d
mov rcx, qword [rbp + 0x428]
mov edx, 2
call fcn.1400038d0
jmp 0x14001b26d
jne 0x14001afae
movzx edx, word [rbx]
jmp 0x14001af87
movzx edx, word [rbx]
cmp r15d, 3
jne 0x14001aff9
cmp dx, 0x5c
jne 0x14001afae
movzx eax, word [rbx + 2]
cmp ax, 0x5c
jne 0x14001afae
add r8, 0xfffffffffffffffe
add rbx, 4
lea r15, [0x140995470]
mov r14d, 8
jmp 0x14001afb7
mov r15d, 2
xor r14d, r14d
lea rsi, [r8 + r14]
inc rsi
mov rdx, qword [rbp + 0x420]
cmp rdx, rsi
jae 0x14001afee
lea rax, [rsi + rsi]
mov rdi, r8
or rdx, rdx
je 0x14001b03d
add rdx, rdx
mov qword [rbp + 0x3d8], rcx
mov qword [rbp + 0x3e8], rdx
mov ecx, 2
jmp 0x14001b03f
mov rdi, r8
push rdx
nop
pop rsi
jmp 0x14001b084
mov r15d, 2
cmp dx, 0x5c
jne 0x14001afb4
cmp eax, 0x3f
je 0x14001afb4
cmp eax, 0x5c
jne 0x14001af91
movzx eax, word [rbx + 4]
cmp eax, 0x3f
je 0x14001b394
cmp eax, 0x2e
jne 0x14001af97
cmp word [rbx + 6], 0x5c
jne 0x14001af97
add r8, 0xfffffffffffffffc
add rbx, 8
jmp 0x14001af0f
xor ecx, ecx
mov qword [rbp + 0x3e0], rcx
lea rcx, [rbp + 0x3c0]
lea r9, [rbp + 0x3d8]
mov edx, 2
mov r8, rax
call fcn.14001aa00
cmp qword [rbp + 0x3c0], 0
jne 0x14001b3d5
mov rcx, qword [rbp + 0x3c8]
mov qword [rbp + 0x428], rcx
mov qword [rbp + 0x420], rsi
lea r8d, [r14 + r14]
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov qword [rbp + 0x430], r14
push rsi
pop rax
nop
sub rax, r14
cmp rax, rdi
jae 0x14001b0c8
lea rcx, [rbp + 0x420]
mov rdx, r14
mov r15, rdi
mov r8, rdi
call fcn.14001aaa0
mov rsi, qword [rbp + 0x420]
mov r14, qword [rbp + 0x430]
mov rdi, r15
lea r8, [rdi + rdi]
mov r13, qword [rbp + 0x428]
lea rcx, [r14*2]
add rcx, r13
nop
push rbx
pop rdx
call sub.msvcrt.dll_memcpy
add r14, rdi
mov qword [rbp + 0x430], r14
cmp r14, rsi
jne 0x14001b108
lea rcx, [rbp + 0x420]
call fcn.1400331f0
mov r13, qword [rbp + 0x428]
mov word [r13 + r14*2], 0
cmp qword [rbp + 0x408], 0
movabs rsi, 0x8000000000000000
je 0x14001b135
mov rcx, qword [rbp + 0x410]
mov edx, 2
call fcn.1400038d0
mov r15, qword [rbp + 0x420]
cmp r15, rsi
je 0x14001b26d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, r13
mov edx, 0x80000000
mov r8d, 7
sub r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x14001b249
push rax
pop rbx
nop
test r15, r15
je 0x14001b193
mov edx, 2
mov rcx, r13
call fcn.1400038d0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x10], 0
lea rdx, [rbp - 0x40]
push rbx
pop rcx
nop
call sub.KERNEL32.dll_GetFileInformationByHandle
or eax, eax
je 0x14001b291
test byte [rbp - 0x3f], 4
je 0x14001b1f0
mov qword [rbp + 0x3d8], 0
lea r8, [rbp + 0x3d8]
push rbx
nop
pop rcx
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14001b291
mov r15d, dword [rbp - 0x20]
mov r14d, dword [rbp - 0x1c]
test rbx, rbx
je 0x14001b2c9
mov qword [rbp - 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
push rbx
nop
pop rdx
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
or eax, eax
je 0x14001b351
mov rsi, qword [rbp - 0x40]
jmp 0x14001b2cb
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
or r15, r15
je 0x14001b26a
mov edx, 2
mov rcx, r13
call fcn.1400038d0
mov r13, rsi
mov rcx, r13
call fcn.140016110
mov qword [r12], 0
add rsp, 0x4b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
push rax
nop
pop rcx
call fcn.140016110
mov qword [r12], 0
mov rcx, rbx
add rsp, 0x4b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
sub esi, esi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
sub edx, edx
mov r8d, 2
sub r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x14001b33f
nop
push rax
pop rdi
shl r15, 0x20
or r15, r14
mov qword [rsp + 0x20], r15
nop
push rax
pop rcx
mov edx, 4
sub r8d, r8d
sub r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r14, rax
nop
push rdi
pop rcx
call sub.KERNEL32.dll_CloseHandle
test r14, r14
je 0x14001b33f
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x14001b36b
mov qword [r12], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001b36b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.140016110
mov qword [r12], 0
push rbx
nop
pop rcx
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001b27d
movzx eax, word [r13]
cmp eax, 0x2f
je 0x14001ad80
cmp eax, 0x5c
je 0x14001ad80
jmp 0x14001b145
cmp word [rbx + 6], 0x5c
jne 0x14001af97
jmp 0x14001afb4
lea rcx, str.internal_error:_entered_unreachable_code_home_omnipotent_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400046f0
jmp 0x14001b3e8
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140004380
jmp 0x14001b3e8
mov rcx, qword [rbp + 0x3c8]
mov rdx, qword [rbp + 0x3d0]
call fcn.140002e60
ud2