Function at 0x14001a470
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4c8
mov r15, rcx
lea rcx, [rsp + 0xc0]
call dbg.inner
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
test rdi, rdi
je 0x14001aae2
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rax
cmp rax, 4
jb 0x14001a505
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x14001a98e
cmp rcx, qword [rdi]
je 0x14001a98e
cmp rax, 0xf8
jae 0x14001a58a
cmp word [rdi + 2], 0x3a
jne 0x14001a563
movzx eax, word [rdi + 4]
jmp 0x14001a532
cmp rax, 3
je 0x14001a522
cmp rax, 2
je 0x14001a563
cmp rax, 1
jne 0x14001a58a
cmp word [rdi], 0
jne 0x14001a58a
jmp 0x14001a98e
cmp word [rdi + 2], 0x3a
jne 0x14001a563
movzx eax, word [rdi + 4]
test ax, ax
je 0x14001a552
cmp ax, 0x2f
je 0x14001a540
movzx eax, ax
cmp eax, 0x5c
jne 0x14001a563
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x14001a566
cmp eax, 0x5c
je 0x14001a566
jmp 0x14001a98e
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x14001a563
cmp eax, 0x5c
jne 0x14001a98e
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x14001a574
movzx eax, ax
cmp eax, 0x2f
jne 0x14001a58a
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x14001a98e
cmp eax, 0x5c
je 0x14001a98e
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov ebp, 0x200
mov eax, 2
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov edi, 0xffffffff
xor r15d, r15d
xor ebx, ebx
cmp rbp, 0x201
jae 0x14001a610
jmp 0x14001a5ef
jae 0x14001a6d7
cmp rbp, 0x201
jae 0x14001a610
mov esi, 0x200
lea r13, [rsp + 0xc0]
mov r12, rbp
jmp 0x14001a666
sub rbp, rbx
sub r15, rbx
cmp r15, rbp
jae 0x14001a642
lea rcx, [rsp + 0x78]
mov rdx, rbx
mov r8, rbp
call dbg.do_reserve_and_handle<u16, alloc::alloc::Global>
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov r15, qword [rsp + 0x58]
cmp r15, rdi
mov ebx, 0xffffffff
cmovb rbx, r15
mov qword [rsp + 0x88], rbx
mov rsi, rbx
mov r13, qword [rsp + 0x50]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x60]
mov edx, r12d
mov r8, r13
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov r14d, eax
test eax, eax
jne 0x14001a694
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14001a732
mov ebp, r14d
cmp r12, rbp
jne 0x14001a5e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14001ac34
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovae r12, rax
mov rbp, r12
cmp rbp, 0x201
jb 0x14001a5ef
jmp 0x14001a610
cmp rsi, rbp
jb 0x14001ac4e
mov qword [rsp + 0x48], 0
cmp r14d, 2
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
jbe 0x14001a757
movzx eax, word [r13 + 2]
cmp eax, 0x3a
jne 0x14001a764
cmp word [r13 + 4], 0x5c
jne 0x14001a764
mov r12d, 4
lea r14, [0x1400430d8]
lea rsi, [r12 + rbp]
inc rsi
cmp rsi, rbx
ja 0x14001a7fb
jmp 0x14001a872
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r15, qword [rsp + 0x70]
cmp qword [rsp + 0x58], 0
jne 0x14001a93f
jmp 0x14001a952
jne 0x14001a7e5
movzx ecx, word [r13]
jmp 0x14001a7ae
movzx ecx, word [r13]
cmp r14d, 3
jbe 0x14001a7ae
lea r14, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
cmp cx, 0x5c
jne 0x14001a7ec
cmp eax, 0x3f
je 0x14001a7ec
cmp eax, 0x5c
jne 0x14001a7b9
movzx eax, word [r13 + 4]
cmp eax, 0x3f
je 0x14001ac23
cmp eax, 0x2e
jne 0x14001a7bf
cmp word [r13 + 6], 0x5c
jne 0x14001a7bf
add rbp, 0xfffffffffffffffc
add r13, 8
jmp 0x14001a710
cmp cx, 0x5c
jne 0x14001a7e5
movzx eax, word [r13 + 2]
cmp ax, 0x5c
jne 0x14001a7e5
add rbp, 0xfffffffffffffffe
add r13, 4
mov r12d, 8
lea r14, [0x1400430e0]
lea rsi, [r12 + rbp]
inc rsi
cmp rsi, rbx
ja 0x14001a7fb
jmp 0x14001a872
lea r14, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
xor r12d, r12d
lea rsi, [r12 + rbp]
inc rsi
cmp rsi, rbx
jbe 0x14001a872
lea r8, [rsi + rsi]
test rbx, rbx
je 0x14001a826
lea rax, [rbx + rbx]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xa0], rax
jmp 0x14001a832
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa8]
lea r9, [rsp + 0x90]
mov edx, 2
call dbg.finish_grow<alloc::alloc::Global>
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xb0]
je 0x14001a89e
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14001ac62
cmp r12, rbx
jbe 0x14001a897
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8, r12
call dbg.do_reserve_and_handle<u16, alloc::alloc::Global>
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
jmp 0x14001a8ad
mov rsi, rbx
xor ebx, ebx
jmp 0x14001a8ad
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rsi
xor ebx, ebx
mov rdi, rcx
lea r8, [r12 + r12]
lea rcx, [rdi + rbx*2]
mov rdx, r14
call sym.memcpy
add rbx, r12
mov qword [rsp + 0x48], rbx
mov rax, rsi
sub rax, rbx
cmp rax, rbp
jae 0x14001a8ef
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rbp
call dbg.do_reserve_and_handle<u16, alloc::alloc::Global>
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
lea r8, [rbp*2]
lea rcx, [rdi + rbx*2]
mov rdx, r13
call sym.memcpy
add rbx, rbp
mov qword [rsp + 0x48], rbx
cmp rbx, rsi
jne 0x14001a927
lea rcx, [rsp + 0x38]
mov rdx, rsi
call dbg.reserve_for_push<u16, alloc::alloc::Global>
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
mov word [rdi + rbx*2], 0
inc rbx
mov qword [rsp + 0x48], rbx
xor ebx, ebx
cmp qword [rsp + 0x58], 0
je 0x14001a952
mov rcx, qword [0x1400490f0]
xor edx, edx
mov r8, qword [rsp + 0x50]
call fcn.140039b44
test rbx, rbx
je 0x14001a97b
cmp qword [rsp + 0x40], 0
je 0x14001aae2
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x1400490f0]
xor edx, edx
call fcn.140039b44
jmp 0x14001aae2
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rdi, rdi
je 0x14001aae2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rsi, rax
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a9d9
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test rbx, rbx
je 0x14001a9ef
mov rcx, qword [0x1400490f0]
xor edx, edx
mov r8, rdi
call fcn.140039b44
cmp rsi, 0xffffffffffffffff
je 0x14001aadf
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xf0], 0
lea rdx, [rsp + 0xc0]
mov rcx, r14
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x14001ab5a
test byte [rsp + 0xc1], 4
je 0x14001aa70
mov qword [rsp + 0x90], 0
lea r8, [rsp + 0x90]
mov rcx, r14
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14001ab5a
mov r12, r15
mov r15d, dword [rsp + 0xe0]
mov ebx, dword [rsp + 0xe4]
test r14, r14
je 0x14001ab81
mov qword [rsp + 0xc0], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
mov rcx, rax
mov rdx, r14
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14001ac09
mov rsi, qword [rsp + 0xc0]
jmp 0x14001ab83
mov rbx, r14
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14001ab3f
test rax, rax
je 0x14001ab3f
lea rdi, [rbx - 1]
mov rax, rbx
mov rbx, qword [rbx - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14001ab2e
cmp qword [r14 + 0x10], 0x11
jb 0x14001ab1d
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1400490f0]
xor edx, edx
mov r8, rbx
call fcn.140039b44
mov rcx, qword [0x1400490f0]
xor edx, edx
mov r8, rdi
call fcn.140039b44
mov qword [r15], 0
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov qword [r15], 0
mov rcx, r14
add rsp, 0x4c8
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 0x14001abf7
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 0x14001abf7
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x14001ac16
mov qword [r12], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001ac16
call sub.KERNEL32.dll_GetLastError
mov qword [r12], 0
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001ab46
cmp word [r13 + 6], 0x5c
jne 0x14001a7bf
jmp 0x14001a7ec
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x14001ac7b
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, rbp
mov rdx, rsi
call dbg.slice_end_index_len_fail
jmp 0x14001ac7b
test rcx, rcx
jne 0x14001ac6e
call dbg.capacity_overflow
jmp 0x14001ac7b
mov rdx, qword [rsp + 0xb8]
call dbg.handle_alloc_error
ud2