Function at 0x14005b4e0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f8
mov r12, rcx
lea rcx, [rsp + 0xf8]
call fcn.140058580
mov rbx, qword [rsp + 0xf8]
mov r15, qword [rsp + 0x100]
mov edi, 1
test rbx, rbx
je 0x14005bb48
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], rax
cmp rax, 3
jbe 0x14005b57a
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rbx]
je 0x14005b9f1
cmp rcx, qword [rbx]
je 0x14005b9f1
cmp rax, 0xf8
jae 0x14005b5fb
cmp word [rbx + 2], 0x3a
jne 0x14005b5d4
movzx eax, word [rbx + 4]
jmp 0x14005b5a3
je 0x14005b593
cmp rax, 2
je 0x14005b5d4
cmp rax, 1
jne 0x14005b5fb
cmp word [rbx], 0
jne 0x14005b5fb
jmp 0x14005b9f1
cmp word [rbx + 2], 0x3a
jne 0x14005b5d4
movzx eax, word [rbx + 4]
test ax, ax
je 0x14005b5c3
cmp ax, 0x2f
je 0x14005b5b1
movzx eax, ax
cmp eax, 0x5c
jne 0x14005b5d4
movzx eax, word [rbx]
cmp eax, 0x2f
je 0x14005b5d7
cmp eax, 0x5c
je 0x14005b5d7
jmp 0x14005b9f1
movzx eax, word [rbx]
cmp eax, 0x2f
je 0x14005b5d4
cmp eax, 0x5c
jne 0x14005b9f1
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x14005b5e5
movzx eax, ax
cmp eax, 0x2f
jne 0x14005b5fb
movzx eax, word [rbx + 2]
cmp eax, 0x2f
je 0x14005b9f1
cmp eax, 0x5c
je 0x14005b9f1
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x78], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov ebp, 0x200
mov eax, 2
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov edi, 0xffffffff
xor r14d, r14d
xor esi, esi
cmp rbp, 0x201
jae 0x14005b680
jmp 0x14005b65f
jae 0x14005b739
cmp rbp, 0x201
jae 0x14005b680
mov ebx, 0x200
lea r12, [rsp + 0xf8]
mov r15, rbp
jmp 0x14005b6d6
sub rbp, rsi
sub r14, rsi
cmp r14, rbp
jae 0x14005b6b2
lea rcx, [rsp + 0x78]
mov rdx, rsi
mov r8, rbp
call fcn.140058980
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x60]
cmp r14, rdi
mov esi, 0xffffffff
cmovb rsi, r14
mov qword [rsp + 0x88], rsi
mov rbx, rsi
mov r12, qword [rsp + 0x68]
mov r15, rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x70]
mov edx, r15d
mov r8, r12
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov r13d, eax
test eax, eax
jne 0x14005b700
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005b77b
mov ebp, r13d
cmp r15, rbp
jne 0x14005b650
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005bcbb
add r15, r15
cmp r15, rdi
cmovae r15, rdi
mov rbp, r15
cmp rbp, 0x201
jb 0x14005b65f
jmp 0x14005b680
cmp rbx, rbp
jb 0x14005bcd5
mov qword [rsp + 0x50], 0
cmp r13d, 2
jbe 0x14005b790
movzx eax, word [r12 + 2]
cmp eax, 0x3a
jne 0x14005b7ab
cmp word [r12 + 4], 0x5c
jne 0x14005b7ab
mov ebx, 4
lea r14, [0x1400f3978]
mov rdi, qword [rsp + 0x58]
jmp 0x14005b83f
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
jmp 0x14005b995
mov rdi, qword [rsp + 0x58]
jne 0x14005b836
movzx ecx, word [r12]
cmp cx, 0x5c
je 0x14005b814
jmp 0x14005b836
movzx ecx, word [r12]
cmp r13d, 3
jbe 0x14005b809
lea r14, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
cmp cx, 0x5c
jne 0x14005bc9d
cmp eax, 0x3f
mov rdi, qword [rsp + 0x58]
je 0x14005b83d
cmp eax, 0x5c
jne 0x14005b81a
movzx eax, word [r12 + 4]
cmp eax, 0x3f
je 0x14005bca9
cmp eax, 0x2e
jne 0x14005b820
cmp word [r12 + 6], 0x5c
jne 0x14005b820
add rbp, 0xfffffffffffffffc
add r12, 8
mov ebx, 4
lea r14, [0x1400f3978]
jmp 0x14005b83f
mov rdi, qword [rsp + 0x58]
cmp cx, 0x5c
jne 0x14005b836
movzx eax, word [r12 + 2]
cmp ax, 0x5c
jne 0x14005b836
add rbp, 0xfffffffffffffffe
add r12, 4
mov ebx, 8
lea r14, [0x1400f3980]
jmp 0x14005b83f
lea r14, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
xor ebx, ebx
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, rdi
jbe 0x14005b8c7
lea r8, [rsi + rsi]
test rdi, rdi
je 0x14005b87b
lea rax, [rdi + rdi]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xa0], rax
jmp 0x14005b887
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x90]
mov edx, 2
call fcn.140014130
cmp qword [rsp + 0xd0], 0
mov rcx, qword [rsp + 0xd8]
je 0x14005b8f9
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14005bce9
cmp rbx, rdi
jbe 0x14005b8ec
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rbx
call fcn.140058980
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
jmp 0x14005b906
mov rsi, rdi
xor r13d, r13d
mov rcx, qword [rsp + 0x70]
jmp 0x14005b906
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rsi
xor r13d, r13d
lea r8, [rbx + rbx]
mov rdi, rcx
lea rcx, [rcx + r13*2]
mov rdx, r14
call sub.msvcrt.dll_memcpy
add r13, rbx
mov qword [rsp + 0x50], r13
mov rax, rsi
sub rax, r13
cmp rax, rbp
jae 0x14005b94b
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rbp
call fcn.140058980
mov r13, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
lea r8, [rbp*2]
lea rcx, [rdi + r13*2]
mov rdx, r12
call sub.msvcrt.dll_memcpy
add r13, rbp
mov qword [rsp + 0x50], r13
cmp r13, rsi
jne 0x14005b983
lea rcx, [rsp + 0x40]
mov rdx, rsi
call case.0x140039864.1286
mov rdi, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
mov word [rdi + r13*2], 0
inc r13
mov qword [rsp + 0x50], r13
xor r15d, r15d
cmp qword [rsp + 0x60], 0
mov r12, qword [rsp + 0xc8]
mov edi, 1
je 0x14005b9b9
mov edx, 2
mov rcx, qword [rsp + 0x68]
call fcn.140007c90
test r15, r15
je 0x14005b9de
cmp qword [rsp + 0x48], 0
je 0x14005bb48
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.140007c90
jmp 0x14005bb48
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
test rbx, rbx
je 0x14005bb48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rsi, rax
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14005ba43
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov edi, 1
test r15, r15
je 0x14005ba55
mov edx, 2
mov rcx, rbx
call fcn.140007c90
cmp rsi, 0xffffffffffffffff
je 0x14005bb45
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xc0], 0
lea rdx, [rsp + 0x90]
mov rcx, r14
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x14005bb81
test dword [rsp + 0x90], 0x400
je 0x14005bad9
mov qword [rsp + 0xd0], 0
lea r8, [rsp + 0xd0]
mov rcx, r14
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14005bb81
mov r15d, dword [rsp + 0xb0]
mov ebx, dword [rsp + 0xb4]
test r14, r14
je 0x14005bbd2
mov qword [rsp + 0x90], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov rcx, rax
mov rdx, r14
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14005bc5a
mov rsi, qword [rsp + 0x90]
jmp 0x14005bbd4
mov r15, r14
mov qword [rsp + 0xe8], rdi
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xf0], r15
call fcn.140055e90
mov qword [r12], 0
add rsp, 0x4f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xf8], 2
call fcn.140055e90
mov qword [r12], 0
mov rcx, r14
add rsp, 0x4f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor esi, esi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x14005bc48
mov rdi, rax
shl r15, 0x20
or r15, rbx
mov qword [rsp + 0x20], r15
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov rbx, rax
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
test rbx, rbx
je 0x14005bc48
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x14005bc90
mov qword [r12], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14005bc90
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0xf8], 1
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x100], rax
call fcn.140055e90
mov qword [r12], 0
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x14005bb6d
xor ebx, ebx
mov rdi, qword [rsp + 0x58]
jmp 0x14005b83f
cmp word [r12 + 6], 0x5c
jne 0x14005b820
jmp 0x14005b83d
lea rcx, str.internal_error:_entered_unreachable_codeEndOfInput_home_admin_.local_share_cargo_registry_src_index.crates.io_6f17d22bba15001f_untrusted_0.9.0_src_reader.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140009bb0
jmp 0x14005bd02
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, rbp
mov rdx, rbx
call fcn.140009810
jmp 0x14005bd02
test rcx, rcx
jne 0x14005bcf5
call fcn.1400080f0
jmp 0x14005bd02
mov rdx, qword [rsp + 0xe0]
call fcn.140008130
ud2